diff --git a/CHANGELOG.md b/CHANGELOG.md index 80c63d1d5a9..4e628b689d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,17 @@ 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.3.0] -- 2026-11-10 + +### Added +- Add `domainpad` to cartesian axes to reserve space in pixels inside the edges of `domain`, so the gap between subplots stays the same at all figure sizes [[#7965](https://github.com/plotly/plotly.js/pull/7965)], with thanks to @SharadhNaidu for the contribution! + +### Fixed +- Fix `Plotly.react` and `Plotly.relayout` with a whole axis object ignoring a new range on an axis with `constrain: 'domain'` [[#8144](https://github.com/plotly/plotly.js/pull/8144)], with thanks to @Roshan1299 for the contribution! +- Apply `tickprefix` and `ticksuffix` to `tickvals` without explicit `ticktext` [[#8160](https://github.com/plotly/plotly.js/pull/8160)], with thanks to @davrens101 for the contribution! +- Fix potential prototype pollution from inherited properties in plot API calls [[#8168](https://github.com/plotly/plotly.js/pull/8168)] + + ## [4.2.0] -- 2026-10-29 ### Added diff --git a/CITATION.cff b/CITATION.cff index f0878807500..ceb8455c2db 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.2.0 +version: 4.3.0 doi: 10.5281/zenodo.13964707 -date-released: 2026-10-29 +date-released: 2026-11-10 url: "https://github.com/plotly/plotly.js" diff --git a/README.md b/README.md index e79e8c9f4cd..0fc53f5a6b6 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 16f2c8297ad..12d70d2262f 100644 --- a/dist/README.md +++ b/dist/README.md @@ -46,9 +46,9 @@ The main plotly.js bundles weight in at: | 10.2 MB | 4.84 MB | 1.49 MB | 10.5 MB | #### CDN links -> https://cdn.plot.ly/plotly-4.2.0.js +> https://cdn.plot.ly/plotly-4.3.0.js -> https://cdn.plot.ly/plotly-4.2.0.min.js +> https://cdn.plot.ly/plotly-4.3.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.97 MB | 1.2 MB | 402 kB | +| 2.97 MB | 1.2 MB | 403 kB | #### CDN links -> https://cdn.plot.ly/plotly-basic-4.2.0.js +> https://cdn.plot.ly/plotly-basic-4.3.0.js -> https://cdn.plot.ly/plotly-basic-4.2.0.min.js +> https://cdn.plot.ly/plotly-basic-4.3.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.74 MB | 1.51 MB | 506 kB | +| 3.74 MB | 1.52 MB | 507 kB | #### CDN links -> https://cdn.plot.ly/plotly-cartesian-4.2.0.js +> https://cdn.plot.ly/plotly-cartesian-4.3.0.js -> https://cdn.plot.ly/plotly-cartesian-4.2.0.min.js +> https://cdn.plot.ly/plotly-cartesian-4.3.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.41 MB | 1.41 MB | 472 kB | +| 3.42 MB | 1.41 MB | 472 kB | #### CDN links -> https://cdn.plot.ly/plotly-geo-4.2.0.js +> https://cdn.plot.ly/plotly-geo-4.3.0.js -> https://cdn.plot.ly/plotly-geo-4.2.0.min.js +> https://cdn.plot.ly/plotly-geo-4.3.0.min.js #### npm packages @@ -163,9 +163,9 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`, | 4.47 MB | 1.76 MB | 566 kB | #### CDN links -> https://cdn.plot.ly/plotly-gl3d-4.2.0.js +> https://cdn.plot.ly/plotly-gl3d-4.3.0.js -> https://cdn.plot.ly/plotly-gl3d-4.2.0.min.js +> https://cdn.plot.ly/plotly-gl3d-4.3.0.min.js #### npm packages @@ -186,9 +186,9 @@ The `gl2d` partial bundle contains trace modules `parcoords`, `scatter`, `scatte | 3.71 MB | 1.5 MB | 504 kB | #### CDN links -> https://cdn.plot.ly/plotly-gl2d-4.2.0.js +> https://cdn.plot.ly/plotly-gl2d-4.3.0.js -> https://cdn.plot.ly/plotly-gl2d-4.2.0.min.js +> https://cdn.plot.ly/plotly-gl2d-4.3.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.42 MB | 2.98 MB | 894 kB | +| 5.43 MB | 2.98 MB | 894 kB | #### CDN links -> https://cdn.plot.ly/plotly-map-4.2.0.js +> https://cdn.plot.ly/plotly-map-4.3.0.js -> https://cdn.plot.ly/plotly-map-4.2.0.min.js +> https://cdn.plot.ly/plotly-map-4.3.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.22 MB | 1.31 MB | 437 kB | +| 3.22 MB | 1.31 MB | 438 kB | #### CDN links -> https://cdn.plot.ly/plotly-finance-4.2.0.js +> https://cdn.plot.ly/plotly-finance-4.3.0.js -> https://cdn.plot.ly/plotly-finance-4.2.0.min.js +> https://cdn.plot.ly/plotly-finance-4.3.0.min.js #### npm packages @@ -252,12 +252,12 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca | Raw size | Minified size | Minified + gzip size | |------|-----------------|------------------------| -| 11 MB | 5.18 MB | 1.59 MB | +| 11 MB | 5.19 MB | 1.59 MB | #### CDN links -> https://cdn.plot.ly/plotly-strict-4.2.0.js +> https://cdn.plot.ly/plotly-strict-4.3.0.js -> https://cdn.plot.ly/plotly-strict-4.2.0.min.js +> https://cdn.plot.ly/plotly-strict-4.3.0.min.js #### npm packages diff --git a/dist/plot-schema.json b/dist/plot-schema.json index 4d51312e82d..3e04122d215 100644 --- a/dist/plot-schema.json +++ b/dist/plot-schema.json @@ -13378,6 +13378,39 @@ ], "valType": "info_array" }, + "domainpad": { + "bottom": { + "description": "Sets the space in pixels to reserve inside the bottom edge of `domain`. Applies to y axes only.", + "dflt": 0, + "editType": "plot", + "min": 0, + "valType": "number" + }, + "description": "Sets the space in pixels to reserve inside the edges of `domain`. Because `domain` is a fraction of the plot area, the gap between subplots changes with the figure size. `domainpad` keeps the same size in pixels at all figure sizes, so it can hold content with a fixed size, such as a subplot title. x axes use `left` and `right`. y axes use `top` and `bottom`. If the padding needs more room than the domain has, the two pads shrink by the same factor, and the plot area keeps a length of at least 2 pixels. An axis that sets `overlaying` ignores its own `domainpad` and uses the `domainpad` of the axis it overlays, so that both axes share the same plot area.", + "editType": "plot", + "left": { + "description": "Sets the space in pixels to reserve inside the left edge of `domain`. Applies to x axes only.", + "dflt": 0, + "editType": "plot", + "min": 0, + "valType": "number" + }, + "right": { + "description": "Sets the space in pixels to reserve inside the right edge of `domain`. Applies to x axes only.", + "dflt": 0, + "editType": "plot", + "min": 0, + "valType": "number" + }, + "role": "object", + "top": { + "description": "Sets the space in pixels to reserve inside the top edge of `domain`. Applies to y axes only.", + "dflt": 0, + "editType": "plot", + "min": 0, + "valType": "number" + } + }, "dtick": { "description": "Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to *log* and *date* axes. If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433. *log* has several special values; *L*, where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5). `tick0` is ignored for *D1* and *D2*. If the axis `type` is *date*, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. *date* also has special values *M* gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*. To set ticks every 4 years, set `dtick` to *M48*", "editType": "ticks", @@ -14944,6 +14977,39 @@ ], "valType": "info_array" }, + "domainpad": { + "bottom": { + "description": "Sets the space in pixels to reserve inside the bottom edge of `domain`. Applies to y axes only.", + "dflt": 0, + "editType": "plot", + "min": 0, + "valType": "number" + }, + "description": "Sets the space in pixels to reserve inside the edges of `domain`. Because `domain` is a fraction of the plot area, the gap between subplots changes with the figure size. `domainpad` keeps the same size in pixels at all figure sizes, so it can hold content with a fixed size, such as a subplot title. x axes use `left` and `right`. y axes use `top` and `bottom`. If the padding needs more room than the domain has, the two pads shrink by the same factor, and the plot area keeps a length of at least 2 pixels. An axis that sets `overlaying` ignores its own `domainpad` and uses the `domainpad` of the axis it overlays, so that both axes share the same plot area.", + "editType": "plot", + "left": { + "description": "Sets the space in pixels to reserve inside the left edge of `domain`. Applies to x axes only.", + "dflt": 0, + "editType": "plot", + "min": 0, + "valType": "number" + }, + "right": { + "description": "Sets the space in pixels to reserve inside the right edge of `domain`. Applies to x axes only.", + "dflt": 0, + "editType": "plot", + "min": 0, + "valType": "number" + }, + "role": "object", + "top": { + "description": "Sets the space in pixels to reserve inside the top edge of `domain`. Applies to y axes only.", + "dflt": 0, + "editType": "plot", + "min": 0, + "valType": "number" + } + }, "dtick": { "description": "Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to *log* and *date* axes. If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433. *log* has several special values; *L*, where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5). `tick0` is ignored for *D1* and *D2*. If the axis `type` is *date*, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. *date* also has special values *M* gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*. To set ticks every 4 years, set `dtick` to *M48*", "editType": "ticks", diff --git a/dist/plotly-basic.js b/dist/plotly-basic.js index 5aac0a61dfe..033c0bec5ea 100644 --- a/dist/plotly-basic.js +++ b/dist/plotly-basic.js @@ -1,5 +1,5 @@ /** -* plotly.js (basic) v4.2.0 +* plotly.js (basic) v4.3.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.2.0"; + exports.version = "4.3.0"; } }); @@ -9261,7 +9261,7 @@ var Plotly = (() => { for (var i = 1; i < length; i++) { input = inputs[i]; for (key in input) { - src = target[key]; + src = Object.prototype.hasOwnProperty.call(target, key) ? target[key] : void 0; copy = input[key]; if (noArrayCopies && isArray(copy)) { target[key] = copy; @@ -19641,8 +19641,8 @@ var Plotly = (() => { }; var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/; var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/; - function notValid(prop) { - return prop.slice(0, 2) === "__"; + function notValid(obj, prop) { + return prop in obj && !Object.prototype.hasOwnProperty.call(obj, prop); } lib.expandObjectPaths = function(data) { var match, key, prop, datum, idx, dest, trailingPath; @@ -19652,7 +19652,7 @@ var Plotly = (() => { if (match = key.match(dottedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; delete data[key]; data[prop] = lib.extendDeepNoArrays( data[prop] || {}, @@ -19661,7 +19661,7 @@ var Plotly = (() => { } else if (match = key.match(indexedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; idx = parseInt(match[2]); delete data[key]; data[prop] = data[prop] || []; @@ -19670,11 +19670,11 @@ var Plotly = (() => { dest = data[prop][idx] = data[prop][idx] || {}; lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum))); } else { - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; data[prop][idx] = lib.expandObjectPaths(datum); } } else { - if (notValid(key)) continue; + if (notValid(data, key)) continue; data[key] = lib.expandObjectPaths(data[key]); } } @@ -22229,7 +22229,7 @@ var Plotly = (() => { ax._counterAxes.sort(axisIDs.idSort); ax._subplotsWith.sort(Lib.subplotSort); ax._mainSubplot = findMainSubplot(ax, newFullLayout); - if (ax._counterAxes.length && (ax.spikemode && ax.spikemode.indexOf("across") !== -1 || ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { + if (ax._counterAxes.length && (ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { var min = 1; var max = 0; for (j = 0; j < ax._counterAxes.length; j++) { @@ -25421,6 +25421,33 @@ var Plotly = (() => { dflt: [0, 1], editType: "plot" }, + domainpad: { + left: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + right: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + top: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + bottom: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + editType: "plot" + }, position: { valType: "number", min: 0, @@ -29097,6 +29124,12 @@ var Plotly = (() => { function isValidCategory(v) { return v !== null && v !== void 0; } + var MIN_PADDED_LENGTH = 2; + function padFactor(wanted, bandLength) { + if (wanted <= 0) return 0; + const room = Math.max(0, bandLength - MIN_PADDED_LENGTH); + return wanted > room ? room / wanted : 1; + } module.exports = function setConvert(ax, fullLayout) { fullLayout = fullLayout || {}; var axId = ax._id || "x"; @@ -29467,6 +29500,7 @@ var Plotly = (() => { if (ax.overlaying) { var ax2 = axisIds.getFromId({ _fullLayout: fullLayout }, ax.overlaying); ax.domain = ax2.domain; + ax.domainpad = ax2.domainpad; } var rangeAttr = usePrivateRange && ax._r ? "_r" : "range"; var calendar = ax.calendar; @@ -29474,14 +29508,26 @@ var Plotly = (() => { var rl0 = ax.r2l(ax[rangeAttr][0], calendar); var rl1 = ax.r2l(ax[rangeAttr][1], calendar); var isY2 = axLetter === "y"; + const bandLength = (isY2 ? gs.h : gs.w) * (ax.domain[1] - ax.domain[0]); + const pad = ax.domainpad; + let padStart = 0; + let padEnd = 0; + if (pad) { + padStart = (isY2 ? pad.top : pad.left) || 0; + padEnd = (isY2 ? pad.bottom : pad.right) || 0; + const fits = padFactor(padStart + padEnd, bandLength); + padStart *= fits; + padEnd *= fits; + } + ax._length = bandLength - padStart - padEnd; + ax._padStart = padStart; + ax._padEnd = padEnd; if (isY2) { - ax._offset = gs.t + (1 - ax.domain[1]) * gs.h; - ax._length = gs.h * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.t + (1 - ax.domain[1]) * gs.h + padStart; ax._m = ax._length / (rl0 - rl1); ax._b = -ax._m * rl1; } else { - ax._offset = gs.l + ax.domain[0] * gs.w; - ax._length = gs.w * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.l + ax.domain[0] * gs.w + padStart; ax._m = ax._length / (rl1 - rl0); ax._b = -ax._m * rl0; } @@ -31338,7 +31384,7 @@ var Plotly = (() => { for (var i = 0; i < vals.length; i++) { var vali = tickVal2l(vals[i]); if (vali > tickMin && vali < tickMax) { - var obj = axes.tickText(ax, vali, false, String(text[i]), { + const obj = axes.tickText(ax, vali, false, text[i] !== void 0, { first: i === firstIdx, last: i === lastIdx }); @@ -33427,6 +33473,7 @@ var Plotly = (() => { var noSwapAttrs = [ "anchor", "domain", + "domainpad", "overlaying", "position", "side", @@ -38012,6 +38059,30 @@ var Plotly = (() => { } return d; } + function getAcrossSpikeSpan(gd, ax, gs) { + const isY = ax._id.charAt(0) === "y"; + let start = Infinity; + let end = -Infinity; + for (const counterId of ax._counterAxes || []) { + const counterAx = Axes.getFromId(gd, counterId); + if (!counterAx) continue; + const padStart = counterAx._padStart || 0; + const padEnd = counterAx._padEnd || 0; + if (isY) { + start = Math.min(start, gs.l + counterAx.domain[0] * gs.w + padStart); + end = Math.max(end, gs.l + counterAx.domain[1] * gs.w - padEnd); + } else { + start = Math.min(start, gs.t + (1 - counterAx.domain[1]) * gs.h + padStart); + end = Math.max(end, gs.t + (1 - counterAx.domain[0]) * gs.h - padEnd); + } + } + if (ax.anchor === "free") { + const position = isY ? gs.l + ax.position * gs.w : gs.t + (1 - ax.position) * gs.h; + start = Math.min(start, position); + end = Math.max(end, position); + } + return [start, end]; + } function createSpikelines(gd, closestPoints, opts) { var container = opts.container; var fullLayout = opts.fullLayout; @@ -38048,14 +38119,9 @@ var Plotly = (() => { xEndSpike = hLinePointX; } if (yMode.indexOf("across") !== -1) { - var xAcross0 = ya._counterDomainMin; - var xAcross1 = ya._counterDomainMax; - if (ya.anchor === "free") { - xAcross0 = Math.min(xAcross0, ya.position); - xAcross1 = Math.max(xAcross1, ya.position); - } - xBase = gs.l + xAcross0 * gs.w; - xEndSpike = gs.l + xAcross1 * gs.w; + const xSpan = getAcrossSpikeSpan(gd, ya, gs); + xBase = xSpan[0]; + xEndSpike = xSpan[1]; } container.insert("line", ":first-child").attr({ x1: xBase, @@ -38109,14 +38175,9 @@ var Plotly = (() => { yEndSpike = vLinePointY; } if (xMode.indexOf("across") !== -1) { - var yAcross0 = xa._counterDomainMin; - var yAcross1 = xa._counterDomainMax; - if (xa.anchor === "free") { - yAcross0 = Math.min(yAcross0, xa.position); - yAcross1 = Math.max(yAcross1, xa.position); - } - yBase = gs.t + (1 - yAcross1) * gs.h; - yEndSpike = gs.t + (1 - yAcross0) * gs.h; + const ySpan = getAcrossSpikeSpan(gd, xa, gs); + yBase = ySpan[0]; + yEndSpike = ySpan[1]; } container.insert("line", ":first-child").attr({ x1: vLinePointX, @@ -42772,7 +42833,7 @@ var Plotly = (() => { var outerMax = rangeCenter + halfRange * factor * 1.0001; var getPadMin = autorange.makePadFn(fullLayout, ax, 0); var getPadMax = autorange.makePadFn(fullLayout, ax, 1); - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); var m = Math.abs(ax._m); var extremes = autorange.concatExtremes(gd, ax); var minArray = extremes.min; @@ -42797,7 +42858,7 @@ var Plotly = (() => { rangeMax = ax.l2r(rangeMax); ax.range = ax._input.range = rl0 < rl1 ? [rangeMin, rangeMax] : [rangeMax, rangeMin]; } - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); } } } @@ -42828,13 +42889,26 @@ var Plotly = (() => { } } }; - function updateDomain(ax, factor) { + function domainPadFraction(ax, fullLayout) { + const pad = ax.domainpad; + if (!pad) return 0; + const gs = fullLayout._size; + return ax._id.charAt(0) === "y" ? ((pad.top || 0) + (pad.bottom || 0)) / gs.h : ((pad.left || 0) + (pad.right || 0)) / gs.w; + } + function updateDomain(ax, factor, fullLayout) { var inputDomain = ax._inputDomain; var centerFraction = FROM_BL2[ax.constraintoward]; var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction; + let divisor = factor; + const padFraction = domainPadFraction(ax, fullLayout); + if (padFraction > 0) { + const inputSpan = inputDomain[1] - inputDomain[0]; + const drawnSpan = inputSpan - padFraction; + if (drawnSpan > 0) divisor = inputSpan / (drawnSpan / factor + padFraction); + } ax.domain = ax._input.domain = [ - center + (inputDomain[0] - center) / factor, - center + (inputDomain[1] - center) / factor + center + (inputDomain[0] - center) / divisor, + center + (inputDomain[1] - center) / divisor ]; ax.setScale(); } @@ -50063,6 +50137,10 @@ var Plotly = (() => { if (!newType || newType === "-") newType = "linear"; Registry.getComponentMethod("annotations", "convertCoords")(gd, fullProp, newType, doextra); Registry.getComponentMethod("images", "convertCoords")(gd, fullProp, newType, doextra); + if (!ptrunk && fullProp && vi && (vi.range !== void 0 || vi.autorange !== void 0)) { + recordAlteredAxis(`${pleaf}.range`); + fullProp._inputRange = null; + } } var containerArrayMatch = manageArrays.containerArrayMatch(ai); if (containerArrayMatch) { @@ -50576,6 +50654,14 @@ var Plotly = (() => { newFullLayout[key]._inputDomain = null; } } + const newRange = newFullLayout[key].range; + const oldRange = oldFullLayout[key].range; + const oldInputRange = oldFullLayout[key]._inputRange; + if (oldInputRange && newRange && oldRange) { + const isInputRange = newRange[0] === oldInputRange[0] && newRange[1] === oldInputRange[1]; + const isOldRange = newRange[0] === oldRange[0] && newRange[1] === oldRange[1]; + if (!isInputRange && !isOldRange) newFullLayout[key]._inputRange = null; + } } var diffOpts = { getValObject: getLayoutValObject, @@ -55824,6 +55910,13 @@ var Plotly = (() => { var domain = coerce("domain", dfltDomain); if (domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain; Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain); + if (letter === "x") { + coerce("domainpad.left"); + coerce("domainpad.right"); + } else { + coerce("domainpad.top"); + coerce("domainpad.bottom"); + } if (containerOut.tickmode === "sync") { containerOut.tickmode = "auto"; } @@ -61200,9 +61293,8 @@ var Plotly = (() => { } axisOpts.cleanRange("rangeslider.range"); var gs = fullLayout._size; - var domain = axisOpts.domain; - opts2._width = gs.w * (domain[1] - domain[0]); - var x = Math.round(gs.l + gs.w * domain[0]); + opts2._width = axisOpts._length; + const x = Math.round(axisOpts._offset); var y = Math.round( gs.t + gs.h * (1 - axisOpts._counterDomainMin) + (axisOpts.side === "bottom" ? axisOpts._depth : 0) + opts2._offsetShift + constants2.extraPad ); diff --git a/dist/plotly-basic.min.js b/dist/plotly-basic.min.js index de4c4b79410..4229260c3f8 100644 --- a/dist/plotly-basic.min.js +++ b/dist/plotly-basic.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (basic - minified) v4.2.0 +* plotly.js (basic - minified) v4.3.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 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(;Br{var qU=Object.create;var Vu=Object.defineProperty,EU=Object.defineProperties,PU=Object.getOwnPropertyDescriptor,RU=Object.getOwnPropertyDescriptors,zU=Object.getOwnPropertyNames,Ev=Object.getOwnPropertySymbols,FU=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)=>EU(e,RU(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 zU(r))!Vp.call(e,n)&&n!==t&&Vu(e,n,{get:()=>r[n],enumerable:!(a=PU(r,n))||a.enumerable});return e};var Q6=(e,r,t)=>(t=e!=null?qU(FU(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.3.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(M){return setImmediate(M)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(M,T,b,w){return Object.defineProperty(M,T,{value:b,writable:!0,configurable:w!==!1})}}catch(x){r=function(T,b,w){return T[b]=w,T}}a=(function(){var M,T,b;function w(S,k){this.fn=S,this.self=k,this.next=void 0}return{add:function(k,L){b=new w(k,L),T?T.next=b:M=b,T=b,b=void 0},drain:function(){var k=M;for(M=T=t=void 0;k;)k.fn.call(k.self),k=k.next}}})();function l(x,M){a.add(x,M),t||(t=i(a.drain))}function o(x){var M,T=typeof x;return x!=null&&(T=="object"||T=="function")&&(M=x.then),typeof M=="function"?M:!1}function s(){for(var x=0;x0&&l(s,T))}catch(b){c.call(new h(T),b)}}}function c(x){var M=this;M.triggered||(M.triggered=!0,M.def&&(M=M.def),M.msg=x,M.state=2,M.chain.length>0&&l(s,M))}function d(x,M,T,b){for(var w=0;w{(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,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,m){var _=-1,A=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,m){var _=-1,A=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 p(v){return{left:function(m,_,A,C){for(arguments.length<3&&(A=0),arguments.length<4&&(C=m.length);A>>1;v(m[D],_)<0?A=D+1:C=D}return A},right:function(m,_,A,C){for(arguments.length<3&&(A=0),arguments.length<4&&(C=m.length);A>>1;v(m[D],_)>0?C=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,C,D;A;)D=Math.random()*A--|0,C=v[A+m],v[A+m]=v[D+m],v[D+m]=C;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,C=v[0],D=new Array(_<0?0:_);m<_;)D[m]=[A=C,C=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 C=-1,D,R=A[m]=new Array(D);++C=0;)for(R=v[m],_=R.length;--_>=0;)D[--C]=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=[],C=M(x(_)),D=-1,R;if(v*=C,m*=C,_*=C,_<0)for(;(R=v+_*++D)>m;)A.push(R/C);else for(;(R=v+_*++D)=m.length)return C?C.call(v,F):A?F.sort(A):F;for(var V=-1,$=F.length,K=m[U++],fe,be,ee,ae=new b,oe;++V<$;)(oe=ae.get(fe=K(be=F[V])))?oe.push(be):ae.set(fe,[be]);return E?(be=E(),ee=function(ye,xe){be.set(ye,D(E,xe,U))}):(be={},ee=function(ye,xe){be[ye]=D(E,xe,U)}),ae.forEach(ee),be}function R(E,F){if(F>=m.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 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 C=E,v},v},e.set=function(v){var m=new I;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 X(v){var m=[],_=new b;function A(){for(var C=m,D=-1,R=C.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 C(){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:C}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,C=-1;if(m=_.classList){for(;++C=0;)(D=_[A])&&(C&&C!==D.nextSibling&&C.parentNode.insertBefore(D,C),C=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=C+1);!(F=R[m])&&++m0&&(v=v.slice(0,C));var R=ze.get(v);R&&(v=R,D=Ne);function E(){var V=this[A];V&&(this.removeEventListener(v,V,V.$),delete this[A])}function F(){var V=D(m,t(arguments));E.call(this),this.addEventListener(v,this[A]=V,V.$=_),V._=m}function U(){var V=new RegExp("^__on([^.]+)"+e.requote(v)+"$"),$;for(var K in this)if($=K.match(V)){var fe=this[K];this.removeEventListener($[1],fe,fe.$),delete this[K]}}return C?m?F:E:m?W:U}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 C=this,D=A.relatedTarget;(!D||D!==C&&!(D.compareDocumentPosition(C)&8))&&_.call(C,A)}}var Ze,Ke=0;function _r(v){var m=".dragsuppress-"+ ++Ke,_="click"+m,A=e.select(i(v)).on("touchmove"+m,Q).on("dragstart"+m,Q).on("selectstart"+m,Q);if(Ze==null&&(Ze="onselectstart"in v?!1:O(v.style,"userSelect")),Ze){var C=n(v).style,D=C[Ze];C[Ze]="none"}return function(R){if(A.on(m,null),Ze&&(C[Ze]=D),R){var E=function(){A.on(_,null)};A.on(_,function(){Q(),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 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();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,C=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],C=v[2],D=m[0],R=m[1],E=m[2],F=D-_,U=R-A,V=F*F+U*U,$,K;if(V0&&(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(U,Fa).on(V,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(U,null).on(V,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,LU),pn.push(yi);for(var Na=e.event.changedTouches,Jn=0,Wi=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,Wi,$n;Sv.call(ar);for(var o0=0,Yo=yi.length;o01?1:m,_=_<0?0:_>1?1:_,C=_<=.5?_*(1+m):_+m-_*m,A=2*_-C;function D(E){return E>360?E-=360:E<0&&(E+=360),E<60?A+(C-A)*E/60:E<180?C:E<240?A+(C-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,Vi=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,C=A+m/500,D=A-_/200;return C=Ca(C)*sa,A=Ca(A)*mi,D=Ca(D)*Vi,new Sa(Fo(3.2404542*C-1.5371385*A-.4985314*D),Fo(-.969266*C+1.8760108*A+.041556*D),Fo(.0556434*C-.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,C=30;return!m&&!_&&!A?new Sa(C,C,C):(m&&m>4,A=A>>4|A,C=F&240,C=C>>4|C,D=F&15,D=D<<4|D):v.length===7&&(A=(F&16711680)>>16,C=(F&65280)>>8,D=F&255)),m(A,C,D))}function cv(v,m,_){var A=Math.min(v/=255,m/=255,_/=255),C=Math.max(v,m,_),D=C-A,R,E,F=(C+A)/2;return D?(E=F<.5?D/(C+A):D/(2-C-A),v==C?R=(m-_)/D+(m<_?6:0):m==C?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),C=Hl((.2126729*v+.7151522*m+.072175*_)/mi),D=Hl((.0193339*v+.119192*m+.9503041*_)/Vi);return at(116*C-16,500*(A-C),200*(C-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(B);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 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?(m=V==null?null:V+"",C):m},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),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&&C.on("error",K).on("load",function(be){K(null,be)}),D.beforesend.call(C,E),E.send($==null?null:$),C},C.abort=function(){return E.abort(),C},e.rebind(C,D,"on"),A==null?C:C.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 C(U,V,$){arguments.length<3&&($=V,V=null);var K=or(U,m,V==null?D:R(V),$);return K.row=function(fe){return arguments.length?K.response((V=fe)==null?D:R(fe)):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,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(U.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(C){if(C.length<3)return[];var D=Mr(m),R=Mr(_),E,F=C.length,U=[],V=[];for(E=0;E=0;--E)ee.push(C[U[$[E]][2]]);for(E=+fe;E1&&Xr(v[_[A-2]],v[_[A-1]],v[C])<=0;)--A;_[A++]=C}return _.slice(0,A)}function PO(v,m){return v[0]-m[0]||v[1]-m[1]}e.geom.polygon=function(v){return j(v,hv),v};var hv=e.geom.polygon.prototype=[];hv.area=function(){for(var v=-1,m=this.length,_,A=this[m-1],C=0;++vEe)E=E.L;else if(R=m-NO(E,_),R>Ee){if(!E.R){A=E;break}E=E.R}else{D>-Ee?(A=E.P,C=E):R>-Ee?(A=E,C=E.N):A=C=E;break}var F=Ox(v);if(a0.insert(A,F),!(!A&&!C)){if(A===C){i0(A),C=Ox(A.site),a0.insert(F,C),F.edge=C.edge=Iu(A.site,F.site),n0(A),n0(C);return}if(!C){F.edge=Iu(A.site,F.site);return}i0(A),i0(C);var U=A.site,V=U.x,$=U.y,K=v.x-V,fe=v.y-$,be=C.site,ee=be.x-V,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+V,y:(K*xe-ee*ye)/oe+$};pv(C.edge,U,be,ue),F.edge=Iu(U,v,null,ue),C.edge=Iu(v,be,null,ue),n0(A),n0(C)}}function Yx(v,m){var _=v.site,A=_.x,C=_.y,D=C-m;if(!D)return A;var R=v.P;if(!R)return-1/0;_=R.site;var E=_.x,F=_.y,U=F-m;if(!U)return E;var V=E-A,$=1/D-1/U,K=V/U;return $?(-K+Math.sqrt(K*K-2*$*(V*V/(-2*U)-F+U/2+C-D/2)))/$+A:(A+E)/2}function NO(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 IO(v){for(var m=v[0][0],_=v[1][0],A=v[0][1],C=v[1][1],D,R,E,F,U=Io,V=U.length,$,K,fe,be,ee,ae;V--;)if($=U[V],!(!$||!$.prepare()))for(fe=$.edges,be=fe.length,K=0;KEe||x(F-R)>Ee)&&(fe.splice(K,0,new mv(UO($.site,ae,x(E-m)Ee?{x:m,y:x(D-m)Ee?{x:x(R-C)Ee?{x:_,y:x(D-_)Ee?{x:x(R-A)=-je)){var K=F*F+U*U,fe=V*V+ae*ae,be=(ae*K-U*fe)/$,ee=(F*fe-V*K)/$,ae=ee+E,oe=Hx.pop()||new BO;oe.arc=v,oe.site=C,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&&(C.a={x:E+$*fe,y:F+$*be}),K<1&&(C.b={x:E+K*fe,y:F+K*be}),C}}}}}}function OO(v){for(var m=t0,_=HO(v[0][0],v[0][1],v[1][0],v[1][1]),A=m.length,C;A--;)C=m[A],(!YO(C,v)||!_(C)||x(C.a.x-C.b.x)=D)return;if(V>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(V>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=V&&oe.x<=K&&oe.y>=$&&oe.y<=fe?[[V,fe],[K,fe],[K,$],[V,$]]:[];ye.point=F[ee]}),U}function E(F){return F.map(function(U,V){return{x:Math.round(A(U,V)/Ee)*Ee,y:Math.round(C(U,V)/Ee)*Ee,i:V}})}return R.links=function(F){return Mp(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 Mp(E(F)).cells.forEach(function(V,$){for(var K=V.site,fe=V.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=V.x),V.y>ue&&(ue=V.y),fe.push(V.x),be.push(V.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 ZO(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])===(C=C[0])?E[R]?E[R]+=C:E[++R]=C:(E[++R]=null,F.push({i:R,x:gl(A,C)})),_=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=[],C=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 _=JO.get(_)||$x,A=$O.get(A)||B,KO(A(_.apply(null,r.call(arguments,1))))};function KO(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 jO(v){return v*v}function QO(v){return v*v*v}function eY(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 rY(v){return function(m){return Math.pow(m,v)}}function tY(v){return 1-Math.cos(v*te)}function aY(v){return Math.pow(2,10*(v-1))}function nY(v){return 1-Math.sqrt(1-v*v)}function iY(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 lY(v){return v||(v=1.70158),function(m){return m*m*((v+1)*m-v)}}function oY(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=sY;function sY(v,m){v=e.hcl(v),m=e.hcl(m);var _=v.h,A=v.c,C=v.l,D=m.h-_,R=m.c-A,E=m.l-C;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,C+E*F)+""}}e.interpolateHsl=uY;function uY(v,m){v=e.hsl(v),m=e.hsl(m);var _=v.h,A=v.s,C=v.l,D=m.h-_,R=m.s-A,E=m.l-C;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,C+E*F)+""}}e.interpolateLab=fY;function fY(v,m){v=e.lab(v),m=e.lab(m);var _=v.l,A=v.a,C=v.b,D=m.l-_,R=m.a-A,E=m.b-C;return function(F){return aa(_+D*F,A+R*F,C+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:vY)})(v)};function e6(v){var m=[v.a,v.b],_=[v.c,v.d],A=t6(m),C=r6(m,_),D=t6(cY(_,m,-C))||0;m[0]*_[1]<_[0]*m[1]&&(m[0]*=-1,m[1]*=-1,A*=-1,C*=-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(C,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 cY(v,m,_){return v[0]+=_*m[0],v[1]+=_*m[1],v}var vY={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=a6;function l0(v){return v.length?v.pop()+",":""}function dY(v,m,_,A){if(v[0]!==m[0]||v[1]!==m[1]){var C=_.push("translate(",null,",",null,")");A.push({i:C-4,x:gl(v[0],m[0])},{i:C-2,x:gl(v[1],m[1])})}else(m[0]||m[1])&&_.push("translate("+m+")")}function hY(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 pY(v,m,_,A){v!==m?A.push({i:_.push(l0(_)+"skewX(",null,")")-2,x:gl(v,m)}):m&&_.push(l0(_)+"skewX("+m+")")}function mY(v,m,_,A){if(v[0]!==m[0]||v[1]!==m[1]){var C=_.push(l0(_)+"scale(",null,",",null,")");A.push({i:C-4,x:gl(v[0],m[0])},{i:C-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),dY(v.translate,m.translate,_,A),hY(v.rotate,m.rotate,_,A),pY(v.skew,m.skew,_,A),mY(v.scale,m.scale,_,A),v=m=null,function(C){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(V=U[F]),V.parent=E,V.depth=E.depth+1;_&&(E.value=0),E.children=U}else _&&(E.value=+_.call(A,E,E.depth)||0),delete E.children;return Xi(C,function($){var K,fe;v&&(K=$.children)&&K.sort(v),_&&(fe=$.parent)&&(fe.value+=$.value)}),R}return A.sort=function(C){return arguments.length?(v=C,A):v},A.children=function(C){return arguments.length?(m=C,A):m},A.value=function(C){return arguments.length?(_=C,A):_},A.revalue=function(C){return _&&(Uu(C,function(D){D.children&&(D.value=0)}),Xi(C,function(D){var R;D.children||(D.value=+_.call(A,D,D.depth)||0),(R=D.parent)&&(R.value+=D.value)})),C},A};function Yu(v,m){return e.rebind(v,m,"sort","children","value"),v.nodes=v,v.links=qY,v}function Uu(v,m){for(var _=[v];(v=_.pop())!=null;)if(m(v),(C=v.children)&&(A=C.length))for(var A,C;--A>=0;)_.push(C[A])}function Xi(v,m){for(var _=[v],A=[];(v=_.pop())!=null;)if(A.push(v),(R=v.children)&&(D=R.length))for(var C=-1,D,R;++CC&&(C=E),A.push(E)}for(R=0;R<_;++R)F[R]=(C-A[R])/2;return F},wiggle:function(v){var m=v.length,_=v[0],A=_.length,C,D,R,E,F,U,V,$,K,fe=[];for(fe[0]=$=K=0,D=1;DA&&(_=m,A=C);return _}function IY(v){return v.reduce(BY,0)}function BY(v,m){return v+m[1]}e.layout.histogram=function(){var v=!0,m=Number,_=OY,A=HY;function C(D,K){for(var E=[],F=D.map(m,this),U=_.call(this,F,K),V=A.call(this,U,F,K),$,K=-1,fe=F.length,be=V.length-1,ee=v?1:1/fe,ae;++K0)for(K=-1;++K=U[0]&&ae<=U[1]&&($=E[e.bisect(V,ae,1,be)-1],$.y+=ee,$.push(D[K]));return E}return C.value=function(D){return arguments.length?(m=D,C):m},C.range=function(D){return arguments.length?(_=Mr(D),C):_},C.bins=function(D){return arguments.length?(A=typeof D=="number"?function(R){return o6(R,D)}:Mr(D),C):A},C.frequency=function(D){return arguments.length?(v=!!D,C):v},C};function HY(v,m){return o6(v,Math.ceil(Math.log(m.length)/Math.LN2+1))}function o6(v,m){for(var _=-1,A=+v[0],C=(v[1]-A)/m,D=[];++_<=m;)D[_]=C*_+A;return D}function OY(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(YY),m=0,_=[1,1],A;function C(D,R){var E=v.call(this,D,R),F=E[0],U=_[0],V=_[1],$=A==null?Math.sqrt:typeof A=="function"?A:function(){return A};if(F.x=F.y=0,Xi(F,function(fe){fe.r=+$(fe.value)}),Xi(F,f6),m){var K=m*(A?1:Math.max(2*F.r/U,2*F.r/V))/2;Xi(F,function(fe){fe.r+=K}),Xi(F,f6),Xi(F,function(fe){fe.r-=K})}return c6(F,U/2,V/2,A?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?(A=D==null||typeof D=="function"?D:+D,C):A},C.padding=function(D){return arguments.length?(m=+D,C):m},Yu(C,v)};function YY(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,C=v.r+m.r;return .999*C*C>_*_+A*A}function f6(v){if(!(m=v.children)||!(K=m.length))return;var m,_=1/0,A=-1/0,C=1/0,D=-1/0,R,E,F,U,V,$,K;function fe(ue){_=Math.min(ue.x-ue.r,_),A=Math.max(ue.x+ue.r,A),C=Math.min(ue.y-ue.r,C),D=Math.max(ue.y+ue.r,D)}if(m.forEach(UY),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,U=3;Uae.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(V){for(var $={A:null,children:[V]},K=[$],fe;(fe=K.pop())!=null;)for(var be=fe.children,ee,ae=0,oe=be.length;ae0&&(VY(WY(ee,V,K),V,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=V)}return K}function U(V){V.x*=_[0],V.y=V.depth*_[1]}return C.separation=function(V){return arguments.length?(m=V,C):m},C.size=function(V){return arguments.length?(A=(_=V)==null?U:null,C):A?null:_},C.nodeSize=function(V){return arguments.length?(A=(_=V)==null?null:U,C):A?_:null},Yu(C,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 VY(v,m,_){var A=_/(m.i-v.i);m.c-=A,m.s+=_,v.c+=A,m.z+=_,m.m+=_}function XY(v){for(var m=0,_=0,A=v.children,C=A.length,D;--C>=0;)D=A[C],D.z+=m,D.m+=m,m+=D.s+(_+=D.c)}function WY(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 C(D,R){var E=v.call(this,D,R),F=E[0],U,V=0;Xi(F,function(ee){var ae=ee.children;ae&&ae.length?(ee.x=JY(ae),ee.y=ZY(ae)):(ee.x=U?V+=m(ee,U):0,ee.y=0,U=ee)});var $=h6(F),K=p6(F),fe=$.x-m($,K)/2,be=K.x+m(K,$)/2;return Xi(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 C.separation=function(D){return arguments.length?(m=D,C):m},C.size=function(D){return arguments.length?(A=(_=D)==null,C):A?null:_},C.nodeSize=function(D){return arguments.length?(A=(_=D)!=null,C):A?_:null},Yu(C,v)};function ZY(v){return 1+e.max(v,function(m){return m.y})}function JY(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,C=Ep,D=!1,R,E="squarify",F=.5*(1+Math.sqrt(5));function U(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(V)}}function $(ee){var ae=ee.children;if(ae&&ae.length){var oe=C(ee),ye=ae.slice(),xe,ue=[];for(U(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?jY:$Y,U=A?yY:gY;return C=F(v,m,U,_),D=F(m,v,U,Bo),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?(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,U){return d3_scale_linearTickFormat(v,F,U)},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],C=Math.pow(10,Math.floor(Math.log(A/m)/Math.LN10)),D=m/A*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 zp(v,m){return e.range.apply(e,Rp(v,m))}var QY={s:1,g:1,p:1,r:1,e:1};function _6(v){return-Math.floor(Math.log(v)/Math.LN10+.01)}function yge(v,m){var _=_6(m[2]);return v in QY?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 C(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(C(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(C)),R):A},R.base=function(E){return arguments.length?(m=+E,v.domain(A.map(C)),R):m},R.nice=function(){var E=Pp(A.map(C),_?Math:eU);return v.domain(E),A=E.map(D),R},R.ticks=function(){var E=xv(A),F=[],U=E[0],V=E[1],$=Math.floor(C(U)),K=Math.ceil(C(V)),fe=m%1?2:m;if(isFinite(K-$)){if(_){for(;$0;be--)F.push(D($)*be);for($=0;F[$]V;K--);F=F.slice($,K)}return F},R.copy=function(){return w6(v.copy(),m,_,A)},b6(R,v)}var eU={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),C=wv(1/m);function D(R){return v(A(R))}return D.invert=function(R){return C(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),C=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,C;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(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 A6(v,m)},A()}e.scale.quantize=function(){return k6(0,1,[0,1])};function k6(v,m,_){var A,C;function D(E){return _[Math.max(0,Math.min(C,Math.floor(A*(E-v))))]}function R(){return A=_.length/(m-v),C=_.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 iU(){return 0}e.svg.arc=function(){var v=lU,m=oU,_=iU,A=Mv,C=D6,D=L6,R=sU;function E(){var U=Math.max(0,+v.apply(this,arguments)),V=Math.max(0,+m.apply(this,arguments)),$=C.apply(this,arguments)-te,K=D.apply(this,arguments)-te,fe=Math.abs(K-$),be=$>K?0:1;if(V=pr)return F(V,be)+(U?F(U,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(U*U+V*V):+A.apply(this,arguments),be||(ue*=-1),V&&(ue=kt(oe/V*Math.sin(ye))),U&&(xe=kt(oe/U*Math.sin(ye)))),V){Ye=V*Math.cos($+ue),lr=V*Math.sin($+ue),ur=V*Math.cos(K-ue),sr=V*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=V*Math.cos(Zt),lr=V*Math.sin(Zt),ur=sr=null}}else Ye=lr=0;if(U){gr=U*Math.cos(K-xe),yr=U*Math.sin(K-xe),Rr=U*Math.cos($+xe),wr=U*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=U*Math.cos(ar),yr=U*Math.sin(ar),Rr=wr=null}}else gr=yr=0;if(fe>Ee&&(ee=Math.min(Math.abs(V-U)/2,+_.apply(this,arguments)))>.001){ae=U0?0:1}function Av(v,m,_,A,C){var D=v[0]-m[0],R=v[1]-m[1],E=(C?A:-A)/Math.sqrt(D*D+R*R),F=E*R,U=-E*D,V=v[0]+F,$=v[1]+U,K=m[0]+F,fe=m[1]+U,be=(V+K)/2,ee=($+fe)/2,ae=K-V,oe=fe-$,ye=ae*ae+oe*oe,xe=_-A,ue=V*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-U],[lr*_/xe,ur*_/xe]]}function q6(){return!0}function E6(v){var m=r0,_=Fu,A=q6,C=gi,D=C.key,R=.7;function E(F){var U=[],V=[],$=-1,K=F.length,fe,be=Mr(m),ee=Mr(_);function ae(){U.push("M",C(v(V),R))}for(;++$1?v.join("L"):v+"Z"}function P6(v){return v.join("L")+"Z"}function uU(v){for(var m=0,_=v.length,A=v[0],C=[A[0],",",A[1]];++m<_;)C.push("H",(A[0]+(A=v[m])[0])/2,"V",A[1]);return _>1&&C.push("H",A[0]),C.join("")}function Np(v){for(var m=0,_=v.length,A=v[0],C=[A[0],",",A[1]];++m<_;)C.push("V",(A=v[m])[1],"H",A[0]);return C.join("")}function Ip(v){for(var m=0,_=v.length,A=v[0],C=[A[0],",",A[1]];++m<_;)C.push("H",(A=v[m])[0],"V",A[1]);return C.join("")}function fU(v,m){return v.length<4?gi(v):v[1]+kv(v.slice(1,-1),Bp(v,m))}function cU(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 vU(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="",C=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],C=v[1],F=2),m.length>1){E=m[1],D=v[F],F++,A+="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*A,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])),m.push([D||0,R[E]*D||0]);return m}function yU(v){return v.length<3?gi(v):v[0]+kv(v,gU(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,C,D;++_dr)+",1 "+$}function U(V,$,K,fe){return"Q 0,0 "+fe}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?(m=Mr(V),D):m},D.startAngle=function(V){return arguments.length?(A=Mr(V),D):A},D.endAngle=function(V){return arguments.length?(C=Mr(V),D):C},D};function bU(v){return v.radius}e.svg.diagonal=function(){var v=B6,m=H6,_=O6;function A(C,D){var R=v.call(this,C,D),E=m.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 A.source=function(C){return arguments.length?(v=Mr(C),A):v},A.target=function(C){return arguments.length?(m=Mr(C),A):m},A.projection=function(C){return arguments.length?(_=C,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?_(xU(m=A)):m},v};function xU(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=wU,m=_U;function _(A,C){return(U6.get(v.call(this,A,C))||Y6)(m.call(this,A,C))}return _.type=function(A){return arguments.length?(v=Mr(A),_):v},_.size=function(A){return arguments.length?(m=Mr(A),_):m},_};function _U(){return 64}function wU(){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=[],C,D,R=Dv||{time:Date.now(),ease:eY,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=C.time,F=dv(K,0,E),R=D[A]={tween:new b,time:E,timer:F,delay:C.delay,duration:C.duration,ease:C.ease,index:m},C=null,++D.count)}e.svg.axis=function(){var v=e.scale.linear(),m=W6,_=6,A=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(),fe=R==null?K.ticks?K.ticks.apply(K,D):K.domain():R,be=E==null?K.tickFormat?K.tickFormat.apply(K,D):B:E,ee=V.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)+C,ue,Ye=_v(K),lr=V.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=AU,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=kU,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(U){return arguments.length?(v=U,F):v},F.orient=function(U){return arguments.length?(m=U in TU?U+"":W6,F):m},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,A=+arguments[V-1],F):_},F.innerTickSize=function(U){return arguments.length?(_=+U,F):_},F.outerTickSize=function(U){return arguments.length?(A=+U,F):A},F.tickPadding=function(U){return arguments.length?(C=+U,F):C},F.tickSubdivide=function(){return arguments.length&&F},F};var W6="bottom",TU={top:1,right:1,bottom:1,left:1};function AU(v,m,_){v.attr("transform",function(A){var C=m(A);return"translate("+(isFinite(C)?C:_(A))+",0)"})}function kU(v,m,_){v.attr("transform",function(A){var C=m(A);return"translate(0,"+(isFinite(C)?C:_(A))+")"})}e.svg.brush=function(){var v=pe(V,"brushstart","brush","brushend"),m=null,_=null,A=[0,0],C=[0,0],D,R,E=!0,F=!0,U=Gp[0];function V(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(U,B);ye.exit().remove(),ye.enter().append("g").attr("class",function(lr){return"resize "+lr}).style("cursor",function(lr){return CU[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",V.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)})}V.event=function(ee){ee.each(function(){var ae=v.of(this,arguments),oe={x:A,y:C,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,C=ye.y,ae({type:"brushstart"})}).tween("brush:brush",function(){var xe=bv(A,oe.x),ue=bv(C,oe.y);return D=R=null,function(Ye){A=oe.x=xe(Ye),C=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)]+","+C[+/^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",C[0]),ee.selectAll(".extent,.e>rect,.w>rect").attr("height",C[1]-C[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]=C[0]-gr[1];else if(xe){var wr=+/w$/.test(xe),Lr=+/^n/.test(xe);yr=[A[1-wr]-gr[0],C[1-Lr]-gr[1]],gr[0]=A[wr],gr[1]=C[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]-=C[1],lr=2),Q())}function Zt(){e.event.keyCode==32&&lr==2&&(gr[0]+=A[1],gr[1]+=C[1],lr=0,Q())}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,(C[0]+C[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}),M=x.range;function T(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=T(0),w=T(1),S=T(2),k=T(3),L=T(4),q=T(5),P=T(6),z=b.range,N=w.range,H=S.range,I=k.range,B=L.range,Y=q.range,O=P.range,G=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=G.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 X=Z.range,Q=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=Q.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,j=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=j.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=M,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=p,e.timeMonday=w,e.timeMondays=N,e.timeMonth=G,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=B,e.timeTuesday=S,e.timeTuesdays=H,e.timeWednesday=k,e.timeWednesdays=I,e.timeWeek=b,e.timeWeeks=z,e.timeYear=Z,e.timeYears=X,e.utcDay=j,e.utcDays=we,e.utcFriday=_e,e.utcFridays=Ue,e.utcHour=pe,e.utcHours=ve,e.utcMillisecond=n,e.utcMilliseconds=i,e.utcMinute=Q,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:G,e:G,f:ie,g:_e,G:Te,H:W,I:Z,j:X,L:Q,m:pe,M:ve,p:Qs,q:e0,Q:_r,s:xr,S:j,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:Vi,B:Xn,c:aa,d:L,e:L,f:I,g:b,G:T,H:P,I:P,j:q,L:H,m:k,M:z,p:vt,q:S,Q:Y,s:O,S:N,u:g,U:y,V:x,w:p,W:M,x:Pu,X:Ca,y:b,Y:T,Z:w,"%":B};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 Vi(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 w(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 k(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 I(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 B(te,he,Pe){var He=s.exec(he.slice(Pe,Pe+1));return He?Pe+He[0].length:-1}function Y(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 G(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 X(te,he){return f(1+r.timeDay.count(r.timeYear(te),te),he,3)}function Q(te,he){return f(te.getMilliseconds(),he,3)}function ie(te,he){return Q(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 j(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(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function t(k,L){if((q=(k=L?k.toExponential(L-1):k.toExponential()).indexOf("e"))<0)return null;var q,P=k.slice(0,q);return[P.length>1?P[0]+P.slice(2):P,+k.slice(q+1)]}function a(k){return k=t(Math.abs(k)),k?k[1]:NaN}function n(k,L){return function(q,P){for(var z=q.length,N=[],H=0,I=k[0],B=0;z>0&&I>0&&(B+I+1>P&&(I=Math.max(1,P-B)),N.push(q.substring(z-=I,z+I)),!((B+=I+1)>P));)I=k[H=(H+1)%k.length];return N.reverse().join(L)}}function i(k){return function(L){return L.replace(/[0-9]/g,function(q){return k[+q]})}}var l=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(k){if(!(L=l.exec(k)))throw new Error("invalid format: "+k);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(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 L=k.length,q=1,P=-1,z;q0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(z+1):k}var f;function c(k,L){var q=t(k,L);if(!q)return k+"";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(k,Math.max(0,L+N-1))[0]}function d(k,L){var q=t(k,L);if(!q)return k+"";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(k,L){return(k*100).toFixed(L)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:r,e:function(k,L){return k.toExponential(L)},f:function(k,L){return k.toFixed(L)},g:function(k,L){return k.toPrecision(L)},o:function(k){return Math.round(k).toString(8)},p:function(k,L){return d(k*100,L)},r:d,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 g=Array.prototype.map,y=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function x(k){var L=k.grouping===void 0||k.thousands===void 0?p:n(g.call(k.grouping,Number),k.thousands+""),q=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",z=k.decimal===void 0?".":k.decimal+"",N=k.numerals===void 0?p:i(g.call(k.numerals,String)),H=k.percent===void 0?"%":k.percent+"",I=k.minus===void 0?"-":k.minus+"",B=k.nan===void 0?"NaN":k.nan+"";function Y(G){G=o(G);var W=G.fill,Z=G.align,X=G.sign,Q=G.symbol,ie=G.zero,pe=G.width,ve=G.comma,j=G.precision,we=G.trim,le=G.type;le==="n"?(ve=!0,le="g"):h[le]||(j===void 0&&(j=12),we=!0,le="g"),(ie||W==="0"&&Z==="=")&&(ie=!0,W="0",Z="=");var Se=Q==="$"?q:Q==="#"&&/[boxX]/.test(le)?"0"+le.toLowerCase():"",ce=Q==="$"?P:/[%p]/.test(le)?H:"",de=h[le],Ce=/[defgprs%]/.test(le);j=j===void 0?6:/[gprs]/.test(le)?Math.max(1,Math.min(21,j)):Math.max(0,Math.min(20,j));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)?B:de(Math.abs(_e),j),we&&(_e=u(_e)),Me&&+_e==0&&X!=="+"&&(Me=!1),De=(Me?X==="("?X:I:X==="-"||X==="("?"":X)+De,Te=(le==="s"?y[8+f/3]:"")+Te+(Me&&X==="("?")":""),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 G+""},Ie}function O(G,W){var Z=Y((G=o(G),G.type="f",G)),X=Math.max(-8,Math.min(8,Math.floor(a(W)/3)))*3,Q=Math.pow(10,-X),ie=y[8+X/3];return function(pe){return Z(Q*pe)+ie}}return{format:Y,formatPrefix:O}}var M;T({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function T(k){return M=x(k),e.format=M.format,e.formatPrefix=M.formatPrefix,M}function b(k){return Math.max(0,-a(Math.abs(k)))}function w(k,L){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(L)/3)))*3-a(Math.abs(k)))}function S(k,L){return k=Math.abs(k),L=Math.abs(L)-k,Math.max(0,a(L)-a(k))+1}e.FormatSpecifier=s,e.formatDefaultLocale=T,e.formatLocale=x,e.formatSpecifier=o,e.precisionFixed=b,e.precisionPrefix=w,e.precisionRound=S,Object.defineProperty(e,"__esModule",{value:!0})}))});var s_=J((wge,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((Mge,u_)=>{"use strict";var NU=s_();u_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&NU(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ga={};Nt(ga,{ALMOST_EQUAL:()=>tG,BADNUM:()=>Zp,EPOCHJD:()=>rG,FP_SAFE:()=>IU,LOG_CLIP:()=>aG,MINUS_SIGN:()=>nG,ONEAVGMONTH:()=>XU,ONEAVGQUARTER:()=>UU,ONEAVGYEAR:()=>HU,ONEDAY:()=>JU,ONEHOUR:()=>$U,ONEMAXMONTH:()=>VU,ONEMAXQUARTER:()=>YU,ONEMAXYEAR:()=>BU,ONEMICROSEC:()=>eG,ONEMILLI:()=>QU,ONEMIN:()=>KU,ONEMINMONTH:()=>WU,ONEMINQUARTER:()=>GU,ONEMINYEAR:()=>OU,ONESEC:()=>jU,ONEWEEK:()=>ZU});var Zp,IU,BU,HU,OU,YU,UU,GU,VU,XU,WU,ZU,JU,$U,KU,jU,QU,eG,rG,tG,aG,nG,ca=Ft(()=>{"use strict";Zp=void 0,IU=Number.MAX_VALUE*1e-4,BU=316224e5,HU=315576e5,OU=31536e6,YU=79488e5,UU=78894e5,GU=76896e5,VU=26784e5,XU=26298e5,WU=24192e5,ZU=6048e5,JU=864e5,$U=36e5,KU=6e4,jU=1e3,QU=1,eG=.001,rG=24405875e-1,tG=1-1e-6,aG=10,nG="\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((Tge,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 iG=Jp().decode,lG=Uo(),$p=Array.isArray,oG=ArrayBuffer,sG=DataView;function v_(e){return oG.isView(e)&&!(e instanceof sG)}bi.isTypedArray=v_;function Bv(e){return $p(e)||v_(e)}bi.isArrayOrTypedArray=Bv;function uG(e){return!Bv(e[0])}bi.isArray1D=uG;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=fG(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=iG(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(),pG=/^\w*$/,mG=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 gG=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,yG=/^[^\.\[\]]+$/;M_.exports=function(e,r){for(;r;){var t=e.match(gG);if(t)e=t[1];else if(e.match(yG))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((Dge,A_)=>{"use strict";var bG=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 bG(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var S_=J((Lge,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;oxG,modHalf:()=>_G});function xG(e,r){let t=e%r;return t<0?t+r:t}function _G(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 wG(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:()=>TG,HOVERFONT:()=>CG,HOVERFONTSIZE:()=>kG,HOVERID:()=>DG,HOVERMINTIME:()=>SG,HOVERTEXTPAD:()=>AG,YANGLE:()=>MG});var MG,TG,AG,kG,CG,SG,DG,ju=Ft(()=>{"use strict";MG=60,TG=6,AG=3,kG=13,CG="Arial, sans-serif",SG=50,DG="-hover"});var v0=J((Pge,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((Rge,R_)=>{"use strict";var LG=Ia(),Qu=v0().hoverlabel,ef=va().extendFlat;R_.exports={hoverlabel:{bgcolor:ef({},Qu.bgcolor,{arrayOk:!0}),bordercolor:ef({},Qu.bordercolor,{arrayOk:!0}),font:LG({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((zge,z_)=>{"use strict";var qG=Ia(),EG=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:qG({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:EG.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var C8=J((Yge,k8)=>{var Xm=Object.defineProperty,PG=Object.getOwnPropertyDescriptor,RG=Object.getOwnPropertyNames,zG=Object.prototype.hasOwnProperty,FG=(e,r)=>{for(var t in r)Xm(e,t,{get:r[t],enumerable:!0})},NG=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of RG(r))!zG.call(e,n)&&n!==t&&Xm(e,n,{get:()=>r[n],enumerable:!(a=PG(r,n))||a.enumerable});return e},IG=e=>NG(Xm({},"__esModule",{value:!0}),e),V_={};FG(V_,{a98:()=>DZ,average:()=>RV,averageAngle:()=>$i,averageNumber:()=>s7,blend:()=>PW,blerp:()=>km,clampChroma:()=>QW,clampGamut:()=>bg,clampRgb:()=>jW,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:()=>LZ,differenceCie76:()=>CV,differenceCie94:()=>SV,differenceCiede2000:()=>DV,differenceCmc:()=>LV,differenceEuclidean:()=>g0,differenceHueChroma:()=>sf,differenceHueNaive:()=>o7,differenceHueSaturation:()=>of,differenceHyab:()=>qV,differenceItp:()=>PV,differenceKotsarenkoRamos:()=>EV,displayable:()=>yg,dlab:()=>qZ,dlch:()=>EZ,easingGamma:()=>_8,easingInOutSine:()=>CZ,easingMidpoint:()=>h8,easingSmootherstep:()=>AZ,easingSmoothstep:()=>wZ,easingSmoothstepInverse:()=>MZ,filterBrightness:()=>sZ,filterContrast:()=>uZ,filterDeficiencyDeuter:()=>xZ,filterDeficiencyProt:()=>bZ,filterDeficiencyTrit:()=>_Z,filterGrayscale:()=>vZ,filterHueRotate:()=>hZ,filterInvert:()=>dZ,filterSaturate:()=>cZ,filterSepia:()=>fZ,fixupAlpha:()=>ba,fixupHueDecreasing:()=>wV,fixupHueIncreasing:()=>_V,fixupHueLonger:()=>xV,fixupHueShorter:()=>Ji,formatCss:()=>kW,formatHex:()=>CW,formatHex8:()=>SW,formatHsl:()=>LW,formatRgb:()=>DW,getMode:()=>an,hsi:()=>PZ,hsl:()=>RZ,hsv:()=>zZ,hwb:()=>FZ,inGamut:()=>d2,interpolate:()=>YW,interpolateWith:()=>m8,interpolateWithPremultipliedAlpha:()=>UW,interpolatorLinear:()=>br,interpolatorPiecewise:()=>a7,interpolatorSplineBasis:()=>y8,interpolatorSplineBasisClosed:()=>b8,interpolatorSplineMonotone:()=>XW,interpolatorSplineMonotone2:()=>WW,interpolatorSplineMonotoneClosed:()=>ZW,interpolatorSplineNatural:()=>GW,interpolatorSplineNaturalClosed:()=>VW,itp:()=>NZ,jab:()=>IZ,jch:()=>BZ,lab:()=>HZ,lab65:()=>OZ,lch:()=>YZ,lch65:()=>UZ,lchuv:()=>GZ,lerp:()=>Xo,lrgb:()=>VZ,luv:()=>XZ,mapAlphaDivide:()=>d8,mapAlphaMultiply:()=>v8,mapTransferGamma:()=>IW,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:()=>tZ,okhsl:()=>WZ,okhsv:()=>ZZ,oklab:()=>JZ,oklch:()=>$Z,p3:()=>KZ,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:()=>jZ,random:()=>NW,rec2020:()=>QZ,removeParser:()=>jG,rgb:()=>eJ,round:()=>s8,samples:()=>KW,serializeHex:()=>hg,serializeHex8:()=>u8,serializeHsl:()=>c8,serializeRgb:()=>f8,toGamut:()=>eZ,trilerp:()=>uV,unlerp:()=>sV,useMode:()=>dt,useParser:()=>j_,wcagContrast:()=>SZ,wcagLuminance:()=>Vm,xyb:()=>rJ,xyz50:()=>tJ,xyz65:()=>aJ,yiq:()=>nJ});k8.exports=IG(V_);var BG=(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_=BG,HG={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_=HG,OG=e=>X_(W_[e.toLowerCase()],6),Z_=OG,YG=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,UG=e=>{let r;return(r=e.match(YG))?X_(parseInt(r[1],16),r[1].length):void 0},J_=UG,_n="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Fge=`(?:${_n}|none)`,af=`${_n}%`,Nge=`(?:${_n}%|none)`,Wm=`(?:${_n}%|${_n})`,GG=`(?:${_n}%|${_n}|none)`,VG=`(?:${_n}(deg|grad|rad|turn)|${_n})`,Ige=`(?:${_n}(deg|grad|rad|turn)|${_n}|none)`,p0="\\s*,\\s*",Bge=new RegExp("^"+GG+"$"),XG=new RegExp(`^rgba?\\(\\s*${_n}${p0}${_n}${p0}${_n}\\s*(?:,\\s*${Wm}\\s*)?\\)$`),WG=new RegExp(`^rgba?\\(\\s*${af}${p0}${af}${p0}${af}\\s*(?:,\\s*${Wm}\\s*)?\\)$`),ZG=e=>{let r={mode:"rgb"},t;if(t=e.match(XG))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(WG))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},$_=ZG,JG=(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=JG,$G=(e="rgb")=>r=>(r=_i(r,e))!==void 0?r.mode===e?r:Zi[r.mode][e]?Zi[r.mode][e](r):e==="rgb"?Zi[r.mode].rgb(r):Zi.rgb[e](Zi[r.mode].rgb(r)):void 0,xt=$G,Zi={},K_={},m0=[],Zm={},KG=e=>e,dt=e=>(Zi[e.mode]=ut(ut({},Zi[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Zi[r]||(Zi[r]={}),Zi[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=KG)}),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)},jG=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_]/,QG=/[^\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 eV={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*eV[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!==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();})(); +`||r[Br]===" "||r[Br]===" ");)Br++;let n;if(Gv(r)&&(n=rf(r),n.type!==fr.Hue)){t.push({type:fr.Alpha,value:n});continue}if(Am(r)&&Zv(r)==="none"){t.push({type:fr.Alpha,value:{type:fr.None,value:void 0}});continue}return}if(/\d/.test(a)){Br--,t.push(rf(r));continue}if(Tm.test(a)){Br--,t.push(rV(r));continue}return}return t}function aV(e){e._i=0;let r=e[e._i++];if(!r||r.type!==fr.Function||r.value!=="color"||(r=e[e._i++],r.type!==fr.Ident))return;let t=Zm[r.value];if(!t)return;let a={mode:t},n=Q_(e,!1);if(!n)return;let i=an(t).channels;for(let l=0,o,s;l4)){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 nV(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 iV=e=>{if(typeof e!="string")return;let r=tV(e),t=r?nV(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=oV,Xo=(e,r,t)=>e+t*(r-e),sV=(e,r,t)=>(t-e)/(r-e),km=(e,r,t,a,n,i)=>Xo(Xo(e,r,n),Xo(t,a,n),i),uV=(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),fV=e=>{let r=[];for(let t=0;tr=>{let t=fV(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},cV={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=cV,rm=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),vV=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=vV,tm=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),dV=({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=dV,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)},hV=({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=hV,pV=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=pV,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},mV=({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=mV,gV=({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=gV,yV=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=yV,bV=e=>(e=e%360)<0?e+360:e,Wa=bV,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),[]),Ji=e=>a2(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),xV=e=>a2(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),_V=e=>a2(e,r=>r>=0?r:r+360),wV=e=>a2(e,r=>r<=0?r:r-360),Ba=[-.14861,1.78277,-.29227,-.90649,1.97294,0],MV=Math.PI/180,TV=180/Math.PI,F_=Ba[3]*Ba[4],N_=Ba[1]*Ba[4],I_=Ba[1]*Ba[2]-Ba[0]*Ba[3],AV=({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)*TV-120),a!==void 0&&(o.alpha=a),o},i7=AV,kV=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*MV,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=kV,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))}},CV=()=>g0("lab65"),SV=(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),M=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)+M/Math.pow(1+t*c,2))}},DV=(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)))),M=u*(1+x),T=h*(1+x),b=Math.sqrt(M*M+f*f),w=Math.sqrt(T*T+p*p),S=Math.abs(M)+Math.abs(f)===0?0:Math.atan2(f,M);S+=(S<0)*2*Math.PI;let k=Math.abs(T)+Math.abs(p)===0?0:Math.atan2(p,T);k+=(k<0)*2*Math.PI;let L=d-s,q=w-b,P=b*w===0?0:k-S;P-=(P>Math.PI)*2*Math.PI,P+=(P<-Math.PI)*2*Math.PI;let z=2*Math.sqrt(b*w)*Math.sin(P/2),N=(s+d)/2,H=(b+w)/2,I;b*w===0?I=S+k:(I=(S+k)/2,I-=(Math.abs(S-k)>Math.PI)*Math.PI,I+=(I<0)*2*Math.PI);let B=Math.pow(N-50,2),Y=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),O=1+.015*B/Math.sqrt(20+B),G=1+.045*H,W=1+.015*H*Y,Z=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),X=2*Math.sqrt(Math.pow(H,7)/(Math.pow(H,7)+Math.pow(25,7))),Q=-1*Math.sin(2*Z)*X;return Math.sqrt(Math.pow(L/(e*O),2)+Math.pow(q/(r*G),2)+Math.pow(z/(t*W),2)+Q*q/(r*G)*z/(t*W))}},LV=(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),M=Math.pow(o-h,2)+Math.pow(s-p,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)),w=l<16?.511:.040975*l/(1+.01765*l),S=.0638*u/(1+.0131*u)+.638,k=S*(T*b+1-T);return Math.sqrt(y/Math.pow(e*w,2)+x/Math.pow(r*S,2)+M/Math.pow(k,2))}},qV=()=>{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)}},EV=()=>g0("yiq",[.5053,.299,.1957]),PV=()=>g0("itp",[518400,129600,518400]),$i=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 RV(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 zV={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:Ji},s:br,l:br,alpha:{use:br,fixup:ba}},difference:{h:of},average:{h:$i}},u7=zV,FV=({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=FV,NV=({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=NV,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},Hge=Math.pow(29,3)/Math.pow(3,3),Oge=Math.pow(6,3)/Math.pow(29,3),lm=e=>Math.pow(e,3)>c7?Math.pow(e,3):(116*e-16)/f7,IV=({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=IV,BV=e=>Vl(Jm(e)),uf=BV,om=e=>e>c7?Math.cbrt(e):(f7*e+16)/116,HV=({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=HV,OV=e=>{let r=$m(Gl(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ff=OV,Jv=1,v7=1,lf=26/180*Math.PI,$v=Math.cos(lf),Kv=Math.sin(lf),d7=100/Math.log(139/100),YV=({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=YV,UV=({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=UV,B_=e=>jv(yl(e,"dlch")),H_=e=>bl(Qv(e),"dlab"),GV={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=GV,VV={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:Ji},alpha:{use:br,fixup:ba}},difference:{h:sf},average:{h:$i}},p7=VV;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}},ZV=WV,JV=new RegExp(`^hsla?\\(\\s*${VG}${p0}${af}${p0}${af}\\s*(?:,\\s*${Wm}\\s*)?\\)$`),$V=e=>{let r=e.match(JV);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=ZV(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=$V;function KV(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=KV,jV={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:Ji},s:br,l:br,alpha:{use:br,fixup:ba}},difference:{h:of},average:{h:$i}},Km=jV;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 eX(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=eX,rX={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:Ji},w:br,b:br,alpha:{use:br,fixup:ba}},difference:{h:o7},average:{h:$i}},k7=rX,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),tX=({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=tX,cm=(e=0)=>Math.max(e*C7,0),aX=({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=aX,nX={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=nX,iX=134.03437499999998,lX=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),iX)},dm=(e=0)=>Math.max(e*203,0),oX=({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)-lX,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=oX,sX=134.03437499999998,O_=16295499532821565e-27,hm=e=>{if(e<0)return 0;let r=Math.pow(e,1/sX);return 1e4*Math.pow((i2-r)/(o2*r-l2),1/n2)},pm=e=>e/203,uX=({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=uX,fX=e=>{let r=rg(Gl(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ag=fX,cX=e=>Vl(tg(e)),ng=cX,vX={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=vX,dX=({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=dX,hX=({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=hX,pX={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:Ji},c:br,j:br,alpha:{use:br,fixup:ba}},difference:{h:sf},average:{h:$i}},q7=pX,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,mX=({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=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=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=gX,yX=e=>y0(u2(e)),lg=yX,bX=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=bX,gm=e=>e>ig?Math.cbrt(e):(s2*e+16)/116,xX=({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=xX,_X=e=>{let r=f2(b0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},og=_X;function wX(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=wX,MX={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=MX,TX=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=TX;function AX(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=AX,kX={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:Ji},c:br,l:br,alpha:{use:br,fixup:ba}},difference:{h:sf},average:{h:$i}},v2=kX,CX=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=CX,SX=({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=SX,DX=({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=DX,F7=(e,r,t)=>4*e/(e+15*r+3*t),N7=(e,r,t)=>9*r/(e+15*r+3*t),LX=F7(ya.X,ya.Y,ya.Z),qX=N7(ya.X,ya.Y,ya.Z),EX=e=>e<=ig?s2*e:116*Math.cbrt(e)-16,PX=({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=EX(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-LX),l=13*n*(l-qX));let o={mode:"luv",l:n,u:i,v:l};return a!==void 0&&(o.alpha=a),o},e2=PX,RX=(e,r,t)=>4*e/(e+15*r+3*t),zX=(e,r,t)=>9*r/(e+15*r+3*t),FX=RX(ya.X,ya.Y,ya.Z),NX=zX(ya.X,ya.Y,ya.Z),IX=({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)+FX,i=t/(13*e)+NX,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=IX,BX=e=>sg(e2(b0(e))),HX=e=>y0(r2(ug(e))),OX={mode:"lchuv",toMode:{luv:ug,rgb:HX},fromMode:{rgb:BX,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:Ji},c:br,l:br,alpha:{use:br,fixup:ba}},difference:{h:sf},average:{h:$i}},I7=OX,YX=St(ut({},Jo),{mode:"lrgb",toMode:{rgb:Ko},fromMode:{rgb:$o},parse:["srgb-linear"],serialize:"srgb-linear"}),B7=YX,UX={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=UX,GX=({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=GX,VX=e=>{let r=fg($o(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},cf=VX,XX=({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=XX,WX=e=>Ko(x0(e)),vf=WX;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 ZX(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,M=g*g*g,T=y*y*y,b=3*c*p*p,w=3*d*g*g,S=3*h*y*y,k=6*c*c*p,L=6*d*d*g,q=6*h*h*y,P=o*x+s*M+u*T,z=o*b+s*w+u*S,N=o*k+s*L+u*q;f=f-P*z/(z*z-.5*P*N)}return f}function cg(e,r){let t=ZX(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 JX(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,M=g+y*f,T=g+y*c,b=x*x*x,w=M*M*M,S=T*T*T,k=3*d*x*x,L=3*h*M*M,q=3*p*T*T,P=6*d*d*x,z=6*h*h*M,N=6*p*p*T,H=4.0767416621*b-3.3077115913*w+.2309699292*S-1,I=4.0767416621*k-3.3077115913*L+.2309699292*q,B=4.0767416621*P-3.3077115913*z+.2309699292*N,Y=I/(I*I-.5*H*B),O=-H*Y,G=-1.2684380046*b+2.6097574011*w-.3413193965*S-1,W=-1.2684380046*k+2.6097574011*L-.3413193965*q,Z=-1.2684380046*P+2.6097574011*z-.3413193965*N,X=W/(W*W-.5*G*Z),Q=-G*X,ie=-.0041960863*b-.7034186147*w+1.707614701*S-1,pe=-.0041960863*k-.7034186147*L+1.707614701*q,ve=-.0041960863*P-.7034186147*z+1.707614701*N,j=pe/(pe*pe-.5*ie*ve),we=-ie*j;O=Y>=0?O:1e6,Q=X>=0?Q:1e6,we=j>=0?we:1e6,l+=Math.min(O,Math.min(Q,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=JX(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=$X;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 M={mode:"okhsv",s:n?(u+s)*h/(s*u+s*f*h):0,v:r?r/d:0};return M.s&&(M.h=Wa(Math.atan2(a,t)*180/Math.PI)),e.alpha!==void 0&&(M.alpha=e.alpha),M}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),M=d*x/c;return r.l=x*y,r.a=M*i*y,r.b=M*l*y,r}var KX=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=KX;function jX(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=jX,QX=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=QX;function eW(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=eW,rW=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=rW,tW=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=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=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=aW,nW=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=nW,ym=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: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=iW,bm=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},lW=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=lW,oW=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=oW,Y_=1.09929682680944,sW=.018053968510807,xm=e=>{let r=Math.abs(e);return r>sW?(Math.sign(e)||1)*(Y_*Math.pow(r,.45)-(Y_-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: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=uW,U_=1.09929682680944,fW=.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=cW,vW=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=vW,Wo=.0037930732552754493,K7=Math.cbrt(Wo),wm=e=>Math.cbrt(e)-K7,dW=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=dW,Mm=e=>Math.pow(e+K7,3),hW=({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=hW,pW={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=pW,mW={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=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},t8=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},a8=yW,bW={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=bW,xW=({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=xW,_W=({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=_W,wW={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=wW,MW=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,TW=(e=4)=>r=>typeof r=="number"?MW(r,e):r,s8=TW,tf=s8(2),nf=e=>Math.max(0,Math.min(1,e||0)),Zo=e=>Math.round(nf(e)*255),dg=xt("rgb"),AW=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))})`},kW=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)},CW=e=>hg(dg(e)),SW=e=>u8(dg(e)),DW=e=>f8(dg(e)),LW=e=>c8(AW(e)),qW={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},EW=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:qW[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})})},PW=EW,RW=([e,r])=>e+Math.random()*(r-e),zW=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),FW=(e="rgb",r={})=>{let t=an(e),a=zW(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=RW(a[i]||t.ranges[i])),n),{mode:e})},NW=FW,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,IW=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,BW=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=OW,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))}),HW(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 w=f[b](M);return w!==void 0&&(T[b]=w),T},{mode:r})}},YW=(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},UW=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},GW=e=>y8(x8(e)),VW=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]}},XW=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)},WW=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)},ZW=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)},JW=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),_8=JW,$W=(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 jW(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 QW(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 eZ(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 rZ=(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]))},tZ=rZ,xg=e=>Math.max(e,0),_g=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-_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]},iZ=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]},lZ=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]},oZ=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)},uZ=(e=1,r="rgb")=>{let t=xg(e);return df(pg(t,(1-t)/2),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")=>h2(lZ(e),r,!0),dZ=(e=1,r="rgb")=>{let t=_g(e);return df((a,n)=>n==="alpha"?a:aZ(t,1-t,a),r,!0)},hZ=(e=0,r="rgb")=>h2(oZ(e),r,!0),pZ=xt("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]],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}=pZ(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)}},bZ=(e=1)=>wg(mZ,e),xZ=(e=1)=>wg(gZ,e),_Z=(e=1)=>wg(yZ,e),wZ=e=>e*e*(3-2*e),MZ=e=>.5-Math.sin(Math.asin(1-2*e)/3),TZ=e=>e*e*e*(e*(e*6-15)+10),AZ=TZ,kZ=e=>(1-Math.cos(e*Math.PI))/2,CZ=kZ;function Vm(e){let r=xt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function SZ(e,r){let t=Vm(e),a=Vm(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var DZ=dt(n7),LZ=dt(u7),qZ=dt(h7),EZ=dt(p7),PZ=dt(y7),RZ=dt(Km),zZ=dt(eg),FZ=dt(k7),NZ=dt(D7),IZ=dt(L7),BZ=dt(q7),HZ=dt(c2),OZ=dt(P7),YZ=dt(v2),UZ=dt(z7),GZ=dt(I7),VZ=dt(B7),XZ=dt(H7),WZ=dt(Y7),ZZ=dt(U7),JZ=dt(V7),$Z=dt(W7),KZ=dt(Z7),jZ=dt(J7),QZ=dt($7),eJ=dt(Jo),rJ=dt(e8),tJ=dt(r8),aJ=dt(n8),nJ=dt(o8)});var Mg={};Nt(Mg,{default:()=>lJ});var iJ,lJ,Tg=Ft(()=>{"use strict";iJ={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(" ")}},lJ=iJ});var Xl=J((Vge,E8)=>{"use strict";var{format:oJ,width:sJ,height:uJ,scale:fJ}=(Tg(),Xe(Mg)).default,S8=fJ,{dflt:Gge}=S8,cJ=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:oJ,filename:{valType:"string"},width:sJ,height:uJ,scale:cJ},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((Wge,P8)=>{"use strict";var Ag=Or(),vJ=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;vJ(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 Ki=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(($ge,U8)=>{"use strict";var{converter:z8,formatHex:dJ,formatRgb:hJ,wcagContrast:pJ,wcagLuminance:mJ}=C8(),{isArrayOrTypedArray:F8}=xn(),{warn:gJ}=Wl(),{background:mf,defaultLine:qg,defaults:yJ,lightLine:bJ}=Ki(),N8=z8("rgb"),xJ=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,_J={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=>hJ(B8(e)),wJ=e=>dJ(B8(e)),MJ=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&&gJ(`Invalid color specifier: ${MJ(e)}. Defaulting to "#000"`),_J)},pf=e=>En(St(ut({},It(e)),{alpha:1})),TJ=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]),AJ=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}},kJ=(e,r)=>{let t=H8(e)?AJ(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},CJ=(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)})},SJ=(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=xJ(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)=>pJ(It(e),It(r)),Y8=e=>p2(e,mf)>p2(e,qg),DJ=En(It(mf)),LJ=En(It(qg)),qJ=(e,r,t)=>(It(e).alpha!==1&&(e=O8(e,mf)),Y8(e)?r?Lg(e,r):DJ:t?Lg(e,-t):LJ),EJ=(e,r)=>{e.style({stroke:pf(r),"stroke-opacity":It(r).alpha})},PJ=(e,r)=>{e.style({fill:pf(r),"fill-opacity":It(r).alpha})},RJ=(e,r)=>!!(e&&r&&pf(e)===pf(r)),zJ=e=>I8(e)!==void 0,FJ=(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)}))},NJ=(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})},IJ=(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},BJ=e=>En(It(e)),HJ=e=>wJ(It(e)).toUpperCase(),OJ=e=>{let r=It(e);return[nn(r.r)*255,nn(r.g)*255,nn(r.b)*255,nn(r.alpha)]},YJ=([e,r,t,a])=>En({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),UJ=e=>{let r=It(e);return mJ({mode:"rgb",r:nn(r.r),g:nn(r.g),b:nn(r.b)})};U8.exports={addOpacity:CJ,adjustLightness:Lg,background:mf,brighten:FJ,combine:O8,contrast:qJ,defaultLine:qg,defaults:yJ,equals:RJ,fill:PJ,hexString:HJ,interpolate:SJ,isChannelArray:H8,isDark:Y8,isValid:zJ,lightLine:bJ,luminosity:UJ,mix:NJ,mostReadable:IJ,normalize:kJ,opacity:TJ,parse:It,rgb:pf,rgbaArray:OJ,rgbaArrayToString:YJ,rgbaString:BJ,stroke:EJ,wcagContrast:p2}});var Qo=J((jge,X8)=>{"use strict";var GJ=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 VJ(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;tJJ,HIDE_PLACEHOLDER:()=>ZJ,SHOW_PLACEHOLDER:()=>WJ});var WJ,ZJ,JJ,y2=Ft(()=>{"use strict";WJ=100,ZJ=1e3,JJ=.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,$J=xi(),KJ=Qo(),Rg=Nr(),jJ=(y2(),Xe(g2)).DESELECTDIM,M0=Hv(),Z8=(w0(),Xe(gf)).counter,QJ=(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(KJ.get(e,t))}},angle:{coerceFunction:function(e,r,t){Zl(e)&&(e=Jl(e)),e==="auto"?r.set("auto"):Pg(e)?r.set(QJ(+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((rye,K8)=>{"use strict";K8.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{j8.exports=e$;function e$(){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((aye,e9)=>{e9.exports=r$;function r$(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((nye,t9)=>{t9.exports=t$;function t$(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((iye,n9)=>{n9.exports=a$;function a$(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((lye,i9)=>{i9.exports=n$;function n$(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((oye,o9)=>{o9.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],M=t*o-a*l,T=t*s-n*l,b=t*u-i*l,w=a*s-n*o,S=a*u-i*o,k=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,I=M*H-T*N+b*z+w*P-S*q+k*L;return I?(I=1/I,e[0]=(o*H-s*N+u*z)*I,e[1]=(n*N-a*H-i*z)*I,e[2]=(g*k-y*S+x*w)*I,e[3]=(d*S-c*k-h*w)*I,e[4]=(s*P-l*H-u*q)*I,e[5]=(t*H-n*P+i*q)*I,e[6]=(y*b-p*k-x*T)*I,e[7]=(f*k-d*b+h*T)*I,e[8]=(l*N-o*P+u*L)*I,e[9]=(a*P-t*N-i*L)*I,e[10]=(p*S-g*b+x*M)*I,e[11]=(c*b-f*S-h*M)*I,e[12]=(o*q-l*z-s*L)*I,e[13]=(t*z-a*q+n*L)*I,e[14]=(g*T-p*w-y*M)*I,e[15]=(f*w-c*T+d*M)*I,e):null}});var f9=J((sye,u9)=>{u9.exports=l$;function l$(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((uye,c9)=>{c9.exports=o$;function o$(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,M=r*o-a*i,T=r*s-n*i,b=t*o-a*l,w=t*s-n*l,S=a*s-n*o,k=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-M*z+T*P+b*q-w*L+S*k}});var h9=J((fye,d9)=>{d9.exports=s$;function s$(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],M=r[15],T=t[0],b=t[1],w=t[2],S=t[3];return e[0]=T*a+b*o+w*c+S*g,e[1]=T*n+b*s+w*d+S*y,e[2]=T*i+b*u+w*h+S*x,e[3]=T*l+b*f+w*p+S*M,T=t[4],b=t[5],w=t[6],S=t[7],e[4]=T*a+b*o+w*c+S*g,e[5]=T*n+b*s+w*d+S*y,e[6]=T*i+b*u+w*h+S*x,e[7]=T*l+b*f+w*p+S*M,T=t[8],b=t[9],w=t[10],S=t[11],e[8]=T*a+b*o+w*c+S*g,e[9]=T*n+b*s+w*d+S*y,e[10]=T*i+b*u+w*h+S*x,e[11]=T*l+b*f+w*p+S*M,T=t[12],b=t[13],w=t[14],S=t[15],e[12]=T*a+b*o+w*c+S*g,e[13]=T*n+b*s+w*d+S*y,e[14]=T*i+b*u+w*h+S*x,e[15]=T*l+b*f+w*p+S*M,e}});var m9=J((cye,p9)=>{p9.exports=u$;function u$(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((vye,g9)=>{g9.exports=f$;function f$(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((dye,b9)=>{b9.exports=c$;function c$(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,M,T,b,w,S,k,L,q,P,z,N,H,I,B;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],M=r[7],T=r[8],b=r[9],w=r[10],S=r[11],k=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,I=i*l*f-n*s,B=l*l*f+u,e[0]=c*k+g*L+T*q,e[1]=d*k+y*L+b*q,e[2]=h*k+x*L+w*q,e[3]=p*k+M*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+w*N,e[7]=p*P+M*z+S*N,e[8]=c*H+g*I+T*B,e[9]=d*H+y*I+b*B,e[10]=h*H+x*I+w*B,e[11]=p*H+M*I+S*B,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var w9=J((hye,_9)=>{_9.exports=v$;function v$(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((pye,M9)=>{M9.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[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((mye,A9)=>{A9.exports=h$;function h$(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((gye,C9)=>{C9.exports=p$;function p$(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((yye,D9)=>{D9.exports=m$;function m$(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,M=l*u;return e[0]=1-(h+g),e[1]=c+M,e[2]=d-x,e[3]=0,e[4]=c-M,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((bye,q9)=>{q9.exports=g$;function g$(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((xye,P9)=>{P9.exports=y$;function y$(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((_ye,z9)=>{z9.exports=b$;function b$(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((wye,N9)=>{N9.exports=x$;function x$(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((Mye,B9)=>{B9.exports=_$;function _$(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((Tye,O9)=>{O9.exports=w$;function w$(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((Aye,U9)=>{U9.exports=M$;function M$(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((kye,V9)=>{V9.exports=T$;function T$(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((Cye,W9)=>{W9.exports=A$;function A$(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((Sye,J9)=>{J9.exports=k$;function k$(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((Dye,K9)=>{var C$=Fg();K9.exports=S$;function S$(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],M=a[1],T=a[2],b=t[0],w=t[1],S=t[2];return Math.abs(p-b)<1e-6&&Math.abs(g-w)<1e-6&&Math.abs(y-S)<1e-6?C$(e):(f=p-b,c=g-w,d=y-S,h=1/Math.sqrt(f*f+c*c+d*d),f*=h,c*=h,d*=h,n=M*d-T*c,i=T*f-x*d,l=x*c-M*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((Lye,Q9)=>{Q9.exports=D$;function D$(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((qye,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 L$=Ng();Jt.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var q$=Or(),tw=Wl(),E$=_2(),P$=Ng();function R$(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 z$(e){var r=q$.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 F$(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 N$(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&aw(t)}function I$(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 B$(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=E$.convertCssMatrix(n);t=P$.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=[];H$(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function H$(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function O$(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}ow.exports={getGraphDiv:R$,isPlotDiv:z$,removeElement:aw,addStyleRule:F$,addRelatedStyleRule:nw,deleteRelatedStyleRule:N$,setStyleOnHover:I$,getFullTransformMatrix:B$,getElementTransformMatrix:iw,getElementAndAncestors:lw,equalDomRects:O$}});var bf=J((Rye,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 ji=J((zye,pw)=>{"use strict";var fw=va().extendFlat,Y$=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"]},U$=cw.flags.slice().concat(["fullReplot"]),G$=vw.flags.slice().concat("layoutReplot");pw.exports={traces:cw,layout:vw,traceFlags:function(){return uw(U$)},layoutFlags:function(){return uw(G$)},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:()=>X$,FORMAT_LINK:()=>V$});var V$,X$,Hg=Ft(()=>{"use strict";V$="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",X$="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var rs=J(T0=>{"use strict";var{DATE_FORMAT_LINK:W$,FORMAT_LINK:Z$}=(Hg(),Xe(Bg)),J$=["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 $$({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}".`,Z$,"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}".`,W$,"for details on the date formatting syntax.",J$].join(" ")}T0.templateFormatStringDescription=$$;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((Bye,_w)=>{"use strict";function $l(e,r){return r?r.d2l(e):e}function mw(e,r){return r?r.l2d(e):e}function K$(e){return e.x0}function j$(e){return e.x1}function Q$(e){return e.y0}function eK(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 rK(e,r){return Math.abs(w2(e,r))}function tK(e,r,t){return Math.abs(M2(e,r,t))}function aK(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 nK(e,r){return mw(($l(e.x1,r)+yw(e)+$l(e.x0,r)+gw(e))/2,r)}function iK(e,r,t){return mw(($l(e.y1,t)+xw(e)+$l(e.y0,t)+bw(e))/2,t)}function lK(e,r,t){return e.type!=="line"?void 0:M2(e,r,t)/w2(e,r)}var oK=["x0","x1","y0","y1","dy","height","ycenter"],sK=["x0","x1","y0","y1","dx","width","xcenter"];_w.exports={x0:K$,x1:j$,y0:Q$,y1:eK,slope:lK,dx:w2,dy:M2,width:rK,height:tK,length:aK,xcenter:nK,ycenter:iK,simpleXVariables:oK,simpleYVariables:sK}});var Tw=J((Hye,Mw)=>{"use strict";var uK=ji().overrideAll,ts=xi(),ww=Ia(),fK=Qi().dash,Kl=va().extendFlat,{shapeTexttemplateAttrs:cK,templatefallbackAttrs:vK}=rs(),dK=T2();Mw.exports=uK({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({},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:Kl({},ts.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:cK({newshape:!0},{keys:Object.keys(dK)}),texttemplatefallback:vK({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((Oye,Aw)=>{"use strict";var hK=Qi().dash,pK=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:pK({},hK,{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((Yye,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((Uye,qw)=>{"use strict";var Og=Ia(),mK=bf(),k2=Ki(),Sw=Tw(),Dw=kw(),gK=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(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: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({},mK.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(),Xye=yf().addStyleRule,zw=va(),yK=xi(),bK=A0(),xK=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 AK=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,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,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=SK(e,!!r);if(r<2)return t;var a=$t.dateTime2ms(t,e);return a+=Mn*(r-1),$t.ms2DateTime(a,0,e)};function SK(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?CK:kK);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(T){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 M=new Date(Date.UTC(2e3,f,c,d,h));return M.setUTCFullYear(u),M.getUTCMonth()!==f||M.getUTCDate()!==c?Kn:M.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=AK("%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 DK=/%\d?f/g,LK=/%h/g,qK={1:"1",2:"1",3:"2",4:"2"};function Gw(e,r,t,a){e=e.replace(DK,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(LK,function(){return qK[t("%q")(n)]}),_l(a))try{e=xl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var EK=[59,59.9,59.99,59.999,59.9999];function PK(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),EK[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 PK(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 RK=Zr(),zK=Wl(),FK=Vg(),NK=(ca(),Xe(ga)).BADNUM,Xg=1e-9;wl.findBin=function(e,r,t){if(RK(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?IK:BK:s=t?OK:HK,e+=l*Xg*(t?-1:1)*(l>=0?1:-1);a90&&zK.log("Long binary search..."),a-1};function IK(e,r){return er}function OK(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]===NK;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||FK;for(var t=1/0,a,n=0;nUK});function YK(e){return Object.keys(e).sort()}var UK,Jg=Ft(()=>{"use strict";UK=YK});var $w=J(Kt=>{"use strict";var wf=Zr(),GK=xn().isArrayOrTypedArray;Kt.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),wf(r)||(r=!1),GK(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((jye,eM)=>{"use strict";var Kw=(c0(),Xe(f0)),$g=Kw.mod,VK=Kw.modHalf,Mf=Math.PI,eo=2*Mf;function XK(e){return e/180*Mf}function WK(e){return e/Mf*180}function Kg(e){return Math.abs(e[1]-e[0])>eo-1e-14}function jw(e,r){return VK(r-e,eo)}function ZK(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 JK(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,M=y.yo?y.y-o:0;return Math.sqrt(x*x+M*M)}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((t3e,oM)=>{"use strict";oM.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var uM=J((a3e,R2)=>{"use strict";R2.exports=ry;R2.exports.isMobile=ry;R2.exports.default=ry;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,ej=/CrOS/,rj=/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=QK.test(r)&&!ej.test(r)||!!e.tablet&&rj.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((n3e,fM)=>{"use strict";var tj=Zr(),aj=uM();fM.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=nj(),typeof t!="string")return!0;var a=aj({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(tj(u)&&(u=+u),u>=13)return!0}}}return a};function nj(){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((i3e,vM)=>{"use strict";var ij=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]=ij.select(this)}),n}});var pM=J((l3e,hM)=>{"use strict";var lj=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=lj.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var gM=J((o3e,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=uj(r)?sj:oj,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:()=>vj});function cj(e){return typeof e=="string"&&(e=e.replace(fj,"")),(0,wM.default)(e)?Number(e):void 0}var wM,fj,vj,TM=Ft(()=>{"use strict";wM=Q6(Zr());ca();fj=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;vj=cj});var CM=J((c3e,kM)=>{"use strict";var dj=/<[^>]*>/g,hj=/[\p{S}\p{P}]/gu,pj=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,mj=/�/g,gj=/\s+/g,z2="-",AM=z2.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),yj=new RegExp(AM+"{3,}","g"),bj=new RegExp(AM+"$","g"),xj=60;function _j(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}kM.exports=function(r,t=xj){var a=_j(r!=null?r:"").replace(mj,"").replace(dj," ").replace(hj,n=>n===z2?n:"").toLowerCase().trim().replace(gj,z2).replace(pj,"").replace(yj,z2);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(bj,"")}});var Fe=J((v3e,BM)=>{"use strict";var Af=Or(),wj=s0().utcFormat,Mj=Wp().format,PM=Zr(),RM=(ca(),Xe(ga)),zM=RM.FP_SAFE,Tj=-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=Mj(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 el=rM();se.deg2rad=el.deg2rad;se.rad2deg=el.rad2deg;se.angleDelta=el.angleDelta;se.angleDist=el.angleDist;se.isFullCircle=el.isFullCircle;se.isAngleInsideSector=el.isAngleInsideSector;se.isPtInsideSector=el.isPtInsideSector;se.pathArc=el.pathArc;se.pathSector=el.pathSector;se.pathAnnulus=el.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 Aj=(w0(),Xe(gf));se.counterRegex=Aj.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;nSj.test(window.navigator.userAgent);var Dj=/Firefox\/(\d+)\.\d+/;se.getFirefoxVersion=function(){var e=Dj.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 Ej={max:10,count:0,name:"hovertemplate"};se.hovertemplateString=e=>ny(St(ut({},e),{opts:Ej}));var Pj={max:10,count:0,name:"texttemplate"};se.texttemplateString=e=>ny(St(ut({},e),{opts:Pj}));var Rj=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function zj(e){var r=e.match(Rj);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Fj={max:10,count:0,name:"texttemplate",parseMultDiv:!0};se.texttemplateStringForShapes=e=>ny(St(ut({},e),{opts:Fj}));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=zj(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 w of e)if(w){if(w.hasOwnProperty(o)){x=w[o];break}if(IM.test(o)||(x=se.nestedProperty(w,o).get(!0)),x!==void 0)break}if(x===void 0){let{count:w,max:S,name:k}=n,L=t===!1?l:t;return w=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(),Nj=EM!==null&&EM<86;se.getPositionFromD3Event=function(){return Nj?[Af.event.layerX,Af.event.layerY]:[Af.event.offsetX,Af.event.offsetY]}});var YM=J(()=>{"use strict";var Ij=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"),Ij.addStyleRule(OM,HM[iy]);var OM,iy});var ly=J((m3e,UM)=>{UM.exports=!0});var sy=J((g3e,GM)=>{"use strict";var Bj=ly(),oy;typeof window.matchMedia=="function"?oy=!window.matchMedia("(hover: none)").matches:oy=Bj;GM.exports=oy});var O2=J((y3e,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 Hj(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=Gj;_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,Hj(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 Oj(){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=Oj.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():Yj(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?Uj(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,Xj={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(),Wj=Xl().dfltConfig;function Zj(e,r){for(var t=[],a,n=0;nWj.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(),Jj=cy(),$j=bf(),Kj=Xl().configAttributes,lT=ji(),Ai=Cf.extendDeepAll,P0=Cf.isPlainObject,jj=Cf.isArrayOrTypedArray,G2=Cf.nestedProperty,Qj=Cf.valObjectMeta,dy="_isSubplotObj",V2="_isLinkedToArray",eQ="_arrayAttrRegexps",sT="_deprecated",hy=[dy,V2,eQ,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]=tQ(r)}),{defs:{valObjects:Qj,metaKeys:hy.concat(["description","role","editType","impliedEdits"]),editType:{traces:lT.traces,layout:lT.layout},impliedEdits:{}},traces:e,layout:aQ(),frames:nQ(),animation:R0($j),config:R0(Kj)}};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)jj(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 tQ(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 aQ(){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(),uQ=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,{},uQ,"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:()=>hQ,AX_NAME_PATTERN:()=>pQ,DFLTRANGEX:()=>MQ,DFLTRANGEY:()=>TQ,DRAGGERSIZE:()=>_Q,HOUR_PATTERN:()=>gQ,MINDRAG:()=>bQ,MINZOOM:()=>xQ,REDRAWDELAY:()=>wQ,SUBPLOT_PATTERN:()=>mQ,WEEKDAY_PATTERN:()=>yQ,attrRegex:()=>cQ,clipOnAxisFalseQuery:()=>kQ,idRegex:()=>fQ,layerValue2layerClass:()=>CQ,traceLayerClasses:()=>AQ,xAxisMatch:()=>vQ,yAxisMatch:()=>dQ,zindexSeparator:()=>SQ});var fQ,cQ,vQ,dQ,hQ,pQ,mQ,gQ,yQ,bQ,xQ,_Q,wQ,MQ,TQ,AQ,kQ,CQ,SQ,_a=Ft(()=>{"use strict";w0();fQ={x:es("x","( domain)?"),y:es("y","( domain)?")},cQ=es("[xy]axis"),vQ=es("xaxis"),dQ=es("yaxis"),hQ=/^[xyz][0-9]*( domain)?$/,pQ=/^[xyz]axis[0-9]*$/,mQ=/^x([0-9]*)y([0-9]*)$/,gQ="hour",yQ="day of week",bQ=8,xQ=20,_Q=20,wQ=50,MQ=[-1,6],TQ=[-1,4],AQ=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],kQ=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],CQ={"above traces":"above","below traces":"below"},SQ="z"});var ha=J(Tn=>{"use strict";var DQ=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 LQ(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function qQ(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}dT.exports={clearOutlineControllers:LQ,clearOutline:qQ}});var X2=J((C3e,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(),S3e=(_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 EQ=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((E3e,ST)=>{"use strict";var q3e=Or(),RQ=s0().timeFormatLocale,zQ=Wp().formatLocale,Sf=Zr(),FQ=Jp(),NQ=Xu().version,$r=kr(),IQ=z0(),BQ=yt(),vr=Fe(),HQ=Nr(),bT=(ca(),Xe(ga)).BADNUM,An=ha(),OQ=no().clearOutline,YQ=X2(),by=bf(),UQ=cy(),GQ=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=NQ;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 VQ=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],XQ=["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,VQ);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,M=g&&(y||x);M?rr.plotAutoSize(e,i,n):g&&rr.sanitizeMargins(n),!y&&g&&(i.width=n.width,i.height=n.height)}n._d3locale=JQ(d,n.separators),n._extraFormat=_T(e,XQ),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var T=n._subplots=ZQ(),b=n._splomAxes={x:{},y:{}},w=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=WQ(l,s),rr.supplyDataDefaults(s,o,i,n);var S=Object.keys(b.x),k=Object.keys(b.y);if(S.length>1&&k.length>1){for($r.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 N=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),I=N,B=H;I&&!B?a._bgLayer.remove():B&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&OQ({_fullLayout:a}),$Q(o,n),xT(n,a),$r.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Y=n._tracePreGUI,O={},G;for(G in Y)O[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,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 M=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,w=t.yb!==void 0?t.yb:t.y;h[r]={l:{val:M,size:t.l+g},r:{val:T,size:t.r+g},b:{val:w,size:t.b+g},t:{val:b,size:t.t+g}},p[r]=1}if(!a._replotting)return rr.doAutoMargin(e)}};function jQ(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 M in x)for(var T in x[M]){var b=x[M][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 w in l){var S=0;for(var k in d)k!=="base"&&Sf(d[k][w].size)&&(S=d[k][w].size>S?d[k][w].size:S);var L=Math.max(0,i[w]-S);l[w]=Math.max(0,l[w]-L)}for(var q in d){var P=d[q].l||{},z=d[q].b||{},N=P.val,H=P.size,I=z.val,B=z.size,Y=t-l.r-l.l,O=a-l.t-l.b;for(var G in d){if(Sf(H)&&d[G].r){var W=d[G].r.val,Z=d[G].r.size;if(W>N){var X=(H*W+(Z-Y)*N)/(W-N),Q=(Z*(1-N)+(H-Y)*(1-W))/(W-N);X+Q>s+u&&(s=X,u=Q)}}if(Sf(B)&&d[G].t){var ie=d[G].t.val,pe=d[G].t.size;if(ie>I){var ve=(B*ie+(pe-O)*I)/(ie-I),j=(pe*(1-I)+(B-O)*(1-ie))/(ie-I);ve+j>c+f&&(c=ve,f=j)}}}}}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)||jQ(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)?FQ.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:()=>nee,xlink:()=>LT,xmlns:()=>aee});var aee,DT,LT,nee,fs=Ft(()=>{"use strict";aee="http://www.w3.org/2000/xmlns/",DT="http://www.w3.org/2000/svg",LT="http://www.w3.org/1999/xlink",nee={xmlns:DT,"xmlns:xlink":LT}});var Za={};Nt(Za,{CAP_SHIFT:()=>uee,FROM_BL:()=>iee,FROM_BR:()=>oee,FROM_TL:()=>lee,LINE_SPACING:()=>see,MID_SHIFT:()=>fee,OPPOSITE_SIDE:()=>cee});var iee,lee,oee,see,uee,fee,cee,Ja=Ft(()=>{"use strict";iee={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},lee={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},oee={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},see=1.3,uee=.7,fee=.35,cee={left:"right",right:"left",top:"bottom",bottom:"top"}});var La=J(ln=>{"use strict";var Ut=Or(),Qn=Fe(),vee=Qn.strTranslate,xy=(fs(),Xe(us)),dee=(Ja(),Xe(Za)).LINE_SPACING,hee=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,My=e=>e?e.match(hee):null;ln.matchTex=My;var pee=e=>{var r=My(e);return!!r&&!r[1]&&!r[3]};ln.isPureTex=pee;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]+")"+vee(-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 mee(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&&!xee()&&(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=Lee(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");_ee(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()),mee(g),h&&h.node()&&g.node().insertBefore(h.node().cloneNode(!0),g.node().firstChild);var x=p.width,M=p.height;g.attr({class:l,height:M,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}),FT(e,l,y,g,c,u,x,M),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 gee=/(<|<|<)/g,yee=/(>|>|>)/g;function bee(e){return e.replace(gee,"\\lt ").replace(yee,"\\gt ")}var _y=null,NT=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,qT=!1,ET=!1;function xee(){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 _ee(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=bee(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"},wee={sub:"0.3em",sup:"-0.6em"},Mee={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,Tee=//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,Aee=/(^|[\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 kee=/(^|;)\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 Cee={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},See=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function K2(e){return e.replace(See,function(r,t){var a;return t.charAt(0)==="#"?a=Dee(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Cee[t],a||r})}ln.convertEntities=K2;function Dee(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 Lee(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*dee+"em"}),e.appendChild(S),n=S;var k=a;if(a=[{node:S}],k.length>1)for(var L=1;L.",r);return}var k=a.pop();S!==k.type&&Qn.log("Start tag <"+k.type+"> doesnt match end tag <"+S+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Tee.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(Ty),d=0;d{"use strict";var qee=Or(),Lf=Zr(),j2=Fe(),vs=Nr(),Eee=Qo().isValid;function Pee(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)),zee=JT.FORMAT_LINK,Fee=JT.DATE_FORMAT_LINK;function Nee(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: "+zee+"."].join(" ")}function $T(e,r){return Cy(e,r)+[" And for dates see: "+Fee+".","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:Nee,descriptionOnlyNumbers:Cy,descriptionWithDates:$T}});var ki=J((N3e,hA)=>{"use strict";var jT=Ia(),I0=Ki(),dA=Qi().dash,Dy=va().extendFlat,QT=yt().templatedArray,F3e=rs().templateFormatStringDescription,eA=Q2().descriptionWithDates,Iee=(ca(),Xe(ga)).ONEDAY,rl=(_a(),Xe(xa)),Bee=rl.HOUR_PATTERN,Hee=rl.WEEKDAY_PATTERN,Sy={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Oee=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:[rl.idRegex.x.toString(),rl.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:[rl.idRegex.x.toString(),rl.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:[Hee,Bee,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Iee},editType:"calc"}),tickmode:Oee,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",rl.idRegex.x.toString(),rl.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",rl.idRegex.x.toString(),rl.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"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},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((I3e,mA)=>{"use strict";var wt=ki(),pA=Ia(),Ly=va().extendFlat,Yee=ji().overrideAll;mA.exports=Yee({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((H3e,yA)=>{"use strict";var Uee=e1(),Gee=(w0(),Xe(gf)).counter,Vee=(Jg(),Xe(Zg)).default,gA=Qo().scales,B3e=Vee(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),M=r1(u+p),T=r1(u+g),b=M+" and "+T,w={};w[p]=w[g]=void 0;var S={};S[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:w},k[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:S},k[g]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:S},k[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:w},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=Uee),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Gee("coloraxis"),dflt:null,editType:"calc"}),k}});var Ey=J((O3e,bA)=>{"use strict";var Xee=va().extendFlat,Wee=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:Xee({_isSubplotObj:!0,editType:"calc"},Wee("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Py=J((Y3e,xA)=>{"use strict";var Zee=Fe();xA.exports=function(r){return Zee.isPlainObject(r.colorbar)}});var Fy=J(zy=>{"use strict";var Ry=Zr(),_A=Fe(),wA=(ca(),Xe(ga)),Jee=wA.ONEDAY,$ee=wA.ONEWEEK;zy.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Jee: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%$ee===0?1:0));if(!(a==="D1"||a==="D2"))return Ry(e)?Number(e):0}});var Ny=J((G3e,TA)=>{"use strict";var MA=Fy(),Kee=Fe().isArrayOrTypedArray,jee=xn().isTypedArraySpec,Qee=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 w=o[b];return jee(w)&&(w=Qee(w)),w!==void 0?w:(s._template||{})[b]}var c=f("tick0"),d=f("dtick"),h=f("tickvals"),p=f("overlaying"),g=n==="category"||n==="multicategory",y;Kee(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 M=s.dtick=MA.dtick(d,n);s.tick0=MA.tick0(c,n,t.calendar,M)}else if(n!=="multicategory"){var T=a(u+"tickvals");T===void 0?s.tickmode="auto":l||a("ticktext")}}});var By=J((V3e,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((X3e,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((W3e,SA)=>{"use strict";var t1=Fe(),ere=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=ere.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var Oy=Fe(),rre=Nr().contrast,DA=ki(),tre=Hy(),are=Ci();LA.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");Oy.isPlainObject(l)||delete t.labelalias;var o=tre(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?rre(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");are(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:nre}),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 nre(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((J3e,qA)=>{"use strict";var ire=Hy();qA.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=ire(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Gy=J(($3e,EA)=>{"use strict";var io=Fe(),lre=yt(),ore=Ny(),sre=By(),ure=Yy(),fre=Uy(),cre=e1();EA.exports=function(r,t,a){var n=lre.newContainer(t,"colorbar"),i=r.colorbar||{};function l(z,N){return io.coerce(i,n,cre,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",M,T,b,w="left";c?(b="middle",w=x?"left":"right",M=x?1.02:1,T=.5):(b=y?"bottom":"top",w="center",M=.5,T=y?1.02:1),io.coerce(i,n,{x:{valType:"number",min:x?-2:0,max:x?3:1,dflt:M}},"x"),io.coerce(i,n,{y:{valType:"number",min:y?-2:0,max:y?3:1,dflt:T}},"y"),l("xanchor",w),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"),ore(i,n,l,"linear");var k=a.font,L={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};S.indexOf("inside")!==-1&&(L.bgColor="black"),fre(i,n,l,"linear",L),ure(i,n,l,"linear",L),sre(i,n,l,"linear",L),l("title.text",a._dfltTitle.colorbar);var q=n.showticklabels?n.tickfont:k,P=io.extendFlat({},k,{family:q.family,size:io.bigFont(q.size)});io.coerceFont(l,"title.font",P),l("title.side",c?"top":"right")}});var B0=J((K3e,zA)=>{"use strict";var PA=Zr(),Xy=Fe(),vre=Py(),dre=Gy(),RA=Qo().isValid,hre=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=hre(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"],M=u[o+"max"],T=PA(x)&&PA(M)&&x{"use strict";var FA=Fe(),pre=yt(),NA=Ey(),mre=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=pre.newContainer(t,s,"coloraxis"),l._name=s,mre(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var gre=Fe(),yre=ei().hasColorscale,bre=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?gre.nestedProperty(f,c.container).get():f;if(d)if(d.coloraxis)d._colorAx=t[d.coloraxis];else{var h=bre(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(),xre=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=xre(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((r5e,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((t5e,XA)=>{"use strict";var VA=Fe(),_re=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)||_re(r.size))}}});var ZA=J((a5e,WA)=>{"use strict";var wre=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 wre(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},kre=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Cre=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Sre(e){let r=[];return e.replace(kre,(t,a,n)=>{let i=a.toLowerCase(),l=a,o=Dre(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 Lre=$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 M=jy(y),T=Qy(y),b=x[0],w=x[1]+(r||0);return[b*M-w*T,b*T+w*M]}for(var n=e/180*Ky,i=0,l=0,o=Lre(t),s="",u=0;u{"use strict";var wa=Or(),lt=Fe(),qre=lt.numberFormat,oo=Zr(),l1=kr(),pa=Nr(),Ere=Zy(),Rf=lt.strTranslate,o1=La(),Pre=(fs(),Xe(us)),Rre=(Ja(),Xe(Za)),zre=Rre.LINE_SPACING,hk=(y2(),Xe(g2)).DESELECTDIM,Fre=Rn(),Nre=ZA(),Ire=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(Hre(f))),s&&e.style("text-shadow",s==="auto"?o1.makeTextShadow(pa.contrast(i)):e3(s)),u&&e.style("text-decoration-line",e3(Ore(u)))};function e3(e){return e==="none"?void 0:e}var Bre={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Hre(e){return Bre[e]}function Ore(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 Yre=er.symbolNames.length,Ure="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>=Yre||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?Ure:"")}var lk=qre("~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 M=l.gradient,T=e.mgt;T?d=!0:T=M&&M.type,lt.isArrayOrTypedArray(T)&&(T=T[0],gk[T]||(T=0));var b=l.pattern,w=er.getPatternAttr,S=b&&(w(b.shape,e.i,"")||w(b.path,e.i,""));if(T&&T!=="none"){var k=e.mgc;k?d=!0:k=M.color;var L=t.uid;d&&(L+="-"+e.i),er.gradient(r,n,L,T,[[0,k],[1,h]],"fill")}else if(S){var q=!1,P=b.fgcolor;!P&&i&&i.color&&(P=i.color,q=!0);var z=w(P,e.i,i&&i.color||null),N=w(b.bgcolor,e.i,null),H=b.fgopacity,I=w(b.size,e.i,8),B=w(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 Y=t.uid;q&&(Y+="-"+e.i),er.pattern(r,"point",n,Y,S,I,B,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=Fre.isBubble(e)?Nre(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 w=b.mo===void 0?n.opacity:b.mo;return b.selected?f?s:w:c?u:hk*w});var d=n.color,h=i.color,p=l.color;(h||p)&&(r.selectedColorFn=function(b){var w=b.mcc||d;return b.selected?h||w:p||w});var g=n.size,y=i.size,x=l.size,M=y!==void 0,T=x!==void 0;return l1.traceIs(e,"symbols")&&(M||T)&&(r.selectedSizeFn=function(b){var w=b.mrc||g/2;return b.selected?M?y/2:w:T?x/2:w}),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={};Ire(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)&&(w<=c&&w>=u||w>=c&&w<=u)&&(e=[b,w])}return e}er.applyBackoff=Mk;er.makeTester=function(){var e=lt.ensureSingleById(wa.select("body"),"svg","js-plotly-tester",function(t){t.attr(Pre.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,Xre=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>=Xre&&(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 Wre=/\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(Wre,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Zre=/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(Zre);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,M=fk/180*Math.PI,T=ck/180*Math.PI,b=M-y,w=ds(T)*Y0(b),S=Y0(T)*ds(x)-ds(T)*Y0(x)*ds(b);g=-Pf(w,S)-Math.PI,fk=u,ck=f}var k=uk(h,[ds(g),0]),L=uk(p,[Y0(g),0]);t=Pf(k[1]+L[1],k[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((s5e,Sk)=>{"use strict";var U0=Or(),Jre=Zr(),$re=na(),s3=kr(),ms=Fe(),Ak=ms.strTranslate,s1=ot(),u1=Nr(),G0=La(),kk=(y2(),Xe(g2)),Kre=(Ja(),Xe(Za)).OPPOSITE_SIDE,Ck=/ [XY][0-9]* /,u3=1.6,f3=1.6;function jre(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,M=y.size,T=y.color,b=y.weight,w=y.style,S=y.variant,k=y.textcase,L=y.lineposition,q=y.shadow,P=t.subtitlePropName,z=!!P,N=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},I=(H.text||"").trim(),B=!1,Y=1,O=H.font,G=O.family,W=O.size,Z=O.color,X=O.weight,Q=O.style,ie=O.variant,pe=O.textcase,ve=O.lineposition,j=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&&(I===""?Y=0:Se(I,N)&&(le||(I=""),Y=.2,B=!0)),t._meta?p=ms.templateString(p,t._meta):a._meta&&(p=ms.templateString(p,a._meta));var ce=p||I||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=I||le;if(z&&(Ie=c.selectAll("text."+_e).data(De?[0]:[]),Ie.enter().append("text"),Ie.text(I).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(T)).call(s1.font,{color:u1.rgb(T),size:U0.round(M,2),family:x,weight:b,style:w,variant:S,textcase:k,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",Y*u1.opacity(Z)).call(s1.font,{color:u1.rgb(Z),size:U0.round(W,2),family:G,weight:X,style:Q,variant:ie,textcase:pe,shadow:j,lineposition:ve}).attr(mr).call(G0.convertToTspans,e)}return $re.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=Kre[s.side],tr=s.side==="left"||s.side==="top"?-1:1,re=Jre(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)}I?Ie.on(".opacity",null):(Re(Ie,N),B=!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",B),c}Sk.exports={draw:jre,SUBTITLE_PADDING_EM:f3,SUBTITLE_PADDING_MATHJAX_EM:u3}});var g1=J((u5e,Pk)=>{"use strict";var Qre=Or(),ete=s0().utcFormat,ht=Fe(),rte=ht.numberFormat,tl=Zr(),so=ht.cleanNumber,tte=ht.ms2DateTime,Dk=ht.dateTime2ms,al=ht.ensureNumber,Lk=ht.isArrayOrTypedArray,uo=(ca(),Xe(ga)),f1=uo.FP_SAFE,Di=uo.BADNUM,ate=uo.LOG_CLIP,nte=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}var ite=2;function lte(e,r){if(e<=0)return 0;let t=Math.max(0,r-ite);return e>t?t/e:1}Pk.exports=function(r,t){t=t||{};var a=r._id||"x",n=a.charAt(0);function i(b,w){if(b>0)return Math.log(b)/Math.LN10;if(b<=0&&w&&r.range&&r.range.length===2){var S=r.range[0],k=r.range[1];return .5*(S+k-2*ate*Math.abs(S-k))}else return Di}function l(b,w,S,k){if((k||{}).msUTC&&tl(b))return+b;var L=Dk(b,S||r.calendar);if(L===Di)if(tl(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,w,S){return tte(b,w,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 w=r._categories.length-1;return r._categoriesMap[b]=w,w}return Di}function f(b,w){for(var S=new Array(w),k=0;kr.range[1]&&(S=!S);for(var k=S?-1:1,L=k*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 w=r._rangebreaks.length;if(!w)return g(b,r._m,r._b);for(var S=0,k=0;kr._rangebreaks[k].pmax&&(S=k+1);return g(b,r._m2,r._B[S])}}r.c2l=r.type==="log"?i:al,r.l2c=r.type==="log"?Ff:al,r.l2p=y,r.p2l=x,r.c2p=r.type==="log"?function(b,w){return y(i(b,w))}: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=al,r.d2p=r.r2p=function(b){return r.l2p(so(b))},r.p2d=r.p2r=x,r.cleanPos=al):r.type==="log"?(r.d2r=r.d2l=function(b,w){return i(so(b),w)},r.r2d=r.r2c=function(b){return Ff(so(b))},r.d2c=r.r2l=so,r.c2d=r.l2r=al,r.c2r=i,r.l2d=Ff,r.d2p=function(b,w){return r.l2p(r.d2r(b,w))},r.p2d=function(b){return Ff(x(b))},r.r2p=function(b){return r.l2p(so(b))},r.p2r=x,r.cleanPos=al):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,w,S){return r.l2p(l(b,0,S))},r.p2d=r.p2r=function(b,w,S){return o(x(b),w,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 w=h(b);return w!==void 0?w:r.fraction2r(.5)},r.l2r=r.c2r=al,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:al(b)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(b){var w=d(b);return w!==void 0?w:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=al,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:al(b)},r.setupMultiCategory=function(b){var w=r._traceIndices,S,k,L=r._matchGroup;if(L&&r._categories.length===0){for(var q in L)if(q!==a){var P=t[d1.id2name(q)];w=w.concat(P._traceIndices)}}var z=[[0,{}],[0,{}]],N=[];for(S=0;SP[1]&&(k[q?0:1]=S,L[1]=P[1]),L[0]>=L[1])if(w!==void 0){var z=P[0]+1;S!==void 0&&(z=Math.min(z,P[1])),k[q?0:1]=r.l2r(z)}else S!==void 0&&(k[q?1:0]=r.l2r(P[1]-1))}},r.cleanRange=function(b,w){r._cleanRange(b,w),r.limitRange(b)},r._cleanRange=function(b,w){w||(w={}),b||(b="range");var S=ht.nestedProperty(r,b).get(),k,L;if(r.type==="date"?L=ht.dfltRange(r.calendar):n==="y"?L=m1.DFLTRANGEY:r._name==="realaxis"?L=[0,1]:L=w.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)),k=0;k<2;k++)if(r.type==="date"){if(!ht.isDateTime(S[k],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(!tl(S[k]))if(!(q||P)&&tl(S[1-k]))S[k]=S[1-k]*(k?10:.1);else{r[b]=L;break}if(S[k]<-f1?S[k]=-f1:S[k]>f1&&(S[k]=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 w=t._size;if(r.overlaying){var S=d1.getFromId({_fullLayout:t},r.overlaying);r.domain=S.domain,r.domainpad=S.domainpad}var k=b&&r._r?"_r":"range",L=r.calendar;r.cleanRange(k);var q=r.r2l(r[k][0],L),P=r.r2l(r[k][1],L),z=n==="y";let N=(z?w.h:w.w)*(r.domain[1]-r.domain[0]),H=r.domainpad,I=0,B=0;if(H){I=(z?H.top:H.left)||0,B=(z?H.bottom:H.right)||0;let Z=lte(I+B,N);I*=Z,B*=Z}if(r._length=N-I-B,r._padStart=I,r._padEnd=B,z?(r._offset=w.t+(1-r.domain[1])*w.h+I,r._m=r._length/(q-P),r._b=-r._m*P):(r._offset=w.l+r.domain[0]*w.w+I,r._m=r._length/(P-q),r._b=-r._m*q),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var Y,O;if(r._rangebreaks=r.locateBreaks(Math.min(q,P),Math.max(q,P)),r._rangebreaks.length){for(Y=0;YP&&(G=!G),G&&r._rangebreaks.reverse();var W=G?-1:1;for(r._m2=W*r._length/(Math.abs(P-q)-r._lBreaks),r._B.push(-r._m2*(z?P:q)),Y=0;YL&&(L+=7,qL&&(L+=24,q=k&&q=k&&b=j.min&&(Qj.max&&(j.max=ie),pe=!1)}pe&&P.push({min:Q,max:ie})}};for(S=0;S{"use strict";var Rk=Zr(),v3=Fe(),ote=(ca(),Xe(ga)).BADNUM,y1=v3.isArrayOrTypedArray,ste=v3.isDateTime,ute=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&&hte(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 dte(e,r){for(var t=e.length,a=Fk(t),n=0,i=0,l={},o=0;on*2}function hte(e){return y1(e[0])&&y1(e[1])}});var Nf=J((c5e,Vk)=>{"use strict";var pte=Or(),Ok=Zr(),fo=Fe(),b1=(ca(),Xe(ga)).FP_SAFE,mte=kr(),gte=ot(),Yk=ha(),yte=Yk.getFromId,bte=Yk.isLinked;Vk.exports={applyAutorangeOptions:Gk,getAutoRange:h3,makePadFn:p3,doAutoRange:_te,findExtremes:wte,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=T-l(S)-o(k),P>b?z/P>w&&(L=S,q=k,w=z/P):z/T>w&&(L={val:S.val,nopad:1},q={val:k.val,nopad:1},w=z/T));function N(O,G){return Math.max(O,o(G))}if(c===d){var H=c-1,I=c+1;if(x)if(c===0)n=[0,1];else{var B=(c>0?f:u).reduce(N,0),Y=c/(1-Math.min(.5,B/T));n=c>0?[0,Y]:[Y,0]}else M?n=[Math.max(0,H),Math.max(1,I)]:n=[H,I]}else x?(L.val>=0&&(L={val:0,nopad:1}),q.val<=0&&(q={val:0,nopad:1})):M&&(L.val-w*l(L)<0&&(L={val:0,nopad:1}),q.val<=0&&(q={val:1,nopad:1})),w=(q.val-L.val-Ik(r,S.val,k.val))/(T-l(L)-o(q)),n=[L.val-w*l(L),q.val+w*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),k=b(t.vpadplus||t.vpad),L=b(t.vpadminus||t.vpad);if(!u){if(M=1/0,T=-1/0,s)for(c=0;c0&&(M=d),d>T&&d-b1&&(M=d),d>T&&d=z;c--)P(c);return{min:a,max:n,opts:t}}function m3(e,r,t,a){Uk(e,r,t,a,Mte)}function g3(e,r,t,a){Uk(e,r,t,a,Tte)}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 Ate(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 kte(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=Ate(t,r),a=kte(a,r),[t,a]}});var Mt=J((d5e,dC)=>{"use strict";var ri=Or(),jt=Zr(),V0=na(),Bf=kr(),Ar=Fe(),X0=Ar.strTranslate,gs=La(),Cte=zf(),Hf=Nr(),zn=ot(),Ste=ki(),Xk=Fy(),v5e=(_a(),Xe(xa)),Oa=(ca(),Xe(ga)),Dte=Oa.ONEMAXYEAR,M1=Oa.ONEAVGYEAR,T1=Oa.ONEMINYEAR,Lte=Oa.ONEMAXQUARTER,w3=Oa.ONEAVGQUARTER,A1=Oa.ONEMINQUARTER,qte=Oa.ONEMAXMONTH,W0=Oa.ONEAVGMONTH,k1=Oa.ONEMINMONTH,Fn=Oa.ONEWEEK,on=Oa.ONEDAY,co=on/2,il=Oa.ONEHOUR,Of=Oa.ONEMIN,C1=Oa.ONESEC,Ete=Oa.ONEMILLI,Pte=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,Rte=L1.OPPOSITE_SIDE,S1=3,Oe=dC.exports={};Oe.setConvert=g1();var zte=d3(),ll=ha(),Fte=ll.idSort,Nte=ll.isLinked;Oe.id2name=ll.id2name;Oe.name2id=ll.name2id;Oe.cleanId=ll.cleanId;Oe.list=ll.list;Oe.listIds=ll.listIds;Oe.getFromId=ll.getFromId;Oe.getFromTrace=ll.getFromTrace;var nC=Nf();Oe.getAutoRange=nC.getAutoRange;Oe.findExtremes=nC.findExtremes;var Ite=1e-4;function D3(e){var r=(e[1]-e[0])*Ite;return[e[0]-r,e[1]+r]}function Bte(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<=Dte?c=u:c=M1:t===w3&&f>=A1?u>=A1&&u<=Lte?c=u:c=w3:f>=k1?u>=k1&&u<=qte?c=u:c=W0:t===Fn&&f>=Fn?c=Fn:f>=on?c=on:t===co&&f>=co?c=co:t===il&&f>=il&&(c=il);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);w--){var S=!w;w?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):b&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var k=w?r:Ar.extendFlat({},r,b?r.minor:{minor:{}});if(S?Oe.prepMinorTicks(k,r,t):Oe.prepTicks(k,t),k.tickmode==="array"){w?(y=[],p=jk(r,!S)):(x=[],g=jk(r,!S));continue}if(k.tickmode==="sync"){y=[],p=Vte(r);continue}var L=D3(u),q=L[0],P=L[1],z=jt(k.dtick),N=a==="log"&&!(z||k.dtick.charAt(0)==="L"),H=Oe.tickFirst(k,t);if(w){if(r._tmin=H,H=P:B<=P;B=Oe.tickIncrement(B,G,f,n)){if(w&&Y++,k.rangebreaks&&!f){if(B=d)break}if(y.length>h||B===I)break;I=B;var Z={value:Bte(B,W,G)};w?(B===H&&(Z.first=!0),N&&B!==(B|0)&&(Z.simpleLabel=!0),i>1&&Y%i&&(Z.skipLabel=!0),y.push(Z)):(Z.minor=!0,x.push(Z))}}function X(Te,Ae){let ke=Ae.find(Me=>Me.value===Te.value);if(ke!=null)return ke;let Re=1e7;for(let Me=0;MeX(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(T){var Q=r.minor.ticks==="inside"&&r.ticks==="outside"||r.minor.ticks==="outside"&&r.ticks==="inside";if(!Q){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);(j?le>Se-we:led||Red&&(ke.periodX=d),Ren&&pn&&yM1)r/=M1,a=n(10),e.dtick="M"+12*nl(r,a,_1);else if(i>W0)r/=W0,e.dtick="M"+nl(r,1,Qk);else if(i>on){if(e.dtick=nl(r,on,e._hasDayOfWeekBreaks?[1,2,7,14]:Xte),!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>il?e.dtick=nl(r,il,Qk):i>Of?e.dtick=nl(r,Of,eC):i>C1?e.dtick=nl(r,C1,eC):(a=n(10),e.dtick=nl(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"+nl(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=nl(r,a,Wte)):(e.tick0=0,a=n(10),e.dtick=nl(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>=il)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?T: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 Jte(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 $te(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Kte(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 Qte(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var l=eae(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 eae(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"],rae=["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 tae(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"?rae[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=pae(r,a));var g=d[f+"axislayer"],y=r._mainLinePosition,x=y+=r._shift,M=r._mainMirrorPosition,T=r._vals=Oe.calcTicks(r),b=[r.mirror,x,M].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 aae(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 oae(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},M,T,b,w,S=0,k=e.side,L=e._id.charAt(0),q=e.tickangle,P;if(L==="x")P=!c&&k==="bottom"||c&&k==="top",w=P?1:-1,c&&(w*=-1),M=p*w,T=r+h*w,b=P?1:-.2,Math.abs(q)===90&&(c?b+=If:q===-90&&k==="bottom"?b=bs:q===90&&k==="top"?b=If:b=.5,S=If/2*(q/90)),x.xFn=function(H){return H.dx+M+S*H.fontSize},x.yFn=function(H){return H.dy+T+H.fontSize*b},x.anchorFn=function(H,I){if(f){if(o)return"end";if(s)return"start"}return!jt(I)||I===0||I===180?"middle":I*w<0!==c?"end":"start"},x.heightFn=function(H,I,B){return I<-60||I>60?-.5*B:e.side==="top"!==c?-B:0};else if(L==="y"){if(P=!c&&k==="left"||c&&k==="right",w=P?1:-1,c&&(w*=-1),M=h,T=p*w,b=0,!c&&Math.abs(q)===90&&(q===-90&&k==="left"||q===90&&k==="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*w,b=0}}x.xFn=function(H){return H.dx+r-(M+H.fontSize*b)*w+S*H.fontSize},x.yFn=function(H){return H.dy+T+H.fontSize*If},x.anchorFn=function(H,I){return jt(I)&&Math.abs(I)===90?"middle":P?"end":"start"},x.heightFn=function(H,I,B){return e.side==="right"&&(I*=-1),I<-30?-B:I<30?-.5*B: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 Fte(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),X=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[X]?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(X){var Q=ri.select(this),ie=Q.select(".text-math-group"),pe=s.anchorFn(X,Z),ve=t.transFn.call(Q.node(),X)+(jt(Z)&&+Z!=0?" rotate("+Z+","+s.xFn(X)+","+(s.yFn(X)-X.fontSize/2)+")":""),j=gs.lineCount(Q),we=Yf*X.fontSize,le=s.heightFn(X,jt(Z)?+Z:0,(j-1)*we);if(le&&(ve+=X0(0,le)),ie.empty()){var Se=Q.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,X=r._id.charAt(0)==="x",Q=0,ie=X?e._fullLayout.width:e._fullLayout.height;if(W.indexOf("domain")!==-1){var pe=Ar.simpleMap(r.range,r.r2l);Q=r.l2p(pe[0])+r._offset,ie=r.l2p(pe[1])+r._offset}var ve=Math.min(Q,ie),j=Math.max(Q,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;X?(Te.right>j||Te.leftj||Te.top+(r.tickangle?0:Ie.fontSize/4)r["_visibleLabelMin_"+pe._id]?_e.style("display","none"):j.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=[],X,Q=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());Q=Math.max(Q,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),j=ie?ve/2:ve,we=ie?r.ticklen:W*1.25*Q,le=Math.sqrt(Math.pow(j,2)+Math.pow(we,2)),Se=j/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))Y*B&&(N=B,q[L]=P[L]=H[L])}var O=Math.abs(N-z);O-w>0?(O-=w,w*=1+w/O):w=0,r._id.charAt(0)!=="y"&&(w=-w),q[k]=T.p2r(T.r2p(P[k])+S*w),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 G=Ar.syncOrAsync(x);return G&&G.then&&e._promises.push(G),G};function sae(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 uae(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,Cte.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)||!fae(e,r,t,a)||cae(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=Pte:/%L/.test(r)?e>=Ete:/%[SX]/.test(r)?e>=C1:/%M/.test(r)?e>=Of:/%[HI]/.test(r)?e>=il:/%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((h5e,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((p5e,mC)=>{"use strict";var gae=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&&(gae(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var yC=J((m5e,gC)=>{var yae={left:0,top:0};gC.exports=bae;function bae(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=xae(r);return t[0]=a-i.left,t[1]=n-i.top,t}function xae(e){return e===window||e===document||e===document.body?yae:e.getBoundingClientRect()}});var F3=J((g5e,bC)=>{"use strict";var _ae=ly();function wae(){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=_ae&&wae()});var _C=J((y5e,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((b5e,MC)=>{"use strict";var wC=Fe(),Mae=[["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),Mae[t][r]}});var kC=J((x5e,AC)=>{"use strict";var Tae=kf(),Aae=P2(),kae=yf().getGraphDiv,Cae=(ju(),Xe(Ku)),N3=AC.exports={};N3.wrapped=function(e,r,t){var i;e=kae(e),e._fullLayout&&Aae.clear(e._fullLayout._uid+Cae.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&&Tae.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((_5e,LC)=>{"use strict";var Sae=yC(),I3=sy(),Dae=F3(),Lae=Fe().removeElement,qae=(_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,Dae?(i._ontouchstart&&i.removeEventListener("touchstart",i._ontouchstart),i._ontouchstart=y,i.addEventListener("touchstart",y,{passive:!1})):i.ontouchstart=y;function p(T,b,w){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(w=>{var S=c[w];!b[w]&&typeof S!="function"&&(b[w]=S)})),r.clickFn&&r.clickFn(a,b),h||d.dispatchEvent(new MouseEvent("click",T))}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 Sae(e.changedTouches?e.changedTouches[0]:e,document.body)}});var vo=J((w5e,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((M5e,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;iBae,itemGap:()=>Iae,itemHeightPad:()=>Oae,itemMinHeight:()=>Hae,scrollBarColor:()=>Rae,scrollBarEnterAttrs:()=>Fae,scrollBarMargin:()=>zae,scrollBarMinHeight:()=>Pae,scrollBarWidth:()=>Eae,titlePad:()=>Nae});var Eae,Pae,Rae,zae,Fae,Nae,Iae,Bae,Hae,Oae,R1=Ft(()=>{"use strict";Eae=6,Pae=20,Rae="#808BA4",zae=4,Fae={rx:20,ry:3,width:0,height:0},Nae=2,Iae=5,Bae=6,Hae=16,Oae=3});var O3=J((T5e,FC)=>{"use strict";var H3=Ia(),Yae=Ki(),{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:Yae.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((k5e,NC)=>{"use strict";var z1=kr(),Nn=Fe(),Uae=yt(),Gae=xi(),Vae=O3(),Xae=A0(),Y3=Wf();function Wae(e,r,t,a,n){var i=r[e]||{},l=Uae.newContainer(t,e);function o(Z,X){return Nn.coerce(i,l,Vae,Z,X)}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,X){var Q=f._input,ie=f;return Nn.coerce(Q,ie,Gae,Z,X)},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 M(Z){return z1.traceIs(Z,"pie-like")&&Z._length!=null&&(Array.isArray(Z.legend)||Array.isArray(Z.showlegend))}a.filter(M).forEach(function(Z){Z.visible&&p++;for(var X=0;XZ.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 k=o("orientation"),L=o("yref"),q=o("xref"),P=k==="h",z=L==="paper",N=q==="paper",H,I,B,Y="left";P?(H=0,z1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?z?(I=1.1,B="bottom"):(I=1,B="top"):z?(I=-.1,B="top"):(I=0,B="bottom")):(I=1,B="auto",N?H=1.02:(H=1,Y="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:I}},"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",Y),o("yanchor",B),o("maxheight"),o("valign"),Nn.noneOrAll(i,l,["x","y"]);var G=o("title.text");if(G){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(),Zae=G3.pushUnique,Jae=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,M,T,b,w,S={},k=[],L=[],q=[];function P(ke,Re){var Me=k.indexOf(ke),Ue=S.visible;return Ue||(Ue=S.visible=[]),k.indexOf(ke)===-1&&(k.push(ke),Me=k.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 I(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 B=p.legend;if(!p._isShape&&ho.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 G=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(M){return u(M)&&M.visible===!0}),c=!1;else{let x=s.some(function(M){return!u(M)&&M.visible===!0&&M.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,X,Q){if(t.visible!==!1&&!(a&&Z!==t._id))if(X===""||!Z3.isGrouped(t)){var ie="~~i"+c;s.push(ie),o[ie]=[Q],c++}else s.indexOf(X)===-1?(s.push(X),u=!0,o[X]=[Q]):o[X].push(Q)}for(h=0;hH&&(z=H)}q[h][0]._groupMinRank=z,q[h][0]._preGroupSort=h}var I=function(Z,X){return Z[0]._groupMinRank-X[0]._groupMinRank||Z[0]._preGroupSort-X[0]._preGroupSort},B=function(Z,X){var Q=W3(Z.trace.legendrank)?Z.trace.legendrank[Z.i]:Z.trace.legendrank,ie=W3(X.trace.legendrank)?X.trace.legendrank[X.i]:X.trace.legendrank;return Q-ie||Z._preSort-X._preSort};for(q.forEach(function(Z,X){Z[0]._preGroupSort=X}),q.sort(I),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 $ae=ot(),Kae=Nr();UC.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?$ae.pointStyle(r,a,n,t):Kae.fill(r,t.color)}});var I1=J((q5e,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((E5e,jC)=>{"use strict";var sn=Or(),J3=kr(),$a=Fe(),$3=$a.strTranslate,In=ot(),ti=Nr(),K3=ei().extractOpts,H1=Rn(),Qae=I1(),ene=N1().castOption,ZC=(R1(),Xe(P1)),JC=12,$C=5,ws=2,rne=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,I=L[0].height;if(N==="middle"&&z===0||!H||!I)P.attr("transform",null);else{var B={top:1,bottom:-1}[N],Y=B*(.5*(H-I+3))||0,O=a.indentation;P.attr("transform",$3(O,Y))}var G=P.selectAll("g.legendfill").data([L]);G.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(k).each(h).each(g).each(p).each(x).each(w).each(b).each(c).each(d).each(M).each(T);function c(L){var q=KC(L),P=q.showFill,z=q.showLine,N=q.showGradientLine,H=q.showGradientFill,I=q.anyFill,B=q.anyLine,Y=L[0],O=Y.trace,G,W,Z=K3(O),X=Z.colorscale,Q=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(Q),X,"fill")}},pe=function(de){if(de.size()){var Ce="legendline-"+O.uid;In.lineGroupStyle(de),In.gradient(de,t,Ce,j3(Q),X,"stroke")}},ve=H1.hasMarkers(O)||!I?"M5,0":B?"M5,-2":"M5,-3",j=sn.select(this),we=j.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(j.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",le?$3(0,le):null),z||N){var Se=f(void 0,O.line,rne,$C);W=$a.minExtend(O,{line:{width:Se}}),G=[$a.minExtend(Y,{trace:W})]}var ce=j.select(".legendlines").selectAll("path").data(z||N?[G]:[]);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,I=L[0],B=I.trace,Y=!H&&!z&&!P&&H1.hasText(B),O,G;function W(le,Se,ce,de){var Ce=$a.nestedProperty(B,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 I._distinct&&I.index&&le[I.index]?le[I.index]:le[0]}if(H||Y||N){var X={},Q={};if(H){X.mc=W("marker.color",Z);var ie=B.type==="scattermap";X.mx=ie?"circle":W("marker.symbol",Z),X.mo=W("marker.opacity",$a.mean,[.2,1]),X.mlc=W("marker.line.color",Z),X.mlw=W("marker.line.width",$a.mean,[0,5],ws),X.mld=W("marker.line.dash",Z),Q.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var pe=W("marker.size",$a.mean,[2,16],JC);X.ms=pe,Q.marker.size=pe}N&&(Q.line={width:W("line.width",Z,[0,10],$C)}),Y&&(X.tx="Aa",X.tp=W("textposition",Z),X.ts=10,X.tc=W("textfont.color",Z),X.tf=W("textfont.family",Z),X.tw=W("textfont.weight",Z),X.ty=W("textfont.style",Z),X.tv=W("textfont.variant",Z),X.tC=W("textfont.textcase",Z),X.tE=W("textfont.lineposition",Z),X.tS=W("textfont.shadow",Z)),O=[$a.minExtend(I,X)],G=$a.minExtend(B,Q),G.selectedpoints=null,G.texttemplate=null}var ve=sn.select(this).select("g.legendpoints"),j=ve.selectAll("path.scatterpts").data(H?O:[]);j.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),j.exit().remove(),j.call(In.pointStyle,G,t),H&&(O[0].mrc=3);var we=ve.selectAll("g.pointtext").data(Y?O:[]);we.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),we.exit().remove(),we.selectAll("text").call(In.textPointStyle,G,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(I){var B=sn.select(this),Y=q[I[0]].marker,O=f(void 0,Y.line,J0,ws);B.attr("d",I[1]).style("stroke-width",O+"px").call(ti.fill,Y.color),O&&B.call(ti.stroke,Y.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||{},I=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",B=P?z.visible&&z.type===P:J3.traceIs(z,"bar"),Y=sn.select(q).select("g.legendpoints").selectAll("path.legend"+P).data(B?[L]:[]);Y.enter().append("path").classed("legend"+P,!0).attr("d",I).attr("transform",u),Y.exit().remove(),Y.each(function(O){var G=sn.select(this),W=O[0],Z=f(W.mlw,N.line,J0,ws);G.style("stroke-width",Z+"px");var X=W.mcc;if(!a._inHover&&"mc"in W){var Q=K3(N),ie=Q.mid;ie===void 0&&(ie=(Q.max+Q.min)/2),X=In.tryColorscale(N,"")(ie)}var pe=X||W.mc||N.color,ve=N.pattern,j=In.getPatternAttr;let we=0;a._inHover&&W._distinct&&W.index!=null&&(we=W.index);let le=ve&&(j(ve.shape,we,"")||j(ve.path,we,""));if(le){let ce=j(ve.bgcolor,we,null),de=j(ve.fgcolor,we,null);var Se=ve.fgopacity;let Ce=a._inHover?B1(j(ve.size,we,8),8,10):B1(ve.size,8,10),Ie=a._inHover?B1(j(ve.solidity,we,.5),.5,1):B1(ve.solidity,.5,1),_e=a._inHover?`hover-${z.uid}-${we}`:`legend-${z.uid}`;G.call(In.pattern,"legend",t,_e,le,Ce,Ie,X,ve.fillmode,ce,de,Se)}else G.call(ti.fill,pe);Z&&ti.stroke(G,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 M(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),I=q[N?"increasing":"decreasing"],B=f(void 0,I.line,J0,ws);H.style("stroke-width",B+"px").call(ti.fill,I.fillcolor),B&&ti.stroke(H,I.line.color)})}function T(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),I=q[N?"increasing":"decreasing"],B=f(void 0,I.line,J0,ws);H.style("fill","none").call(In.dashLine,I.line.dash,B),B&&ti.stroke(H,I.line.color)})}function b(L){S(L,this,"pie")}function w(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),I=sn.select(q).select("g.legendpoints").selectAll("path.legend"+P).data(H?[L]:[]);if(I.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),I.exit().remove(),I.size()){var B=N.marker||{},Y=f(ene(B.line.width,z.pts),B.line,J0,ws),O="pieLike",G=$a.minExtend(N,{marker:{line:{width:Y}}},O),W=$a.minExtend(z,{trace:G},O);Qae(I,W,G,t)}}function k(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,I){var B=sn.select(this),Y=K3(q),O=Y.colorscale,G=Y.reversescale,W=function(ie){if(ie.size()){var pe="legendfill-"+q.uid;In.gradient(ie,t,pe,j3(G,P==="radial"),O,"fill")}},Z;if(O){if(!P){var Q=O.length;Z=I===0?O[G?Q-1:0][1]:I===1?O[G?0:Q-1][1]:O[Math.floor((Q-1)/2)][1]}}else{var X=q.vertexcolor||q.facecolor||q.color;Z=$a.isArrayOrTypedArray(X)?X[I]||X[0]:X}B.attr("d",H[0]),Z?B.call(ti.fill,Z):B.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((P5e,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(),tne=Q3(),j0=Wf(),$0=1,ane=/^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(ane)&&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 M=Qt.ensureSingle(g,"g","scrollbox"),T=t.title;t._titleWidth=0,t._titleHeight=0;var b;T.text?(b=Qt.ensureSingle(M,"text",n+"titletext"),b.attr("text-anchor","start").call(ea.font,T.font).text(T.text),Y1(b,M,e,t,$0),!o&&(t.titleclick||t.titledoubleclick)&&one(M,e,t,n)):(M.selectAll("."+n+"titletext").remove(),M.selectAll("."+n+"titletoggle").remove());var w=Qt.ensureSingle(g,"rect","scrollbar",function(L){L.attr(qt.scrollBarEnterAttrs).call(Zf.fill,qt.scrollBarColor)}),S=M.selectAll("g.groups").data(s);S.enter().append("g").attr("class","groups"),S.exit().remove();var k=S.selectAll("g.traces").data(Qt.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(L){let q=L[0],P=q.trace;if(q.groupTitle){let z=P.legendgroup,N=(a.shapes||[]).filter(function(I){return I.showlegend});return e._fullData.concat(N).some(function(I){return I.legendgroup===z&&(I.legend||"legend")===n&&I.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(ine,e,t)}).call(tne,e,t).each(function(L){o||L[0].groupTitle&&t.groupclick==="toggleitem"||un.select(this).call(lne,e,n)}),Qt.syncOrAsync([r5.previousPromises,function(){return fne(e,S,k,t,M)},function(){var L=a._size,q=t.borderwidth,P=t.xref==="paper",z=t.yref==="paper";if(T.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 I=cne(e,n,N,H);if(I)return;if(a.margin.autoexpand){var B=N,Y=H;N=P?Qt.constrain(N,0,a.width-t._width):B,H=z?Qt.constrain(H,0,a.height-t._effHeight):Y,N!==B&&Qt.log("Constrain "+n+".x to make legend fit inside graph"),H!==Y&&Qt.log("Constrain "+n+".y to make legend fit inside graph")}ea.setTranslate(g,N,H)}if(w.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(M,0,0),y.select("rect").attr({width:t._width-2*q,height:O-2*q,x:q,y:q}),ea.setClipUrl(M,i,e),ea.setRect(w,0,0,0,0),delete t._scrollY}else{var G=Math.max(qt.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),W=t._effHeight-G-2*qt.scrollBarMargin,Z=t._height-t._effHeight,X=W/Z,Q=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+Q}),ea.setClipUrl(M,i,e),ce(Q,G,X),g.on("wheel",function(){Q=Qt.constrain(t._scrollY+un.event.deltaY/Z*W,0,Z),ce(Q,G,X),Q!==0&&Q!==Z&&un.event.preventDefault()});var ie,pe,ve,j=function(De,Te,Ae){var ke=(Ae-Te)/X+De;return Qt.constrain(ke,0,Z)},we=function(De,Te,Ae){var ke=(Te-Ae)/X+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=Q}).on("drag",function(){var De=un.event.sourceEvent;De.buttons===2||De.ctrlKey||(De.type==="touchmove"?pe=De.changedTouches[0].clientY:pe=De.clientY,Q=j(ve,ie,pe),ce(Q,G,X))});w.call(le);var Se=un.behavior.drag().on("dragstart",function(){var De=un.event.sourceEvent;De.type==="touchstart"&&(ie=De.changedTouches[0].clientY,ve=Q)}).on("drag",function(){var De=un.event.sourceEvent;De.type==="touchmove"&&(pe=De.changedTouches[0].clientY,Q=we(ve,ie,pe),ce(Q,G,X))});M.call(Se)}function ce(De,Te,Ae){t._scrollY=e._fullLayout[n]._scrollY=De,ea.setTranslate(M,0,-De),ea.setRect(w,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!==w.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 ine(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 lne(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 one(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(){sne(r,t,a,n)})}function sne(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),M=y.node();if(d=c*x,h=M?ea.bBox(M).width:0,a===$0)t.title.side==="left"&&(h+=qt.itemGap*2),kl.positionText(y,u+qt.titlePad,u+c);else{var T=qt.itemGap*2+t.indentation+t.itemwidth;n.groupTitle&&(T=qt.itemGap,h-=t.indentation+t.itemwidth),kl.positionText(y,T,-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 une(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 fne(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",M=a.y>1||a.y===1&&y==="bottom",T=a.tracegroupgap,b={};let{orientation:w,yref:S}=a,{maxheight:k}=a,L=x||M||w!=="v"||S!=="paper";k||(k=L?.5:1);let q=L?i.height:o.h;a._maxHeight=Math.max(k>1?k:k*q,30);var P=0;a._width=0,a._height=0;var z=une(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",I=a.x>1||a.x===1&&N==="left",B=M||x,Y=i.width/2;a._maxWidth=Math.max(H?B&&N==="left"?o.l+o.w:Y:I?B&&N==="right"?o.r+o.w:Y:o.w,2*p);var O=0,G=0;t.each(function(De){var Te=O1(De,a,p);O=Math.max(O,Te),G+=Te}),P=null;var W=0;if(u){var Z=0,X=0,Q=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;X>0&&Ae+c+X>a._maxWidth?(W=Math.max(W,X),X=0,Q+=Z+T,Z=Te):Z=Math.max(Z,Te),ea.setTranslate(this,X,Q),X+=Ae}),a._width=Math.max(W,X)+c,a._height=Q+Z+g}else{var ie=t.size(),pe=G+d+(ie-1)*h=a._maxWidth&&(W=Math.max(W,le),j=0,we+=ve,a._height+=ve,ve=0),ea.setTranslate(this,z[0]+c+j,z[1]+c+we+Te/2+h),le=j+Ae+h,j+=ke,ve=Math.max(ve,Te)}),pe?(a._width=j+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()&&nne(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 cne(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(),vne=Et.pushUnique,n5=Et.strTranslate,dne=Et.strRotate,hne=kf(),Dt=La(),pne=RC(),ol=ot(),ia=Nr(),X1=Li(),qi=Mt(),mne=(_a(),Xe(xa)).zindexSeparator,Ts=kr(),Bn=Si(),As=(ju(),Xe(Ku)),gne=U3(),yne=a5(),gS=As.YANGLE,l5=Math.PI*gS/180,bne=1/Math.sin(l5),xne=Math.cos(l5),_ne=Math.sin(l5),Tt=As.HOVERARROWSIZE,Gr=As.HOVERTEXTPAD,sS={box:!0,ohlc:!0,violin:!0,candlestick:!0},wne={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(){Tne(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=_S(n),l=wS(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,M=p._y1||p.y1||p.y||0,T=p.eventData;if(T){var b=Math.min(g,y),w=Math.max(g,y),S=Math.min(x,M),k=Math.max(x,M),L=p.trace;if(Ts.traceIs(L,"gl3d")){var q=n._fullLayout[L.scene]._scene.container,P=q.offsetLeft,z=q.offsetTop;b+=P,w+=P,S+=z,k+=z}T.bbox={x0:b+l,x1:w+l,y0:S+i,y1:k+i},T.xPixel=(g+y)/2,T.yPixel=(x+M)/2,t.inOut_bbox&&t.inOut_bbox.push(T.bbox)}else T=!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:T}}),s=!1,u=bS(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,M){return x.y0-M.y0}).each(function(x,M){var T=x.y0-x.by/2;T-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?G=Bn.flat(i,r.yval):G=Bn.p2c(q,Te),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!Cl(O[0])||!Cl(G[0]))return Et.warn("Fx.hover failed",r,e),X1.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=O,e._hoverYVals=G,e._hoverXAxes=L,e._hoverYAxes=q);var Re=1/0;function Me(ir,tt){for(Z=0;ZSe&&(B.splice(0,Se),Re=B[0].distance),Ts.traceIs(Q,"ternary")&&I!==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:I,index:!1}),Sa=Q._module.hoverPoints(Fo,j,we,"closest");Ca=Sa&&Sa[0]}let Hl=de[ie];Ca&&Ca.index!==void 0&&Ca.index!==!1&&Ca.spikeDistance<=I&&(!Hl||Ca.spikeDistancevt.spikeDistance)&&(ce.vLinePoint=vt))}var Vi=at.filter(function(aa){return aa.ya.showspikes&&aa.ya.spikesnap!=="hovered data"});if(Vi.length){var Xn=Vi[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(),I!==0)for(let ir=0;irCt.trace.subplot===tt&&Ct.index!==void 0&&Ct.index!==!1&&Ct.spikeDistance<=I);Wr.drawSpikelines(ct,de[tt],O&&O[ir],G&&G[ir])}}}function $e(ir,tt,Wr){for(var ct=null,Ct=1/0,ka,at=0;atir.trace.index===Ne.trace.index):B=[Ne];var Ze=B.length,Ke=mS("x",Ne,o),_r=mS("y",Ne,o);Me(Ke,_r);var xr=[],qe={},Je=0,Ee=function(ir){var tt=sS[ir.trace.type]?yS(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(B[je]);B=xr,re()}var dr=e._hoverdata,hr=[],pr=_S(e),te=wS(e);for(let ir of B){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"&&(Y.length>1||B.length>1)||h==="closest"&&Ce&&B.length>1,Yt=ia.combine(o.plot_bgcolor||ia.background,o.paper_bgcolor),Wt=bS(B,{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);pne(Sl.select(n),Va?"pointer":"")}var ta=Sne(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,G),xPixel:r.pointerX,yPixel:r.pointerY})}}function yS(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 Ane=/([\s\S]*)<\/extra>/;function i5(e,r){return W1(e,Dt.getMathOrTextNode(r))}function bS(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,M=r.fontShadow||a.font.shadow,T=e[0],b=T.xa,w=T.ya,S=n.charAt(0),k=S+"Label",L=T[k];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;w.side==="right"?(he="start",Pe=1,He="",je=b._offset+b._length):(he="end",Pe=-1,He="-",je=b._offset),dr=w._offset+(T.y0+T.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),w.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"+w._id,Rt;if(jeme.hoverinfo!=="none");if(ne.length===0)return[];var X=a.hoverlabel,Q=X.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,j={showlegend:!0,legend:{title:{text:ve,font:Q},font:Q,bgcolor:X.bgcolor,bordercolor:X.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},we={font:Q};gne(j,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?dne(gS):""))}}),{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=pS(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(Ane,(p,g)=>(l=pS(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(Y){return Y*t._invScaleX},y=function(Y){return Y*t._invScaleY};e.each(function(Y){var O=Y[n],G=Y[i],W=O._id.charAt(0)==="x",Z=O.range;f===0&&Z&&Z[0]>Z[1]!==W&&(o=-1);var X=0,Q=W?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var ie=xS(Y,r),pe=Y.anchor,ve=pe==="end"?-1:1,j,we;if(pe==="middle")j=Y.crossPos+(W?y(ie.y-Y.by/2):g(Y.bx/2+Y.tx2width/2)),we=j+(W?y(Y.by):g(Y.bx));else if(W)j=Y.crossPos+y(Tt+ie.y)-y(Y.by/2-Tt),we=j+y(Y.by);else{var le=g(ve*Tt+ie.x),Se=le+g(ve*Y.bx);j=Y.crossPos+Math.min(le,Se),we=Y.crossPos+Math.max(le,Se)}W?h!==void 0&&p!==void 0&&Math.min(we,p)-Math.max(j,h)>1&&(G.side==="left"?(X=G._mainLinePosition,Q=t.width):Q=G._mainLinePosition):c!==void 0&&d!==void 0&&Math.min(we,d)-Math.max(j,c)>1&&(G.side==="top"?(X=G._mainLinePosition,Q=t.height):Q=G._mainLinePosition)}u[f++]=[{datum:Y,traceIndex:Y.trace.index,dp:0,pos:Y.pos,posref:Y.posref,size:Y.by*(W?bne:1)/2,pmin:X,pmax:Q}]}),u.sort(function(Y,O){return Y[0].posref-O[0].posref||o*(O[0].traceIndex-Y[0].traceIndex)});var x,M,T,b,w,S,k;function L(Y){var O=Y[0],G=Y[Y.length-1];if(M=O.pmin-O.pos-O.dp+O.size,T=G.pos+G.dp+G.size-O.pmax,M>.01){for(w=Y.length-1;w>=0;w--)Y[w].dp+=M;x=!1}if(!(T<.01)){if(M<-.01){for(w=Y.length-1;w>=0;w--)Y[w].dp-=T;x=!1}if(x){var W=0;for(b=0;bO.pmax&&W++;for(b=Y.length-1;b>=0&&!(W<=0);b--)S=Y[b],S.pos>O.pmax-1&&(S.del=!0,W--);for(b=0;b=0;w--)Y[w].dp-=T;for(b=Y.length-1;b>=0&&!(W<=0);b--)S=Y[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(w=P.length-1;w>=0;w--)P[w].dp+=M;for(q.push.apply(q,P),u.splice(b+1,1),k=0,w=q.length-1;w>=0;w--)k+=q[w].dp;for(T=k/q.length,w=q.length-1;w>=0;w--)q[w].dp-=T;x=!1}else b++}u.forEach(L)}for(b=u.length-1;b>=0;b--){var H=u[b];for(w=H.length-1;w>=0;w--){var I=H[w],B=I.datum;B.offset=I.dp,B.del=I.del}}}function xS(e,r){var t=0,a=e.offset;return r&&(a*=-_ne,t=e.offset*xne),{x:t,y:a}}function kne(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=kne(l),d=xS(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 M=h+c.textShiftX,T=p+l.ty0-l.by/2+Gr,b=l.textAlign||"auto";b!=="auto"&&(b==="left"&&u!=="start"?(s.attr("text-anchor","start"),M=g?-l.bx/2-l.tx2width/2+Gr:-l.bx-Gr):b==="right"&&u!=="end"&&(s.attr("text-anchor","end"),M=g?l.bx/2-l.tx2width/2-Gr:l.bx+Gr)),s.call(Dt.positionText,n(M),i(T)),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(ol.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 Cne(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:qi.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:qi.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=qi.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+qi.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=qi.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+qi.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){let a=r._id.charAt(0)==="y",n=1/0,i=-1/0;for(let l of r._counterAxes||[]){let o=qi.getFromId(e,l);if(!o)continue;let s=o._padStart||0,u=o._padEnd||0;a?(n=Math.min(n,t.l+o.domain[0]*t.w+s),i=Math.max(i,t.l+o.domain[1]*t.w-u)):(n=Math.min(n,t.t+(1-o.domain[1])*t.h+s),i=Math.max(i,t.t+(1-o.domain[0])*t.h-u))}if(r.anchor==="free"){let l=a?t.l+r.position*t.w:t.t+(1-r.position)*t.h;n=Math.min(n,l),i=Math.max(i,l)}return[n,i]}function dS(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,M=f.spikethickness,T=f.spikecolor||y,b=qi.getPxPosition(e,f),w,S;if(x.indexOf("toaxis")!==-1||x.indexOf("across")!==-1){if(x.indexOf("toaxis")!==-1&&(w=b,S=h),x.indexOf("across")!==-1){let G=vS(e,f,i);w=G[0],S=G[1]}a.insert("line",":first-child").attr({x1:w,x2:S,y1:p,y2:p,"stroke-width":M,stroke:T,"stroke-dasharray":ol.dashStyle(f.spikedash,M)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:w,x2:S,y1:p,y2:p,"stroke-width":M+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}x.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:b+(f.side!=="right"?M:-M),cy:p,r:M,fill:T}).classed("spikeline",!0)}if(s){var k=r.vLinePoint,L,q;u=k&&k.xa,f=k&&k.ya;var P=u.spikesnap;P==="cursor"?(L=l.pointerX,q=l.pointerY):(L=u._offset+k.x,q=f._offset+k.y);var z=ia.wcagContrast(k.color,c)<1.5?ia.contrast(c):k.color,N=u.spikemode,H=u.spikethickness,I=u.spikecolor||z,B=qi.getPxPosition(e,u),Y,O;if(N.indexOf("toaxis")!==-1||N.indexOf("across")!==-1){if(N.indexOf("toaxis")!==-1&&(Y=B,O=q),N.indexOf("across")!==-1){let G=vS(e,u,i);Y=G[0],O=G[1]}a.insert("line",":first-child").attr({x1:L,x2:L,y1:Y,y2:O,"stroke-width":H,stroke:I,"stroke-dasharray":ol.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:L,x2:L,y1:Y,y2:O,"stroke-width":H+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}N.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:L,cy:B-(u.side!=="top"?H:-H),r:H,fill:I}).classed("spikeline",!0)}}}function Sne(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 hS(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function pS(e,r){return Dt.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Dne(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,wS=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((z5e,MS)=>{"use strict";var Lne=Fe(),qne=Nr(),Ene=Si().isUnifiedHover;MS.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&&Ene(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=qne.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),Lne.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var AS=J((F5e,TS)=>{"use strict";var Pne=Fe(),Rne=J1(),zne=v0();TS.exports=function(r,t){function a(n,i){return Pne.coerce(r,t,zne,n,i)}Rne(r,t,a)}});var SS=J((N5e,CS)=>{"use strict";var kS=Fe(),Fne=Uv(),Nne=J1();CS.exports=function(r,t,a,n){function i(o,s){return kS.coerce(r,t,Fne,o,s)}var l=kS.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),Nne(r,t,i,l)}});var u5=J((I5e,DS)=>{"use strict";var Ine=Fe(),Bne=v0();DS.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Ine.coerce(r,t,Bne,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var ES=J((B5e,qS)=>{"use strict";var LS=Fe(),Hne=v0(),One=u5(),Yne=J1();qS.exports=function(r,t){function a(u,f){return LS.coerce(r,t,Hne,u,f)}var n=One(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"),Yne(r,t,a),LS.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var zS=J((H5e,RS)=>{"use strict";var f5=Fe(),PS=kr();RS.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 Gne=kr(),FS=Si(),Vne=s5().hover;NS.exports=function(r,t,a){var n=Gne.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Vne(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&&FS.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=o.yvals)!=null||(o.yvals=r._hoverYVals&&FS.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 Ei=J((Y5e,OS)=>{"use strict";var Xne=Or(),$1=Fe(),Wne=Li(),Jf=Si(),BS=v0(),HS=s5();OS.exports={moduleType:"component",name:"fx",constants:(ju(),Xe(Ku)),schema:{layout:BS},attributes:Uv(),layoutAttributes:BS,supplyLayoutGlobalDefaults:AS(),supplyDefaults:SS(),supplyLayoutDefaults:ES(),calc:zS(),getDistanceFunction:Jf.getDistanceFunction,getClosest:Jf.getClosest,inbox:Jf.inbox,quadrature:Jf.quadrature,appendArrayPointValue:Jf.appendArrayPointValue,castHoverOption:Jne,castHoverinfo:$ne,hover:HS.hover,unhover:Wne.unhover,loneHover:HS.loneHover,loneUnhover:Zne,click:IS()};function Zne(e){var r=$1.isD3Selection(e)?e:Xne.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Jne(e,r,t){return $1.castOption(e,r,"hoverlabel."+t)}function $ne(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((G5e,YS)=>{"use strict";YS.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((V5e,US)=>{"use strict";US.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:()=>Kne,SQRT2:()=>nie,cos45:()=>tie,i000:()=>jne,i090:()=>Qne,i180:()=>eie,i270:()=>rie,sin45:()=>aie});var Kne,jne,Qne,eie,rie,tie,aie,nie,ed=Ft(()=>{"use strict";Kne=32,jne=0,Qne=8,eie=16,rie=24,tie=Math.cos(Math.PI/4),aie=Math.sin(Math.PI/4),nie=Math.sqrt(2)});var rd=J((X5e,VS)=>{"use strict";var iie=Fe().strTranslate;function GS(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 lie(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 oie(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return GS(e,t[r])}}function sie(e){return iie(e.xaxis._offset,e.yaxis._offset)}VS.exports={p2r:GS,r2p:lie,axValue:oie,getTransform:sie}});var po=J(Ll=>{"use strict";var uie=$y(),ZS=(ed(),Xe(Q1)),eu=ZS.CIRCLE_SIDES,c5=ZS.SQRT2,JS=rd(),XS=JS.p2r,WS=JS.r2p,fie=[0,3,4,5,6,1,2],cie=[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 $S=ha(),rD=Q0(),vie=rD.drawMode,die=rD.openMode,ru=(ed(),Xe(Q1)),KS=ru.i000,jS=ru.i090,QS=ru.i180,eD=ru.i270,hie=ru.cos45,pie=ru.sin45,tD=rd(),ad=tD.p2r,mo=tD.r2p,mie=no(),gie=mie.clearOutline,nd=po(),yie=nd.readPaths,bie=nd.writePaths,xie=nd.ellipseOver,_ie=nd.fixDatesForPaths;function wie(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(!vie(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var Mie=Q0(),Tie=Mie.selectMode,Aie=no(),kie=Aie.clearOutline,v5=po(),Cie=v5.readPaths,Sie=v5.writePaths,Die=v5.fixDatesForPaths;iD.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(!Tie(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(hRie,paramIsX:()=>Eie,paramIsY:()=>Pie,paramRE:()=>qie,segmentRE:()=>Lie});var Lie,qie,Eie,Pie,Rie,jf=Ft(()=>{"use strict";Lie=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,qie=/[^\s,]+/g,Eie={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:{}},Pie={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:{}},Rie={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)),lD=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 M(P,z,N,H){var I;if(P)if(z==="domain")H?I=function(B){return P._offset+P._length*(1-B)}:I=function(B){return P._offset+P._length*B};else{let B=qa.shapePositionToRange(P);I=function(Y){return P._offset+P.r2p(B(Y,!0))},N==="path"&&P.type==="date"&&(I=qa.decodeDate(I))}else H?I=function(B){return i.t+i.h*(1-B)}:I=function(B){return i.l+i.w*B};return I}if(a==="array"?(d=[],l=r.xref.map(function(P){return go.getFromId(e,P)}),d=r.xref.map(function(P,z){return M(l[z],go.getRefType(P),t,!1)})):(l=go.getFromId(e,r.xref),d=M(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 M(o[z],go.getRefType(P),t,!0)})):(o=go.getFromId(e,r.yref),h=M(o,n,t,!0)),t==="path")return zie(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 T=(p+g)/2,b=(y+x)/2,w=Math.abs(T-p),S=Math.abs(b-y),k="A"+w+","+S,L=T+w+","+b,q=T+","+(b-S);return"M"+L+k+" 0 1,1 "+q+k+" 0 0,1 "+L+"Z"};function zie(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 M=g.drawn!==void 0,T=y.drawn!==void 0,b=s?r[f]:r,w=u?t[c]:t;var S=d.slice(1).replace(ul.paramRE,function(k){return g[h]?n==="pixel"?k=b(l)+Number(k):k=b(k):y[h]&&(i==="pixel"?k=w(o)-Number(k):k=w(k)),h++,h>x&&(k="X"),k});return h>x&&(S=S.replace(/[\s,]*X.*/,""),lD.log("Ignoring extra params in segment "+d)),M&&f++,T&&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((K5e,uD)=>{"use strict";var Fie=Fe(),fl=Mt(),oD=La(),sD=ot(),Nie=po().readPaths,ks=yo(),Iie=ks.getPathString,Qf=T2(),Bie=(Ja(),Xe(Za)).FROM_TL;uD.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 X=Array.isArray(a.xref),Q=Array.isArray(a.yref);for(var u in Qf){var f=typeof Qf[u]=="function",c=!X||Qf.simpleXVariables.includes(u),d=!Q||Qf.simpleYVariables.includes(u);if(f&&c&&d){var h=Qf[u](a,o,s);h!==void 0&&(l[u]=h)}}}i=Fie.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),M=x.append("text").attr(y).classed("shape-label-text",!0).text(i),T,b,w,S;if(a.path){var k=Iie(r,a),L=Nie(k,r);T=1/0,w=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);T=Ie+a.x0+_e,b=Ie+a.x1+De}else T=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);w=Ie-a.y0+_e,S=Ie-a.y1+De}else w=Ce(a.y0,a.y0shift,ve,Se),S=Ce(a.y1,a.y1shift,j,ce)}var B=a.label.textangle;B==="auto"&&(a.type==="line"?B=Hie(T,w,b,S):B=0),M.call(function(X){return X.call(sD.font,g).attr({}),oD.convertToTspans(X,r),X});var Y=sD.bBox(M.node()),O=Oie(T,w,b,S,a,B,Y),G=O.textx,W=O.texty,Z=O.xanchor;M.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Z],y:W,x:G,transform:"rotate("+B+","+G+","+W+")"}).call(oD.positionText,G,W)}};function Hie(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 Oie(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,M,T;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 Yie=Fe(),Uie=Yie.strTranslate,fD=Li(),dD=Q0(),Gie=dD.drawMode,hD=dD.selectMode,pD=kr(),cD=Nr(),od=(ed(),Xe(Q1)),Vie=od.i000,Xie=od.i090,Wie=od.i180,Zie=od.i270,Jie=no(),mD=Jie.clearOutlineControllers,m5=po(),ld=m5.pointsOnRectangle,p5=m5.pointsOnEllipse,$ie=m5.writePaths,Kie=id().newShapes,jie=id().createShapeObj,Qie=d5(),ele=h5();gD.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 G={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,G=Kie(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,G=Qie(t,a),i._fullLayout._reselect=!0),Object.keys(G).length&&pD.call((O||{}).redrawing?"relayout":"_guiRelayout",i,G)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Gie(f),d=hD(f);(c||d)&&(i._fullLayout._outlining=!0),mD(i),t.attr("d",$ie(r));var h,p,g,y,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=rle([],r);var M=u.append("g").attr("class","outline-controllers");P(M),Y()}if(c&&a.hasText){var T=u.select(".label-temp"),b=jie(t,a,a.dragmode);ele(i,"label-temp",b,T)}function w(O){g=+O.srcElement.getAttribute("data-i"),y=+O.srcElement.getAttribute("data-j"),h[g][y].moveFn=S}function S(O,G){if(r.length){var W=x[g][y][1],Z=x[g][y][2],X=r[g],Q=X.length;if(ld(X)){var ie=O,pe=G;if(a.isActiveSelection){var ve=vD(X,y);ve[1]===X[y][1]?pe=0:ie=0}for(var j=0;j1&&!(O.length===2&&O[1][0]==="Z")&&(y===0&&(O[0][0]="M"),r[g]=O,l(),o())}}function q(O,G){if(O===2){g=+G.srcElement.getAttribute("data-i"),y=+G.srcElement.getAttribute("data-j");var W=r[g];!ld(W)&&!p5(W)&&L()}}function P(O){h=[];for(var G=0;G{"use strict";var ale=Or(),MD=kr(),y5=Fe(),Cs=Mt(),nle=po().readPaths,ile=sd(),fd=h5(),TD=no().clearOutlineControllers,g5=Nr(),cd=ot(),lle=yt().arrayEditor,yD=Li(),bD=Ei(),xD=vo(),Ss=(jf(),Xe(Kf)),kn=yo(),b5=kn.getPathString;CD.exports={draw:x5,drawOne:AD,eraseActiveShape:cle,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&&bD.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&bD.click(e,l,t.id)}})}function kD(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=sle(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 sle(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 ule(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,M,T,b,w,S,k,L,q,P,z,N=ale.select(r.node().parentNode),H=Cs.getFromId(e,t.xref),I=Cs.getRefType(t.xref),B=Cs.getFromId(e,t.yref),Y=Cs.getRefType(t.yref),O=t.x0shift,G=t.x1shift,W=t.y0shift,Z=t.y1shift,X=function(Re,Me){var Ue=kn.getDataToPixel(e,H,Me,!1,I);return Ue(Re)},Q=function(Re,Me){var Ue=kn.getDataToPixel(e,B,Me,!0,Y);return Ue(Re)},ie=kn.getPixelToData(e,H,!1,I),pe=kn.getPixelToData(e,B,!0,Y),ve=le(),j={element:ve.node(),gd:e,prepFn:de,doneFn:Ce,clickFn:Ie},we;yD.init(j),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?X(t.xanchor)+t.x0:X(t.x0,O),cy:u?Q(t.yanchor)-t.y0:Q(t.y0,W),r:Qe}).style($e).classed("cursor-grab",!0),Ue.append("circle").attr({"data-line-point":"end-point",cx:s?X(t.xanchor)+t.x1:X(t.x1,G),cy:u?Q(t.yanchor)-t.y1:Q(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=j.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?yD.getCursor(Qe/Ue,1-Le/$e):"move";xD(r,Be),we=Be.split("-")[0]}}function de(Re){ud(e)||(s&&(x=X(t.xanchor)),u&&(M=Q(t.yanchor)),t.type==="path"?z=t.path:(h=s?t.x0:X(t.x0),p=u?t.y0:Q(t.y0),g=s?t.x1:X(t.x1),y=u?t.y1:Q(t.y1)),hy?(T=p,k="y0",b=y,L="y1"):(T=y,k="y1",b=p,L="y0"),ce(Re),Te(n,t),ke(r,t,e),j.moveFn=we==="move"?_e:De,j.altKey=Re.altKey)}function Ce(){ud(e)||(xD(r),Ae(n),kD(r,e,t),MD.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(X(Be)+Re)},H&&H.type==="date"&&($e=kn.encodeDate($e))),u?d("yanchor",t.yanchor=pe(M+Me)):(Qe=function(Be){return pe(Q(Be)+Me)},B&&B.type==="date"&&(Qe=kn.encodeDate(Qe))),d("path",t.path=_D(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(M+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(X(Ke)+Re)},H&&H.type==="date"&&($e=kn.encodeDate($e))),u?d("yanchor",t.yanchor=pe(M+Me)):(Qe=function(Ke){return pe(Q(Ke)+Me)},B&&B.type==="date"&&(Qe=kn.encodeDate(Qe))),d("path",t.path=_D(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?T+Me:T,ze=cr?b+Me:b,Ve=mr?w+Re:w,Ne=ne?S+Re:S;u&&(Ge&&(me=T-Me),cr&&(ze=b-Me)),(!u&&ze-me>o||u&&me-ze>o)&&(d(k,t[k]=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=X(s?Me.xanchor:y5.midRange($e?[Me.x0,Me.x1]:kn.extractPathCoords(Me.path,Ss.paramIsX))),tr=Q(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 _D(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 fle(e,r){if(vd(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){wD(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=wD,x5(e)}}}function wD(e){if(vd(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(TD(e),delete e._fullLayout._activeShapeIndex,x5(e))}}function cle(e){if(vd(e)){TD(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var tu=Fe()._,vle=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")}};SD.exports=vle});var ED=J((rbe,qD)=>{"use strict";var LD=Or(),{dfltConfig:dle}=Xl(),hle=DD(),ple=(e,r,t,a,n)=>{let i=hle(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===dle.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)},mle=(e,r,t)=>{let a=LD.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",()=>{LD.event.target===n.node()&&i()}),ple(e,n,r,()=>{i(),t()},i)};qD.exports=mle});var M5=J((tbe,BD)=>{"use strict";var Hn=kr(),gle=na(),RD=ha(),jr=j1(),yle=dd().eraseActiveShape,ble=ED(),au=Fe(),Vr=au._,Kr={};BD.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}ble(e,r,function(){gle.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:yle};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=RD.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,M=(o=u.projection.maxscale)!=null?o:1/0,T=Math.min(x,M),b=Math.max(x,M),w=n==="in"?PD*d:1/PD*d;w>b?w=b:w{"use strict";var HD=M5(),Mle=Object.keys(HD),OD=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],YD=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(OD,["downloadJson"]),nu=[],Tle=function(e){if(YD.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)}};Mle.forEach(function(e){Tle(HD[e])});nu.sort();UD.exports={DRAW_MODES:OD,backButtons:YD,foreButtons:nu}});var k5={};Nt(k5,{default:()=>kle});var A5,Ale,kle,C5=Ft(()=>{"use strict";A5=Q6(T5()),Ale={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(" ")}},kle=Ale});var VD=J((nbe,GD)=>{"use strict";var Cle=Fe(),ec=Nr(),Sle=yt(),Dle=(C5(),Xe(k5)).default;GD.exports=function(r,t){var a=r.modebar||{},n=Sle.newContainer(t,"modebar");function i(o,s){return Cle.coerce(a,n,Dle,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 JD=J((ibe,ZD)=>{"use strict";var S5=Or(),Lle=Zr(),md=Fe(),XD=j1(),qle=Xu().version,Ele=new DOMParser;function WD(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var cl=WD.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||XD.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};cl.createIcon=function(e){var r=Lle(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=Ele.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 zle=ha(),$D=Rn(),D5=kr(),Fle=Si().isUnifiedHover,Nle=JD(),gd=M5(),Ile=T5().DRAW_MODES,Ble=Fe().extendDeep;KD.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=Vle(i):!a.displayModeBar&&a.watermark?l=[]:l=Hle(r),n?n.update(r,l):t._modeBar=Nle(r,l)};function Hle(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(G,W){if(typeof W=="string"){if(W.toLowerCase()===G.toLowerCase())return!0}else{var Z=W.name,X=W._cat||W.name;if(Z===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 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"]:M?(q=["hoverClosestCartesian","hoverCompareCartesian"],P=["resetViewSankey"]):q=["toggleHover"],u&&q.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Ule(t)||b)&&(q=[]),u&&!T&&(L=["zoomIn2d","zoomOut2d","autoScale2d"],P[0]!=="resetViews"&&(P=["resetScale2d"])),f?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!T||p?z=["zoom2d","pan2d"]:g||c?z=["pan2d"]:y&&(z=["zoom2d"]),Yle(t)&&z.push("select2d","lasso2d");var N=[],H=function(G){N.indexOf(G)===-1&&q.indexOf(G)!==-1&&N.push(G)};if(Array.isArray(o)){for(var I=[],B=0;B{"use strict";QD.exports={moduleType:"component",name:"modebar",layoutAttributes:(C5(),Xe(k5)).default,supplyLayoutDefaults:VD(),manage:jD()}});var q5=J((sbe,eL)=>{"use strict";var Xle=(Ja(),Xe(Za)).FROM_BL;eL.exports=function(r,t,a){a===void 0&&(a=Xle[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(),Pi=ha().id2name,Wle=ki(),rL=q5(),Zle=g1(),Jle=(ca(),Xe(ga)).ALMOST_EQUAL,$le=(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;lJle*p&&!M)){for(i=0;iN&&ZP&&(P=Z);var Q=(P-q)/(2*z);c/=Q,q=s.l2r(q),P=s.l2r(P),s.range=s._input.range=S0){let s=a[1]-a[0],u=s-o;u>0&&(l=s/(u/r+o))}e.domain=e._input.domain=[i+(a[0]-i)/l,i+(a[1]-i)/l],e.setScale()}});var xd=J(Ma=>{"use strict";var bd=Or(),cn=kr(),On=na(),ai=Fe(),z5=La(),F5=K1(),ac=Nr(),iu=ot(),iL=zf(),fL=L5(),nc=Mt(),ql=(Ja(),Xe(Za)),cL=tc(),eoe=cL.enforce,roe=cL.clean,lL=Nf().doAutoRange,vL="start",toe="middle",dL="end",aoe=(_a(),Xe(xa)).zindexSeparator;Ma.layoutStyles=function(e){return ai.syncOrAsync([On.doAutoMargin,ioe],e)};function noe(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function ioe(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),fL.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){uoe(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:uL(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+iL.SUBTITLE_PADDING_EM*r.subtitle.font.size;d.attr({x:l,y:g,"text-anchor":a,dy:uL(r.yanchor)}).call(z5.positionText,l,g)}}}};function loe(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=ooe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function uoe(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"&&loe(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 foe(e,r){var t=e.title,a=e._size,n=0;return r===vL?n=t.pad.l:r===dL&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function coe(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 uL(e){return e==="top"?ql.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":ql.MID_SHIFT+"em"}function voe(e){var r=e.title,t=toe;return ai.isRightAnchor(r)?t=dL:ai.isLeftAnchor(r)&&(t=vL),t}function doe(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 hoe=po().readPaths,poe=sd(),hL=no().clearOutlineControllers,N5=Nr(),pL=ot(),moe=yt().arrayEditor,mL=yo(),goe=mL.getPathString;yL.exports={draw:_d,drawOne:gL,activateLastSelection:xoe};function _d(e){var r=e._fullLayout;hL(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(pL.dashLine,y?"solid":h,y?4+d:d);if(yoe(x,e,a),p){var M=moe(e.layout,"selections",a);x.style({cursor:"move"});var T={element:x.node(),plotinfo:n,gd:e,editHelpers:M,isActiveSelection:!0},b=hoe(o,e);poe(b,x,T)}else x.style("pointer-events",y?"all":"none");g[y]=x}var w=g[0],S=g[1];S.node().addEventListener("click",function(){return boe(e,w)})}}function yoe(e,r,t){var a=t.xref+t.yref;pL.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function boe(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 xoe(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&&(hL(e),delete e._fullLayout._activeSelectionIndex,_d(e))}}});var xL=J((vbe,bL)=>{function _oe(){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}bL.exports=_oe});var wL=J((dbe,_L)=>{function woe(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}_L.exports=woe});var TL=J((hbe,ML)=>{var Moe={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}};ML.exports=Moe});var kL=J((pbe,AL)=>{var ic=TL();function Toe(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,M,T){var b=r.pointsCompare(g,M);return b!==0?b:r.pointsSame(y,T)?0:p!==x?p?1:-1:r.pointAboveOrOnLine(y,x?M:T,x?T:M)?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(B,Y){var O=B.seg.start,G=B.seg.end,W=Y.seg.start,Z=Y.seg.end;return r.pointsCollinear(O,W,Z)?r.pointsCollinear(G,W,Z)||r.pointAboveOrOnLine(G,W,Z)?1:-1:r.pointAboveOrOnLine(O,W,Z)?1:-1}function M(B){return y.findTransition(function(Y){var O=x(B,Y.ev);return O>0})}function T(B,Y){var O=B.seg,G=Y.seg,W=O.start,Z=O.end,X=G.start,Q=G.end;t&&t.checkIntersection(O,G);var ie=r.linesIntersect(W,Z,X,Q);if(ie===!1){if(!r.pointsCollinear(W,Z,X)||r.pointsSame(W,Q)||r.pointsSame(Z,X))return!1;var pe=r.pointsSame(W,X),ve=r.pointsSame(Z,Q);if(pe&&ve)return Y;var j=!pe&&r.pointBetween(W,X,Q),we=!ve&&r.pointBetween(Z,X,Q);if(pe)return we?d(Y,Z):d(B,Q),Y;j&&(ve||(we?d(Y,Z):d(B,Q)),d(Y,W))}else ie.alongA===0&&(ie.alongB===-1?d(B,X):ie.alongB===0?d(B,ie.pt):ie.alongB===1&&d(B,Q)),ie.alongB===0&&(ie.alongA===-1?d(Y,W):ie.alongA===0?d(Y,ie.pt):ie.alongA===1&&d(Y,Z));return!1}for(var b=[];!i.isEmpty();){var w=i.getHead();if(t&&t.vert(w.pt[0]),w.isStart){let B=function(){if(k){var Y=T(w,k);if(Y)return Y}return L?T(w,L):!1};var I=B;t&&t.segmentNew(w.seg,w.primary);var S=M(w),k=S.before?S.before.ev:null,L=S.after?S.after.ev:null;t&&t.tempStatus(w.seg,k?k.seg:!1,L?L.seg:!1);var q=B();if(q){if(e){var P;w.seg.myFill.below===null?P=!0:P=w.seg.myFill.above!==w.seg.myFill.below,P&&(q.seg.myFill.above=!q.seg.myFill.above)}else q.seg.otherFill=w.seg.myFill;t&&t.segmentUpdate(q.seg),w.other.remove(),w.remove()}if(i.getHead()!==w){t&&t.rewind(w.seg);continue}if(e){var P;w.seg.myFill.below===null?P=!0:P=w.seg.myFill.above!==w.seg.myFill.below,L?w.seg.myFill.below=L.seg.myFill.above:w.seg.myFill.below=p,P?w.seg.myFill.above=!w.seg.myFill.below:w.seg.myFill.above=w.seg.myFill.below}else if(w.seg.otherFill===null){var z;L?w.primary===L.primary?z=L.seg.otherFill.above:z=L.seg.myFill.above:z=w.primary?g:p,w.seg.otherFill={above:z,below:z}}t&&t.status(w.seg,k?k.seg:!1,L?L.seg:!1),w.other.status=S.insert(ic.node({ev:w}))}else{var N=w.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(),!w.primary){var H=w.seg.myFill;w.seg.myFill=w.seg.otherFill,w.seg.otherFill=H}b.push(w.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 Aoe(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(I,B,Y){return f.index=I,f.matches_head=B,f.matches_pt1=Y,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 koe={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)}};DL.exports=koe});var EL=J((ybe,qL)=>{var Coe={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 Soe=xL(),Doe=wL(),PL=kL(),Loe=SL(),oc=LL(),RL=EL(),ni=!1,sc=Doe(),Cn;Cn={buildLog:function(e){return e===!0?ni=Soe():e===!1&&(ni=!1),ni===!1?!1:ni.list},epsilon:function(e){return sc.epsilon(e)},segments:function(e){var r=PL(!0,sc,ni);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=PL(!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:Loe(e.segments,sc,ni),inverted:e.inverted}},polygonFromGeoJSON:function(e){return RL.toPolygon(Cn,e)},polygonToGeoJSON:function(e){return RL.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);zL.exports=Cn});var IL=J((xbe,NL)=>{NL.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((_be,BL)=>{"use strict";var H5=_2().dot,Md=(ca(),Xe(ga)).BADNUM,Td=BL.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 M=t.length,T=t[0][0],b=t[0][1],w=0,S,k,L,q,P;for(S=1;SMath.max(k,T)||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 HL={};Nt(HL,{BENDPX:()=>qoe,MINSELECT:()=>Eoe,SELECTDELAY:()=>Poe,SELECTID:()=>Roe});var qoe,Eoe,Poe,Roe,OL=Ft(()=>{"use strict";qoe=1.5,Eoe=12,Poe=100,Roe="-select"});var uq=J((wbe,sq)=>{"use strict";var YL=FL(),zoe=IL(),vc=kr(),Foe=ot().dashStyle,fc=Nr(),Noe=Ei(),Ioe=Si().makeEventData,gc=Q0(),Boe=gc.freeMode,Hoe=gc.rectMode,dc=gc.drawMode,V5=gc.openMode,X5=gc.selectMode,UL=yo(),GL=(jf(),Xe(Kf)),JL=sd(),$L=no().clearOutline,KL=po(),Y5=KL.handleEllipse,Ooe=KL.readPaths,Yoe=id().newShapes,Uoe=d5(),Goe=B5().activateLastSelection,kd=Fe(),Voe=kd.sorterAsc,jL=O5(),cc=P2(),ii=ha().getFromId,Xoe=K1(),Woe=xd().redrawReglTraces,Cd=(OL(),Xe(HL)),vl=Cd.MINSELECT,Zoe=jL.filter,W5=jL.tester,Z5=rd(),VL=Z5.p2r,Joe=Z5.axValue,$oe=Z5.getTransform;function J5(e){return e.subplot!==void 0}function Koe(e,r,t,a,n){var i=!J5(a),l=Boe(n),o=Hoe(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,M=a.element.getBoundingClientRect(),T=a.plotinfo,b=$oe(T),w=r-M.left,S=t-M.top;g._calcInverseTransform(p);var k=kd.apply3DTransform(g._invTransform)(w,S);w=k[0],S=k[1];var L=g._invScaleX,q=g._invScaleY,P=w,z=S,N="M"+w+","+S,H=a.xaxes[0],I=a.yaxes[0],B=H._length,Y=I._length,O=e.altKey&&!(dc(n)&&s),G,W,Z,X,Q,ie,pe;eq(e,p,a),l&&(G=Zoe([[w,S]],Cd.BENDPX));var ve=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 we=u&&!s?j.fillcolor:"rgba(0,0,0,0)",le=j.line.color||(i?fc.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ve.enter().append("path").attr("class","select-outline select-outline-"+T.id).style({opacity:u?j.opacity/2:1,"stroke-dasharray":Foe(j.line.dash,j.line.width),"stroke-width":j.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=I._id;iq(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(),Q=0;Q-1&&QL(Te,p,a.xaxes,a.yaxes,a.subplot,a,ve),Ae==="event"&&mc(p,void 0);Noe.click(p,Te,T.id)}).catch(kd.error)}},a.doneFn=function(){Se.remove(),cc.done(de).then(function(){cc.clear(de),!y&&X&&a.selectionDefs&&(X.subtract=O,a.selectionDefs.push(X),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 QL(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,M,T,b,w;if(tse(o)){eq(e,r,i),d=Sd(r,t,a,n);var S=ase(o,d),k=S.pointNumbers.length>0;if(k?nse(d,S):ise(d)&&(M=WL(S))){for(l&&l.remove(),w=0;w=0}function rse(e){return e._fullLayout._activeSelectionIndex>=0}function hc(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;ese(n)&&n._fullLayout._deactivateShape(n),rse(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=Yoe(u,e)),f&&vc.call("_guiRelayout",n,{shapes:f});var c;s&&!J5(e)&&(c=Uoe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,vc.call("_guiRelayout",n,{selections:c}).then(function(){r&&Goe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function XL(e){return e._id}function Sd(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(XL),l=t.map(XL),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function nse(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=ZL(e,!0);if(De.length){var Te=De[0].xref,Ae=De[0].yref;if(Te&&Ae){var ke=lq(De),Re=oq([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,sse(o,s,f)||iq(e,o,s,a),_e&&(Ce.points.length?mc(e,Ce):j5(e)),d._deselect=!1}return{eventData:Ce,selectionTesters:t}}function ose(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";fq.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:()=>dse});function dse(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((Abe,dq)=>{"use strict";var cq=Q5(),vq=Ia(),Dd=(_a(),Xe(xa)),hse=yt().templatedArray,Tbe=(bc(),Xe(yc));dq.exports=hse("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:vq({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:cq.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:cq.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:vq({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ld={};Nt(Ld,{PTS_LINESONLY:()=>pse,eventDataKeys:()=>bse,maxScreensAway:()=>yse,minTolerance:()=>mse,toleranceGrowth:()=>gse});var pse,mse,gse,yse,bse,qd=Ft(()=>{"use strict";pse=20,mse=.2,gse=10,yse=20,bse=[]});var pq=J((kbe,hq)=>{"use strict";hq.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ls=J((Cbe,Mq)=>{"use strict";var mq=Q2().axisHoverFormat,{hovertemplateAttrs:xse,texttemplateAttrs:_se,templatefallbackAttrs:gq}=rs(),yq=qf(),wse=Ia(),bq=Qi().dash,Mse=Qi().pattern,Tse=ot(),Ase=(qd(),Xe(Ld)),xc=va().extendFlat,kse=pq();function xq(e){return{valType:"any",dflt:0,editType:"calc"}}function _q(e){return{valType:"any",editType:"calc"}}function wq(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Mq.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:xq("x"),yperiod:xq("y"),xperiod0:_q("x0"),yperiod0:_q("y0"),xperiodalignment:wq("x"),yperiodalignment:wq("y"),xhoverformat:mq("x"),yhoverformat:mq("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:_se(),texttemplatefallback:gq({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:xse({},{keys:Ase.eventDataKeys}),hovertemplatefallback:gq(),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({},bq,{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:kse(!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:Mse,marker:xc({symbol:{valType:"enumerated",values:Tse.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({},bq,{arrayOk:!0}),editType:"calc"},yq("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"},yq("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:wse({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var eb=J((Dbe,kq)=>{"use strict";var Tq=lu(),Aq=Ls().line,Cse=Qi().dash,Ed=va().extendFlat,Sse=ji().overrideAll,Dse=yt().templatedArray,Sbe=(bc(),Xe(yc));kq.exports=Sse(Dse("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Ed({},Tq.xref,{}),yref:Ed({},Tq.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:Aq.color,width:Ed({},Aq.width,{min:1,dflt:1}),dash:Ed({},Cse,{dflt:"dot"})}}),"arraydraw","from-root")});var Lq=J((Lbe,Dq)=>{"use strict";var Cq=Fe(),Pd=Mt(),Lse=Ci(),qse=eb(),Sq=yo();Dq.exports=function(r,t){Lse(r,t,{name:"selections",handleItemDefaults:Ese});for(var a=t.selections,n=0;n{"use strict";qq.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((Ebe,zq)=>{"use strict";var Pse=kr(),Pq=Fe(),Rq=ha();zq.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=Pse.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 Fq=B5(),wc=uq();Nq.exports={moduleType:"component",name:"selections",layoutAttributes:eb(),supplyLayoutDefaults:Lq(),supplyDrawNewSelectionDefaults:Eq(),includeBasePlot:_c()("selections"),draw:Fq.draw,drawOne:Fq.drawOne,reselect:wc.reselect,prepSelect:wc.prepSelect,clearOutline:wc.clearOutline,clearSelectionsCache:wc.clearSelectionsCache,selectOnClick:wc.selectOnClick}});var aE=J((Rbe,tE)=>{"use strict";var lb=Or(),li=Fe(),Iq=li.numberFormat,Rse=F3(),Rd=kr(),Xq=li.strTranslate,zse=La(),tb=Nr(),xo=ot(),Fse=Ei(),Bq=Mt(),Nse=vo(),Ise=Li(),Wq=Q0(),zd=Wq.selectingOrDrawing,Bse=Wq.freeMode,Hse=(Ja(),Xe(Za)).FROM_TL,Ose=K1(),Yse=xd().redrawReglTraces,Use=na(),ab=ha().getFromId,Gse=ou().prepSelect,Vse=ou().clearOutline,Xse=ou().selectOnClick,rb=q5(),ob=(_a(),Xe(xa)),Hq=ob.MINDRAG,mn=ob.MINZOOM,Oq=!0;function Wse(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,M,T,b,w,S,k,L,q,P,z,N,H,I,B,Y,O;t+=r.yaxis._shift;function G(){if(c=r.xaxis,d=r.yaxis,T=c._length,b=d._length,x=c._offset,M=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&&Xse(me,ze,g,y,r.id,X),Ve.indexOf("event")>-1&&Fse.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=Zse(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(zse.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)})}}Ise.init(X);var pe,ve,j,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],j={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"+T+"V"+b+"H0V0",Se=!1,ce="xy",Ie=!1,de=$q(s,we,x,M,le),Ce=Kq(s,x,M)}function De(ne,me){if(e._transitioningWithDuration)return!1;var ze=Math.max(0,Math.min(T,Y*ne+pe)),Ve=Math.max(0,Math.min(b,O*me+ve)),Ne=Math.abs(ze-pe),Ze=Math.abs(Ve-ve);j.l=Math.min(pe,ze),j.r=Math.max(pe,ze),j.t=Math.min(ve,Ve),j.b=Math.max(ve,Ve);function Ke(){ce="",j.r=j.l,j.t=j.b,Ce.attr("d","M0,0Z")}if(w.isSubplotConstrained)Ne>mn||Ze>mn?(ce="xy",Ne/T>Ze/b?(Ze=Ne*b/T,ve>Ve?j.t=ve-Ze:j.b=ve+Ze):(Ne=Ze*T/b,pe>ze?j.l=pe-Ne:j.r=pe+Ne),Ce.attr("d",Fd(j))):Ke();else if(S.isSubplotConstrained)if(Ne>mn||Ze>mn){ce="xy";var _r=Math.min(j.l/T,(b-j.b)/b),xr=Math.max(j.r/T,(b-j.t)/b);j.l=_r*T,j.r=xr*T,j.b=(1-_r)*b,j.t=(1-xr)*b,Ce.attr("d",Fd(j))}else Ke();else!L||Ze0){var Je;if(S.isSubplotConstrained||!k&&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&&w.xaHash[ne._id]?me:z&&(w.isSubplotConstrained?w.xaHash:w.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)*Hse[ze||ne.constraintoward||"middle"]}return Z}function Zq(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(Nse,a),n.node()}function Jq(e,r,t,a,n,i,l){var o=Zq(e,"rect",r,t);return lb.select(o).call(xo.setRect,a,n,i,l),o}function Yq(e,r){for(var t=0;t=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function $se(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function $q(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",Xq(t,a)).attr("d",n+"Z")}function Kq(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",Xq(r,t)).attr("d","M0,0Z")}function jq(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"),Qq(e,r,n,i)}function Qq(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 eE(e){Oq&&e.data&&e._context.showTips&&(li.notifier(li._(e,"Double-click to zoom back out"),"long",e),Oq=!1)}function Kse(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 jse(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 Gq(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 Qse=Or(),Nd=Ei(),e0e=Li(),r0e=vo(),Ri=aE().makeDragBox,Ta=(_a(),Xe(xa)).DRAGGERSIZE;Id.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Qse.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=Ri(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,e0e.unhover(r,d))},r._context.showAxisDragHandles&&(Ri(r,l,o._offset-Ta,s._offset-Ta,Ta,Ta,"n","w"),Ri(r,l,o._offset+o._length,s._offset-Ta,Ta,Ta,"n","e"),Ri(r,l,o._offset-Ta,s._offset+s._length,Ta,Ta,"s","w"),Ri(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),Ri(r,l,o._offset+o._length*.1,f,o._length*.8,Ta,"","ew"),Ri(r,l,o._offset,f,o._length*.1,Ta,"","w"),Ri(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),Ri(r,l,c,s._offset+s._length*.1,Ta,s._length*.8,"ns",""),Ri(r,l,c,s._offset+s._length*.9,Ta,s._length*.1,"s",""),Ri(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";r0e(r._draggers,t)}});var lE=J((Fbe,iE)=>{"use strict";var nE=kr();iE.exports=function(r){for(var t=nE.layoutArrayContainers,a=nE.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var t0e=Uo(),ub=x2(),Mc=Wl(),a0e=Wg().sorterAsc,fb=kr();Tc.containerArrayMatch=lE();var n0e=Tc.isAddVal=function(r){return r==="add"||t0e(r)},oE=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(oE(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(a0e),g=t.get(),y=g||[],x=i(d,l).get(),M=[],T=-1,b=y.length,w,S,k,L,q,P,z,N;for(w=0;wy.length-(z?0:1)){Mc.warn("index out of range",l,k);continue}if(P!==void 0)q.length>1&&Mc.warn("Insertion & removal are incompatible with edits to the same index.",l,k),oE(P)?M.push(k):z?(P==="add"&&(P={}),y.splice(k,0,P),x&&x.splice(k,0,{})):Mc.warn("Unrecognized full object edit value",l,k,P),T===-1&&(T=k);else for(S=0;S=0;w--)y.splice(M[w],1),x&&x.splice(M[w],1);if(y.length?g||t.set(y):t.set(null),f)return!1;if(o(c,d),u!==ub){var H;if(T===-1)H=p;else{for(b=Math.max(y.length,b),H=[],w=0;w=T));w++)H.push(k);for(w=T;w{"use strict";var vE=Zr(),dE=kr(),vn=Fe(),Ac=na(),hE=ha(),kc=hE.cleanId,i0e=hE.getFromTrace,cb=dE.traceIs,l0e=["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=cE(r);t;){if(t in e)return!0;t=cE(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(),u0e=Zr(),f0e=sy(),nr=Fe(),pt=nr.nestedProperty,hb=kf(),gn=nT(),si=kr(),$d=z0(),Sr=na(),dn=Mt(),c0e=z3(),v0e=ki(),Od=ot(),d0e=Nr(),h0e=sb().initInteractions,p0e=(fs(),Xe(us)),m0e=ou().clearOutline,xE=Xl().dfltConfig,Hd=sE(),ra=pE(),st=xd(),_o=ji(),g0e=(_a(),Xe(xa)).AX_NAME_PATTERN,db=0,mE=5;function y0e(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)}wE(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)&&(Y0e(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,I=Math.abs(N-q)>1||Math.abs(H-P)>1;q=N,P=H,I&&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 x0e(e){return nr.extendFlat(xE,e)}function _E(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){nr.error(t)}}function _0e(e,r){var t=d0e.combine(r,"white");_E(e,t)}function wE(e,r){if(!e._context){e._context=nr.extendDeep({},xE);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 ME(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 T0e(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,I=L.parts.slice(0,z).join("."),B=pt(e.layout,I).get(),Y=pt(a,I).get(),O=L.get();if(q!==void 0){x[k]=q,M[k]=N==="reverse"?q:El(O);var G=$d.getLayoutValObject(a,L.parts);if(G&&G.impliedEdits&&q!==null)for(var W in G.impliedEdits)T(nr.relativeAttr(k,W),G.impliedEdits[W]);if(["width","height"].indexOf(k)!==-1)if(q){T("autosize",null);var Z=k==="height"?"width":"height";T(Z,a[Z])}else a[k]=e._initialAutoSize[k];else if(k==="autosize")T("width",q?null:a.width),T("height",q?null:a.height);else if(H.match(EE))S(H),pt(a,I+"._inputRange").set(null);else if(H.match(PE)){S(H),pt(a,I+"._inputRange").set(null);var X=pt(a,I).get();X._inputDomain&&(X._input.domain=X._inputDomain.slice())}else H.match(S0e)&&pt(a,I+"._inputDomain").set(null);if(N==="type"){w=B;var Q=Y.type==="linear"&&q==="log",ie=Y.type==="log"&&q==="linear";if(Q||ie){if(!w||!w.range)T(I+".autorange",!0);else if(Y.autorange)Q&&(w.range=w.range[1]>w.range[0]?[1,2]:[2,1]);else{var pe=w.range[0],ve=w.range[1];Q?(pe<=0&&ve<=0&&T(I+".autorange",!0),pe<=0?pe=ve/1e6:ve<=0&&(ve=pe/1e6),T(I+".range[0]",Math.log(pe)/Math.LN10),T(I+".range[1]",Math.log(ve)/Math.LN10)):(T(I+".range[0]",Math.pow(10,pe)),T(I+".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,Y,q,T),si.getComponentMethod("images","convertCoords")(e,Y,q,T)}else T(I+".autorange",!0),T(I+".range",null);pt(a,I+"._inputRange").set(null)}else if(N.match(g0e)){var j=pt(a,k).get(),we=(q||{}).type;(!we||we==="-")&&(we="linear"),si.getComponentMethod("annotations","convertCoords")(e,j,we,T),si.getComponentMethod("images","convertCoords")(e,j,we,T),!I&&j&&q&&(q.range!==void 0||q.autorange!==void 0)&&(S(`${N}.range`),j._inputRange=null)}var le=Hd.containerArrayMatch(k);if(le){f=le.array,c=le.index;var Se=le.property,ce=G||{editType:"calc"};c!==""&&Se===""&&(Hd.isAddVal(q)?M[k]=null:Hd.isRemoveVal(q)?M[k]=(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[k]}else N==="reverse"?(B.range?B.range.reverse():(T(I+".autorange",!0),B.range=[1,0]),Y.autorange?y.calc=!0:y.plot=!0):(k==="dragmode"&&(q===!1&&O!==!1||q!==!1&&O===!1)||a._has("scatter-like")&&a._has("regl")&&k==="dragmode"&&(q==="lasso"||q==="select")&&!(O==="lasso"||O==="select")?y.plot=!0:G?_o.update(y,G):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){w=dn.getFromId(e,Ie);var _e=w&&w._constraintGroup;if(_e){y.calc=!0;for(var De in _e)b[De]||(dn.getFromId(e,De)._constraintShrinkable=!0)}}(zE(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 q0e(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=Jr.newPlot(e,r,t,a).then(()=>{for(let[I,B]of H)B.forEach(Y=>e.on(I,Y));return Jr.react(e,r,t,a)})}else{e.data=r||[],ra.cleanData(e.data),e.layout=t||{},ra.cleanLayout(e.layout),P0e(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=F0e(e,s,d,h,p),y=g.newDataRevision,x=z0e(e,o,c,h,p,y);if(zE(e)&&(g.layoutReplot=!0),x.calc||g.calc){e.calcdata=void 0;for(var M=Object.getOwnPropertyNames(d),T=0;T(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function z0e(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 M,T,b=[],w=r==null,S=Array.isArray(r),k=!w&&!S&&nr.isPlainObject(r);if(k)b.push({type:"object",data:x(nr.extendFlat({},r))});else if(w||["string","number"].indexOf(typeof r)!==-1)for(M=0;M0&&PP)&&z.push(T);b=z}}b.length>0?d(b):(e.emit("plotly_animated"),u())})}function I0e(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: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=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 H0e(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 O0e(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 Y0e(e){var r=Ud.select(e),t=e._fullLayout;if(t._calcInverseTransform=O0e,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(p0e.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=N0e;Jr.addFrames=I0e;Jr.deleteFrames=B0e;Jr.addTraces=SE;Jr.deleteTraces=DE;Jr.extendTraces=kE;Jr.moveTraces=pb;Jr.prependTraces=CE;Jr.newPlot=M0e;Jr._doPlot=y0e;Jr.purge=H0e;Jr.react=R0e;Jr.redraw=w0e;Jr.relayout=Cc;Jr.restyle=Xd;Jr.setPlotConfig=x0e;Jr.update=Zd;Jr._guiRelayout=mb(Cc);Jr._guiRestyle=mb(Xd);Jr._guiUpdate=mb(Zd);Jr._storeDirectGUIEdit=C0e});var qs=J(ui=>{"use strict";var U0e=kr();ui.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ui.getRedrawFunc=function(e){return function(){U0e.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 FE=window.URL||window.webkitURL;ui.createObjectURL=function(e){return FE.createObjectURL(e)};ui.revokeObjectURL=function(e){return FE.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=G0e(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 G0e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var bb=Or(),Ybe=Fe(),V0e=ot(),X0e=Nr(),Ube=(fs(),Xe(us)),yb=/"/g,Es="TOBESTRIPPED",W0e=new RegExp(`("${Es})|(${Es}")|("${Es})|(${Es}")`,"g"),Z0e=["&","&","&",""",""",""","'","'","'"],J0e=["<","<","<"],$0e=[">",">",">"];function K0e(e){let r=bb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return Z0e.includes(n)?a:J0e.includes(n)?"<":$0e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function j0e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}NE.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(V0e.setRect,0,0,o,s).call(X0e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Q0e=Fe(),eue=O2().EventEmitter,Dc=qs();function rue(e){var r=e.emitter||new eue,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"||Q0e.isSafari()?x=Dc.encodeSVG(l):(y=Dc.createBlob(l,"svg"),x=Dc.createObjectURL(y)),s.width=d,s.height=h,g.onload=function(){var M;switch(y=null,Dc.revokeObjectURL(x),o!=="svg"&&p.drawImage(g,0,0,d,h),o){case"jpeg":M=s.toDataURL("image/jpeg");break;case"png":M=s.toDataURL("image/png");break;case"webp":M=s.toDataURL("image/webp");break;case"svg":M=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(M),e.promise||r.emit("success",M)},g.onerror=function(M){if(y=null,Dc.revokeObjectURL(x),n(M),!e.promise)return r.emit("error",M)},g.src=x});return e.promise?t:r}IE.exports=rue});var _b=J((Xbe,OE)=>{"use strict";var BE=Zr(),HE=gb(),tue=na(),dl=Fe(),Lc=qs(),aue=jd(),nue=Qd(),iue=Xu().version,xb=(Tg(),Xe(Mg)).default;function lue(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,k){return dl.coerce(r,o,xb,S,k)}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&&BE(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&BE(i.height)&&(y.height=i.height);var x=dl.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),M=Lc.getRedrawFunc(g);function T(){return new Promise(function(S){setTimeout(S,Lc.getDelay(g._fullLayout))})}function b(){return new Promise(function(S,k){var L=aue(g,u,d),q=g._fullLayout.width,P=g._fullLayout.height;function z(){HE.purge(g),document.body.removeChild(g)}if(u==="full-json"){var N=tue.graphJson(g,!1,"object",!0,!0);return N.version=iue,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(),nue({format:u,width:q,height:P,scale:d,canvas:H,svg:L,promise:!0}).then(S).catch(k)})}function w(S){return p?S.replace(Lc.IMAGE_URL_PREFIX,""):S}return new Promise(function(S,k){HE.newPlot(g,t,y,x).then(M).then(T).then(b).then(function(L){S(w(L))}).catch(function(L){k(L)})})}OE.exports=lue});var GE=J((Wbe,UE)=>{"use strict";var fi=Fe(),oue=na(),sue=z0(),uue=Xl().dfltConfig,zi=fi.isPlainObject,Rs=Array.isArray,wb=fi.isArrayOrTypedArray;UE.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=sue.get(),n=[],i={_context:fi.extendFlat({},uue)},l,o;Rs(r)?(i.data=fi.extendDeep([],r),l=r):(i.data=[],l=[],n.push(Aa("array","data"))),zi(t)?(i.layout=fi.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(Aa("object","layout"))),oue.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,M=Array.isArray(y);M&&(x=Math.min(x,y.length));var T,b,w,S,k;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(T=0;T<(M?Math.min(L,y[b].length):L);T++)w=M?y[b][T]:y,S=f[b][T],k=c[b][T],fi.validate(S,w)?k!==S&&k!==+S&&a.push(Aa("dynamic",n,u.concat(b,T),S,k)):a.push(Aa("value",n,u.concat(b,T),S))}else a.push(Aa("array",n,u.concat(b),f[b]));else for(b=0;b{"use strict";var mue=Fe(),rh=qs();function gue(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(mue.isSafari()){var f=t==="svg"?",":";base64,";return rh.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}VE.exports=gue});var Mb=J((Jbe,$E)=>{"use strict";var th=Fe(),WE=La(),yue=_b(),bue=XE(),ZE=qs(),JE=40;function xue(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=yue(e,r),l=r.filename||e.fn;if(!l){let s=ZE.getPlotTitle(e);if(s&&!WE.matchTex(s))l=th.slugify(s,JE);else{let u=ZE.getPlotSubtitle(e);u&&!WE.matchTex(u)&&(l=th.slugify(u,JE))}}var o=l||"plot-image";o+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),bue(s,o,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}$E.exports=xue});var rP=J(Tb=>{"use strict";var Sn=Fe(),Dn=Sn.isPlainObject,KE=z0(),jE=na(),_ue=xi(),QE=yt(),eP=Xl().dfltConfig;Tb.makeTemplate=function(e){e=Sn.isPlainObject(e)?e:Sn.getGraphDiv(e),e=Sn.extendDeep({_context:eP},{data:e.data,layout:e.layout}),jE.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,Mue.bind(null,h));var g=Sn.coerce(h,{},_ue,"type"),y=a.data[g];y||(y=a.data[g]=[]),y.push(p)}),qc(t,a.layout,wue.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 M(T,b){for(var w in T)if(w.charAt(0)!=="_"){var S=T[w],k=ci(T,w,b);Dn(S)?(Array.isArray(T)&&S._template===!1&&S.templateitemname&&l.push({code:"missing",path:k,templateitemname:S.templateitemname}),M(S,k)):Array.isArray(S)&&Tue(S)&&M(S,k)}}if(M({data:s,layout:o},""),l.length)return l.map(Aue)};function Tue(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 kue=yf().getGraphDiv,Cue=dd().eraseActiveShape;At.deleteActiveShape=function(e){return Cue(kue(e))};At.toImage=_b();At.validate=GE();At.downloadImage=Mb();var tP=rP();At.makeTemplate=tP.makeTemplate;At.validateTemplate=tP.validateTemplate});var kb=J((jbe,nP)=>{"use strict";var Ab=Fe(),Sue=kr();nP.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=Sue.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((Qbe,oP)=>{"use strict";var iP=Fe().dateTick0,Due=(ca(),Xe(ga)),Lue=Due.ONEWEEK;function lP(e,r){return e%Lue===0?iP(r,1):iP(r,0)}oP.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",lP(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",lP(o,t.ycalendar)),n("yperiodalignment"))}}});var fP=J((e4e,uP)=>{"use strict";var sP=["orientation","groupnorm","stackgaps"];uP.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 cP=Nr(),vP=ei().hasColorscale,dP=B0(),que=Rn();hP.exports=function(r,t,a,n,i,l={}){var o=que.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),vP(r,"marker")&&dP(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=cP.background:u=cP.defaultLine,i("marker.line.color",u),vP(r,"marker.line")&&dP(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 gP=J((t4e,mP)=>{"use strict";var Eue=Fe().isArrayOrTypedArray,Pue=ei().hasColorscale,Rue=B0();mP.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),Pue(r,"line"))Rue(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Eue(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var bP=J((a4e,yP)=>{"use strict";yP.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var _P=J((n4e,xP)=>{"use strict";var zue=Fe();xP.exports=function(e,r,t,a,n){n=n||{},a("textposition"),zue.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var TP=J((i4e,MP)=>{"use strict";var ih=Nr(),wP=Fe().isArrayOrTypedArray;function Fue(e){for(var r=ih.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var AP=Fe(),Nue=kr(),Iue=Ls(),Bue=(qd(),Xe(Ld)),uu=Rn(),Hue=kb(),Oue=Cb(),Yue=fP(),Uue=pP(),Gue=gP(),kP=bP(),Vue=_P(),Xue=TP(),Wue=Fe().coercePattern;CP.exports=function(r,t,a,n){function i(h,p){return AP.coerce(r,t,Iue,h,p)}var l=Hue(r,t,n,i);if(l||(t.visible=!1),!!t.visible){Oue(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=Yue(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var Zue=tc().getAxisGroup;DP.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")||"",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 qP=J((s4e,LP)=>{"use strict";var Jue=Fe(),$ue=Sb(),Kue=Ls();LP.exports=function(r,t){var a,n,i,l=t.scattermode;function o(d){return Jue.coerce(n._input,n,Kue,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 PP=J((u4e,EP)=>{"use strict";var jue=Fe(),Que=X2();EP.exports=function(e,r){function t(n,i){return jue.coerce(e,r,Que,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var Db=J((f4e,zP)=>{"use strict";var efe=Zr(),RP=Fe(),rfe=RP.dateTime2ms,lh=RP.incrementMonth,tfe=(ca(),Xe(ga)),afe=tfe.ONEAVGMONTH;zP.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(efe(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=rfe(d,u)||0,p=[],g=[],y=[],x=n.length,M=0;MT;)S=lh(S,-o,u);for(;S<=T;)S=lh(S,o,u);w=lh(S,-o,u)}else{for(b=Math.round((T-h)/l),S=h+b*l;S>T;)S-=l;for(;S<=T;)S+=l;w=S-l}p[M]=f?w:c?S:(w+S)/2,g[M]=w,y[M]=S}return{vals:p,starts:g,ends:y}}});var IP=J((c4e,NP)=>{"use strict";var Lb=ei().hasColorscale,qb=a1(),FP=Rn();NP.exports=function(r,t){FP.hasLines(t)&&Lb(t,"line")&&qb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),FP.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((v4e,BP)=>{"use strict";var Bt=Fe();BP.exports=function(r,t){for(var a=0;a{"use strict";var HP=Fe();OP.exports=function(r,t){HP.isArrayOrTypedArray(t.selectedpoints)&&HP.tagSelected(r,t)}});var Ib=J((h4e,ZP)=>{"use strict";var YP=Zr(),zb=Fe(),Ec=Mt(),UP=Db(),Rb=(ca(),Xe(ga)).BADNUM,Fb=Rn(),nfe=IP(),ife=Eb(),lfe=Pb();function ofe(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=UP(r,a,"x",i),s=UP(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,M,T,b,w;XP(t,r);var S="x",k="y",L;if(p)zb.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(k="s",L="x"):(S="s",L="y"),b=p.stackgaps==="interpolate";else{var q=VP(r,c);GP(e,r,a,n,u,f,q)}var P=!!r.xperiodalignment,z=!!r.yperiodalignment;for(x=0;xx&&d[T].gap;)T--;for(w=d[T].s,M=d.length-1;M>T;M--)d[M].s=w;for(;x{"use strict";JP.exports=oh;var sfe=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;iufe,eventDataKeys:()=>ffe});var ufe,ffe,Rc=Ft(()=>{"use strict";ufe=3,ffe=["value","label"]});var Gb=J((m4e,eR)=>{"use strict";var vi=Zr(),{isArrayOrTypedArray:Pl}=Fe(),{BADNUM:fu}=(ca(),Xe(ga)),cfe=kr(),zc=Mt(),{getAxisGroup:vfe}=tc(),sh=$P(),{TEXTPAD:dfe}=(Rc(),Xe(Pc)),{LINE_SPACING:hfe}=(Ja(),Xe(Za)),{BR_TAG_ALL:pfe}=La();function mfe(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*hfe*t+dfe;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 kfe(e,r,t,a){for(var n=cu(a),i=0;i{"use strict";var rR=Ib(),tR=Gb().setGroupPositions;function Sfe(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 Lfe=ot(),sR=(ca(),Xe(ga)),Fc=sR.BADNUM,uR=sR.LOG_CLIP,iR=uR+.5,lR=uR-.5,uh=Fe(),qfe=uh.segmentsIntersect,oR=uh.constrain,Xb=(qd(),Xe(Ld));fR.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=[],M=Xb.minTolerance,T=r.length,b=new Array(T),w=0,S,k,L,q,P,z,N,H,I,B,Y,O,G,W,Z,X;function Q(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?iR:lR)/(i._m*s*(i._m>0?iR:lR)))),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[oR(qe[0],Se,ce),oR(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[w-1][0],dr=Ee===b[w-1][1];if(!(je&&dr))if(w>1){var hr=Je===b[w-2][0],pr=Ee===b[w-2][1];je&&(Je===Se||Je===ce)&&hr?pr?w--:b[w-1]=qe:dr&&(Ee===de||Ee===Ce)&&pr?hr?w--:b[w-1]=qe:b[w++]=qe}else b[w++]=qe}function ge(qe){b[w-1][0]!==qe[0]&&b[w-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(!w)b[w++]=[_e||qe[0],De||qe[1]];else if(ke){var Je=Be(ke,qe);Je.length>1&&(ge(Je[0]),b[w++]=Je[1])}else Re=Be(b[w-1],qe)[0],b[w++]=Re;var Ee=b[w-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[w++]=qe}for(S=0;Sj(z,mr))break;L=z,G=I[0]*H[0]+I[1]*H[1],G>Y?(Y=G,q=z,N=!1):G=r.length||!z)break;cr(z),k=z}}ke&&re([Te||ke[0],Ae||ke[1]]),x.push(b.slice(0,w))}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 vR={tonextx:1,tonexty:1,tonext:1};dR.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 Fi=Or(),Efe=kr(),Nc=Fe(),vu=Nc.ensureSingle,mR=Nc.identity,Gt=ot(),du=Rn(),Pfe=cR(),Rfe=hR(),fh=O5().tester;gR.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=Rfe(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(),zfe(r,o,t),f){l&&(s=l());var d=Fi.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){pR(r,p,t,h,c,this,i)})})}else o.each(function(h,p){pR(r,p,t,h,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function zfe(e,r,t){r.each(function(a){var n=vu(Fi.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,mR);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=vu(Fi.select(this),"path","js-fill")})})}function pR(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;Ffe(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=Fi.select(i),y=vu(g,"g","errorbars"),x=vu(g,"g","lines"),M=vu(g,"g","points"),T=vu(g,"g","text");if(Efe.getComponentMethod("errorbars","plot")(e,y,t,l),h.visible!==!0)return;f(g).style("opacity",h.opacity);var b,w,S=h.fill.charAt(h.fill.length-1);S!=="x"&&S!=="y"&&(S="");var k,L;S==="y"?(k=1,L=d.c2p(0,!0)):S==="x"&&(k=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||"",w=z._nextFill,P=z._ownPolygons,N=z._fillsegments,H=z._fillElement);var I,B,Y="",O="",G,W,Z,X,Q,ie,pe=[];h._polygons=[];var ve=[],j=[],we=Nc.noop;if(b=h._ownFill,du.hasLines(h)||h.fill!=="none"){w&&w.datum(a),["hv","vh","hvh","vhv"].indexOf(p.shape)!==-1?(G=Gt.steps(p.shape),W=Gt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?G=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)}:G=W=function(Le){return"M"+Le.join("L")},Z=function(Le){return W(Le.reverse())},j=Pfe(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(j.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";bR.exports={container:"marker",min:"cmin",max:"cmax"}});var _R=J((w4e,xR)=>{"use strict";var ch=Mt();xR.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((M4e,wR)=>{"use strict";var Zb=Or(),hu=ot(),Nfe=kr();function Ife(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),Nfe.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 Bfe(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))}wR.exports={style:Ife,stylePoints:Jb,styleText:$b,styleOnSelect:Bfe}});var TR=J((T4e,MR)=>{"use strict";var pu=Nr(),Hfe=Rn();MR.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)&&Hfe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var CR=J((A4e,kR)=>{"use strict";var vh=Fe(),AR=Ei(),Ofe=kr(),Yfe=TR(),jb=Nr(),Ufe=vh.fillText;kR.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 G=o.c2p(O.xStart),W=o.c2p(O.xEnd);return u>=Math.min(G,W)&&u<=Math.max(G,W)?0:1/0}var Z=Math.max(3,O.mrc||0),X=1-1/Z,Q=Math.abs(o.c2p(O.x)-u);return Q=Math.min(G,W)&&f<=Math.max(G,W)?0:1/0}var Z=Math.max(3,O.mrc||0),X=1-1/Z,Q=Math.abs(s.c2p(O.y)-f);return Qpe!=Ce>=pe&&(Se=we[j-1][0],ce=we[j][0],Ce-de&&(le=Se+(ce-Se)*(pe-de)/(Ce-de),Z=Math.min(Z,le),X=Math.max(X,le)));return Z=Math.max(Z,0),X=Math.min(X,o._length),{x0:Z,x1:X,y0:pe,y1:pe}}if(d.indexOf("fills")!==-1&&l._fillElement){var I=N(l._fillElement)&&!N(l._fillExclusionElement);if(I){var B=H(l._polygons);B===null&&(B={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var Y=jb.defaultLine;return jb.opacity(l.fillcolor)?Y=l.fillcolor:jb.opacity((l.line||{}).color)&&(Y=l.line.color),vh.extendFlat(r,{distance:r.maxHoverDistance,x0:B.x0,x1:B.x1,y0:B.y0,y1:B.y1,color:Y,hovertemplate:!1}),delete r.index,l.text&&!vh.isArrayOrTypedArray(l.text)?r.text=String(l.text):r.text=l.name,[r]}}}});var LR=J((k4e,DR)=>{"use strict";var SR=Rn();DR.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&&!SR.hasMarkers(o)&&!SR.hasText(o);if(d)return[];if(t===!1)for(s=0;s{"use strict";qR.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var FR=J((S4e,zR)=>{"use strict";var dh=kr().traceIs,Qb=d3();zR.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Gfe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Gfe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Vfe(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,RR(i,a)){var u=PR(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(RR(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function PR(e){return{v:"x",h:"y"}[e.orientation||"v"]}function RR(e,r){var t=PR(e),a=dh(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var IR=J((D4e,NR)=>{"use strict";var Xfe=xn().isTypedArraySpec;function Wfe(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||Xfe(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=Wfe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var OR=J((L4e,HR)=>{"use strict";var BR=Nr(),Zfe=Ki(),Jfe=Fe();HR.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(L,q){return Jfe.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=BR.mix(i,n.bgColor,n.blend||Zfe.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=BR.mix(t.gridcolor,n.bgColor,67),y=l("minor.gridcolor",g),x=l("minor.gridwidth",t.gridwidth||1),M=l("minor.griddash",t.griddash||"solid"),T=a("minor.showgrid",!!y||!!x||!!M);T||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!n.noZeroLine){var b=l("zerolinelayer"),w=l("zerolinecolor",i),S=l("zerolinewidth"),k=a("zeroline",n.showGrid||!!w||!!S);k||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var r4=J((q4e,WR)=>{"use strict";var YR=Zr(),$fe=kr(),Ic=Fe(),Kfe=yt(),jfe=Ci(),e4=ki(),UR=Ny(),GR=By(),Qfe=Yy(),ece=Uy(),rce=IR(),tce=OR(),ace=z3(),VR=g1(),hh=(_a(),Xe(xa)).WEEKDAY_PATTERN,nce=(_a(),Xe(xa)).HOUR_PATTERN;WR.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=$fe.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"),VR(t,i),ace(r,t,a,n),rce(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(ece(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}}),UR(r,t,a,c);var M=n.hasMinor;if(M&&(Kfe.newContainer(t,"minor"),UR(r,t,a,c,{isMinor:!0})),Qfe(r,t,a,c,n),GR(r,t,a,n),M){var T=n.isMinor;n.isMinor=!0,GR(r,t,a,n),n.isMinor=T}tce(r,t,a,{dfltColor:g,bgColor:n.bgColor,showGrid:n.showGrid,hasMinor:M,attributes:e4}),M&&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 w=a("showdividers");w&&(a("dividercolor"),a("dividerwidth"))}if(c==="date")if(jfe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:ice}),!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=XR(i[o]),s){l=hh;break}}var u=a("pattern",l);if(u===hh)for(o=0;o<2;o++)s=XR(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(!YR(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 nce:if(!YR(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 oce=Zr(),ph=Fe();ZR.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||(oce(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 M=a("autoshift");M&&(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 T=!1;if(l.length&&(T=ph.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),ph.noneOrAll(r.domain,t.domain,c),o==="x"?(a("domainpad.left"),a("domainpad.right")):(a("domainpad.top"),a("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var az=J((P4e,tz)=>{"use strict";var zs=Fe(),JR=Nr(),sce=Si().isUnifiedHover,uce=u5(),$R=yt(),fce=A0(),KR=ki(),cce=FR(),jR=r4(),vce=tc(),QR=t4(),n4=ha(),hl=n4.id2name,ez=n4.name2id,dce=(_a(),Xe(xa)).AX_ID_PATTERN,rz=kr(),mh=rz.traceIs,a4=rz.getComponentMethod;function gh(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}tz.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 hce=Or(),nz=kr(),yh=Fe(),Yn=ot(),bh=Mt();iz.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,M=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,M._offset).call(Yn.setScale,1,1);var T=y.plot.selectAll(".scatterlayer .trace");T.selectAll(".point").call(Yn.setPointGroupScale,1,1),T.selectAll(".textpoint").call(Yn.setTextPointsScale,1,1),T.call(Yn.hideOutsideRangePoints,y)}function o(y,x){var M=y.plotinfo,T=M.xaxis,b=M.yaxis,w=T._length,S=b._length,k=!!y.xr1,L=!!y.yr1,q=[];if(k){var P=yh.simpleMap(y.xr0,T.r2l),z=yh.simpleMap(y.xr1,T.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])*w,q[2]=w*(1-x+x*H/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]=w;if(L){var I=yh.simpleMap(y.yr0,b.r2l),B=yh.simpleMap(y.yr1,b.r2l),Y=I[1]-I[0],O=B[1]-B[0];q[1]=(I[1]*(1-x)+x*B[1]-I[1])/(I[0]-I[1])*S,q[3]=S*(1-x+x*O/Y),b.range[0]=T.l2r(I[0]*(1-x)+x*B[0]),b.range[1]=b.l2r(I[1]*(1-x)+x*B[1])}else q[1]=0,q[3]=S;bh.drawOne(r,T,{skipTitle:!0}),bh.drawOne(r,b,{skipTitle:!0}),bh.redrawComponents(r,[T._id,b._id]);var G=k?w/q[2]:1,W=L?S/q[3]:1,Z=k?q[0]:0,X=L?q[1]:0,Q=k?q[0]/q[2]*w:0,ie=L?q[1]/q[3]*S:0,pe=T._offset-Q,ve=b._offset-ie;M.clipRect.call(Yn.setTranslate,Z,X).call(Yn.setScale,1/G,1/W),M.plot.call(Yn.setTranslate,pe,ve).call(Yn.setScale,G,W),Yn.setPointGroupScale(M.zoomScalePts,1/G,1/W),Yn.setTextPointsScale(M.zoomScaleTxt,1/G,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(),oz=kr(),Fs=Fe(),pce=na(),mce=ot(),sz=gy().getModuleCalcData,wo=ha(),Ni=(_a(),Xe(xa)),gce=(fs(),Xe(us)),Qr=Fs.ensureSingle;function xh(e,r,t){return Fs.ensureSingle(e,r,t,function(a){a.datum(t)})}var Ns=Ni.zindexSeparator;Ka.name="cartesian";Ka.attr=["xaxis","yaxis"];Ka.idRoot=["x","y"];Ka.idRegex=Ni.idRegex;Ka.attrRegex=Ni.attrRegex;Ka.attributes=ER();Ka.layoutAttributes=ki();Ka.supplyLayoutDefaults=az();Ka.transitionAxes=lz();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&&(w+=Ns+b),T.push(o+w),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 cz(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=_h.select(this);f.remove(),vz(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();dz.exports={hasLines:Mh.hasLines,hasMarkers:Mh.hasMarkers,hasText:Mh.hasText,isBubble:Mh.isBubble,attributes:Ls(),layoutAttributes:X2(),supplyDefaults:SP(),crossTraceDefaults:qP(),supplyLayoutDefaults:PP(),calc:Ib().calc,crossTraceCalc:nR(),arraysToCalcdata:Eb(),plot:yR(),colorbar:Wb(),formatLabels:_R(),style:Kb().style,styleOnSelect:Kb().styleOnSelect,hoverPoints:CR(),selectPoints:LR(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:wh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var gz=J((N4e,mz)=>{"use strict";var bce=Or(),xce=Nr(),pz=Q5(),i4=Fe(),_ce=i4.strScale,wce=i4.strRotate,Mce=i4.strTranslate;mz.exports=function(r,t,a){var n=r.node(),i=pz[a.arrowhead||0],l=pz[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,M=h.y-p.y;if(g=Math.atan2(M,x),y=g+Math.PI,c&&d&&c+d>Math.sqrt(x*x+M*M)){I();return}if(c){if(c*c>x*x+M*M){I();return}var T=c*Math.cos(g),b=c*Math.sin(g);p.x+=T,p.y+=b,r.attr({x2:p.x,y2:p.y})}if(d){if(d*d>x*x+M*M){I();return}var w=d*Math.cos(g),S=d*Math.sin(g);h.x-=w,h.y-=S,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var k=n.getTotalLength(),L="";if(k{"use strict";var yz=Or(),l4=kr(),Tce=na(),To=Fe(),o4=To.strTranslate,Hc=Mt(),Is=Nr(),Rl=ot(),bz=Ei(),s4=La(),u4=vo(),Bc=Li(),Ace=yt().arrayEditor,kce=gz();wz.exports={draw:Cce,drawOne:xz,drawRaw:_z};function Cce(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){k.remove();return}var Ke=0,_r=0;if(r.align!=="left"&&(Ke=(j-pe)*(r.align==="center"?.5:1)),r.valign!=="top"&&(_r=(we-ve)*(r.valign==="middle"?.5:1)),Q)X.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;Y.call(s4.positionText,qe,xr).call(Rl.setClipUrl,N?g:null,e)}H.select("rect").call(Rl.setRect,P,P,j,we),z.call(Rl.setRect,L/2,L/2,le-L,Se-L),k.call(Rl.setTranslate,Math.round(y.x.text-le/2),Math.round(y.y.text-Se/2)),T.attr({transform:"rotate("+x+","+y.x.text+","+y.y.text+")"});var Je=function(je,dr){M.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=M.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(kce(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(k);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),Vi=mi[0]+vt,Xn=mi[1]+sa;k.call(Rl.setTranslate,Vi,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)),T.attr({transform:"rotate("+x+","+Vi+","+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:k.node(),gd:e,prepFn:function(){Ee=T.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))}T.attr({transform:o4(je,dr)+Ee}),u4(k,hr)},clickFn:function(je,dr){r.captureevents&&e.emit("plotly_clickannotation",S(dr))},doneFn:function(){u4(k),l4.call("_guiRelayout",e,p());var je=document.querySelector(".js-notes-box-panel");je&&je.redraw(je.selectedObj)}})}}s.annotationText?Y.call(s4.makeEditable,{delegate:k,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())}):Y.call(O)}});var Sz=J((B4e,Cz)=>{"use strict";var Mz=Fe(),Sce=kr(),Tz=yt().arrayEditor;Cz.exports={hasClickToShow:Dce,onClick:Lce};function Dce(e,r){var t=kz(e,r);return t.on.length>0||t.explicitOff.length>0}function Lce(e,r){var t=kz(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();Dz.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)),M=f4.extendFlat({},g.font);M.color||(M.color=x),f4.coerceFont(n,"hoverlabel.font",M)}n("captureevents",!!p)}});var qz=J((O4e,Lz)=>{"use strict";var v4=Fe(),Bs=Mt(),qce=Ci(),Ece=c4(),Pce=lu();Lz.exports=function(r,t){qce(r,t,{name:"annotations",handleItemDefaults:Rce})};function Rce(e,r,t){function a(T,b){return v4.coerce(e,r,Pce,T,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){Ece(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"),M=a("yclick");r._xclick=x===void 0?r.x:Bs.cleanPosition(x,u,r.xref),r._yclick=M===void 0?r.y:Bs.cleanPosition(M,u,r.yref)}}}});var Rz=J((Y4e,Pz)=>{"use strict";var d4=Fe(),Hs=Mt(),zce=Th().draw;Pz.exports=function(r){var t=r._fullLayout,a=d4.filterVisible(t.annotations);if(a.length&&r._fullData.length)return d4.syncOrAsync([zce,Fce],r)};function Fce(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"&&Ez(t,a),l==="range"&&Ez(t,n)})}function Ez(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 M=Hs.findExtremes(r,[r.r2c(n)],{ppadplus:d,ppadminus:h}),T=Hs.findExtremes(r,[r.r2c(i)],{ppadplus:Math.max(s,g),ppadminus:Math.max(u,y)});x={min:[M.min[0],T.min[0]],max:[M.max[0],T.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 Fz=J((U4e,zz)=>{"use strict";var Nce=Zr(),Ice=Yv();zz.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=Ice(p,t.range):g=Math.pow(10,p),Nce(g)||(g=null),n(f+h,g)}for(var d=0;d{"use strict";var h4=Th(),Nz=Sz();Iz.exports={moduleType:"component",name:"annotations",layoutAttributes:lu(),supplyLayoutDefaults:qz(),includeBasePlot:_c()("annotations"),calcAutorange:Rz(),draw:h4.draw,drawOne:h4.drawOne,drawRaw:h4.drawRaw,hasClickToShow:Nz.hasClickToShow,onClick:Nz.onClick,convertCoords:Fz()}});var Ah=J((V4e,Hz)=>{"use strict";var mt=lu(),Bce=ji().overrideAll,Hce=yt().templatedArray;Hz.exports=Bce(Hce("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 Yz=J((X4e,Oz)=>{"use strict";var p4=Fe(),Oce=Mt(),Yce=Ci(),Uce=c4(),Gce=Ah();Oz.exports=function(r,t,a){Yce(r,t,{name:"annotations",handleItemDefaults:Vce,fullLayout:a.fullLayout})};function Vce(e,r,t,a){function n(o,s){return p4.coerce(e,r,Gce,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Oce.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Uce(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 Xz=J((W4e,Vz)=>{"use strict";var Uz=Fe(),Gz=Mt();Vz.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 Wce(e,r){var t=m4(e.projection,m4(e.view,m4(e.model,[r[0],r[1],r[2],1])));return t}Wz.exports=Wce});var $z=J((J4e,Jz)=>{"use strict";var Zce=Th().drawRaw,Jce=Zz(),$ce=["x","y","z"];Jz.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=Jce(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 Qz=J(($4e,jz)=>{"use strict";var Kce=kr(),Kz=Fe();jz.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Ah()}}},layoutAttributes:Ah(),handleDefaults:Yz(),includeBasePlot:jce,convert:Xz(),draw:$z()};function jce(e,r){var t=Kce.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var K4e=(_a(),Xe(xa)),eF=Ia(),rF=Ls().line,Qce=Qi().dash,Ii=va().extendFlat,eve=yt().templatedArray,j4e=(bc(),Xe(yc)),gu=xi(),tF=lu(),{shapeTexttemplateAttrs:rve,templatefallbackAttrs:tve}=rs(),ave=T2();aF.exports=eve("shape",{visible:Ii({},gu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ii({},gu.legend,{editType:"calc+arraydraw"}),legendgroup:Ii({},gu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ii({},gu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:eF({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ii({},gu.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ii({},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:Ii({},tF.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:Ii({},tF.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:Ii({},rF.color,{editType:"arraydraw"}),width:Ii({},rF.width,{editType:"calc+arraydraw"}),dash:Ii({},Qce,{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:rve({},{keys:Object.keys(ave)}),texttemplatefallback:tve({editType:"arraydraw"}),font:eF({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 iF=J((exe,nF)=>{"use strict";var yu=Fe(),Un=Mt(),nve=Ci(),ive=g4(),Oc=yo();nF.exports=function(r,t){nve(r,t,{name:"shapes",handleItemDefaults:ove})};function lve(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function ove(e,r,t){function a(T,b){return yu.coerce(e,r,ive,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"),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(T=>{var b=T+"anchor",w=T==="x"?c:d,S={_fullLayout:t},k,L,q,P;let z=T+"ref",N=e[z];if(Array.isArray(N)&&N.length>0){let H=Oc.countDefiningCoords(s,l,T);P=Un.coerceRefArray(e,r,S,T,void 0,"paper",H),r["_"+T+"refArray"]=!0}else P=Un.coerceRef(e,r,S,T,void 0,"paper");if(Array.isArray(P))P.forEach(function(H){Un.getRefType(H)==="range"&&(k=Un.getFromId(S,H),k&&k._shapeIndices.indexOf(r._index)===-1&&k._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let I=P[H];Un.getRefType(I)==="range"?(k=Un.getFromId(S,I),L=Oc.shapePositionToRange(k),q=Oc.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&a(T+H+"shift")):L=q=yu.identity;let Y=T+H,O=e[Y];if(e[Y]=L(e[Y],!0),w==="pixel"?a(Y,p[H]):Un.coercePosition(r,S,a,I,Y,h[H]),r[Y]=q(r[Y]),e[Y]=O,H===0&&w==="pixel"){let G=e[b];e[b]=L(e[b],!0),Un.coercePosition(r,S,a,I,b,.25),r[b]=q(r[b]),e[b]=G}});else{if(Un.getRefType(P)==="range"?(k=Un.getFromId(S,P),k._shapeIndices.push(r._index),q=Oc.rangeToShapePosition(k),L=Oc.shapePositionToRange(k),u&&(k.type==="category"||k.type==="multicategory")&&(a(T+"0shift"),a(T+"1shift"))):L=q=yu.identity,u){let I=T+"0",B=T+"1",Y=e[I],O=e[B];e[I]=L(e[I],!0),e[B]=L(e[B],!0),w==="pixel"?(a(I,p[0]),a(B,p[1])):(Un.coercePosition(r,S,a,P,I,h[0]),Un.coercePosition(r,S,a,P,B,h[1])),r[I]=q(r[I]),r[B]=q(r[B]),e[I]=Y,e[B]=O}if(w==="pixel"){let I=e[b];e[b]=L(e[b],!0),Un.coercePosition(r,S,a,P,b,.25),r[b]=q(r[b]),e[b]=I}}}),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 M=a("label.textposition",g?"middle":"middle center");a("label.xanchor"),a("label.yanchor",lve(g,M)),a("label.padding"),yu.coerceFont(a,"label.font",t.font)}}});var sF=J((rxe,oF)=>{"use strict";var sve=Nr(),lF=Fe();function uve(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}oF.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"),lF.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",sve.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",uve(l,u)),a("newshape.label.padding"),lF.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var pF=J((txe,hF)=>{"use strict";var y4=Fe(),di=Mt(),pl=(jf(),Xe(Kf)),b4=yo();hF.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,fF(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=di.getFromId(r,i.xref),o=vF(l,i,pl.paramIsX),o&&(i._extremes[l._id]=di.findExtremes(l,o,fF(i))));if(u==="array"){let f=uF(r,i,"y");Object.entries(f).forEach(([c,d])=>{l=di.getFromId(r,c),i._extremes[l._id]=di.findExtremes(l,d,cF(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=di.getFromId(r,i.yref),o=vF(l,i,pl.paramIsY),o&&(i._extremes[l._id]=di.findExtremes(l,o,cF(i))))}};function uF(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 fF(e){return dF(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function cF(e){return dF(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function dF(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 vF(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,M;for(e.type==="date"&&(u=b4.decodeDate(u)),p=0;pd&&(d=M)));if(d>=c)return[c,d]}}});var yF=J((axe,gF)=>{"use strict";var mF=dd();gF.exports={moduleType:"component",name:"shapes",layoutAttributes:g4(),supplyLayoutDefaults:iF(),supplyDrawNewShapeDefaults:sF(),includeBasePlot:_c()("shapes"),calcAutorange:pF(),draw:mF.draw,drawOne:mF.drawOne}});var x4=J((ixe,xF)=>{"use strict";var bF=(_a(),Xe(xa)),fve=yt().templatedArray,nxe=(bc(),Xe(yc));xF.exports=fve("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",bF.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",bF.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var wF=J((lxe,_F)=>{"use strict";var cve=Fe(),_4=Mt(),vve=Ci(),dve=x4(),hve="images";_F.exports=function(r,t){var a={name:hve,handleItemDefaults:pve};vve(r,t,a)};function pve(e,r,t){function a(d,h){return cve.coerce(e,r,dve,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 kF=J((oxe,AF)=>{"use strict";var MF=Or(),mve=ot(),bu=Mt(),TF=ha(),gve=(fs(),Xe(us));AF.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var CF=Zr(),yve=Yv();SF.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";LF.exports={moduleType:"component",name:"images",layoutAttributes:x4(),supplyLayoutDefaults:wF(),includeBasePlot:_c()("images"),draw:kF(),convertCoords:DF()}});var kh={};Nt(kh,{activeColor:()=>Uve,arrowOffsetX:()=>Hve,arrowPadX:()=>zve,arrowSymbol:()=>Vve,autoMarginIdRoot:()=>Lve,blankHeaderOpts:()=>qve,buttonClassName:()=>kve,containerClassName:()=>xve,dropdownButtonClassName:()=>Ave,dropdownButtonGroupClassName:()=>Tve,gapButton:()=>Yve,gapButtonHeader:()=>Ove,headerArrowClassName:()=>Mve,headerClassName:()=>wve,headerGroupClassName:()=>_ve,hoverColor:()=>Gve,itemRectClassName:()=>Cve,itemTextClassName:()=>Sve,menuIndexAttrName:()=>Dve,minHeight:()=>Pve,minWidth:()=>Eve,name:()=>bve,rx:()=>Fve,ry:()=>Nve,textOffsetX:()=>Ive,textOffsetY:()=>Bve,textPadX:()=>Rve});var bve,xve,_ve,wve,Mve,Tve,Ave,kve,Cve,Sve,Dve,Lve,qve,Eve,Pve,Rve,zve,Fve,Nve,Ive,Bve,Hve,Ove,Yve,Uve,Gve,Vve,Ch=Ft(()=>{"use strict";bve="updatemenus",xve="updatemenu-container",_ve="updatemenu-header-group",wve="updatemenu-header",Mve="updatemenu-header-arrow",Tve="updatemenu-dropdown-button-group",Ave="updatemenu-dropdown-button",kve="updatemenu-button",Cve="updatemenu-item-rect",Sve="updatemenu-item-text",Dve="updatemenu-active-index",Lve="updatemenu-",qve={label:" "},Eve=30,Pve=30,Rve=24,zve=16,Fve=2,Nve=2,Ive=12,Bve=3,Hve=4,Ove=5,Yve=2,Uve="#F4FAFF",Gve="#F4FAFF",Vve={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var w4=J((fxe,PF)=>{"use strict";var Xve=Ia(),Wve=Ki(),Zve=va().extendFlat,Jve=ji().overrideAll,$ve=A2(),EF=yt().templatedArray,Kve=EF("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}});PF.exports=Jve(EF("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:Kve,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($ve({editType:"arraydraw"}),{}),font:Xve({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Wve.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var NF=J((cxe,FF)=>{"use strict";var Sh=Fe(),RF=Ci(),zF=w4(),jve=(Ch(),Xe(kh)),Qve=jve.name,e2e=zF.buttons;FF.exports=function(r,t){var a={name:Qve,handleItemDefaults:r2e};RF(r,t,a)};function r2e(e,r,t){function a(l,o){return Sh.coerce(e,r,zF,l,o)}var n=RF(e,r,{name:"buttons",handleItemDefaults:t2e}),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 t2e(e,r){function t(n,i){return Sh.coerce(e,r,e2e,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 HF=J((vxe,BF)=>{"use strict";BF.exports=Pt;var Bi=Or(),IF=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,M,T,b,w;!d&&!h&&!p&&!g&&(this.position.direction="down",d=!0);var S=d||g;S?(M=o,T=M+y,d?(b=u,w=Math.min(b+x,l),x=w-b):(w=u+x,b=Math.max(w-x,0),x=w-b)):(b=u,w=b+x,h?(T=o+y,M=Math.max(T-y,0),y=T-M):(M=o,T=Math.min(M+y,i),y=T-M)),this._box={l:M,t:b,w:y,h:x};var k=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(k?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-horizontal",!0).call(IF.fill,Pt.barColor),k?(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,I=Pt.barWidth+2*Pt.barPad,B=Pt.barLength+2*Pt.barPad,Y=o+s,O=u;Y+I>i&&(Y=i-I);var G=this.container.selectAll("rect.scrollbar-vertical").data(H?[0]:[]);G.exit().on(".drag",null).remove(),G.enter().append("rect").classed("scrollbar-vertical",!0).call(IF.fill,Pt.barColor),H?(this.vbar=G.attr({rx:Pt.barRadius,ry:Pt.barRadius,x:Y,y:O,width:I,height:B}),this._vbarYMin=O+B/2,this._vbarTranslateMax=x-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var W=this.id,Z=M-.5,X=H?T+I+.5:T+.5,Q=b-.5,ie=k?w+q+.5:w+.5,pe=n._topdefs.selectAll("#"+W).data(k||H?[0]:[]);if(pe.exit().remove(),pe.enter().append("clipPath").attr("id",W).append("rect"),k||H?(this._clipRect=pe.select("rect").attr({x:Math.floor(Z),y:Math.floor(Q),width:Math.ceil(X)-Math.floor(Z),height:Math.ceil(ie)-Math.floor(Q)}),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),k||H){var ve=Bi.behavior.drag().on("dragstart",function(){Bi.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 j=Bi.behavior.drag().on("dragstart",function(){Bi.event.sourceEvent.preventDefault(),Bi.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(j),H&&this.vbar.on(".drag",null).call(j)}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-=Bi.event.dx),this.vbar&&(t-=Bi.event.dy),this.setTranslate(r,t)};Pt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Bi.event.deltaY),this.vbar&&(t+=Bi.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(Bi.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(Bi.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 $F=J((dxe,JF)=>{"use strict";var _u=Or(),Yc=na(),Uc=Nr(),wu=ot(),Gn=Fe(),Lh=La(),a2e=yt().arrayEditor,YF=(Ja(),Xe(Za)).LINE_SPACING,Cr=(Ch(),Xe(kh)),n2e=HF();JF.exports=function(r){var t=r._fullLayout,a=Gn.filterVisible(t[Cr.name]);function n(d){Yc.autoMargin(r,WF(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,i2e);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 v2e=(Ch(),Xe(kh));KF.exports={moduleType:"component",name:v2e.name,layoutAttributes:w4(),supplyLayoutDefaults:NF(),draw:$F()}});var Vc={};Nt(Vc,{arrowOffsetX:()=>E2e,autoMarginIdRoot:()=>S2e,containerClassName:()=>h2e,currentValueClass:()=>A2e,currentValueInset:()=>i1e,currentValuePadding:()=>n1e,gripBgActiveColor:()=>Z2e,gripBgColor:()=>W2e,gripBorder:()=>G2e,gripBorderColor:()=>X2e,gripBorderWidth:()=>V2e,gripHeight:()=>U2e,gripRadius:()=>O2e,gripRectClass:()=>b2e,gripWidth:()=>Y2e,groupClassName:()=>p2e,inputAreaClass:()=>m2e,inputProxyClass:()=>_2e,labelClass:()=>T2e,labelGroupClass:()=>M2e,labelOffset:()=>$2e,labelPadding:()=>J2e,labelsClass:()=>w2e,menuIndexAttrName:()=>C2e,minHeight:()=>L2e,minWidth:()=>D2e,minorTickColor:()=>t1e,minorTickLength:()=>a1e,minorTickOffset:()=>r1e,name:()=>d2e,railBgColor:()=>I2e,railBorder:()=>z2e,railBorderColor:()=>N2e,railBorderWidth:()=>F2e,railHeight:()=>k2e,railInset:()=>B2e,railRadius:()=>P2e,railRectClass:()=>g2e,railTouchRectClass:()=>y2e,railWidth:()=>R2e,stepInset:()=>H2e,textPadX:()=>q2e,tickColor:()=>j2e,tickLength:()=>e1e,tickOffset:()=>Q2e,tickRectClass:()=>x2e,tickWidth:()=>K2e});var 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,t1e,a1e,n1e,i1e,Xc=Ft(()=>{"use strict";d2e="sliders",h2e="slider-container",p2e="slider-group",m2e="slider-input-area",g2e="slider-rail-rect",y2e="slider-rail-touch-rect",b2e="slider-grip-rect",x2e="slider-tick-rect",_2e="slider-input-proxy",w2e="slider-labels",M2e="slider-label-group",T2e="slider-label",A2e="slider-current-value",k2e=5,C2e="slider-active-index",S2e="slider-",D2e=30,L2e=30,q2e=40,E2e=4,P2e=2,R2e=5,z2e=4,F2e=1,N2e="#bec8d9",I2e="#f8fafc",B2e=8,H2e=10,O2e=10,Y2e=20,U2e=20,G2e=20,V2e=1,X2e="#bec8d9",W2e="#f6f8fa",Z2e="#dbdde0",J2e=8,$2e=0,K2e=1,j2e="#333",Q2e=25,e1e=7,r1e=25,t1e="#333",a1e=4,n1e=8,i1e=0});var k4=J((pxe,rN)=>{"use strict";var QF=Ia(),l1e=A2(),o1e=va().extendDeepAll,s1e=ji().overrideAll,u1e=bf(),eN=yt().templatedArray,Os=(Xc(),Xe(Vc)),f1e=eN("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}});rN.exports=s1e(eN("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:f1e,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:o1e(l1e({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:u1e.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:QF({})},font:QF({}),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 iN=J((mxe,nN)=>{"use strict";var Mu=Fe(),tN=Ci(),aN=k4(),c1e=(Xc(),Xe(Vc)),v1e=c1e.name,d1e=aN.steps;nN.exports=function(r,t){tN(r,t,{name:v1e,handleItemDefaults:h1e})};function h1e(e,r,t){function a(c,d){return Mu.coerce(e,r,aN,c,d)}for(var n=tN(e,r,{name:"steps",handleItemDefaults:p1e}),i=0,l=0;l{"use strict";var Hi=Or(),qh=na(),Ao=Nr(),Oi=ot(),Vn=Fe(),m1e=Vn.strTranslate,Wc=La(),g1e=yt().arrayEditor,Ir=(Xc(),Xe(Vc)),D4=(Ja(),Xe(Za)),sN=D4.LINE_SPACING,C4=D4.FROM_TL,S4=D4.FROM_BR;hN.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=y1e(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,uN(f))}if(i.exit().each(function(){Hi.select(this).selectAll("g."+Ir.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Ir.groupClassName).data(n,b1e);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",m1e(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 oN(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 k1e(e,r,t){var a=t._dims,n=Vn.ensureSingle(e,"rect",Ir.railTouchRectClass,function(i){i.call(vN,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),Oi.setTranslate(n,0,a.currentValueTotalHeight)}function C1e(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"),Oi.setTranslate(n,Ir.railInset,(t.inputAreaWidth-Ir.railWidth)*.5+t.currentValueTotalHeight)}});var gN=J((yxe,mN)=>{"use strict";var S1e=(Xc(),Xe(Vc));mN.exports={moduleType:"component",name:S1e.name,layoutAttributes:k4(),supplyLayoutDefaults:iN(),draw:pN()}});var Ph=J((bxe,bN)=>{"use strict";var yN=Ki();bN.exports={bgcolor:{valType:"color",dflt:yN.background,editType:"plot"},bordercolor:{valType:"color",dflt:yN.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((xxe,xN)=>{"use strict";xN.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:()=>q1e,containerClassName:()=>L1e,extraPad:()=>ede,grabAreaCursor:()=>J1e,grabAreaFill:()=>Z1e,grabAreaMaxClassName:()=>H1e,grabAreaMinClassName:()=>N1e,grabAreaWidth:()=>$1e,grabberMaxClassName:()=>B1e,grabberMinClassName:()=>F1e,handleMaxClassName:()=>O1e,handleMinClassName:()=>I1e,handleRadius:()=>j1e,handleStrokeWidth:()=>Q1e,handleWidth:()=>K1e,maskColor:()=>G1e,maskMaxClassName:()=>R1e,maskMaxOppAxisClassName:()=>U1e,maskMinClassName:()=>P1e,maskMinOppAxisClassName:()=>Y1e,maskOppAxisColor:()=>V1e,name:()=>D1e,rangePlotClassName:()=>E1e,slideBoxClassName:()=>z1e,slideBoxCursor:()=>W1e,slideBoxFill:()=>X1e});var D1e,L1e,q1e,E1e,P1e,R1e,z1e,F1e,N1e,I1e,B1e,H1e,O1e,Y1e,U1e,G1e,V1e,X1e,W1e,Z1e,J1e,$1e,K1e,j1e,Q1e,ede,zh=Ft(()=>{"use strict";D1e="rangeslider",L1e="rangeslider-container",q1e="rangeslider-bg",E1e="rangeslider-rangeplot",P1e="rangeslider-mask-min",R1e="rangeslider-mask-max",z1e="rangeslider-slidebox",F1e="rangeslider-grabber-min",N1e="rangeslider-grabarea-min",I1e="rangeslider-handle-min",B1e="rangeslider-grabber-max",H1e="rangeslider-grabarea-max",O1e="rangeslider-handle-max",Y1e="rangeslider-mask-min-opp-axis",U1e="rangeslider-mask-max-opp-axis",G1e="rgba(0,0,0,0.4)",V1e="rgba(0,0,0,0.2)",X1e="transparent",W1e="ew-resize",Z1e="transparent",J1e="col-resize",$1e=10,K1e=4,j1e=1,Q1e=1,ede=15});var MN=J(Nh=>{"use strict";var rde=ha(),tde=La(),_N=(zh(),Xe(Rh)),ade=(Ja(),Xe(Za)).LINE_SPACING,Fh=_N.name;function wN(e){var r=e&&e[Fh];return r&&r.visible}Nh.isVisible=wN;Nh.makeData=function(e){for(var r=rde.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var Ih=Fe(),TN=yt(),AN=ha(),nde=Ph(),ide=q4();kN.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=TN.newContainer(i,"rangeslider");function s(w,S){return Ih.coerce(l,o,nde,w,S)}var u,f;function c(w,S){return Ih.coerce(u,f,ide,w,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(w){return w.slice(0,Math.max(0,w.indexOf("y")))===AN.name2id(a)}).map(function(w){return w.slice(w.indexOf("y"),w.length)}),g=Ih.simpleMap(p,AN.id2name),y=0;y{"use strict";var lde=ha().list,ode=Nf().getAutoRange,sde=(zh(),Xe(Rh));SN.exports=function(r){for(var t=lde(r,"x",!0),a=0;a{"use strict";var Bh=Or(),ude=kr(),fde=na(),Vt=Fe(),Hh=Vt.strTranslate,qN=ot(),ko=Nr(),cde=zf(),vde=wh(),E4=ha(),dde=Li(),hde=vo(),Ur=(zh(),Xe(Rh));EN.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=O.max)B=P[Y+1];else if(I=O.pmax)B=P[Y+1];else if(I0?e.touches[0].clientX:0}function pde(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=LN(s),c=f-e.node().getBoundingClientRect().left,d=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=dde.coverSlip();this.addEventListener("touchmove",g),this.addEventListener("touchend",y),p.addEventListener("mousemove",g),p.addEventListener("mouseup",y);function g(x){var M=LN(x),T=+M-f,b,w,S;switch(u){case n:if(S="ew-resize",d+T>t._length||h+T<0)return;b=d+T,w=h+T;break;case i:if(S="col-resize",d+T>t._length)return;b=d+T,w=h;break;case l:if(S="col-resize",h+T<0)return;b=d,w=h+T;break;default:S="ew-resize",b=c,w=c+T;break}if(w{"use strict";var Ade=Fe(),kde=Ph(),Cde=q4(),P4=MN();RN.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Ade.extendFlat({},kde,{yaxis:Cde})}}},layoutAttributes:Ph(),handleDefaults:CN(),calcAutorange:DN(),draw:PN(),isVisible:P4.isVisible,makeData:P4.makeData,autoMarginOpts:P4.autoMarginOpts}});var Oh=J((kxe,NN)=>{"use strict";var Sde=Ia(),FN=Ki(),Dde=yt().templatedArray,Lde=Dde("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"});NN.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:Sde({editType:"plot"}),bgcolor:{valType:"color",dflt:FN.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:FN.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var R4={};Nt(R4,{darkAmount:()=>Fde,lightAmount:()=>zde,minButtonWidth:()=>Ede,rx:()=>Pde,ry:()=>Rde,yPad:()=>qde});var qde,Ede,Pde,Rde,zde,Fde,z4=Ft(()=>{"use strict";qde=.02,Ede=30,Pde=3,Rde=3,zde=25,Fde=10});var HN=J((Cxe,BN)=>{"use strict";var Yh=Fe(),Nde=Nr(),Ide=yt(),Bde=Ci(),IN=Oh(),F4=(z4(),Xe(R4));BN.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Ide.newContainer(t,"rangeselector");function s(h,p){return Yh.coerce(l,o,IN,h,p)}var u=Bde(l,o,{name:"buttons",handleItemDefaults:Hde,calendar:i}),f=s("visible",u.length>0);if(f){var c=Ode(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",Nde.contrast(d,F4.lightAmount,F4.darkAmount)),s("bordercolor"),s("borderwidth")}};function Hde(e,r,t,a){var n=a.calendar;function i(s,u){return Yh.coerce(e,r,IN.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 Ode(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Yde=Xp(),Ude=Fe().titleCase;ON.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Gde(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Gde(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Yde["utc"+Ude(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 $N=J((Dxe,JN)=>{"use strict";var Gh=Or(),Vde=kr(),Xde=na(),UN=Nr(),ZN=ot(),zl=Fe(),GN=zl.strTranslate,Uh=La(),Wde=ha(),B4=(Ja(),Xe(Za)),VN=B4.LINE_SPACING,XN=B4.FROM_TL,WN=B4.FROM_BR,I4=(z4(),Xe(R4)),Zde=YN();JN.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Jde(r),$de);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=Zde(l,u);u._isActive=Kde(l,u,c),f.call(N4,o,u),f.call(Qde,o,u,r),f.on("click",function(){r._dragged||Vde.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)})}),rhe(r,s,o,l._name,i)})};function Jde(e){for(var r=Wde.list(e,"x",!0),t=[],a=0;a{"use strict";KN.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Oh()}}},layoutAttributes:Oh(),handleDefaults:HN(),draw:$N()}});var Vh=J(H4=>{"use strict";var QN=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:QN({},t,{}),y:QN({},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 the=Fe(),ahe=(w0(),Xe(gf)).counter,nhe=Vh().attributes,eI=(_a(),Xe(xa)).idRegex,ihe=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:[ahe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[eI.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[eI.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:nhe({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 lhe(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=ihe.newContainer(r,"grid");function d(S,k){return the.coerce(t,c,O4,S,k)}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",M=i?.2:.1,T=i?.3:.1,b,w;s&&r._splomGridDflt&&(b=r._splomGridDflt.xside,w=r._splomGridDflt.yside),c._domains={x:rI("x",d,M,b,p),y:rI("y",d,T,w,h,x)}}function rI(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";iI.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 sI=J((Rxe,oI)=>{"use strict";var lI=Zr(),she=kr(),uhe=Fe(),fhe=yt(),che=Y4();oI.exports=function(e,r,t,a){var n="error_"+a.axis,i=fhe.newContainer(r,n),l=e[n]||{};function o(p,g){return uhe.coerce(l,i,che,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||lI(l.thickness)||lI(l.width)))}(!a.inherit||!i[d])&&(o("color",t),o("thickness"),o("width",she.traceIs(r,"gl3d")?0:4))}}});var U4=J((zxe,fI)=>{"use strict";fI.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=uI(t,r.value),o=uI(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 uI(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 dI=J((Fxe,vI)=>{"use strict";var G4=Zr(),vhe=kr(),V4=Mt(),dhe=Fe(),hhe=U4();vI.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var hI=Or(),Co=Zr(),phe=ot(),mhe=Rn();pI.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(M){return M.id});var g=mhe.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!d.visible&&(f=[]);var y=hI.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),phe.setClipUrl(y,a.layerClipId,r),y.each(function(M){var T=hI.select(this),b=ghe(M,l,o);if(!(g&&!M.vis)){var w,S=T.select("path.yerror");if(h.visible&&Co(b.x)&&Co(b.yh)&&Co(b.ys)){var k=h.width;w="M"+(b.x-k)+","+b.yh+"h"+2*k+"m-"+k+",0V"+b.ys,b.noYS||(w+="m-"+k+",0h"+2*k),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",w)}else S.remove();var L=T.select("path.xerror");if(d.visible&&Co(b.y)&&Co(b.xh)&&Co(b.xs)){var q=(d.copy_ystyle?h:d).width;w="M"+b.xh+","+(b.y-q)+"v"+2*q+"m0,-"+q+"H"+b.xs,b.noXS||(w+="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",w)}else L.remove()}})}})};function ghe(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 bI=J((Ixe,yI)=>{"use strict";var yhe=Or(),gI=Nr();yI.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=yhe.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(gI.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(gI.stroke,i.color)})}});var wI=J((Bxe,_I)=>{"use strict";var Zc=Fe(),xI=ji().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;_I.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Ys,bar:Ys,histogram:Ys,scatter3d:xI($c,"calc","nested"),scattergl:xI(Ys,"calc","nested")}},supplyDefaults:sI(),calc:dI(),makeComputeError:U4(),plot:mI(),style:bI(),hoverInfo:bhe};function bhe(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 MI={};Nt(MI,{cn:()=>xhe});var xhe,TI=Ft(()=>{"use strict";xhe={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 EI=J((Hxe,qI)=>{"use strict";var So=Or(),Zh=na(),AI=kr(),Fl=Mt(),Wh=Li(),hi=Fe(),Ui=hi.strTranslate,LI=va().extendFlat,X4=vo(),Yi=ot(),Tu=Nr(),_he=zf(),whe=La(),Mhe=ei().flipScale,The=r4(),Ahe=t4(),khe=ki(),Z4=(Ja(),Xe(Za)),kI=Z4.LINE_SPACING,CI=Z4.FROM_TL,SI=Z4.FROM_BR,Lt=(TI(),Xe(MI)).cn;function Che(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Lt.colorbar).data(She(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=Dhe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&Lhe(n,a,e)}),t.exit().each(function(a){Zh.autoMargin(e,a._id)}).remove(),t.order()}function She(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(T){return LI(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?Mhe(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]],DI=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function Dhe(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",M=r.xref==="paper",T=t._fullLayout,b=T._size,w=r._fillcolor,S=r._line,k=r.title,L=k.side,q=r._zrange||So.extent((typeof w=="function"?w:S.color).domain()),P=typeof S.color=="function"?S.color:function(){return S.color},z=typeof w=="function"?w:function(){return w},N=r._levels,H=qhe(t,r,q),I=H.fill,B=H.line,Y=Math.round(l*(o==="fraction"?a?b.w:b.h:1)),O=Y/(a?b.w:b.h),G=Math.round(n*(i==="fraction"?a?b.h:b.w:1)),W=G/(a?b.h:b.w),Z=M?b.w:t._fullLayout.width,X=x?b.h:t._fullLayout.height,Q=Math.round(a?g*Z+h:y*X+p),ie={center:.5,right:1}[c]||0,pe={top:1,middle:.5}[d]||0,ve=a?g-ie*O:y-pe*O,j=a?y-pe*W:g-ie*W,we=Math.round(a?X*(1-j):Z*j);r._lenFrac=W,r._thickFrac=O,r._uFrac=ve,r._vFrac=j;var le=r._axis=Ehe(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=j+(k.side==="top"?W-p/b.h:p/b.h)),!a&&!Se&&(le.title.side=L,le.titley=y+p/b.h,le.titlex=j+h/b.w),S.color&&r.tickmode==="auto"){le.tickmode="linear",le.tick0=N.start;var ce=N.size,de=hi.constrain(G/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=DI(W4([j,j+W],_e),_e),le.setScale(),e.attr("transform",Ui(Math.round(b.l),Math.round(b.t)));var De=e.select("."+Lt.cbtitleunshift).attr("transform",Ui(-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:T._dfltTitle.colorbar,containerGroup:e.select("."+Lt.cbtitle)},cr=re.charAt(0)==="h"?re.slice(1):"h"+re;e.selectAll("."+cr+",."+cr+"-math-group").remove(),_he.draw(t,re,LI(Ge,ge||{}))}function Qe(){if(a&&Se||!a&&!Se){var re,ge;L==="top"&&(re=h+b.l+Z*g,ge=p+b.t+X*(1-j-W)+3+Ae*.75),L==="bottom"&&(re=h+b.l+Z*g,ge=p+b.t+X*(1-j)-3-Ae*.25),L==="right"&&(ge=p+b.t+X*y+3+Ae*.75,re=h+b.l+Z*j),$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+X*re+10+(Te.indexOf("inside")===-1?le.tickfont.size:0)+(le.ticks!=="inside"&&r.ticklen||0)),L==="top"){var mr=k.text.split("
").length;cr=b.t+X*re+10-Y-kI*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?T.width:T.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)*kI);var ne;if(cr?(ne=Yi.bBox(cr),Ue=ne.width,Me=ne.height,Me>mr&&(Ge[1]-=(Me-mr)/2)):ge.node()&&!ge.classed(Lt.jsPlaceholder)&&(ne=Yi.bBox(ge.node()),Ue=ne.width,Me=ne.height),a){if(Me){if(Me+=5,L==="top")le.domain=DI(le.domain,Me/b.h),Ge[1]*=-1;else{le.domain=W4(le.domain,Me/b.h);var me=whe.lineCount(ge);Ge[1]+=(1-me)*mr}re.attr("transform",Ui(Ge[0],Ge[1])),le.setScale()}}else Ue&&(L==="right"&&(le.domain=W4(le.domain,(Ue+Ae/2)/b.w)),re.attr("transform",Ui(Ge[0],Ge[1])),le.setScale())}e.selectAll("."+Lt.cbfills+",."+Lt.cblines).attr("transform",a?Ui(0,Math.round(b.h*(1-le.domain[1]))):Ui(Math.round(b.w*le.domain[0]),0)),ke.attr("transform",a?Ui(0,Math.round(-b.t)):Ui(Math.round(-b.l),0));var ze=e.select("."+Lt.cbfills).selectAll("rect."+Lt.cbfill).attr("style","").data(I);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]:(I[qe]+I[qe-1])/2,qe===I.length-1?q[1]:(I[qe]+I[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",Q).attr(a?"y":"x",So.min(Je)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(So.max(Je)-So.min(Je),2));if(r._fillgradient)Yi.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?B:[]);Ne.enter().append("path").classed(Lt.cbline,!0),Ne.exit().remove(),Ne.each(function(xr){var qe=Q,Je=Math.round(le.c2p(xr))+S.width/2%1;So.select(this).attr("d","M"+(a?qe+","+Je:Je+","+qe)+(a?"h":"v")+Y).call(Yi.lineGroupStyle,S.width,P(xr),S.dash)}),ke.selectAll("g."+le._id+"tick,path").remove();var Ze=Q+Y+(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=Y+s/2;Te.indexOf("inside")===-1&&(re=Yi.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=Yi.bBox(ze),Ge=re.width,me=re.height):(re=Yi.bBox(De.node()),Ge=re.right-b.l-(a?Q:we),me=re.bottom-b.t-(a?we:Q),!a&&L==="top"&&(ge+=re.height,ne=re.height)),mr&&(Re.attr("transform",Ui(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&&k.text&&d==="bottom"&&y<=0&&(Ne=Ve/2,Ve+=Ne,ne+=Ne),T._hColorbarMoveTitle=Ne,T._hColorbarMoveCBTitle=ne;var Ze=u+s,Ke=(a?Q:we)-Ze/2-(a?h:0),_r=(a?we:Q)-(a?G: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(G+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?Q:we+h)+xr).attr("y",(a?we+p-G:Q)+(cr?Me:0)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(G-(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=M?b.l-qe:-qe,Je=x?b.t-Je:-Je,e.attr("transform",Ui(qe,Je)),!a&&(u||Tu.opacity(f)&&!Tu.equals(T.paper_bgcolor,f))){var Ee=ke.selectAll("text"),je=Ee[0].length,dr=e.select("."+Lt.cbbg).node(),hr=Yi.bBox(dr),pr=Yi.getTranslate(e),te=2;Ee.each(function(Ga,gt){var Yt=0,Wt=je-1;if(gt===Yt||gt===Wt){var la=Yi.bBox(this),Va=Yi.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=CI[c],He=SI[c],Xr=CI[d],ft=SI[d],kt=Ve-Y;a?(i==="pixels"?(he.y=y,he.t=G*Xr,he.b=G*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=G*Pe,he.r=G*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:T.width-Ke-qe,l:Ke+he.r,b:T.height-_r-Je,t:_r+he.b};M&&x?Zh.autoMargin(t,r._id,he):M?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 Lhe(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+Ui(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?AI.call("_guiRestyle",t,u,r._traceIndex):AI.call("_guiRelayout",t,u)}}})}function qhe(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";PI.exports={moduleType:"component",name:"colorbar",attributes:e1(),supplyDefaults:Gy(),draw:EI().draw,hasColorbar:Py()}});var FI=J((Yxe,zI)=>{"use strict";zI.exports={moduleType:"component",name:"legend",layoutAttributes:O3(),supplyLayoutDefaults:U3(),draw:a5(),style:Q3()}});var II=J((Uxe,NI)=>{"use strict";NI.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 HI=J((Gxe,BI)=>{"use strict";BI.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((Vxe,GI)=>{"use strict";var Phe=kr(),UI=Fe(),J4=UI.extendFlat,OI=UI.extendDeep;function YI(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 Rhe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}GI.exports=function(r,t){var a,n=r.data,i=r.layout,l=OI([],n),o=OI({},i,YI(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 zhe=O2().EventEmitter,Fhe=kr(),Nhe=Fe(),VI=qs(),Ihe=$4(),Bhe=jd(),Hhe=Qd();function Ohe(e,r){var t=new zhe,a=Ihe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=VI.getDelay(n._fullLayout);setTimeout(function(){var s=Bhe(n),u=document.createElement("canvas");u.id=Nhe.randstr(),t=Hhe({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=VI.getRedrawFunc(n);return Fhe.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}XI.exports=Ohe});var $I=J((Wxe,JI)=>{"use strict";var ZI=qs(),Yhe={getDelay:ZI.getDelay,getRedrawFunc:ZI.getRedrawFunc,clone:$4(),toSVG:jd(),svgToImg:Qd(),toImage:WI(),downloadImage:Mb()};JI.exports=Yhe});var jI=J(Nl=>{"use strict";Nl.version=Xu().version;a_();YM();var Uhe=kr(),Kc=Nl.register=Uhe.register,j4=aP(),KI=Object.keys(j4);for(Jh=0;Jh{"use strict";QI.exports=jI()});var jc=J(($xe,iB)=>{"use strict";var Ht=Ls(),rB=Q2().axisHoverFormat,{hovertemplateAttrs:Ghe,texttemplateAttrs:Vhe,templatefallbackAttrs:tB}=rs(),nB=qf(),Xhe=Ia(),aB=(Rc(),Xe(Pc)),Whe=Qi().pattern,Us=va().extendFlat,Q4=Xhe({editType:"calc",arrayOk:!0,colorEditType:"style"}),Zhe=Ht.marker,Jhe=Zhe.line,$he=Us({},Jhe.width,{dflt:0}),Khe=Us({width:$he,editType:"calc"},nB("marker.line")),jhe=Us({line:Khe,editType:"calc"},nB("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Whe,cornerradius:{valType:"any",editType:"calc"}});iB.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:rB("x"),yhoverformat:rB("y"),text:Ht.text,texttemplate:Vhe({editType:"plot"},{keys:aB.eventDataKeys}),texttemplatefallback:tB({editType:"plot"}),hovertext:Ht.hovertext,hovertemplate:Ghe({},{keys:aB.eventDataKeys}),hovertemplatefallback:tB(),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:jhe,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((Kxe,lB)=>{"use strict";lB.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 fB=J((jxe,uB)=>{"use strict";var Qhe=Nr(),oB=ei().hasColorscale,sB=B0(),epe=Fe().coercePattern;uB.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=oB(r,"marker");o&&sB(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",Qhe.defaultLine),oB(r,"marker.line")&&sB(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),epe(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Qc=J((Qxe,mB)=>{"use strict";var cB=Zr(),ku=Fe(),vB=Nr(),rpe=kr(),tpe=kb(),ape=Cb(),npe=fB(),ipe=Sb(),dB=jc(),Kh=ku.coerceFont;function lpe(e,r,t,a){function n(u,f){return ku.coerce(e,r,dB,u,f)}var i=tpe(e,r,a,n);if(!i){r.visible=!1;return}ape(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");pB(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),npe(e,r,n,t,a);var o=(r.marker.line||{}).color,s=rpe.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||vB.defaultLine,{axis:"y"}),s(e,r,o||vB.defaultLine,{axis:"x",inherit:"y"}),ku.coerceSelectionMarkerOpacity(r,n)}function ope(e,r){var t,a;function n(o,s){return ku.coerce(a._input,a,dB,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&cB(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function pB(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),M=e.textfont&&e.textfont.color,T=!M;if(T&&delete x.color,Kh(a,"insidetextfont",x),d){var b=ku.extendFlat({},y);T&&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")}mB.exports={supplyDefaults:lpe,crossTraceDefaults:ope,handleText:pB,validateCornerradius:hB}});var yB=J((e6e,gB)=>{"use strict";var spe=kr(),upe=Mt(),fpe=Fe(),cpe=ex(),vpe=Qc().validateCornerradius;gB.exports=function(e,r,t){function a(g,y){return fpe.coerce(e,r,cpe,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=upe.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=vpe(p)}});var rx=J((r6e,bB)=>{"use strict";var Cu=Fe();bB.exports=function(r,t){for(var a=0;a{"use strict";var xB=Mt(),_B=Db(),wB=ei().hasColorscale,MB=a1(),dpe=rx(),hpe=Pb();TB.exports=function(r,t){var a=xB.getFromId(r,t.xaxis||"x"),n=xB.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=_B(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=_B(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 ppe=Or(),mpe=Fe();function gpe(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=ppe.select(this).select("text");mpe.setTransormAndDisplay(u,s)}})}}function ype(e,r,t){if(t.uniformtext.mode){var a=kB(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var xpe=Nr(),_pe=Zr(),SB=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(_pe(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 xpe.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 SB(e)?r{"use strict";var rv=Or(),wpe=Nr(),tv=ot(),DB=Fe(),LB=kr(),qB=ev().resizeText,tx=jc(),Mpe=tx.textfont,Tpe=tx.insidetextfont,Ape=tx.outsidetextfont,Ya=jh();function kpe(e){var r=rv.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");qB(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;EB(i,l,e)}),LB.getComponentMethod("errorbars","style")(r)}function EB(e,r,t){tv.pointStyle(e.selectAll("path"),r,t),PB(e,r,t)}function PB(e,r,t){e.selectAll("text").each(function(a){var n=rv.select(this),i=DB.ensureUniformFontSize(t,RB(n,a,r,t));tv.font(n,i)})}function Cpe(e,r,t){var a=r[0].trace;a.selectedpoints?Spe(t,a,e):(EB(t,a,e),LB.getComponentMethod("errorbars","style")(t))}function Spe(e,r,t){tv.selectedPointStyle(e.selectAll("path"),r),Dpe(e.selectAll("text"),r,t)}function Dpe(e,r,t){e.each(function(a){var n=rv.select(this),i;if(a.selected){i=DB.ensureUniformFontSize(t,RB(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 RB(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=IB(r,t);i=FB(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=NB(t,r.i,n));return i}function zB(e,r,t){return ax(Mpe,e.textfont,r,t)}function FB(e,r,t,a){var n=zB(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:wpe.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(Tpe,e.insidetextfont,r,n)}function NB(e,r,t){var a=zB(e,r,t);return ax(Ape,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 IB(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}BB.exports={style:kpe,styleTextPoints:PB,styleOnSelect:Cpe,getInsideTextFont:FB,getOutsideTextFont:NB,getBarColor:IB,resizeText:qB}});var ZB=J((l6e,WB)=>{"use strict";var ep=Or(),rp=Zr(),Ea=Fe(),Lpe=La(),qpe=Nr(),Do=ot(),Epe=kr(),tp=Mt().tickText,HB=ev(),Ppe=HB.recordMinTextSize,Rpe=HB.clearMinTextSize,nx=Qh(),Su=jh(),zpe=(Rc(),Xe(Pc)),OB=jc(),Fpe=OB.text,Npe=OB.textposition,Ipe=Si().appendArrayPointValue,hn=zpe.TEXTPAD;function Bpe(e){return e.id}function Hpe(e){if(e.ids)return Bpe}function ix(e){return(e>0)-(e<0)}function Gi(e,r){return e0}function Ype(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},Rpe("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",M=h.type==="bar",T=M||y,b=0;g&&h.connector.visible&&h.connector.mode==="between"&&(b=h.connector.line.width/2);var w=h.orientation==="h",S=UB(n),k=Ea.ensureSingle(d,"g","points"),L=Hpe(h),q=k.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),I=Ope(z,l,o,w),B=I[0][0],Y=I[0][1],O=I[1][0],G=I[1][1],W=(w?Y-B:G-O)===0;W&&T&&Su.getLineWidth(h,z)&&(W=!1),W||(W=!rp(B)||!rp(Y)||!rp(O)||!rp(G)),z.isBlank=W,W&&(w?Y=B:G=O),b&&!W&&(w?(B-=Gi(B,Y)*b,Y+=Gi(B,Y)*b):(O-=Gi(O,G)*b,G+=Gi(O,G)*b));var Z,X;if(h.type==="waterfall"){if(!W){var Q=h[z.dir].marker;Z=Q.line.width,X=Q.color}}else Z=Su.getLineWidth(h,z),X=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=qpe.opacity(X),j=ve<1||Z>.01?ie:pe;e._context.staticPlot||(B=j(B,Y,w),Y=j(Y,B,w),O=j(O,G,!w),G=j(G,O,!w));var we=w?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(w?G-O:Y-B),cr=Math.abs(w?Y-B:G-O),mr=j(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 j(Math.max(Math.min(me,ne),0))}var ce=M||x?Se(p.cornerradiusvalue,p.cornerradiusform):0,de,Ce,Ie="M"+B+","+O+"V"+G+"H"+Y+"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=j(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"+B+","+O+"V"+(G-Re*Ae)+"H"+Ue(Y-(ce-_e)*Te,B)+"A "+ce+","+ce+" 0 0 "+ke+" "+Y+","+(G-ce*Ae-Me)+"V"+(O+ce*Ae+Me)+"A "+ce+","+ce+" 0 0 "+ke+" "+Ue(Y-(ce-_e)*Te,B)+","+(O+Re*Ae)+"Z"}else if(z.hasB)de="M"+(B+ce*Te)+","+O+"A "+ce+","+ce+" 0 0 "+ke+" "+B+","+(O+ce*Ae)+"V"+(G-ce*Ae)+"A "+ce+","+ce+" 0 0 "+ke+" "+(B+ce*Te)+","+G+"H"+(Y-ce*Te)+"A "+ce+","+ce+" 0 0 "+ke+" "+Y+","+(G-ce*Ae)+"V"+(O+ce*Ae)+"A "+ce+","+ce+" 0 0 "+ke+" "+(Y-ce*Te)+","+O+"Z";else{Ce=Math.abs(G-O)+_e;var $e=Ce0?Math.sqrt(_e*(2*ce-_e)):0,Le=Ae>0?Math.max:Math.min;de="M"+(B+$e*Te)+","+O+"V"+Le(G-(ce-_e)*Ae,O)+"A "+ce+","+ce+" 0 0 "+ke+" "+(B+ce*Te-Qe)+","+G+"H"+(Y-ce*Te+Qe)+"A "+ce+","+ce+" 0 0 "+ke+" "+(Y-$e*Te)+","+Le(G-(ce-_e)*Ae,O)+"V"+O+"Z"}}else de=Ie}else de=Ie;var Be=YB(Ea.ensureSingle(H,"path"),s,n,i);if(Be.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Y-B)*(G-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)}Upe(e,r,H,c,N,B,Y,O,G,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)});Epe.getComponentMethod("errorbars","plot")(e,f,r,n)}function Upe(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(Lpe.convertToTspans,e);return Te}var M=a[0].trace,T=M.orientation==="h",b=Zpe(a,T,h,p),w=Xpe(g,a,n,h,p);y=Wpe(M,n);var S=c.mode==="stack"||c.mode==="relative",k=a[n],L=!S||k._outmost,q=k.hasB,P=u&&u-f>hn;if(!w||y==="none"||(k.isBlank||i===l||o===s)&&(y==="auto"||y==="inside")){t.select("text").remove();return}var z=g.font,N=nx.getBarColor(a[n],M),H=nx.getInsideTextFont(M,n,z,N),I=nx.getOutsideTextFont(M,n,z),B=M.insidetextanchor||"end",Y=t.datum();T?h.type==="log"&&Y.s0<=0&&(h.range[0]0&&pe>0,we;P?q?we=Vs(W-2*u,Z,ie,pe,T)||Vs(W,Z-2*u,ie,pe,T):T?we=Vs(W-(u-f),Z,ie,pe,T)||Vs(W,Z-2*(u-f),ie,pe,T):we=Vs(W,Z-(u-f),ie,pe,T)||Vs(W-2*(u-f),Z,ie,pe,T):we=Vs(W,Z,ie,pe,T),j&&we?y="inside":(y="outside",X.remove(),X=null)}else y="inside";if(!X){ve=Ea.ensureUniformFontSize(e,y==="outside"?I:H),X=x(t,w,ve);var le=X.attr("transform");if(X.attr("transform",""),Q=Do.bBox(X.node()),ie=Q.width,pe=Q.height,X.attr("transform",le),ie<=0||pe<=0){X.remove();return}}var Se=M.textangle,ce,de;y==="outside"?(de=M.constraintext==="both"||M.constraintext==="outside",ce=Vpe(i,l,o,s,Q,{isHorizontal:T,constrained:de,angle:Se,zeroBarDir:b})):(de=M.constraintext==="both"||M.constraintext==="inside",ce=XB(i,l,o,s,Q,{isHorizontal:T,constrained:de,angle:Se,anchor:B,hasB:q,r:u,overhead:f})),ce.fontSize=ve.size,Ppe(M.type==="histogram"?"bar":M.type,ce,g),k.transform=ce;var Ce=YB(X,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 GB(e){return e==="auto"?0:e}function VB(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 XB(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,M=n.width,T=n.height,b=Math.abs(r-e),w=Math.abs(a-t),S=b>2*hn&&w>2*hn?hn:0;b-=2*S,w-=2*S;var k=GB(s);s==="auto"&&!(M<=b&&T<=w)&&(M>b||T>w)&&(!(M>w||T>b)||Mhn){var z=Gpe(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,w/L.y)),P=0;var N=n.left*p+n.right*h,H=(n.top+n.bottom)/2,I=(e+hn)*p+(r-hn)*h,B=(t+a)/2,Y=0,O=0;if(c||f){var G=(l?L.x:L.y)/2;y&&(f||g)&&(S+=P);var W=l?Gi(e,r):Gi(t,a);l?c?(I=e+W*S,Y=-W*G):(I=r-W*S,Y=W*G):c?(B=t+W*S,O=-W*G):(B=a-W*S,O=W*G)}return{textX:N,textY:H,targetX:I,targetY:B,anchorX:Y,anchorY:O,scale:q,rotate:k}}function Gpe(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,M,T;return n.y/n.x>=f/(u-h)?M=f/n.y:n.y/n.x<=(f-p)/u?M=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,M=(-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,M=(-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,M=(-y+Math.sqrt(y*y-4*g*x))/(2*g)),M=Math.min(1,M),o?T=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(f-n.y*M)/2)*(c-(f-n.y*M)/2)))-l):T=Math.max(0,c-Math.sqrt(Math.max(0,c*c-(c-(u-n.x*M)/2)*(c-(u-n.x*M)/2)))-l),{scale:M,pad:T}}function Vpe(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=GB(s),y=VB(n,g),x=(l?y.x:y.y)/2,M=(n.left+n.right)/2,T=(n.top+n.bottom)/2,b=(e+r)/2,w=(t+a)/2,S=0,k=0,L;return(l?e===r:t===a)&&i.zeroBarDir?L=i.zeroBarDir:L=l?Gi(r,e):Gi(t,a),l?(b=r-L*h,S=L*x):(w=a+L*h,k=-L*x),{textX:M,textY:T,targetX:b,targetY:w,anchorX:S,anchorY:k,scale:p,rotate:g}}function Xpe(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=Jpe(e,r,t,a,n):i.textinfo?o=$pe(r,t,a,n):o=Su.getValue(i.text,t),Su.coerceString(Fpe,o)}function Wpe(e,r){var t=Su.getValue(e.textposition,r);return Su.coerceEnumerated(Npe,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=-Gi(s.range[0],s.range[1]);return i?n?0:-u:u}function Jpe(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],M={};M.label=x.p,M.labelLabel=M[c+"Label"]=g(x.p);var T=Ea.castOption(i,x.i,"text");(T===0||T)&&(M.text=T),M.value=x.s,M.valueLabel=M[h+"Label"]=y(x.s);var b={};Ipe(b,i,x.i),(o||b.x===void 0)&&(b.x=f?M.value:M.label),(o||b.y===void 0)&&(b.y=f?M.label:M.value),(o||b.xLabel===void 0)&&(b.xLabel=f?M.valueLabel:M.labelLabel),(o||b.yLabel===void 0)&&(b.yLabel=f?M.labelLabel:M.valueLabel),s&&(M.delta=+x.rawS||x.s,M.deltaLabel=y(M.delta),M.final=x.v,M.finalLabel=y(M.final),M.initial=M.final-M.delta,M.initialLabel=y(M.initial)),u&&(M.value=x.s,M.valueLabel=y(M.value),M.percentInitial=x.begR,M.percentInitialLabel=Ea.formatPercent(x.begR),M.percentPrevious=x.difR,M.percentPreviousLabel=Ea.formatPercent(x.difR),M.percentTotal=x.sumR,M.percentTotalLabel=Ea.formatPercent(x.sumR));var w=Ea.castOption(i,x.i,"customdata");return w&&(M.customdata=w),Ea.texttemplateString({data:[b,M,i._meta],fallback:i.texttemplatefallback,labels:M,locale:e._d3locale,template:l})}function $pe(e,r,t,a){var n=e[0].trace,i=n.orientation==="h",l=n.type==="waterfall",o=n.type==="funnel";function s(w){var S=i?a:t;return tp(S,w,!0).text}function u(w){var S=i?t:a;return tp(S,+w,!0).text}var f=n.textinfo,c=e[r],d=f.split("+"),h=[],p,g=function(w){return d.indexOf(w)!==-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,M=x-y;g("initial")&&h.push(u(M)),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")&&(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("
")}WB.exports={plot:Ype,toMoveInsideBar:XB}});var QB=J((o6e,jB)=>{"use strict";var av=Ei(),Kpe=kr(),JB=Nr(),jpe=Fe().fillText,Qpe=jh().getLineWidth,lx=Mt().hoverLabelText,eme=(ca(),Xe(ga)).BADNUM;function rme(e,r,t,a,n){var i=$B(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=KB(o,s),Kpe.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function $B(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,M;l.orientation==="h"?(d=t,h=r,p="y",g="x",y=B,x=N):(d=r,h=t,p="x",g="y",x=B,y=N);var T=l[p+"period"],b=s||T;function w(j){return k(j,-1)}function S(j){return k(j,1)}function k(j,we){var le=j.w;return j[p]+we*le/2}function L(j){return j[p+"End"]-j[p+"Start"]}var q=s?w:T?function(j){return j.p-L(j)/2}:function(j){return Math.min(w(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,we,le){return n.finiteRange&&(le=0),av.inbox(j-d,we-d,le+Math.min(1,Math.abs(we-j)/M)-1)}function N(j){return z(q(j),P(j),f)}function H(j){return z(w(j),S(j),c)}function I(j){var we=j[g];if(u){var le=Math.abs(j.rawS)||0;h>0?we+=le:h<0&&(we-=le)}return we}function B(j){var we=h,le=j.b,Se=I(j);return av.inbox(le-we,Se-we,f+(Se-we)/(Se-le)-1)}function Y(j){var we=h,le=j.b,Se=I(j);return av.inbox(le-we,Se-we,c+(Se-we)/(Se-le)-1)}var O=e[p+"a"],G=e[g+"a"];M=Math.abs(O.r2c(O.range[1])-O.r2c(O.range[0]));function W(j){return(y(j)+x(j))/2}var Z=av.getDistanceFunction(a,y,x,W);if(av.getClosest(i,Z,e),e.index!==!1&&i[e.index].p!==eme){b||(q=function(j){return Math.min(w(j),j.p-o.bargroupwidth/2)},P=function(j){return Math.max(S(j),j.p+o.bargroupwidth/2)});var X=e.index,Q=i[X],ie=l.base?Q.b+Q.s:Q.s;e[g+"0"]=e[g+"1"]=G.c2p(Q[g],!0),e[g+"LabelVal"]=ie;var pe=o.extents[o.extents.round(Q.p)];e[p+"0"]=O.c2p(s?q(Q):pe[0],!0),e[p+"1"]=O.c2p(s?P(Q):pe[1],!0);var ve=Q.orig_p!==void 0;return e[p+"LabelVal"]=ve?Q.orig_p:Q.p,e.labelLabel=lx(O,e[p+"LabelVal"],l[p+"hoverformat"]),e.valueLabel=lx(G,e[g+"LabelVal"],l[g+"hoverformat"]),e.baseLabel=lx(G,Q.b,l[g+"hoverformat"]),e.spikeDistance=(Y(Q)+H(Q))/2,e[p+"Spike"]=O.c2p(Q.p,!0),jpe(Q,l,e),e.hovertemplate=l.hovertemplate,e}}function KB(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=Qpe(e,r);if(JB.opacity(t))return t;if(JB.opacity(a)&&n)return a}jB.exports={hoverPoints:rme,hoverOnBars:$B,getTraceColor:KB}});var rH=J((s6e,eH)=>{"use strict";eH.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 aH=J((u6e,tH)=>{"use strict";tH.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";nH.exports={attributes:jc(),layoutAttributes:ex(),supplyDefaults:Qc().supplyDefaults,crossTraceDefaults:Qc().crossTraceDefaults,supplyLayoutDefaults:yB(),calc:AB(),crossTraceCalc:Gb().crossTraceCalc,colorbar:Wb(),arraysToCalcdata:rx(),plot:ZB().plot,style:Qh().style,styleOnSelect:Qh().styleOnSelect,hoverPoints:QB().hoverPoints,eventData:rH(),selectPoints:aH(),moduleType:"trace",name:"bar",basePlotModule:wh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var oH=J((c6e,lH)=>{"use strict";lH.exports=iH()});var ox=J((v6e,uH)=>{"use strict";var ap=xi(),ame=Vh().attributes,nme=Ia(),ime=Ki(),{hovertemplateAttrs:lme,texttemplateAttrs:ome,templatefallbackAttrs:sH}=rs(),Lo=va().extendFlat,sme=Qi().pattern,np=nme({editType:"plot",arrayOk:!0,colorEditType:"plot"});uH.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:ime.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:sme,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:lme({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:sH(),texttemplate:ome({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:sH({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:ame({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 dH=J((d6e,vH)=>{"use strict";var ume=Zr(),nv=Fe(),fme=ox(),cme=Vh().defaults,vme=Qc().handleText,dme=Fe().coercePattern;function fH(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 cH(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");dme(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 hme(e,r,t,a){function n(M,T){return nv.coerce(e,r,fme,M,T)}var i=n("labels"),l=n("values"),o=fH(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,cH(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");vme(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");cme(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")}vH.exports={handleLabelsAndValues:fH,handleMarkerDefaults:cH,supplyDefaults:hme}});var sx=J((h6e,hH)=>{"use strict";hH.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var mH=J((p6e,pH)=>{"use strict";var pme=Fe(),mme=sx();pH.exports=function(r,t){function a(n,i){return pme.coerce(r,t,mme,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var ux=J((m6e,bH)=>{"use strict";var gme=Zr(),Du=Nr(),yme={};function bme(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(w,S){return S.v-w.v}),t[0]&&(t[0].vTotal=p),t}function gH(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 xme(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=yH(i,yme));for(var o=0,s=0;s{"use strict";var _me=Si().appendArrayMultiPointValues;xH.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]),_me(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var UH=J((y6e,YH)=>{"use strict";var Ln=Or(),wme=na(),ip=Ei(),CH=Nr(),Il=ot(),Ua=Fe(),Mme=Ua.strScale,wH=Ua.strTranslate,fx=La(),SH=ev(),Tme=SH.recordMinTextSize,Ame=SH.clearMinTextSize,DH=(Rc(),Xe(Pc)).TEXTPAD,Dr=N1(),lp=_H(),MH=Fe().isValidTextValue;function kme(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;Ame("pie",a),EH(r,e),BH(r,n);var i=Ua.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=Ln.select(this),s=l[0],u=s.trace;zme(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,w){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,k=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(LH,e,l),u.pull){var P=+Dr.castOption(u.pull,b.pts)||0;P>0&&(S+=P*b.pxmid[0],k+=P*b.pxmid[1])}b.cxFinal=S,b.cyFinal=k;function z(G,W,Z,X){var Q=X*(W[0]-G[0]),ie=X*(W[1]-G[1]);return"a"+X*s.r+","+X*s.r+" 0 "+b.largeArc+(Z?" 1 ":" 0 ")+Q+","+ie}var N=u.hole;if(b.v===s.vTotal){var H="M"+(S+b.px0[0])+","+(k+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])+","+(k+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 I=z(b.px0,b.px1,!0,1);if(N){var B=1-N;q.attr("d","M"+(S+N*b.px1[0])+","+(k+N*b.px1[1])+z(b.px1,b.px0,!1,N)+"l"+B*b.px0[0]+","+B*b.px0[1]+I+"Z")}else q.attr("d","M"+S+","+k+"l"+b.px0[0]+","+b.px0[1]+I+"Z")}HH(e,b,s);var Y=Dr.castOption(u.textposition,b.pts),O=L.selectAll("g.slicetext").data(b.text&&Y!=="none"?[0]:[]);O.enter().append("g").classed("slicetext",!0),O.exit().remove(),O.each(function(){var G=Ua.ensureSingle(Ln.select(this),"text","",function(j){j.attr("data-notex",1)}),W=Ua.ensureUniformFontSize(e,Y==="outside"?Sme(u,b,a.font):qH(u,b,a.font));G.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Il.font,W).call(fx.convertToTspans,e);var Z=Il.bBox(G.node()),X;if(Y==="outside")X=kH(Z,b);else if(X=PH(Z,b,s),Y==="auto"&&X.scale<1){var Q=Ua.ensureUniformFontSize(e,u.outsidetextfont);G.call(Il.font,Q),Z=Il.bBox(G.node()),X=kH(Z,b)}var ie=X.textPosAngle,pe=ie===void 0?b.pxmid:op(s.r,ie);if(X.targetX=S+pe[0]*X.rCenter+(X.x||0),X.targetY=k+pe[1]*X.rCenter+(X.y||0),OH(X,Z),X.outside){var ve=X.targetY;b.yLabelMin=ve-Z.height/2,b.yLabelMid=ve,b.yLabelMax=ve+Z.height/2,b.labelExtraX=0,b.labelExtraY=0,d=!0}X.fontSize=W.size,Tme(u.type,X,a),l[w].transform=X,Ua.setTransormAndDisplay(G,X)})});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(k){k.attr("data-notex",1)}),w=u.title.text;u._meta&&(w=Ua.templateString(w,u._meta)),b.text(w).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=qme(s):S=NH(s,n),b.attr("transform",wH(S.x,S.y)+Mme(Math.min(1,S.scale))+wH(S.tx,S.ty))}),d&&Pme(c,u),Cme(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]),M=(.5*y-s.r)/n.w,T=(.5*x-s.r)/n.h;wme.autoMargin(e,"pie."+u.uid+".automargin",{xl:g.x[0]-M,xr:g.x[1]+M,yb:g.y[0]-T,yt:g.y[1]+T,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 Cme(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(CH.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function LH(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 M=f.hoverlabel,T=M.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(M.bgcolor,s.pts)||s.color,borderColor:Dr.castOption(M.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(M.namelength,s.pts),textAlign:Dr.castOption(M.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 Sme(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 qH(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||CH.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function EH(e,r){for(var t,a,n=0;n=-4;M-=2)x(Math.PI*M,"tan");for(M=4;M>=-4;M-=2)x(Math.PI*(M+1),"tan")}if(c||h){for(M=4;M>=-4;M-=2)x(Math.PI*(M+1.5),"rad");for(M=4;M>=-4;M-=2)x(Math.PI*(M+.5),"rad")}}if(o||p||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)}(p||h)&&(y=TH(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y)),(p||d)&&(y=AH(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,g.push(y));for(var b=0,w=0,S=0;S=1)break}return g[b]}function Dme(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 qme(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 NH(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=IH(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=Eme(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 Eme(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 IH(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 Pme(e,r){var t,a,n,i,l,o,s,u,f,c,d,h,p;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 w=b.labelExtraY+(a?b.yLabelMax:b.yLabelMin),S=a?T.yLabelMin:T.yLabelMax,k=a?T.yLabelMax:T.yLabelMin,L=T.cyFinal+l(T.px0[1],T.px1[1]),q=w-S,P,z,N,H,I,B;if(q*s>0&&(T.labelExtraY=q),!!Ua.isArrayOrTypedArray(r.pull))for(z=0;z=(Dr.castOption(r.pull,N.pts)||0))&&((T.pxmid[1]-N.pxmid[1])*s>0?(H=N.cyFinal+l(N.px0[1],N.px1[1]),q=H-S-T.labelExtraY,q*s>0&&(T.labelExtraY+=q)):(k+T.labelExtraY-L)*s>0&&(P=3*o*Math.abs(z-c.indexOf(T)),I=N.cxFinal+i(N.px0[0],N.px1[0]),B=I+P-(T.cxFinal+T.pxmid[0])-T.labelExtraX,B*o>0&&(T.labelExtraX+=B)))}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=Lme(u,r))}function op(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function HH(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);MH(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 M=y(r),T=Dr.getFirstFilled(n.text,r.pts);(MH(T)||T==="")&&(M.text=T),r.text=Ua.texttemplateString({data:[M,n._meta],fallback:n.texttemplatefallback,labels:M,locale:e._fullLayout._d3locale,template:x})}}}function OH(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}YH.exports={plot:kme,formatSliceLabel:HH,transformInsideText:PH,determineInsideTextFont:qH,positionTitleOutside:NH,prerenderTitles:EH,layoutAreas:BH,attachFxHandlers:LH,computeTransform:OH}});var XH=J((b6e,VH)=>{"use strict";var GH=Or(),Fme=I1(),Nme=ev().resizeText;VH.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");Nme(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=GH.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){GH.select(this).call(Fme,o,i,r)})})}});var ZH=J(Lu=>{"use strict";var WH=na();Lu.name="pie";Lu.plot=function(e,r,t,a){WH.plotBasePlot(Lu.name,e,r,t,a)};Lu.clean=function(e,r,t,a){WH.cleanBasePlot(Lu.name,e,r,t,a)}});var $H=J((_6e,JH)=>{"use strict";JH.exports={attributes:ox(),supplyDefaults:dH().supplyDefaults,supplyLayoutDefaults:mH(),layoutAttributes:sx(),calc:ux().calc,crossTraceCalc:ux().crossTraceCalc,plot:UH().plot,style:XH(),styleOne:I1(),moduleType:"trace",name:"pie",basePlotModule:ZH(),categories:["pie-like","pie","showLegend"],meta:{}}});var jH=J((w6e,KH)=>{"use strict";KH.exports=$H()});var ja=J((M6e,eO)=>{"use strict";var QH=Object.getOwnPropertySymbols,Ime=Object.prototype.hasOwnProperty,Bme=Object.prototype.propertyIsEnumerable;function Hme(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Ome(){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}}eO.exports=Ome()?Object.assign:function(e,r){for(var t,a=Hme(e),n,i=1;i{var up=ja();function rO(){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(rO.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=tO.exports=new rO;Hr.cdate=vx;Hr.baseCalendar=dx;Hr.calendars.gregorian=hx});var aO=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,w){for(var S=1;T+S1},f=function(b,w,S,k){var L=""+w;if(u(b,k))for(;L.length1},M=function(N,H){var I=x(N,H),B=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(N)+1],Y=new RegExp("^-?\\d{1,"+B+"}"),O=r.substring(L).match(Y);if(!O)throw(Pa.local.missingNumberAt||Pa.regionalOptions[""].missingNumberAt).replace(/\{0\}/,L);return L+=O[0].length,parseInt(O[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 M("m")},w=function(N,H,I,B){for(var Y=x(N,B)?I: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 nO=J(()=>{var qo=Qa(),Yme=ja(),mx=qo.instance();function fp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fp.prototype=new qo.baseCalendar;Yme(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(Gme);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(Vme);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(Xme);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=Zme(e,i,t,n);return mx.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=mx.fromJD(e),t=Wme(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(Ume),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 Ume=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Gme=/^\d?\d[iI]?/m,Vme=/^闰?十?[一二三四五六七八九]?月/m,Xme=/^闰?十?[一二三四五六七八九]?/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 Wme(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]],M;for(M=0;M<13;M++){var T=x&1<<12-M?30:29;if(p>13;return!b||M=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,T=x>>5&15,b=x&31,w=new Date(M,T-1,b+c);return i.year=w.getFullYear(),i.month=1+w.getMonth(),i.day=w.getDate(),i}});var iO=J(()=>{var Xs=Qa(),Jme=ja();function gx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gx.prototype=new Xs.baseCalendar;Jme(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 lO=J(()=>{var Bl=Qa(),$me=ja();function yx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yx.prototype=new Bl.baseCalendar;$me(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:Kme[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 Kme={20:"Fruitbat",21:"Anchovy"};Bl.calendars.discworld=yx});var oO=J(()=>{var Ws=Qa(),jme=ja();function bx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bx.prototype=new Ws.baseCalendar;jme(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 sO=J(()=>{var Ro=Qa(),Qme=ja();function xx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xx.prototype=new Ro.baseCalendar;Qme(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 uO=J(()=>{var iv=Qa(),ege=ja();function _x(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_x.prototype=new iv.baseCalendar;ege(_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 fO=J(()=>{var lv=Qa(),rge=ja();function wx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wx.prototype=new lv.baseCalendar;rge(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 vO=J(()=>{var pi=Qa(),tge=ja();function Tx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Tx.prototype=new pi.baseCalendar;tge(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,[cO(e+20,20),cO(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 cO(e,r){return Mx(e-1,r)+1}pi.calendars.mayan=Tx});var hO=J(()=>{var Zs=Qa(),age=ja();function Ax(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ax.prototype=new Zs.baseCalendar;var dO=Zs.instance("gregorian");age(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 dO.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 pO=J(()=>{var Js=Qa(),nge=ja();function kx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kx.prototype=new Js.baseCalendar;nge(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(),ige=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;ige(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 gO=J(()=>{var $s=Qa(),lge=ja(),hp=$s.instance();function Cx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Cx.prototype=new $s.baseCalendar;lge(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 yO=J(()=>{var Ks=Qa(),oge=ja(),pp=Ks.instance();function Sx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Sx.prototype=new Ks.baseCalendar;oge(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 bO=J(()=>{var js=Qa(),sge=ja();function Dx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Dx.prototype=new js.baseCalendar;sge(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 _O=J((r_e,xO)=>{"use strict";xO.exports=Qa();aO();nO();iO();lO();oO();sO();uO();fO();vO();hO();pO();mO();gO();yO();bO()});var SO=J((t_e,CO)=>{"use strict";var MO=_O(),ov=Fe(),TO=(ca(),Xe(ga)),uge=TO.EPOCHJD,fge=TO.ONEDAY,Ex={valType:"enumerated",values:ov.sortObjectKeys(MO.calendars),editType:"calc",dflt:"gregorian"},AO=function(e,r,t,a){var n={};return n[t]=Ex,ov.coerce(e,r,n,t,a)},cge=function(e,r,t,a){for(var n=0;n{"use strict";DO.exports=SO()});var gge=J((n_e,EO)=>{var qO=eB();qO.register([oH(),jH(),LO()]);EO.exports=qO});return gge();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-cartesian.js b/dist/plotly-cartesian.js index 3307c7723fd..9502ac6fc64 100644 --- a/dist/plotly-cartesian.js +++ b/dist/plotly-cartesian.js @@ -1,5 +1,5 @@ /** -* plotly.js (cartesian) v4.2.0 +* plotly.js (cartesian) v4.3.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.2.0"; + exports.version = "4.3.0"; } }); @@ -9261,7 +9261,7 @@ var Plotly = (() => { for (var i = 1; i < length; i++) { input = inputs[i]; for (key in input) { - src = target[key]; + src = Object.prototype.hasOwnProperty.call(target, key) ? target[key] : void 0; copy = input[key]; if (noArrayCopies && isArray(copy)) { target[key] = copy; @@ -19641,8 +19641,8 @@ var Plotly = (() => { }; var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/; var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/; - function notValid(prop) { - return prop.slice(0, 2) === "__"; + function notValid(obj, prop) { + return prop in obj && !Object.prototype.hasOwnProperty.call(obj, prop); } lib.expandObjectPaths = function(data) { var match, key, prop, datum, idx, dest, trailingPath; @@ -19652,7 +19652,7 @@ var Plotly = (() => { if (match = key.match(dottedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; delete data[key]; data[prop] = lib.extendDeepNoArrays( data[prop] || {}, @@ -19661,7 +19661,7 @@ var Plotly = (() => { } else if (match = key.match(indexedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; idx = parseInt(match[2]); delete data[key]; data[prop] = data[prop] || []; @@ -19670,11 +19670,11 @@ var Plotly = (() => { dest = data[prop][idx] = data[prop][idx] || {}; lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum))); } else { - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; data[prop][idx] = lib.expandObjectPaths(datum); } } else { - if (notValid(key)) continue; + if (notValid(data, key)) continue; data[key] = lib.expandObjectPaths(data[key]); } } @@ -22229,7 +22229,7 @@ var Plotly = (() => { ax._counterAxes.sort(axisIDs.idSort); ax._subplotsWith.sort(Lib.subplotSort); ax._mainSubplot = findMainSubplot(ax, newFullLayout); - if (ax._counterAxes.length && (ax.spikemode && ax.spikemode.indexOf("across") !== -1 || ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { + if (ax._counterAxes.length && (ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { var min = 1; var max = 0; for (j = 0; j < ax._counterAxes.length; j++) { @@ -25421,6 +25421,33 @@ var Plotly = (() => { dflt: [0, 1], editType: "plot" }, + domainpad: { + left: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + right: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + top: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + bottom: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + editType: "plot" + }, position: { valType: "number", min: 0, @@ -29097,6 +29124,12 @@ var Plotly = (() => { function isValidCategory(v) { return v !== null && v !== void 0; } + var MIN_PADDED_LENGTH = 2; + function padFactor(wanted, bandLength) { + if (wanted <= 0) return 0; + const room = Math.max(0, bandLength - MIN_PADDED_LENGTH); + return wanted > room ? room / wanted : 1; + } module.exports = function setConvert(ax, fullLayout) { fullLayout = fullLayout || {}; var axId = ax._id || "x"; @@ -29467,6 +29500,7 @@ var Plotly = (() => { if (ax.overlaying) { var ax2 = axisIds.getFromId({ _fullLayout: fullLayout }, ax.overlaying); ax.domain = ax2.domain; + ax.domainpad = ax2.domainpad; } var rangeAttr = usePrivateRange && ax._r ? "_r" : "range"; var calendar = ax.calendar; @@ -29474,14 +29508,26 @@ var Plotly = (() => { var rl0 = ax.r2l(ax[rangeAttr][0], calendar); var rl1 = ax.r2l(ax[rangeAttr][1], calendar); var isY2 = axLetter === "y"; + const bandLength = (isY2 ? gs.h : gs.w) * (ax.domain[1] - ax.domain[0]); + const pad = ax.domainpad; + let padStart = 0; + let padEnd = 0; + if (pad) { + padStart = (isY2 ? pad.top : pad.left) || 0; + padEnd = (isY2 ? pad.bottom : pad.right) || 0; + const fits = padFactor(padStart + padEnd, bandLength); + padStart *= fits; + padEnd *= fits; + } + ax._length = bandLength - padStart - padEnd; + ax._padStart = padStart; + ax._padEnd = padEnd; if (isY2) { - ax._offset = gs.t + (1 - ax.domain[1]) * gs.h; - ax._length = gs.h * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.t + (1 - ax.domain[1]) * gs.h + padStart; ax._m = ax._length / (rl0 - rl1); ax._b = -ax._m * rl1; } else { - ax._offset = gs.l + ax.domain[0] * gs.w; - ax._length = gs.w * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.l + ax.domain[0] * gs.w + padStart; ax._m = ax._length / (rl1 - rl0); ax._b = -ax._m * rl0; } @@ -31338,7 +31384,7 @@ var Plotly = (() => { for (var i = 0; i < vals.length; i++) { var vali = tickVal2l(vals[i]); if (vali > tickMin && vali < tickMax) { - var obj = axes.tickText(ax, vali, false, String(text[i]), { + const obj = axes.tickText(ax, vali, false, text[i] !== void 0, { first: i === firstIdx, last: i === lastIdx }); @@ -33427,6 +33473,7 @@ var Plotly = (() => { var noSwapAttrs = [ "anchor", "domain", + "domainpad", "overlaying", "position", "side", @@ -38012,6 +38059,30 @@ var Plotly = (() => { } return d; } + function getAcrossSpikeSpan(gd, ax, gs) { + const isY = ax._id.charAt(0) === "y"; + let start = Infinity; + let end = -Infinity; + for (const counterId of ax._counterAxes || []) { + const counterAx = Axes.getFromId(gd, counterId); + if (!counterAx) continue; + const padStart = counterAx._padStart || 0; + const padEnd = counterAx._padEnd || 0; + if (isY) { + start = Math.min(start, gs.l + counterAx.domain[0] * gs.w + padStart); + end = Math.max(end, gs.l + counterAx.domain[1] * gs.w - padEnd); + } else { + start = Math.min(start, gs.t + (1 - counterAx.domain[1]) * gs.h + padStart); + end = Math.max(end, gs.t + (1 - counterAx.domain[0]) * gs.h - padEnd); + } + } + if (ax.anchor === "free") { + const position = isY ? gs.l + ax.position * gs.w : gs.t + (1 - ax.position) * gs.h; + start = Math.min(start, position); + end = Math.max(end, position); + } + return [start, end]; + } function createSpikelines(gd, closestPoints, opts) { var container = opts.container; var fullLayout = opts.fullLayout; @@ -38048,14 +38119,9 @@ var Plotly = (() => { xEndSpike = hLinePointX; } if (yMode.indexOf("across") !== -1) { - var xAcross0 = ya._counterDomainMin; - var xAcross1 = ya._counterDomainMax; - if (ya.anchor === "free") { - xAcross0 = Math.min(xAcross0, ya.position); - xAcross1 = Math.max(xAcross1, ya.position); - } - xBase = gs.l + xAcross0 * gs.w; - xEndSpike = gs.l + xAcross1 * gs.w; + const xSpan = getAcrossSpikeSpan(gd, ya, gs); + xBase = xSpan[0]; + xEndSpike = xSpan[1]; } container.insert("line", ":first-child").attr({ x1: xBase, @@ -38109,14 +38175,9 @@ var Plotly = (() => { yEndSpike = vLinePointY; } if (xMode.indexOf("across") !== -1) { - var yAcross0 = xa._counterDomainMin; - var yAcross1 = xa._counterDomainMax; - if (xa.anchor === "free") { - yAcross0 = Math.min(yAcross0, xa.position); - yAcross1 = Math.max(yAcross1, xa.position); - } - yBase = gs.t + (1 - yAcross1) * gs.h; - yEndSpike = gs.t + (1 - yAcross0) * gs.h; + const ySpan = getAcrossSpikeSpan(gd, xa, gs); + yBase = ySpan[0]; + yEndSpike = ySpan[1]; } container.insert("line", ":first-child").attr({ x1: vLinePointX, @@ -42772,7 +42833,7 @@ var Plotly = (() => { var outerMax = rangeCenter + halfRange * factor * 1.0001; var getPadMin = autorange.makePadFn(fullLayout, ax, 0); var getPadMax = autorange.makePadFn(fullLayout, ax, 1); - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); var m = Math.abs(ax._m); var extremes = autorange.concatExtremes(gd, ax); var minArray = extremes.min; @@ -42797,7 +42858,7 @@ var Plotly = (() => { rangeMax = ax.l2r(rangeMax); ax.range = ax._input.range = rl0 < rl1 ? [rangeMin, rangeMax] : [rangeMax, rangeMin]; } - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); } } } @@ -42828,13 +42889,26 @@ var Plotly = (() => { } } }; - function updateDomain(ax, factor) { + function domainPadFraction(ax, fullLayout) { + const pad = ax.domainpad; + if (!pad) return 0; + const gs = fullLayout._size; + return ax._id.charAt(0) === "y" ? ((pad.top || 0) + (pad.bottom || 0)) / gs.h : ((pad.left || 0) + (pad.right || 0)) / gs.w; + } + function updateDomain(ax, factor, fullLayout) { var inputDomain = ax._inputDomain; var centerFraction = FROM_BL2[ax.constraintoward]; var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction; + let divisor = factor; + const padFraction = domainPadFraction(ax, fullLayout); + if (padFraction > 0) { + const inputSpan = inputDomain[1] - inputDomain[0]; + const drawnSpan = inputSpan - padFraction; + if (drawnSpan > 0) divisor = inputSpan / (drawnSpan / factor + padFraction); + } ax.domain = ax._input.domain = [ - center + (inputDomain[0] - center) / factor, - center + (inputDomain[1] - center) / factor + center + (inputDomain[0] - center) / divisor, + center + (inputDomain[1] - center) / divisor ]; ax.setScale(); } @@ -50063,6 +50137,10 @@ var Plotly = (() => { if (!newType || newType === "-") newType = "linear"; Registry.getComponentMethod("annotations", "convertCoords")(gd, fullProp, newType, doextra); Registry.getComponentMethod("images", "convertCoords")(gd, fullProp, newType, doextra); + if (!ptrunk && fullProp && vi && (vi.range !== void 0 || vi.autorange !== void 0)) { + recordAlteredAxis(`${pleaf}.range`); + fullProp._inputRange = null; + } } var containerArrayMatch = manageArrays.containerArrayMatch(ai); if (containerArrayMatch) { @@ -50576,6 +50654,14 @@ var Plotly = (() => { newFullLayout[key]._inputDomain = null; } } + const newRange = newFullLayout[key].range; + const oldRange = oldFullLayout[key].range; + const oldInputRange = oldFullLayout[key]._inputRange; + if (oldInputRange && newRange && oldRange) { + const isInputRange = newRange[0] === oldInputRange[0] && newRange[1] === oldInputRange[1]; + const isOldRange = newRange[0] === oldRange[0] && newRange[1] === oldRange[1]; + if (!isInputRange && !isOldRange) newFullLayout[key]._inputRange = null; + } } var diffOpts = { getValObject: getLayoutValObject, @@ -55824,6 +55910,13 @@ var Plotly = (() => { var domain = coerce("domain", dfltDomain); if (domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain; Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain); + if (letter === "x") { + coerce("domainpad.left"); + coerce("domainpad.right"); + } else { + coerce("domainpad.top"); + coerce("domainpad.bottom"); + } if (containerOut.tickmode === "sync") { containerOut.tickmode = "auto"; } @@ -61200,9 +61293,8 @@ var Plotly = (() => { } axisOpts.cleanRange("rangeslider.range"); var gs = fullLayout._size; - var domain = axisOpts.domain; - opts2._width = gs.w * (domain[1] - domain[0]); - var x = Math.round(gs.l + gs.w * domain[0]); + opts2._width = axisOpts._length; + const x = Math.round(axisOpts._offset); var y = Math.round( gs.t + gs.h * (1 - axisOpts._counterDomainMin) + (axisOpts.side === "bottom" ? axisOpts._depth : 0) + opts2._offsetShift + constants2.extraPad ); diff --git a/dist/plotly-cartesian.min.js b/dist/plotly-cartesian.min.js index e384d849bf3..0855188b983 100644 --- a/dist/plotly-cartesian.min.js +++ b/dist/plotly-cartesian.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (cartesian - minified) v4.2.0 +* plotly.js (cartesian - minified) v4.3.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,69 +12,69 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{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++{var Qce=Object.create;var $v=Object.defineProperty,e0e=Object.defineProperties,r0e=Object.getOwnPropertyDescriptor,t0e=Object.getOwnPropertyDescriptors,a0e=Object.getOwnPropertyNames,z1=Object.getOwnPropertySymbols,n0e=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)=>e0e(e,t0e(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 a0e(r))!h5.call(e,n)&&n!==t&&$v(e,n,{get:()=>r[n],enumerable:!(a=r0e(r,n))||a.enumerable});return e};var wc=(e,r,t)=>(t=e!=null?Qce(n0e(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.3.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,q){x=new _(M,q),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,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,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,S=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,S=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/(U-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,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S>>1;h(g[D],A)<0?S=D+1:L=D}return S},right:function(g,A,S,L){for(arguments.length<3&&(S=0),arguments.length<4&&(L=g.length);S>>1;h(g[D],A)>0?L=D:S=D+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,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 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,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 S=[],L=T(b(A)),D=-1,O;if(h*=L,g*=L,A*=L,A<0)for(;(O=h+A*++D)>g;)S.push(O/L);else for(;(O=h+A*++D)=g.length)return L?L.call(h,U):S?U.sort(S):U;for(var Z=-1,K=U.length,Q=g[X++],pe,we,ee,fe=new x,ve;++Z=g.length)return F;var X=[],Z=A[U++];return F.forEach(function(K,Q){X.push({key:K,values:O(Q,U)})}),Z?X.sort(function(K,Q){return Z(K.key,Q.key)}):X}return h.map=function(F,U){return D(U,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 S=F,h},h.rollup=function(F){return L=F,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 V(h){var g=[],A=new x;function S(){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 S(){this.removeAttributeNS(h.space,h.local)}function L(){this.setAttribute(h,g)}function D(){this.setAttributeNS(h.space,h.local,g)}function O(){var U=g.apply(this,arguments);U==null?this.removeAttribute(h):this.setAttribute(h,U)}function F(){var U=g.apply(this,arguments);U==null?this.removeAttributeNS(h.space,h.local):this.setAttributeNS(h.space,h.local,U)}return g==null?h.local?S: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(),S=(h=Ee(h)).length,L=-1;if(g=A.classList){for(;++L=0;)(D=A[S])&&(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);!(U=O[g])&&++g0&&(h=h.slice(0,L));var O=Ie.get(h);O&&(h=O,D=Oe);function F(){var Z=this[S];Z&&(this.removeEventListener(h,Z,Z.$),delete this[S])}function U(){var Z=D(g,t(arguments));F.call(this),this.addEventListener(h,this[S]=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?U: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 S=e.event;e.event=A,g[0]=this.__data__;try{h.apply(this,g)}finally{e.event=S}}}function Oe(h,g){var A=We(h,g);return function(S){var L=this,D=S.relatedTarget;(!D||D!==L&&!(D.compareDocumentPosition(L)&8))&&A.call(L,S)}}var Xe,Qe=0;function _r(h){var g=".dragsuppress-"+ ++Qe,A="click"+g,S=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(S.on(g,null),Xe&&(L[Xe]=D),O){var F=function(){S.on(A,null)};S.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 S=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?(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 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 S=0,L=g.length,D;S0?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],S=h[1],L=h[2],D=g[0],O=g[1],F=g[2],U=D-A,X=O-S,Z=U*U+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(U,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,Kce),Un.push(So);for(var on=e.event.changedTouches,Bi=0,il=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,il,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,S=2*A-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 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 S=(h+16)/116,L=S+g/500,D=S-A/200;return L=Ht(L)*ma,S=Ht(S)*pi,D=Ht(D)*nt,new ta(On(3.2404542*L-1.5371385*S-.4985314*D),On(-.969266*L+1.8760108*S+.041556*D),On(.0556434*L-.2040259*S+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,S=this.b,L=30;return!g&&!A&&!S?new ta(L,L,L):(g&&g>4,S=S>>4|S,L=U&240,L=L>>4|L,D=U&15,D=D<<4|D):h.length===7&&(S=(U&16711680)>>16,L=(U&65280)>>8,D=U&255)),g(S,L,D))}function p1(h,g,A){var S=Math.min(h/=255,g/=255,A/=255),L=Math.max(h,g,A),D=L-S,O,F,U=(L+S)/2;return D?(F=U<.5?D/(L+S):D/(2-L-S),h==L?O=(g-A)/D+(g0&&U<1?0:O),new tr(O,F,U)}function m1(h,g,A){h=Bv(h),g=Bv(g),A=Bv(A);var S=$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*(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,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,S){return arguments.length===2&&typeof A=="function"&&(S=A,A=null),ur(g,A,h,S)}}function ur(h,g,A,S){var L={},D=e.dispatch("beforesend","progress","load","error"),O={},F=new XMLHttpRequest,U=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?(U=Z,L):U},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),U!=null&&(F.responseType=U),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(An(S))}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+` +]`),S=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(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(;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[S-2]],h[A[S-1]],h[L])<=0;)--S;A[S++]=L}return A.slice(0,S)}function rfe(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,S=this[g-1],L=0;++hze)F=F.L;else if(O=g-ife(F,A),O>ze){if(!F.R){S=F;break}F=F.R}else{D>-ze?(S=F.P,L=F):O>-ze?(S=F,L=F.N):S=L=F;break}var U=Rk(h);if(yc.insert(S,U),!(!S&&!L)){if(S===L){bc(S),L=Rk(S.site),yc.insert(U,L),U.edge=L.edge=Gv(S.site,U.site),gc(S),gc(L);return}if(!L){U.edge=Gv(S.site,U.site);return}bc(S),bc(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,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),U.edge=Gv(X,h,null,de),L.edge=Gv(h,we,null,de),gc(S),gc(L)}}function Fk(h,g){var A=h.site,S=A.x,L=A.y,D=L-g;if(!D)return S;var O=h.P;if(!O)return-1/0;A=O.site;var F=A.x,U=A.y,X=U-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)-U+X/2+L-D/2)))/K+S:(S+F)/2}function ife(h,g){var A=h.N;if(A)return Fk(A,g);var S=h.site;return S.y===g?S.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 ofe(h){for(var g=h[0][0],A=h[1][0],S=h[0][1],L=h[1][1],D,O,F,U,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(U-O)>ze)&&(pe.splice(Q,0,new x1(cfe(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-S)=-rr)){var Q=U*U+X*X,pe=Z*Z+fe*fe,we=(fe*Q-X*pe)/K,ee=(U*pe-Z*Q)/K,fe=ee+F,ve=Pk.pop()||new lfe;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=S-U,!(!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:U+K*we}),Q<1&&(L.b={x:F+Q*pe,y:U+Q*we}),L}}}}}}function ufe(h){for(var g=mc,A=sfe(h[0][0],h[0][1],h[1][0],h[1][1]),S=g.length,L;S--;)L=g[S],(!ffe(L,h)||!A(L)||b(L.a.x-L.b.x)=D)return;if(Z>Q){if(!S)S={x:we,y:O};else if(S.y>=F)return;A={x:we,y:F}}else{if(!S)S={x:we,y:F};else if(S.y1)if(Z>Q){if(!S)S={x:(O-ve)/fe,y:O};else if(S.y>=F)return;A={x:(F-ve)/fe,y:F}}else{if(!S)S={x:(F-ve)/fe,y:F};else if(S.y=D)return;A={x:D,y:fe*D+ve}}else{if(!S)S={x:D,y:fe*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=U[ee]}),X}function F(U){return U.map(function(X,Z){return{x:Math.round(S(X,Z)/ze)*ze,y:Math.round(L(X,Z)/ze)*ze,i:Z}})}return O.links=function(U){return Vx(F(U)).edges.filter(function(X){return X.l&&X.r}).map(function(X){return{source:U[X.l.i],target:U[X.r.i]}})},O.triangles=function(U){var X=[];return Vx(F(U)).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 mfe(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),(S=S[0])===(L=L[0])?F[O]?F[O]+=L:F[++O]=L:(F[++O]=null,U.push({i:O,x:Nl(S,L)})),A=Xx.lastIndex;return A=0&&!(S=e.interpolators[A](h,g)););return S}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=[],S=[],L=h.length,D=g.length,O=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 A=yfe.get(A)||Gk,S=gfe.get(S)||N,bfe(S(A.apply(null,r.call(arguments,1))))};function bfe(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 xfe(h){return h*h}function _fe(h){return h*h*h}function wfe(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 Tfe(h){return function(g){return Math.pow(g,h)}}function Afe(h){return 1-Math.cos(h*ie)}function Mfe(h){return Math.pow(2,10*(h-1))}function kfe(h){return 1-Math.sqrt(1-h*h)}function Sfe(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(S){return 1+h*Math.pow(2,-10*S)*Math.sin((S-A)*pr/g)}}function qfe(h){return h||(h=1.70158),function(g){return g*g*((h+1)*g-h)}}function Lfe(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=Cfe;function Cfe(h,g){h=e.hcl(h),g=e.hcl(g);var A=h.h,S=h.c,L=h.l,D=g.h-A,O=g.c-S,F=g.l-L;return isNaN(O)&&(O=0,S=isNaN(S)?g.c:S),isNaN(D)?(D=0,A=isNaN(A)?g.h:A):D>180?D-=360:D<-180&&(D+=360),function(U){return qa(A+D*U,S+O*U,L+F*U)+""}}e.interpolateHsl=Dfe;function Dfe(h,g){h=e.hsl(h),g=e.hsl(g);var A=h.h,S=h.s,L=h.l,D=g.h-A,O=g.s-S,F=g.l-L;return isNaN(O)&&(O=0,S=isNaN(S)?g.s:S),isNaN(D)?(D=0,A=isNaN(A)?g.h:A):D>180?D-=360:D<-180&&(D+=360),function(U){return Yr(A+D*U,S+O*U,L+F*U)+""}}e.interpolateLab=Efe;function Efe(h,g){h=e.lab(h),g=e.lab(g);var A=h.l,S=h.a,L=h.b,D=g.l-A,O=g.a-S,F=g.b-L;return function(U){return Wr(A+D*U,S+O*U,L+F*U)+""}}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 S=g.transform.baseVal.consolidate()}return new Wk(S?S.matrix:Rfe)})(h)};function Wk(h){var g=[h.a,h.b],A=[h.c,h.d],S=Zk(g),L=Xk(g,A),D=Zk(Pfe(A,g,-L))||0;g[0]*A[1]180?g+=360:g-h>180&&(h+=360),S.push({i:A.push(xc(A)+"rotate(",null,")")-2,x:Nl(h,g)})):g&&A.push(xc(A)+"rotate("+g+")")}function Nfe(h,g,A,S){h!==g?S.push({i:A.push(xc(A)+"skewX(",null,")")-2,x:Nl(h,g)}):g&&A.push(xc(A)+"skewX("+g+")")}function Ife(h,g,A,S){if(h[0]!==g[0]||h[1]!==g[1]){var L=A.push(xc(A)+"scale(",null,",",null,")");S.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=[],S=[];return h=e.transform(h),g=e.transform(g),Ffe(h.translate,g.translate,A,S),zfe(h.rotate,g.rotate,A,S),Nfe(h.skew,g.skew,A,S),Ife(h.scale,g.scale,A,S),h=g=null,function(L){for(var D=-1,O=S.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=S[0],fr=S[1],br,xr;for(de=0;de=0;)D.push(Z=X[U]),Z.parent=F,Z.depth=F.depth+1;A&&(F.value=0),F.children=X}else A&&(F.value=+A.call(S,F,F.depth)||0),delete F.children;return nl(L,function(K){var Q,pe;h&&(Q=K.children)&&Q.sort(h),A&&(pe=K.parent)&&(pe.value+=K.value)}),O}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?(A=L,S):A},S.revalue=function(L){return A&&(Xv(L,function(D){D.children&&(D.value=0)}),nl(L,function(D){var O;D.children||(D.value=+A.call(S,D,D.depth)||0),(O=D.parent)&&(O.value+=D.value)})),L},S};function Wv(h,g){return e.rebind(h,g,"sort","children","value"),h.nodes=h,h.links=Qfe,h}function Xv(h,g){for(var A=[h];(h=A.pop())!=null;)if(g(h),(L=h.children)&&(S=L.length))for(var S,L;--S>=0;)A.push(L[S])}function nl(h,g){for(var A=[h],S=[];(h=A.pop())!=null;)if(S.push(h),(O=h.children)&&(D=O.length))for(var L=-1,D,O;++LL&&(L=F),S.push(F)}for(O=0;OS&&(A=g,S=L);return A}function oce(h){return h.reduce(lce,0)}function lce(h,g){return h+g[1]}e.layout.histogram=function(){var h=!0,g=Number,A=uce,S=sce;function L(D,Q){for(var F=[],U=D.map(g,this),X=A.call(this,U,Q),Z=S.call(this,X,U,Q),K,Q=-1,pe=U.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?(S=typeof D=="number"?function(O){return eS(O,D)}:Mr(D),L):S},L.frequency=function(D){return arguments.length?(h=!!D,L):h},L};function sce(h,g){return eS(h,Math.ceil(Math.log(g.length)/Math.LN2+1))}function eS(h,g){for(var A=-1,S=+h[0],L=(h[1]-S)/g,D=[];++A<=g;)D[A]=L*A+S;return D}function uce(h){return[e.min(h),e.max(h)]}e.layout.pack=function(){var h=e.layout.hierarchy().sort(fce),g=0,A=[1,1],S;function L(D,O){var F=h.call(this,D,O),U=F[0],X=A[0],Z=A[1],K=S==null?Math.sqrt:typeof S=="function"?S:function(){return S};if(U.x=U.y=0,nl(U,function(pe){pe.r=+K(pe.value)}),nl(U,aS),g){var Q=g*(S?1:Math.max(2*U.r/X,2*U.r/Z))/2;nl(U,function(pe){pe.r+=Q}),nl(U,aS),nl(U,function(pe){pe.r-=Q})}return nS(U,X/2,Z/2,S?1:1/Math.max(2*U.r/X,2*U.r/Z)),F}return L.size=function(D){return arguments.length?(A=D,L):A},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 fce(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,S=g.y-h.y,L=h.r+g.r;return .999*L*L>A*A+S*S}function aS(h){if(!(g=h.children)||!(Q=g.length))return;var g,A=1/0,S=-1/0,L=1/0,D=-1/0,O,F,U,X,Z,K,Q;function pe(de){A=Math.min(de.x-de.r,A),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(cce),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(U=g[2],iS(O,F,U),pe(U),Jx(O,U),O._pack_prev=U,Jx(U,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&&(hce(pce(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?(S=(A=Z)==null?X:null,L):S?null:A},L.nodeSize=function(Z){return arguments.length?(S=(A=Z)==null?null:X,L):S?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 hce(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 dce(h){for(var g=0,A=0,S=h.children,L=S.length,D;--L>=0;)D=S[L],D.z+=g,D.m+=g,g+=D.s+(A+=D.c)}function pce(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],S=!1;function L(D,O){var F=h.call(this,D,O),U=F[0],X,Z=0;nl(U,function(ee){var fe=ee.children;fe&&fe.length?(ee.x=yce(fe),ee.y=mce(fe)):(ee.x=X?Z+=g(ee,X):0,ee.y=0,X=ee)});var K=lS(U),Q=sS(U),pe=K.x-g(K,Q)/2,we=Q.x+g(Q,K)/2;return nl(U,S?function(ee){ee.x=(ee.x-U.x)*A[0],ee.y=(U.y-ee.y)*A[1]}:function(ee){ee.x=(ee.x-pe)/(we-pe)*A[0],ee.y=(1-(U.y?ee.y/U.y:1))*A[1]}),F}return L.separation=function(D){return arguments.length?(g=D,L):g},L.size=function(D){return arguments.length?(S=(A=D)==null,L):S?null:A},L.nodeSize=function(D){return arguments.length?(S=(A=D)!=null,L):S?A:null},Wv(L,h)};function mce(h){return 1+e.max(h,function(g){return g.y})}function yce(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],S=null,L=e5,D=!1,O,F="squarify",U=.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*U/ve,ve/(fe*de*U)):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*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,A=0;A2?xce:gce,X=S?Ofe:Bfe;return L=U(h,g,X,A),D=U(g,h,X,Du),F}function F(U){return L(U)}return F.invert=function(U){return D(U)},F.domain=function(U){return arguments.length?(h=U.map(Number),O()):h},F.range=function(U){return arguments.length?(g=U,O()):g},F.rangeRound=function(U){return F.range(U).interpolate(jk)},F.clamp=function(U){return arguments.length?(S=U,O()):S},F.interpolate=function(U){return arguments.length?(A=U,O()):A},F.ticks=function(U){return a5(h,U)},F.tickFormat=function(U,X){return d3_scale_linearTickFormat(h,U,X)},F.nice=function(U){return hS(h,U),O()},F.copy=function(){return cS(h,g,A,S)},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),S=A[1]-A[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),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 _ce={s:1,g:1,p:1,r:1,e:1};function dS(h){return-Math.floor(Math.log(h)/Math.LN10+.01)}function bje(h,g){var A=dS(g[2]);return h in _ce?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,S){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((S=F.map(Number)).map(L)),O):S},O.base=function(F){return arguments.length?(g=+F,h.domain(S.map(L)),O):g},O.nice=function(){var F=r5(S.map(L),A?Math:wce);return h.domain(F),S=F.map(D),O},O.ticks=function(){var F=A1(S),U=[],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--)U.push(D(K)*we);for(K=0;U[K]Z;Q--);U=U.slice(K,Q)}return U},O.copy=function(){return pS(h.copy(),g,A,S)},vS(O,h)}var wce={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 S=k1(g),L=k1(1/g);function D(O){return h(S(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(S)),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?(S=k1(g=O),L=k1(1/g),h.domain(A.map(S)),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,S,L;function D(F){return S[((A.get(F)||(g.t==="range"?A.set(F,h.push(F)):NaN))-1)%S.length]}function O(F,U){return e.range(h.length).map(function(X){return F+U*X})}return D.domain=function(F){if(!arguments.length)return h;h=[],A=new x;for(var U=-1,X=F.length,Z;++U0?A[D-1]:h[0],DQ?0:1;if(Z=mr)return U(Z,we)+(X?U(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=S===S1?Math.sqrt(X*X+Z*Z):+S.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,S,L){var D=h[0]-g[0],O=h[1]-g[1],F=(L?S:-S)/Math.sqrt(D*D+O*O),U=F*O,X=-F*D,Z=h[0]+U,K=h[1]+X,Q=g[0]+U,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-S,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-U,hr-X],[lr*A/Te,hr*A/Te]]}function AS(){return!0}function MS(h){var g=pc,A=Hv,S=AS,L=ko,D=L.key,O=.7;function F(U){var X=[],Z=[],K=-1,Q=U.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 Dce(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g1&&L.push("H",S[0]),L.join("")}function i5(h){for(var g=0,A=h.length,S=h[0],L=[S[0],",",S[1]];++g1){F=g[1],D=h[U],U++,S+="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*S,O[F+1]=D*L));for(F=-1;++F<=U;)D=(h[Math.min(U,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 Oce(h){return h.length<3?ko(h):h[0]+C1(h,Bce(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,S=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?(S=Mr(Z),D):S},D.endAngle=function(Z){return arguments.length?(L=Mr(Z),D):L},D};function Hce(h){return h.radius}e.svg.diagonal=function(){var h=ES,g=PS,A=RS;function S(L,D){var O=h.call(this,L,D),F=g.call(this,L,D),U=(O.y+F.y)/2,X=[O,{x:O.x,y:U},{x:F.x,y:U},F];return X=X.map(A),"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?(A=L,S):A},S};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(S){return arguments.length?A(Uce(g=S)):g},h};function Uce(h){return function(){var g=h.apply(this,arguments),A=g[0],S=g[1]-ie;return[A*Math.cos(S),A*Math.sin(S)]}}e.svg.symbol=function(){var h=Yce,g=Gce;function A(S,L){return(zS.get(h.call(this,S,L))||FS)(g.call(this,S,L))}return A.type=function(S){return arguments.length?(h=Mr(S),A):h},A.size=function(S){return arguments.length?(g=Mr(S),A):g},A};function Gce(){return 64}function Yce(){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),S=[],L,D,O=P1||{time:Date.now(),ease:wfe,delay:0,duration:250},F=-1,U=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[S]:delete h[A],1}O||(F=L.time,U=y1(Q,0,F),O=D[S]={tween:new x,time:F,timer:U,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,S=6,L=3,D=[10],O=null,F;function U(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=Wce,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*S+"V0H"+Ve[1]+"V"+Er*S)):(de=Xce,ct="y",xt="x",ya="y2",ir="x2",xr.attr("dy",".32em").style("text-anchor",Er<0?"end":"start"),hr.attr("d","M"+Er*S+","+Ve[0]+"H0V"+Ve[1]+"H"+Er*S)),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 U.scale=function(X){return arguments.length?(h=X,U):h},U.orient=function(X){return arguments.length?(g=X in jce?X+"":OS,U):g},U.ticks=function(){return arguments.length?(D=t(arguments),U):D},U.tickValues=function(X){return arguments.length?(O=X,U):O},U.tickFormat=function(X){return arguments.length?(F=X,U):F},U.tickSize=function(X){var Z=arguments.length;return Z?(A=+X,S=+arguments[Z-1],U):A},U.innerTickSize=function(X){return arguments.length?(A=+X,U):A},U.outerTickSize=function(X){return arguments.length?(S=+X,U):S},U.tickPadding=function(X){return arguments.length?(L=+X,U):L},U.tickSubdivide=function(){return arguments.length&&U},U};var OS="bottom",jce={top:1,right:1,bottom:1,left:1};function Wce(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate("+(isFinite(L)?L:A(S))+",0)"})}function Xce(h,g,A){h.attr("transform",function(S){var L=g(S);return"translate(0,"+(isFinite(L)?L:A(S))+")"})}e.svg.brush=function(){var h=le(Z,"brushstart","brush","brushend"),g=null,A=null,S=[0,0],L=[0,0],D,O,F=!0,U=!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 Zce[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:S,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,S=_e.x,L=_e.y,fe({type:"brushstart"})}).tween("brush:brush",function(){var Te=T1(S,ve.x),de=T1(L,ve.y);return D=O=null,function(Ve){S=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("+S[+/e$/.test(fe)]+","+L[+/^s/.test(fe)]+")"})}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,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]=S[0]-br[0],br[1]=L[0]-br[1];else if(Te){var Tr=+/w$/.test(Te),Er=+/^n/.test(Te);xr=[S[1-Tr]-br[0],L[1-Er]-br[1]],br[0]=S[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]-=S[1],br[1]-=L[1],lr=2),J())}function ya(){e.event.keyCode==32&&lr==2&&(br[0]+=S[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=[(S[0]+S[1])/2,(L[0]+L[1])/2]),br[0]=S[+(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),q=w(4),C=w(5),E=w(6),P=x.range,R=_.range,B=k.range,I=M.range,N=q.range,H=C.range,G=E.range,Y=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=Y.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 V=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=H,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=Y,e.timeMonths=j,e.timeSaturday=E,e.timeSaturdays=G,e.timeSecond=c,e.timeSeconds=v,e.timeSunday=x,e.timeSundays=P,e.timeThursday=q,e.timeThursdays=N,e.timeTuesday=k,e.timeTuesdays=B,e.timeWednesday=M,e.timeWednesdays=I,e.timeWeek=x,e.timeWeeks=P,e.timeYear=W,e.timeYears=V,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:Y,e:Y,f:re,g:me,G:Me,H:j,I:W,j:V,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:q,e:q,f:I,g:x,G:w,H:E,I:E,j:C,L:B,m:M,M:P,p:bt,q:k,Q:H,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 q(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 B(ie,ye,Fe){var He=l.exec(ye.slice(Fe,Fe+3));return He?(ie.L=+He[0],Fe+He[0].length):-1}function I(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 H(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 Y(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 V(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,q){if((C=(M=q?M.toExponential(q-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,q){return function(C,E){for(var P=C.length,R=[],B=0,I=M[0],N=0;P>0&&I>0&&(N+I+1>E&&(I=Math.max(1,E-N)),R.push(C.substring(P-=I,P+I)),!((N+=I+1)>E));)I=M[B=(B+1)%M.length];return R.reverse().join(q)}}function i(M){return function(q){return q.replace(/[0-9]/g,function(C){return M[+C]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function l(M){if(!(q=o.exec(M)))throw new Error("invalid format: "+M);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(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 q=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,q){var C=t(M,q);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,B=E.length;return R===B?E:R>B?E+new Array(R-B+1).join("0"):R>0?E.slice(0,R)+"."+E.slice(R):"0."+new Array(1-R).join("0")+t(M,Math.max(0,q+R-1))[0]}function v(M,q){var C=t(M,q);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,q){return(M*100).toFixed(q)},b:function(M){return Math.round(M).toString(2)},c:function(M){return M+""},d:r,e:function(M,q){return M.toExponential(q)},f:function(M,q){return M.toFixed(q)},g:function(M,q){return M.toPrecision(q)},o:function(M){return Math.round(M).toString(8)},p:function(M,q){return v(M*100,q)},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 q=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)),B=M.percent===void 0?"%":M.percent+"",I=M.minus===void 0?"-":M.minus+"",N=M.nan===void 0?"NaN":M.nan+"";function H(Y){Y=l(Y);var j=Y.fill,W=Y.align,V=Y.sign,J=Y.symbol,re=Y.zero,le=Y.width,ne=Y.comma,$=Y.precision,ce=Y.trim,te=Y.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)?B:"",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&&V!=="+"&&(qe=!1),Ce=(qe?V==="("?V:I:V==="-"||V==="("?"":V)+Ce,Me=(te==="s"?y[8+f/3]:"")+Me+(qe&&V==="("?")":""),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=q(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 Y+""},Pe}function G(Y,j){var W=H((Y=l(Y),Y.type="f",Y)),V=Math.max(-8,Math.min(8,Math.floor(a(j)/3)))*3,J=Math.pow(10,-V),re=y[8+V/3];return function(le){return W(J*le)+re}}return{format:H,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,q){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(q)/3)))*3-a(Math.abs(M)))}function k(M,q){return M=Math.abs(M),q=Math.abs(q)-M,Math.max(0,a(q)-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((Tje,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((Aje,rq)=>{"use strict";var i0e=eq();rq.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&i0e(t))return!1}else if(r!=="number")return!1;return e-e<1}});var aa={};Dt(aa,{ALMOST_EQUAL:()=>A0e,BADNUM:()=>m5,EPOCHJD:()=>T0e,FP_SAFE:()=>o0e,LOG_CLIP:()=>M0e,MINUS_SIGN:()=>k0e,ONEAVGMONTH:()=>d0e,ONEAVGQUARTER:()=>c0e,ONEAVGYEAR:()=>s0e,ONEDAY:()=>y0e,ONEHOUR:()=>g0e,ONEMAXMONTH:()=>h0e,ONEMAXQUARTER:()=>f0e,ONEMAXYEAR:()=>l0e,ONEMICROSEC:()=>w0e,ONEMILLI:()=>_0e,ONEMIN:()=>b0e,ONEMINMONTH:()=>p0e,ONEMINQUARTER:()=>v0e,ONEMINYEAR:()=>u0e,ONESEC:()=>x0e,ONEWEEK:()=>m0e});var m5,o0e,l0e,s0e,u0e,f0e,c0e,v0e,h0e,d0e,p0e,m0e,y0e,g0e,b0e,x0e,_0e,w0e,T0e,A0e,M0e,k0e,Kt=Ct(()=>{"use strict";m5=void 0,o0e=Number.MAX_VALUE*1e-4,l0e=316224e5,s0e=315576e5,u0e=31536e6,f0e=79488e5,c0e=78894e5,v0e=76896e5,h0e=26784e5,d0e=26298e5,p0e=24192e5,m0e=6048e5,y0e=864e5,g0e=36e5,b0e=6e4,x0e=1e3,_0e=1,w0e=.001,T0e=24405875e-1,A0e=1-1e-6,M0e=10,k0e="\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((Mje,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 S0e=y5().decode,q0e=Fu(),g5=Array.isArray,L0e=ArrayBuffer,C0e=DataView;function nq(e){return L0e.isView(e)&&!(e instanceof C0e)}qo.isTypedArray=nq;function G1(e){return g5(e)||nq(e)}qo.isArrayOrTypedArray=G1;function D0e(e){return!G1(e[0])}qo.isArray1D=D0e;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=E0e(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=S0e(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(),N0e=/^\w*$/,I0e=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 B0e=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,O0e=/^[^\.\[\]]+$/;pq.exports=function(e,r){for(;r;){var t=e.match(B0e);if(t)e=t[1];else if(e.match(O0e))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((Cje,yq)=>{"use strict";var H0e=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 H0e(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var xq=z((Dje,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;lU0e,modHalf:()=>G0e});function U0e(e,r){let t=e%r;return t<0?t+r:t}function G0e(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 Y0e(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:()=>j0e,HOVERFONT:()=>Z0e,HOVERFONTSIZE:()=>X0e,HOVERID:()=>J0e,HOVERMINTIME:()=>$0e,HOVERTEXTPAD:()=>W0e,YANGLE:()=>V0e});var V0e,j0e,W0e,X0e,Z0e,$0e,J0e,ah=Ct(()=>{"use strict";V0e=60,j0e=6,W0e=3,X0e=13,Z0e="Arial, sans-serif",$0e=50,J0e="-hover"});var Sc=z((Rje,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((Fje,kq)=>{"use strict";var K0e=Ia(),nh=Sc().hoverlabel,ih=St().extendFlat;kq.exports={hoverlabel:{bgcolor:ih({},nh.bgcolor,{arrayOk:!0}),bordercolor:ih({},nh.bordercolor,{arrayOk:!0}),font:K0e({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((zje,Sq)=>{"use strict";var Q0e=Ia(),eve=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:Q0e({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:eve.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var bC=z((Gje,gC)=>{var d_=Object.defineProperty,rve=Object.getOwnPropertyDescriptor,tve=Object.getOwnPropertyNames,ave=Object.prototype.hasOwnProperty,nve=(e,r)=>{for(var t in r)d_(e,t,{get:r[t],enumerable:!0})},ive=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of tve(r))!ave.call(e,n)&&n!==t&&d_(e,n,{get:()=>r[n],enumerable:!(a=rve(r,n))||a.enumerable});return e},ove=e=>ive(d_({},"__esModule",{value:!0}),e),Nq={};nve(Nq,{a98:()=>J2e,average:()=>the,averageAngle:()=>sl,averageNumber:()=>eL,blend:()=>r2e,blerp:()=>X5,clampChroma:()=>_2e,clampGamut:()=>H_,clampRgb:()=>x2e,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:()=>K2e,differenceCie76:()=>Zve,differenceCie94:()=>$ve,differenceCiede2000:()=>Jve,differenceCmc:()=>Kve,differenceEuclidean:()=>Ec,differenceHueChroma:()=>vh,differenceHueNaive:()=>Qq,differenceHueSaturation:()=>ch,differenceHyab:()=>Qve,differenceItp:()=>rhe,differenceKotsarenkoRamos:()=>ehe,displayable:()=>O_,dlab:()=>Q2e,dlch:()=>e1e,easingGamma:()=>hC,easingInOutSine:()=>Z2e,easingMidpoint:()=>oC,easingSmootherstep:()=>W2e,easingSmoothstep:()=>Y2e,easingSmoothstepInverse:()=>V2e,filterBrightness:()=>C2e,filterContrast:()=>D2e,filterDeficiencyDeuter:()=>U2e,filterDeficiencyProt:()=>H2e,filterDeficiencyTrit:()=>G2e,filterGrayscale:()=>R2e,filterHueRotate:()=>z2e,filterInvert:()=>F2e,filterSaturate:()=>P2e,filterSepia:()=>E2e,fixupAlpha:()=>Va,fixupHueDecreasing:()=>Yve,fixupHueIncreasing:()=>Gve,fixupHueLonger:()=>Uve,fixupHueShorter:()=>ll,formatCss:()=>Xde,formatHex:()=>Zde,formatHex8:()=>$de,formatHsl:()=>Kde,formatRgb:()=>Jde,getMode:()=>Sn,hsi:()=>r1e,hsl:()=>t1e,hsv:()=>a1e,hwb:()=>n1e,inGamut:()=>yp,interpolate:()=>f2e,interpolateWith:()=>sC,interpolateWithPremultipliedAlpha:()=>c2e,interpolatorLinear:()=>wr,interpolatorPiecewise:()=>Zq,interpolatorSplineBasis:()=>fC,interpolatorSplineBasisClosed:()=>cC,interpolatorSplineMonotone:()=>d2e,interpolatorSplineMonotone2:()=>p2e,interpolatorSplineMonotoneClosed:()=>m2e,interpolatorSplineNatural:()=>v2e,interpolatorSplineNaturalClosed:()=>h2e,itp:()=>i1e,jab:()=>o1e,jch:()=>l1e,lab:()=>s1e,lab65:()=>u1e,lch:()=>f1e,lch65:()=>c1e,lchuv:()=>v1e,lerp:()=>Iu,lrgb:()=>h1e,luv:()=>d1e,mapAlphaDivide:()=>iC,mapAlphaMultiply:()=>nC,mapTransferGamma:()=>o2e,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:()=>A2e,okhsl:()=>p1e,okhsv:()=>m1e,oklab:()=>y1e,oklch:()=>g1e,p3:()=>b1e,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:()=>x1e,random:()=>i2e,rec2020:()=>_1e,removeParser:()=>xve,rgb:()=>w1e,round:()=>eC,samples:()=>b2e,serializeHex:()=>z_,serializeHex8:()=>rC,serializeHsl:()=>aC,serializeRgb:()=>tC,toGamut:()=>w2e,trilerp:()=>Dve,unlerp:()=>Cve,useMode:()=>Et,useParser:()=>Yq,wcagContrast:()=>$2e,wcagLuminance:()=>h_,xyb:()=>T1e,xyz50:()=>A1e,xyz65:()=>M1e,yiq:()=>k1e});gC.exports=ove(Nq);var lve=(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=lve,sve={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=sve,uve=e=>Iq(Bq[e.toLowerCase()],6),Oq=uve,fve=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,cve=e=>{let r;return(r=e.match(fve))?Iq(parseInt(r[1],16),r[1].length):void 0},Hq=cve,ei="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Nje=`(?:${ei}|none)`,sh=`${ei}%`,Ije=`(?:${ei}%|none)`,p_=`(?:${ei}%|${ei})`,vve=`(?:${ei}%|${ei}|none)`,hve=`(?:${ei}(deg|grad|rad|turn)|${ei})`,Bje=`(?:${ei}(deg|grad|rad|turn)|${ei}|none)`,Cc="\\s*,\\s*",Oje=new RegExp("^"+vve+"$"),dve=new RegExp(`^rgba?\\(\\s*${ei}${Cc}${ei}${Cc}${ei}\\s*(?:,\\s*${p_}\\s*)?\\)$`),pve=new RegExp(`^rgba?\\(\\s*${sh}${Cc}${sh}${Cc}${sh}\\s*(?:,\\s*${p_}\\s*)?\\)$`),mve=e=>{let r={mode:"rgb"},t;if(t=e.match(dve))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(pve))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=mve,yve=(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=yve,gve=(e="rgb")=>r=>(r=Lo(r,e))!==void 0?r.mode===e?r:ol[r.mode][e]?ol[r.mode][e](r):e==="rgb"?ol[r.mode].rgb(r):ol.rgb[e](ol[r.mode].rgb(r)):void 0,Yt=gve,ol={},Gq={},Dc=[],m_={},bve=e=>e,Et=e=>(ol[e.mode]=At(At({},ol[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{ol[r]||(ol[r]={}),ol[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=bve)}),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)},xve=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_]/,_ve=/[^\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 wve={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*wve[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!==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;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 kve(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 Sve=e=>{if(typeof e!="string")return;let r=Ave(e),t=r?kve(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=Lve,Iu=(e,r,t)=>e+t*(r-e),Cve=(e,r,t)=>(t-e)/(r-e),X5=(e,r,t,a,n,i)=>Iu(Iu(e,r,n),Iu(t,a,n),i),Dve=(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),Eve=e=>{let r=[];for(let t=0;tr=>{let t=Eve(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},Pve={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=Pve,T5=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),Rve=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=Rve,A5=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),Fve=({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=Fve,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)},zve=({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=zve,Nve=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=Nve,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},Ive=({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=Ive,Bve=({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=Bve,Ove=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=Ove,Hve=e=>(e=e%360)<0?e+360:e,yn=Hve,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),[]),ll=e=>lp(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),Uve=e=>lp(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),Gve=e=>lp(e,r=>r>=0?r:r+360),Yve=e=>lp(e,r=>r<=0?r:r-360),ln=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Vve=Math.PI/180,jve=180/Math.PI,qq=ln[3]*ln[4],Lq=ln[1]*ln[4],Cq=ln[1]*ln[2]-ln[0]*ln[3],Wve=({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)*jve-120),a!==void 0&&(l.alpha=a),l},Jq=Wve,Xve=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Vve,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=Xve,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))}},Zve=()=>Ec("lab65"),$ve=(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))}},Jve=(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 q=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,B=(x+_)/2,I;x*_===0?I=k+M:(I=(k+M)/2,I-=(Math.abs(k-M)>Math.PI)*Math.PI,I+=(I<0)*2*Math.PI);let N=Math.pow(R-50,2),H=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),G=1+.015*N/Math.sqrt(20+N),Y=1+.045*B,j=1+.015*B*H,W=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*I-275)/25,2)),V=2*Math.sqrt(Math.pow(B,7)/(Math.pow(B,7)+Math.pow(25,7))),J=-1*Math.sin(2*W)*V;return Math.sqrt(Math.pow(q/(e*G),2)+Math.pow(C/(r*Y),2)+Math.pow(P/(t*j),2)+J*C/(r*Y)*P/(t*j))}},Kve=(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))}},Qve=()=>{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)}},ehe=()=>Ec("yiq",[.5053,.299,.1957]),rhe=()=>Ec("itp",[518400,129600,518400]),sl=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 the(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 ahe={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:ll},s:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:ch},average:{h:sl}},rL=ahe,nhe=({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=nhe,ihe=({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=ihe,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},Hje=Math.pow(29,3)/Math.pow(3,3),Uje=Math.pow(6,3)/Math.pow(29,3),q5=e=>Math.pow(e,3)>aL?Math.pow(e,3):(116*e-16)/tL,ohe=({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_=ohe,lhe=e=>Ts(y_(e)),hh=lhe,L5=e=>e>aL?Math.cbrt(e):(tL*e+16)/116,she=({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_=she,uhe=e=>{let r=g_(ws(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},dh=uhe,Q1=1,nL=1,fh=26/180*Math.PI,ep=Math.cos(fh),rp=Math.sin(fh),iL=100/Math.log(139/100),fhe=({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=fhe,che=({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=che,Dq=e=>tp(Il(e,"dlch")),Eq=e=>Bl(ap(e),"dlab"),vhe={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=vhe,hhe={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:ll},alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:sl}},lL=hhe;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}},mhe=phe,yhe=new RegExp(`^hsla?\\(\\s*${hve}${Cc}${sh}${Cc}${sh}\\s*(?:,\\s*${p_}\\s*)?\\)$`),ghe=e=>{let r=e.match(yhe);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=mhe(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=ghe;function bhe(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=bhe,xhe={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:ll},s:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:ch},average:{h:sl}},b_=xhe;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 whe(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=whe,The={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:ll},w:wr,b:wr,alpha:{use:wr,fixup:Va}},difference:{h:Qq},average:{h:sl}},gL=The,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),Ahe=({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=Ahe,P5=(e=0)=>Math.max(e*bL,0),Mhe=({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=Mhe,khe={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=khe,She=134.03437499999998,qhe=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),She)},F5=(e=0)=>Math.max(e*203,0),Lhe=({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)-qhe,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_=Lhe,Che=134.03437499999998,Pq=16295499532821565e-27,z5=e=>{if(e<0)return 0;let r=Math.pow(e,1/Che);return 1e4*Math.pow((up-r)/(cp*r-fp),1/sp)},N5=e=>e/203,Dhe=({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_=Dhe,Ehe=e=>{let r=T_(ws(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},M_=Ehe,Phe=e=>Ts(A_(e)),k_=Phe,Rhe={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=Rhe,Fhe=({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=Fhe,zhe=({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_=zhe,Nhe={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:ll},c:wr,j:wr,alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:sl}},TL=Nhe,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,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:"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=Ihe,Bhe=({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=Bhe,Ohe=e=>Pc(hp(e)),q_=Ohe,Hhe=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=Hhe,B5=e=>e>S_?Math.cbrt(e):(vp*e+16)/116,Uhe=({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=Uhe,Ghe=e=>{let r=dp(Rc(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},L_=Ghe;function Yhe(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=Yhe,Vhe={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=Vhe,jhe=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=jhe;function Whe(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=Whe,Xhe={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:ll},c:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:sl}},mp=Xhe,Zhe=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=Zhe,$he=({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_=$he,Jhe=({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_=Jhe,qL=(e,r,t)=>4*e/(e+15*r+3*t),LL=(e,r,t)=>9*r/(e+15*r+3*t),Khe=qL(Ya.X,Ya.Y,Ya.Z),Qhe=LL(Ya.X,Ya.Y,Ya.Z),ede=e=>e<=S_?vp*e:116*Math.cbrt(e)-16,rde=({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=ede(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-Khe),o=13*n*(o-Qhe));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},np=rde,tde=(e,r,t)=>4*e/(e+15*r+3*t),ade=(e,r,t)=>9*r/(e+15*r+3*t),nde=tde(Ya.X,Ya.Y,Ya.Z),ide=ade(Ya.X,Ya.Y,Ya.Z),ode=({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)+nde,i=t/(13*e)+ide,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=ode,lde=e=>C_(np(Rc(e))),sde=e=>Pc(ip(D_(e))),ude={mode:"lchuv",toMode:{luv:D_,rgb:sde},fromMode:{rgb:lde,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:ll},c:wr,l:wr,alpha:{use:wr,fixup:Va}},difference:{h:vh},average:{h:sl}},CL=ude,fde=Jt(At({},Hu),{mode:"lrgb",toMode:{rgb:Gu},fromMode:{rgb:Uu},parse:["srgb-linear"],serialize:"srgb-linear"}),DL=fde,cde={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=cde,vde=({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_=vde,hde=e=>{let r=E_(Uu(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},ph=hde,dde=({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=dde,pde=e=>Gu(Fc(e)),mh=pde;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 mde(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,q=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*q+u*C;f=f-E*P/(P*P-.5*E*R)}return f}function P_(e,r){let t=mde(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 yde(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,q=3*d*T*T,C=3*p*w*w,E=6*v*v*b,P=6*d*d*T,R=6*p*p*w,B=4.0767416621*x-3.3077115913*_+.2309699292*k-1,I=4.0767416621*M-3.3077115913*q+.2309699292*C,N=4.0767416621*E-3.3077115913*P+.2309699292*R,H=I/(I*I-.5*B*N),G=-B*H,Y=-1.2684380046*x+2.6097574011*_-.3413193965*k-1,j=-1.2684380046*M+2.6097574011*q-.3413193965*C,W=-1.2684380046*E+2.6097574011*P-.3413193965*R,V=j/(j*j-.5*Y*W),J=-Y*V,re=-.0041960863*x-.7034186147*_+1.707614701*k-1,le=-.0041960863*M-.7034186147*q+1.707614701*C,ne=-.0041960863*E-.7034186147*P+1.707614701*R,$=le/(le*le-.5*re*ne),ce=-re*$;G=H>=0?G:1e6,J=V>=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=yde(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=gde;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 bde=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=bde;function xde(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=xde,_de=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=_de;function wde(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=wde,Tde=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=Tde,Ade=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_=Ade,Mde=({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_=Mde,kde=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=kde,O5=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},Sde=({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_=Sde,H5=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},qde=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_=qde,Lde=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=Lde,Rq=1.09929682680944,Cde=.018053968510807,U5=e=>{let r=Math.abs(e);return r>Cde?(Math.sign(e)||1)*(Rq*Math.pow(r,.45)-(Rq-1)):4.5*e},Dde=({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_=Dde,Fq=1.09929682680944,Ede=.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_=Pde,Rde=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=Rde,Bu=.0037930732552754493,GL=Math.cbrt(Bu),Y5=e=>Math.cbrt(e)-GL,Fde=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=Fde,V5=e=>Math.pow(e+GL,3),zde=({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=zde,Nde={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=Nde,Ide={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=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:"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=Bde,Ode=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=Ode,Hde={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=Hde,Ude=({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=Ude,Gde=({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=Gde,Yde={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=Yde,Vde=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,jde=(e=4)=>r=>typeof r=="number"?Vde(r,e):r,eC=jde,lh=eC(2),uh=e=>Math.max(0,Math.min(1,e||0)),Ou=e=>Math.round(uh(e)*255),F_=Yt("rgb"),Wde=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))})`},Xde=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)},Zde=e=>z_(F_(e)),$de=e=>rC(F_(e)),Jde=e=>tC(F_(e)),Kde=e=>aC(Wde(e)),Qde={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},e2e=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:Qde[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})})},r2e=e2e,t2e=([e,r])=>e+Math.random()*(r-e),a2e=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),n2e=(e="rgb",r={})=>{let t=Sn(e),a=a2e(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=t2e(a[i]||t.ranges[i])),n),{mode:e})},i2e=n2e,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,o2e=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,l2e=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=u2e,$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))}),s2e(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})}},f2e=(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},c2e=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},v2e=e=>fC(vC(e)),h2e=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]}},d2e=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)},p2e=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)},m2e=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)},y2e=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),hC=y2e,g2e=(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 x2e(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 _2e(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 w2e(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 T2e=(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]))},A2e=T2e,U_=e=>Math.max(e,0),G_=e=>Math.max(Math.min(e,1),0),M2e=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),k2e=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]},S2e=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]},q2e=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]},L2e=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)},D2e=(e=1,r="rgb")=>{let t=U_(e);return yh(N_(t,(1-t)/2),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")=>gp(q2e(e),r,!0),F2e=(e=1,r="rgb")=>{let t=G_(e);return yh((a,n)=>n==="alpha"?a:M2e(t,1-t,a),r,!0)},z2e=(e=0,r="rgb")=>gp(L2e(e),r,!0),N2e=Yt("rgb"),I2e=[[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]],B2e=[[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]],O2e=[[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}=N2e(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)}},H2e=(e=1)=>Y_(I2e,e),U2e=(e=1)=>Y_(B2e,e),G2e=(e=1)=>Y_(O2e,e),Y2e=e=>e*e*(3-2*e),V2e=e=>.5-Math.sin(Math.asin(1-2*e)/3),j2e=e=>e*e*e*(e*(e*6-15)+10),W2e=j2e,X2e=e=>(1-Math.cos(e*Math.PI))/2,Z2e=X2e;function h_(e){let r=Yt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function $2e(e,r){let t=h_(e),a=h_(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var J2e=Et($q),K2e=Et(rL),Q2e=Et(oL),e1e=Et(lL),r1e=Et(fL),t1e=Et(b_),a1e=Et(w_),n1e=Et(gL),i1e=Et(_L),o1e=Et(wL),l1e=Et(TL),s1e=Et(pp),u1e=Et(ML),f1e=Et(mp),c1e=Et(SL),v1e=Et(CL),h1e=Et(DL),d1e=Et(EL),p1e=Et(RL),m1e=Et(FL),y1e=Et(NL),g1e=Et(BL),b1e=Et(OL),x1e=Et(HL),_1e=Et(UL),w1e=Et(Hu),T1e=Et(jL),A1e=Et(WL),M1e=Et($L),k1e=Et(QL)});var V_={};Dt(V_,{default:()=>q1e});var S1e,q1e,j_=Ct(()=>{"use strict";S1e={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(" ")}},q1e=S1e});var As=z((jje,AC)=>{"use strict";var{format:L1e,width:C1e,height:D1e,scale:E1e}=(j_(),Ne(V_)).default,xC=E1e,{dflt:Vje}=xC,P1e=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:L1e,filename:{valType:"string"},width:C1e,height:D1e,scale:P1e},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((Xje,MC)=>{"use strict";var W_=Pr(),R1e=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;R1e(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((Jje,FC)=>{"use strict";var{converter:SC,formatHex:F1e,formatRgb:z1e,wcagContrast:N1e,wcagLuminance:I1e}=bC(),{isArrayOrTypedArray:qC}=Qn(),{warn:B1e}=Ms(),{background:xh,defaultLine:Q_,defaults:O1e,lightLine:H1e}=Hi(),LC=SC("rgb"),U1e=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,G1e={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=>z1e(DC(e)),Y1e=e=>F1e(DC(e)),V1e=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&&B1e(`Invalid color specifier: ${V1e(e)}. Defaulting to "#000"`),G1e)},bh=e=>yi(Jt(At({},fa(e)),{alpha:1})),j1e=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]),W1e=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}},X1e=(e,r)=>{let t=EC(e)?W1e(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},Z1e=(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)})},$1e=(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=U1e(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)=>N1e(fa(e),fa(r)),RC=e=>bp(e,xh)>bp(e,Q_),J1e=yi(fa(xh)),K1e=yi(fa(Q_)),Q1e=(e,r,t)=>(fa(e).alpha!==1&&(e=PC(e,xh)),RC(e)?r?K_(e,r):J1e:t?K_(e,-t):K1e),epe=(e,r)=>{e.style({stroke:bh(r),"stroke-opacity":fa(r).alpha})},rpe=(e,r)=>{e.style({fill:bh(r),"fill-opacity":fa(r).alpha})},tpe=(e,r)=>!!(e&&r&&bh(e)===bh(r)),ape=e=>CC(e)!==void 0,npe=(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)}))},ipe=(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})},ope=(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},lpe=e=>yi(fa(e)),spe=e=>Y1e(fa(e)).toUpperCase(),upe=e=>{let r=fa(e);return[qn(r.r)*255,qn(r.g)*255,qn(r.b)*255,qn(r.alpha)]},fpe=([e,r,t,a])=>yi({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),cpe=e=>{let r=fa(e);return I1e({mode:"rgb",r:qn(r.r),g:qn(r.g),b:qn(r.b)})};FC.exports={addOpacity:Z1e,adjustLightness:K_,background:xh,brighten:npe,combine:PC,contrast:Q1e,defaultLine:Q_,defaults:O1e,equals:tpe,fill:rpe,hexString:spe,interpolate:$1e,isChannelArray:EC,isDark:RC,isValid:ape,lightLine:H1e,luminosity:cpe,mix:ipe,mostReadable:ope,normalize:X1e,opacity:j1e,parse:fa,rgb:bh,rgbaArray:upe,rgbaArrayToString:fpe,rgbaString:lpe,stroke:epe,wcagContrast:bp}});var Vu=z((Qje,IC)=>{"use strict";var vpe=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 hpe(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;type,HIDE_PLACEHOLDER:()=>mpe,SHOW_PLACEHOLDER:()=>ppe});var ppe,mpe,ype,wp=Ct(()=>{"use strict";ppe=100,mpe=1e3,ype=.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,gpe=Gn(),bpe=Vu(),t4=qr(),xpe=(wp(),Ne(_p)).DESELECTDIM,Ic=Y1(),OC=(Nc(),Ne(_h)).counter,_pe=(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(bpe.get(e,t))}},angle:{coerceFunction:function(e,r,t){ks(e)&&(e=Ss(e)),e==="auto"?r.set("auto"):r4(e)?r.set(_pe(+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((tWe,GC)=>{"use strict";GC.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{YC.exports=wpe;function wpe(){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((nWe,jC)=>{jC.exports=Tpe;function Tpe(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((iWe,XC)=>{XC.exports=Ape;function Ape(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((oWe,$C)=>{$C.exports=Mpe;function Mpe(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((lWe,JC)=>{JC.exports=kpe;function kpe(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((sWe,QC)=>{QC.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],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,q=f*m-c*p,C=f*y-v*p,E=f*b-d*p,P=c*y-v*m,R=c*b-d*m,B=v*b-d*y,I=T*B-w*R+x*P+_*E-k*C+M*q;return I?(I=1/I,e[0]=(l*B-s*R+u*P)*I,e[1]=(n*R-a*B-i*P)*I,e[2]=(m*M-y*k+b*_)*I,e[3]=(v*k-c*M-d*_)*I,e[4]=(s*E-o*B-u*C)*I,e[5]=(t*B-n*E+i*C)*I,e[6]=(y*x-p*M-b*w)*I,e[7]=(f*M-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-m*x+b*T)*I,e[11]=(c*x-f*k-d*T)*I,e[12]=(l*C-o*P-s*q)*I,e[13]=(t*P-a*C+n*q)*I,e[14]=(m*w-p*_-y*T)*I,e[15]=(f*_-c*w+v*T)*I,e):null}});var tD=z((uWe,rD)=>{rD.exports=qpe;function qpe(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((fWe,aD)=>{aD.exports=Lpe;function Lpe(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,q=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-_*q+k*M}});var oD=z((cWe,iD)=>{iD.exports=Cpe;function Cpe(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((vWe,lD)=>{lD.exports=Dpe;function Dpe(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((hWe,uD)=>{uD.exports=Epe;function Epe(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((dWe,cD)=>{cD.exports=Ppe;function Ppe(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,q,C,E,P,R,B,I,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,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,B=n*o*f+i*s,I=i*o*f-n*s,N=o*o*f+u,e[0]=c*M+m*q+w*C,e[1]=v*M+y*q+x*C,e[2]=d*M+b*q+_*C,e[3]=p*M+T*q+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*B+m*I+w*N,e[9]=v*B+y*I+x*N,e[10]=d*B+b*I+_*N,e[11]=p*B+T*I+k*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var dD=z((pWe,hD)=>{hD.exports=Rpe;function Rpe(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((mWe,pD)=>{pD.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[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((yWe,yD)=>{yD.exports=zpe;function zpe(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((gWe,bD)=>{bD.exports=Npe;function Npe(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((bWe,_D)=>{_D.exports=Ipe;function Ipe(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((xWe,TD)=>{TD.exports=Bpe;function Bpe(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((_We,MD)=>{MD.exports=Ope;function Ope(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((wWe,SD)=>{SD.exports=Hpe;function Hpe(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((TWe,LD)=>{LD.exports=Upe;function Upe(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((AWe,DD)=>{DD.exports=Gpe;function Gpe(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((MWe,PD)=>{PD.exports=Ype;function Ype(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((kWe,FD)=>{FD.exports=Vpe;function Vpe(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((SWe,ND)=>{ND.exports=jpe;function jpe(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((qWe,BD)=>{BD.exports=Wpe;function Wpe(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((LWe,HD)=>{HD.exports=Xpe;function Xpe(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((CWe,GD)=>{var Zpe=n4();GD.exports=$pe;function $pe(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?Zpe(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((DWe,VD)=>{VD.exports=Jpe;function Jpe(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((EWe,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 Kpe=i4();ga.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var Qpe=Pr(),XD=Ms(),eme=Mp(),rme=i4();function tme(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 ame(e){var r=Qpe.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 nme(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 ime(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&ZD(t)}function ome(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 lme(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=eme.convertCssMatrix(n);t=rme.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=[];sme(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function sme(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function ume(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}QD.exports={getGraphDiv:tme,isPlotDiv:ame,removeElement:ZD,addStyleRule:nme,addRelatedStyleRule:$D,deleteRelatedStyleRule:ime,setStyleOnHover:ome,getFullTransformMatrix:lme,getElementTransformMatrix:JD,getElementAndAncestors:KD,equalDomRects:ume}});var Th=z((FWe,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((zWe,lE)=>{"use strict";var tE=St().extendFlat,fme=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"]},cme=aE.flags.slice().concat(["fullReplot"]),vme=nE.flags.slice().concat("layoutReplot");lE.exports={traces:aE,layout:nE,traceFlags:function(){return rE(cme)},layoutFlags:function(){return rE(vme)},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:()=>dme,FORMAT_LINK:()=>hme});var hme,dme,s4=Ct(()=>{"use strict";hme="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",dme="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var gi=z(Bc=>{"use strict";var{DATE_FORMAT_LINK:pme,FORMAT_LINK:mme}=(s4(),Ne(l4)),yme=["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 gme({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}".`,mme,"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}".`,pme,"for details on the date formatting syntax.",yme].join(" ")}Bc.templateFormatStringDescription=gme;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((OWe,hE)=>{"use strict";function qs(e,r){return r?r.d2l(e):e}function sE(e,r){return r?r.l2d(e):e}function bme(e){return e.x0}function xme(e){return e.x1}function _me(e){return e.y0}function wme(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 Tme(e,r){return Math.abs(kp(e,r))}function Ame(e,r,t){return Math.abs(Sp(e,r,t))}function Mme(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 kme(e,r){return sE((qs(e.x1,r)+fE(e)+qs(e.x0,r)+uE(e))/2,r)}function Sme(e,r,t){return sE((qs(e.y1,t)+vE(e)+qs(e.y0,t)+cE(e))/2,t)}function qme(e,r,t){return e.type!=="line"?void 0:Sp(e,r,t)/kp(e,r)}var Lme=["x0","x1","y0","y1","dy","height","ycenter"],Cme=["x0","x1","y0","y1","dx","width","xcenter"];hE.exports={x0:bme,x1:xme,y0:_me,y1:wme,slope:qme,dx:kp,dy:Sp,width:Tme,height:Ame,length:Mme,xcenter:kme,ycenter:Sme,simpleXVariables:Lme,simpleYVariables:Cme}});var mE=z((HWe,pE)=>{"use strict";var Dme=Do().overrideAll,Wu=Gn(),dE=Ia(),Eme=Ui().dash,Ls=St().extendFlat,{shapeTexttemplateAttrs:Pme,templatefallbackAttrs:Rme}=gi(),Fme=qp();pE.exports=Dme({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({},Eme,{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:Pme({newshape:!0},{keys:Object.keys(Fme)}),texttemplatefallback:Rme({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((UWe,yE)=>{"use strict";var zme=Ui().dash,Nme=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:Nme({},zme,{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((GWe,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((YWe,TE)=>{"use strict";var u4=Ia(),Ime=Th(),Cp=Hi(),xE=mE(),_E=gE(),Bme=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(Bme({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({},Ime.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(),WWe=wh().addStyleRule,SE=St(),Ome=Gn(),Hme=Oc(),Ume=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 Wme=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,Xme=/^\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,Zme=/^\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=$me(e,!!r);if(r<2)return t;var a=ba.dateTime2ms(t,e);return a+=ti*(r-1),ba.ms2DateTime(a,0,e)};function $me(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?Zme:Xme);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=Wme("%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 Jme=/%\d?f/g,Kme=/%h/g,Qme={1:"1",2:"1",3:"2",4:"2"};function zE(e,r,t,a){e=e.replace(Jme,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(Kme,function(){return Qme[t("%q")(n)]}),Hl(a))try{e=Ol.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var eye=[59,59.9,59.99,59.999,59.9999];function rye(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),eye[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 rye(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 tye=Br(),aye=Ms(),nye=h4(),iye=(Kt(),Ne(aa)).BADNUM,d4=1e-9;Ul.findBin=function(e,r,t){if(tye(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?oye:lye:s=t?uye:sye,e+=o*d4*(t?-1:1)*(o>=0?1:-1);a90&&aye.log("Long binary search..."),a-1};function oye(e,r){return er}function uye(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]===iye;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||nye;for(var t=1/0,a,n=0;ncye});function fye(e){return Object.keys(e).sort()}var cye,y4=Ct(()=>{"use strict";cye=fye});var UE=z(xa=>{"use strict";var kh=Br(),vye=Qn().isArrayOrTypedArray;xa.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),kh(r)||(r=!1),vye(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((QWe,jE)=>{"use strict";var GE=(kc(),Ne(Mc)),g4=GE.mod,hye=GE.modHalf,Sh=Math.PI,Es=2*Sh;function dye(e){return e/180*Sh}function pye(e){return e/Sh*180}function b4(e){return Math.abs(e[1]-e[0])>Es-1e-14}function YE(e,r){return hye(r-e,Es)}function mye(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 yye(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((aXe,QE)=>{"use strict";QE.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var rP=z((nXe,Ip)=>{"use strict";Ip.exports=T4;Ip.exports.isMobile=T4;Ip.exports.default=T4;var _ye=/(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,wye=/CrOS/,Tye=/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=_ye.test(r)&&!wye.test(r)||!!e.tablet&&Tye.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((iXe,tP)=>{"use strict";var Aye=Br(),Mye=rP();tP.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=kye(),typeof t!="string")return!0;var a=Mye({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(Aye(u)&&(u=+u),u>=13)return!0}}}return a};function kye(){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((oXe,nP)=>{"use strict";var Sye=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]=Sye.select(this)}),n}});var lP=z((lXe,oP)=>{"use strict";var qye=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=qye.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var uP=z((sXe,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=Dye(r)?Cye:Lye,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:()=>Rye});function Pye(e){return typeof e=="string"&&(e=e.replace(Eye,"")),(0,dP.default)(e)?Number(e):void 0}var dP,Eye,Rye,mP=Ct(()=>{"use strict";dP=wc(Br());Kt();Eye=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Rye=Pye});var bP=z((vXe,gP)=>{"use strict";var Fye=/<[^>]*>/g,zye=/[\p{S}\p{P}]/gu,Nye=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,Iye=/�/g,Bye=/\s+/g,Bp="-",yP=Bp.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oye=new RegExp(yP+"{3,}","g"),Hye=new RegExp(yP+"$","g"),Uye=60;function Gye(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}gP.exports=function(r,t=Uye){var a=Gye(r!=null?r:"").replace(Iye,"").replace(Fye," ").replace(zye,n=>n===Bp?n:"").toLowerCase().trim().replace(Bye,Bp).replace(Nye,"").replace(Oye,Bp);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(Hye,"")}});var ke=z((hXe,DP)=>{"use strict";var Lh=Pr(),Yye=Tc().utcFormat,Vye=p5().format,MP=Br(),kP=(Kt(),Ne(aa)),SP=kP.FP_SAFE,jye=-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=Vye(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 ul=WE();he.deg2rad=ul.deg2rad;he.rad2deg=ul.rad2deg;he.angleDelta=ul.angleDelta;he.angleDist=ul.angleDist;he.isFullCircle=ul.isFullCircle;he.isAngleInsideSector=ul.isAngleInsideSector;he.isPtInsideSector=ul.isPtInsideSector;he.pathArc=ul.pathArc;he.pathSector=ul.pathSector;he.pathAnnulus=ul.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 Wye=(Nc(),Ne(_h));he.counterRegex=Wye.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;n$ye.test(window.navigator.userAgent);var Jye=/Firefox\/(\d+)\.\d+/;he.getFirefoxVersion=function(){var e=Jye.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 ege={max:10,count:0,name:"hovertemplate"};he.hovertemplateString=e=>k4(Jt(At({},e),{opts:ege}));var rge={max:10,count:0,name:"texttemplate"};he.texttemplateString=e=>k4(Jt(At({},e),{opts:rge}));var tge=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function age(e){var r=e.match(tge);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var nge={max:10,count:0,name:"texttemplate",parseMultDiv:!0};he.texttemplateStringForShapes=e=>k4(Jt(At({},e),{opts:nge}));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=age(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,q=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(),ige=AP!==null&&AP<86;he.getPositionFromD3Event=function(){return ige?[Lh.event.layerX,Lh.event.layerY]:[Lh.event.offsetX,Lh.event.offsetY]}});var RP=z(()=>{"use strict";var oge=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"),oge.addStyleRule(PP,EP[S4]);var PP,S4});var q4=z((yXe,FP)=>{FP.exports=!0});var C4=z((gXe,zP)=>{"use strict";var lge=q4(),L4;typeof window.matchMedia=="function"?L4=!window.matchMedia("(hover: none)").matches:L4=lge;zP.exports=L4});var Ju=z((bXe,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 sge(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=vge;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,sge(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 uge(){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=uge.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():fge(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?cge(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,dge={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(),pge=As().dfltConfig;function mge(e,r){for(var t=[],a,n=0;npge.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(),yge=P4(),gge=Th(),bge=As().configAttributes,KP=Do(),Ro=Dh.extendDeepAll,Xc=Dh.isPlainObject,xge=Dh.isArrayOrTypedArray,Wp=Dh.nestedProperty,_ge=Dh.valObjectMeta,F4="_isSubplotObj",Xp="_isLinkedToArray",wge="_arrayAttrRegexps",eR="_deprecated",z4=[F4,Xp,wge,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]=Age(r)}),{defs:{valObjects:_ge,metaKeys:z4.concat(["description","role","editType","impliedEdits"]),editType:{traces:KP.traces,layout:KP.layout},impliedEdits:{}},traces:e,layout:Mge(),frames:kge(),animation:Zc(gge),config:Zc(bge)}};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)xge(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 Age(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 Mge(){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(),Dge=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,{},Dge,"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:()=>zge,AX_NAME_PATTERN:()=>Nge,DFLTRANGEX:()=>Vge,DFLTRANGEY:()=>jge,DRAGGERSIZE:()=>Gge,HOUR_PATTERN:()=>Bge,MINDRAG:()=>Hge,MINZOOM:()=>Uge,REDRAWDELAY:()=>Yge,SUBPLOT_PATTERN:()=>Ige,WEEKDAY_PATTERN:()=>Oge,attrRegex:()=>Pge,clipOnAxisFalseQuery:()=>Xge,idRegex:()=>Ege,layerValue2layerClass:()=>Zge,traceLayerClasses:()=>Wge,xAxisMatch:()=>Rge,yAxisMatch:()=>Fge,zindexSeparator:()=>$ge});var Ege,Pge,Rge,Fge,zge,Nge,Ige,Bge,Oge,Hge,Uge,Gge,Yge,Vge,jge,Wge,Xge,Zge,$ge,Ha=Ct(()=>{"use strict";Nc();Ege={x:ju("x","( domain)?"),y:ju("y","( domain)?")},Pge=ju("[xy]axis"),Rge=ju("xaxis"),Fge=ju("yaxis"),zge=/^[xyz][0-9]*( domain)?$/,Nge=/^[xyz]axis[0-9]*$/,Ige=/^x([0-9]*)y([0-9]*)$/,Bge="hour",Oge="day of week",Hge=8,Uge=20,Gge=20,Yge=50,Vge=[-1,6],jge=[-1,4],Wge=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Xge=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Zge={"above traces":"above","below traces":"below"},$ge="z"});var Ca=z(ai=>{"use strict";var Jge=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 Kge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Qge(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}iR.exports={clearOutlineControllers:Kge,clearOutline:Qge}});var Zp=z((qXe,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(),LXe=(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 e3e=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((PXe,xR)=>{"use strict";var EXe=Pr(),t3e=Tc().timeFormatLocale,a3e=p5().formatLocale,Eh=Br(),n3e=y5(),i3e=Jv().version,it=Ar(),o3e=$c(),l3e=Pt(),yr=ke(),s3e=qr(),cR=(Kt(),Ne(aa)).BADNUM,ni=Ca(),u3e=zs().clearOutline,f3e=Zp(),O4=Th(),c3e=P4(),v3e=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=i3e;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 h3e=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],d3e=["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,h3e);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=y3e(v,n.separators),n._extraFormat=hR(e,d3e),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=m3e(),x=n._splomAxes={x:{},y:{}},_=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=p3e(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")),B=!!(n._has&&n._has("cartesian")),I=R,N=B;I&&!N?a._bgLayer.remove():N&&!I&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&u3e({_fullLayout:a}),g3e(l,n),vR(n,a),it.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var H=n._tracePreGUI,G={},Y;for(Y in H)G[Y]="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 x3e(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 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,B=E.size,I=P.val,N=P.size,H=t-o.r-o.l,G=a-o.t-o.b;for(var Y in v){if(Eh(B)&&v[Y].r){var j=v[Y].r.val,W=v[Y].r.size;if(j>R){var V=(B*j+(W-H)*R)/(j-R),J=(W*(1-R)+(B-H)*(1-j))/(j-R);V+J>s+u&&(s=V,u=J)}}if(Eh(N)&&v[Y].t){var re=v[Y].t.val,le=v[Y].t.size;if(re>I){var ne=(N*re+(le-G)*I)/(re-I),$=(le*(1-I)+(N-G)*(1-re))/(re-I);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)||x3e(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)?n3e.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:()=>k3e,xlink:()=>wR,xmlns:()=>M3e});var M3e,_R,wR,k3e,Wl=Ct(()=>{"use strict";M3e="http://www.w3.org/2000/xmlns/",_R="http://www.w3.org/2000/svg",wR="http://www.w3.org/1999/xlink",k3e={xmlns:_R,"xmlns:xlink":wR}});var sn={};Dt(sn,{CAP_SHIFT:()=>D3e,FROM_BL:()=>S3e,FROM_BR:()=>L3e,FROM_TL:()=>q3e,LINE_SPACING:()=>C3e,MID_SHIFT:()=>E3e,OPPOSITE_SIDE:()=>P3e});var S3e,q3e,L3e,C3e,D3e,E3e,P3e,un=Ct(()=>{"use strict";S3e={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},q3e={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},L3e={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},C3e=1.3,D3e=.7,E3e=.35,P3e={left:"right",right:"left",top:"bottom",bottom:"top"}});var Da=z(Ln=>{"use strict";var ha=Pr(),Vi=ke(),R3e=Vi.strTranslate,H4=(Wl(),Ne(jl)),F3e=(un(),Ne(sn)).LINE_SPACING,z3e=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,Y4=e=>e?e.match(z3e):null;Ln.matchTex=Y4;var N3e=e=>{var r=Y4(e);return!!r&&!r[1]&&!r[3]};Ln.isPureTex=N3e;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]+")"+R3e(-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 I3e(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&&!U3e()&&(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=K3e(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");G3e(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()),I3e(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 B3e=/(<|<|<)/g,O3e=/(>|>|>)/g;function H3e(e){return e.replace(B3e,"\\lt ").replace(O3e,"\\gt ")}var U4=null,LR=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,TR=!1,AR=!1;function U3e(){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 G3e(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=H3e(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"},Y3e={sub:"0.3em",sup:"-0.6em"},V3e={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,j3e=//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,W3e=/(^|[\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 X3e=/(^|;)\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 Z3e={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},$3e=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function rm(e){return e.replace($3e,function(r,t){var a;return t.charAt(0)==="#"?a=J3e(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Z3e[t],a||r})}Ln.convertEntities=rm;function J3e(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 K3e(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*F3e+"em"}),e.appendChild(k),n=k;var M=a;if(a=[{node:k}],M.length>1)for(var q=1;q.",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=j3e.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(V4),v=0;v{"use strict";var Q3e=Pr(),Rh=Br(),tm=ke(),tf=qr(),ebe=Vu().isValid;function rbe(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)),abe=HR.FORMAT_LINK,nbe=HR.DATE_FORMAT_LINK;function ibe(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: "+abe+"."].join(" ")}function UR(e,r){return X4(e,r)+[" And for dates see: "+nbe+".","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:ibe,descriptionOnlyNumbers:X4,descriptionWithDates:UR}});var ji=z((IXe,oF)=>{"use strict";var YR=Ia(),Qc=Hi(),iF=Ui().dash,$4=St().extendFlat,VR=Pt().templatedArray,NXe=gi().templateFormatStringDescription,jR=Fo().descriptionWithDates,obe=(Kt(),Ne(aa)).ONEDAY,fl=(Ha(),Ne(Oa)),lbe=fl.HOUR_PATTERN,sbe=fl.WEEKDAY_PATTERN,Z4={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},ube=$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:[fl.idRegex.x.toString(),fl.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:[fl.idRegex.x.toString(),fl.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:[sbe,lbe,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:obe},editType:"calc"}),tickmode:ube,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",fl.idRegex.x.toString(),fl.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",fl.idRegex.x.toString(),fl.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"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},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((BXe,sF)=>{"use strict";var jt=ji(),lF=Ia(),J4=St().extendFlat,fbe=Do().overrideAll;sF.exports=fbe({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 cl=z((HXe,fF)=>{"use strict";var cbe=am(),vbe=(Nc(),Ne(_h)).counter,hbe=(y4(),Ne(m4)).default,uF=Vu().scales,OXe=hbe(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=cbe),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:vbe("coloraxis"),dflt:null,editType:"calc"}),M}});var Q4=z((UXe,cF)=>{"use strict";var dbe=St().extendFlat,pbe=cl(),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:dbe({_isSubplotObj:!0,editType:"calc"},pbe("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var e6=z((GXe,vF)=>{"use strict";var mbe=ke();vF.exports=function(r){return mbe.isPlainObject(r.colorbar)}});var a6=z(t6=>{"use strict";var r6=Br(),hF=ke(),dF=(Kt(),Ne(aa)),ybe=dF.ONEDAY,gbe=dF.ONEWEEK;t6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?ybe: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%gbe===0?1:0));if(!(a==="D1"||a==="D2"))return r6(e)?Number(e):0}});var im=z((VXe,mF)=>{"use strict";var pF=a6(),bbe=ke().isArrayOrTypedArray,xbe=Qn().isTypedArraySpec,_be=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 xbe(_)&&(_=_be(_)),_!==void 0?_:(s._template||{})[x]}var c=f("tick0"),v=f("dtick"),d=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",y;bbe(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((jXe,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((WXe,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((XXe,xF)=>{"use strict";var lm=ke(),wbe=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=wbe.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var o6=ke(),Tbe=qr().contrast,_F=ji(),Abe=i6(),Mbe=zo();wF.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");o6.isPlainObject(o)||delete t.labelalias;var l=Abe(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?Tbe(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");Mbe(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:kbe}),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 kbe(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(($Xe,TF)=>{"use strict";var Sbe=i6();TF.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=Sbe(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var l6=z((JXe,AF)=>{"use strict";var Ns=ke(),qbe=Pt(),Lbe=im(),Cbe=om(),Dbe=sm(),Ebe=um(),Pbe=am();AF.exports=function(r,t,a){var n=qbe.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,R){return Ns.coerce(i,n,Pbe,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"),Lbe(i,n,o,"linear");var M=a.font,q={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};k.indexOf("inside")!==-1&&(q.bgColor="black"),Ebe(i,n,o,"linear",q),Dbe(i,n,o,"linear",q),Cbe(i,n,o,"linear",q),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((KXe,SF)=>{"use strict";var MF=Br(),u6=ke(),Rbe=e6(),Fbe=l6(),kF=Vu().isValid,zbe=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=zbe(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(),Nbe=Pt(),LF=Q4(),Ibe=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=Nbe.newContainer(t,s,"coloraxis"),o._name=s,Ibe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Bbe=ke(),Obe=xi().hasColorscale,Hbe=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?Bbe.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=Hbe(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(),Ube=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=Ube(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 vl=z((tZe,zF)=>{"use strict";var fm=Vu(),r0=xi();zF.exports={moduleType:"component",name:"colorscale",attributes:cl(),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((aZe,IF)=>{"use strict";var NF=ke(),Gbe=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)||Gbe(r.size))}}});var OF=z((nZe,BF)=>{"use strict";var Ybe=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 Ybe(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},Xbe=/([astvzqmhlc])([^astvzqmhlc]*)/gi,Zbe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function $be(e){let r=[];return e.replace(Xbe,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=Jbe(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 Kbe=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=Kbe(t),s="",u=0;u{"use strict";var ja=Pr(),_t=ke(),Qbe=_t.numberFormat,Bs=Br(),vm=Ar(),Ua=qr(),exe=vl(),Nh=_t.strTranslate,hm=Da(),rxe=(Wl(),Ne(jl)),txe=(un(),Ne(sn)),axe=txe.LINE_SPACING,oz=(wp(),Ne(_p)).DESELECTDIM,nxe=ii(),ixe=OF(),oxe=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(sxe(f))),s&&e.style("text-shadow",s==="auto"?hm.makeTextShadow(Ua.contrast(i)):m6(s)),u&&e.style("text-decoration-line",m6(uxe(u)))};function m6(e){return e==="none"?void 0:e}var lxe={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function sxe(e){return lxe[e]}function uxe(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 fxe=ar.symbolNames.length,cxe="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>=fxe||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?cxe:"")}var KF=Qbe("~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 q=t.uid;v&&(q+="-"+e.i),ar.gradient(r,n,q,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),B=x.fgopacity,I=_(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 H=t.uid;C&&(H+="-"+e.i),ar.pattern(r,"point",n,H,k,I,N,e.mcc,x.fillmode,R,P,B)}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=nxe.isBubble(e)?ixe(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={};oxe(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(rxe.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,dxe=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>=dxe&&(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 pxe=/\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(pxe,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var mxe=/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(mxe);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]),q=rz(p,[a0(m),0]);t=zh(M[1]+q[1],M[0]+q[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((uZe,xz)=>{"use strict";var n0=Pr(),yxe=Br(),gxe=_a(),A6=Ar(),lf=ke(),yz=lf.strTranslate,dm=et(),pm=qr(),i0=Da(),gz=(wp(),Ne(_p)),bxe=(un(),Ne(sn)).OPPOSITE_SIDE,bz=/ [XY][0-9]* /,M6=1.6,k6=1.6;function xxe(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,q=y.lineposition,C=y.shadow,E=t.subtitlePropName,P=!!E,R=t.subtitlePlaceholder,B=(n.title||{}).subtitle||{text:"",font:{}},I=(B.text||"").trim(),N=!1,H=1,G=B.font,Y=G.family,j=G.size,W=G.color,V=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&&(I===""?H=0:ge(I,R)&&(te||(I=""),H=.2,N=!0)),t._meta?p=lf.templateString(p,t._meta):a._meta&&(p=lf.templateString(p,a._meta));var se=p||I||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=I||te;if(P&&(Pe=c.selectAll("text."+me).data(Ce?[0]:[]),Pe.enter().append("text"),Pe.text(I).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:q}).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",H*pm.opacity(W)).call(dm.font,{color:pm.rgb(W),size:n0.round(j,2),family:Y,weight:V,style:J,variant:re,textcase:le,shadow:$,lineposition:ne}).attr(vr).call(i0.convertToTspans,e)}return gxe.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=bxe[s.side],er=s.side==="left"||s.side==="top"?-1:1,ae=yxe(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)}I?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:xxe,SUBTITLE_PADDING_EM:k6,SUBTITLE_PADDING_MATHJAX_EM:M6}});var l0=z((fZe,Mz)=>{"use strict";var _xe=Pr(),wxe=Tc().utcFormat,Rt=ke(),Txe=Rt.numberFormat,hl=Br(),Os=Rt.cleanNumber,Axe=Rt.ms2DateTime,_z=Rt.dateTime2ms,dl=Rt.ensureNumber,wz=Rt.isArrayOrTypedArray,Hs=(Kt(),Ne(aa)),mm=Hs.FP_SAFE,Io=Hs.BADNUM,Mxe=Hs.LOG_CLIP,kxe=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}var Sxe=2;function qxe(e,r){if(e<=0)return 0;let t=Math.max(0,r-Sxe);return e>t?t/e:1}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*Mxe*Math.abs(k-M))}else return Io}function o(x,_,k,M){if((M||{}).msUTC&&hl(x))return+x;var q=_z(x,k||r.calendar);if(q===Io)if(hl(x)){x=+x;var C=Math.floor(Rt.mod(x+.05,1)*10),E=Math.round(x-C/10);q=_z(new Date(E))+C/10}else return Io;return q}function l(x,_,k){return Axe(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 q=(x[0]||[])[M],C=(x[1]||[])[M];k[M]=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(hl(x))return+x}function d(x){return hl(x)?+x:c(x)}function p(x,_,k){return _xe.round(k+_*x,2)}function m(x,_,k){return(x-k)/_}var y=function(_){return hl(_)?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(!hl(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,q=M*x,C=0,E=0;E<_;E++){var P=M*r._rangebreaks[E].min,R=M*r._rangebreaks[E].max;if(qR)C=E+1;else{C=q<(P+R)/2?E:E+1;break}}var B=r._B[C]||0;return isFinite(B)?p(x,r._m2,B):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:dl,r.l2c=r.type==="log"?Ih:dl,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=dl,r.d2p=r.r2p=function(x){return r.l2p(Os(x))},r.p2d=r.p2r=b,r.cleanPos=dl):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=dl,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=dl):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=dl,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:dl(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=dl,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:dl(x)},r.setupMultiCategory=function(x){var _=r._traceIndices,k,M,q=r._matchGroup;if(q&&r._categories.length===0){for(var C in q)if(C!==a){var E=t[bm.id2name(C)];_=_.concat(E._traceIndices)}}var P=[[0,{}],[0,{}]],R=[];for(k=0;k<_.length;k++){var B=x[_[k]];if(n in B){var I=B[n],N=B._length||Rt.minRowLength(I);if(wz(I[0])&&wz(I[1]))for(M=0;ME[1]&&(M[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])),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,q;if(r.type==="date"?q=Rt.dfltRange(r.calendar):n==="y"?q=wm.DFLTRANGEY:r._name==="realaxis"?q=[0,1]:q=_.dfltRange||wm.DFLTRANGEX,q=q.slice(),(r.rangemode==="tozero"||r.rangemode==="nonnegative")&&(q[0]=0),!k||k.length!==2){Rt.nestedProperty(r,x).set(q);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]=q;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(!hl(k[M]))if(!(C||E)&&hl(k[1-M]))k[M]=k[1-M]*(M?10:.1);else{r[x]=q;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,r.domainpad=k.domainpad}var M=x&&r._r?"_r":"range",q=r.calendar;r.cleanRange(M);var C=r.r2l(r[M][0],q),E=r.r2l(r[M][1],q),P=n==="y";let R=(P?_.h:_.w)*(r.domain[1]-r.domain[0]),B=r.domainpad,I=0,N=0;if(B){I=(P?B.top:B.left)||0,N=(P?B.bottom:B.right)||0;let W=qxe(I+N,R);I*=W,N*=W}if(r._length=R-I-N,r._padStart=I,r._padEnd=N,P?(r._offset=_.t+(1-r.domain[1])*_.h+I,r._m=r._length/(C-E),r._b=-r._m*E):(r._offset=_.l+r.domain[0]*_.w+I,r._m=r._length/(E-C),r._b=-r._m*C),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var H,G;if(r._rangebreaks=r.locateBreaks(Math.min(C,E),Math.max(C,E)),r._rangebreaks.length){for(H=0;HE&&(Y=!Y),Y&&r._rangebreaks.reverse();var j=Y?-1:1;for(r._m2=j*r._length/(Math.abs(E-C)-r._lBreaks),r._B.push(-r._m2*(P?E:C)),H=0;Hq&&(q+=7,Cq&&(q+=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(),Lxe=(Kt(),Ne(aa)).BADNUM,Tm=q6.isArrayOrTypedArray,Cxe=q6.isDateTime,Dxe=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&&zxe(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 Fxe(e,r){for(var t=e.length,a=qz(t),n=0,i=0,o={},l=0;ln*2}function zxe(e){return Tm(e[0])&&Tm(e[1])}});var Bh=z((vZe,Nz)=>{"use strict";var Nxe=Pr(),Pz=Br(),Us=ke(),Mm=(Kt(),Ne(aa)).FP_SAFE,Ixe=Ar(),Bxe=et(),Rz=Ca(),Oxe=Rz.getFromId,Hxe=Rz.isLinked;Nz.exports={applyAutorangeOptions:zz,getAutoRange:L6,makePadFn:C6,doAutoRange:Gxe,findExtremes:Yxe,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>_&&(q=k,C=M,_=P/E):P/w>_&&(q={val:k.val,nopad:1},C={val:M.val,nopad:1},_=P/w));function R(G,Y){return Math.max(G,l(Y))}if(c===v){var B=c-1,I=c+1;if(b)if(c===0)n=[0,1];else{var N=(c>0?f:u).reduce(R,0),H=c/(1-Math.min(.5,N/w));n=c>0?[0,H]:[H,0]}else T?n=[Math.max(0,B),Math.max(1,I)]:n=[B,I]}else b?(q.val>=0&&(q={val:0,nopad:1}),C.val<=0&&(C={val:0,nopad:1})):T&&(q.val-_*o(q)<0&&(q={val:0,nopad:1}),C.val<=0&&(C={val:1,nopad:1})),_=(C.val-q.val-Cz(r,k.val,M.val))/(w-o(q)-l(C)),n=[q.val-_*o(q),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),q=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,Vxe)}function E6(e,r,t,a){Fz(e,r,t,a,jxe)}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 Wxe(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 Xxe(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=Wxe(t,r),a=Xxe(a,r),[t,a]}});var jr=z((dZe,iN)=>{"use strict";var Wi=Pr(),wa=Br(),s0=_a(),Hh=Ar(),Sr=ke(),u0=Sr.strTranslate,sf=Da(),Zxe=o0(),Uh=qr(),_i=et(),$xe=ji(),Iz=a6(),hZe=(Ha(),Ne(Oa)),cn=(Kt(),Ne(aa)),Jxe=cn.ONEMAXYEAR,Lm=cn.ONEAVGYEAR,Cm=cn.ONEMINYEAR,Kxe=cn.ONEMAXQUARTER,N6=cn.ONEAVGQUARTER,Dm=cn.ONEMINQUARTER,Qxe=cn.ONEMAXMONTH,f0=cn.ONEAVGMONTH,Em=cn.ONEMINMONTH,wi=cn.ONEWEEK,Cn=cn.ONEDAY,Gs=Cn/2,ml=cn.ONEHOUR,Gh=cn.ONEMIN,Pm=cn.ONESEC,e5e=cn.ONEMILLI,r5e=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,t5e=zm.OPPOSITE_SIDE,Rm=3,Ye=iN.exports={};Ye.setConvert=l0();var a5e=Am(),yl=Ca(),n5e=yl.idSort,i5e=yl.isLinked;Ye.id2name=yl.id2name;Ye.name2id=yl.name2id;Ye.cleanId=yl.cleanId;Ye.list=yl.list;Ye.listIds=yl.listIds;Ye.getFromId=yl.getFromId;Ye.getFromTrace=yl.getFromTrace;var $z=Bh();Ye.getAutoRange=$z.getAutoRange;Ye.findExtremes=$z.findExtremes;var o5e=1e-4;function Y6(e){var r=(e[1]-e[0])*o5e;return[e[0]-r,e[1]+r]}function l5e(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<=Jxe?c=u:c=Lm:t===N6&&f>=Dm?u>=Dm&&u<=Kxe?c=u:c=N6:f>=Em?u>=Em&&u<=Qxe?c=u:c=f0:t===wi&&f>=wi?c=wi:f>=Cn?c=Cn:t===Gs&&f>=Gs?c=Gs:t===ml&&f>=ml&&(c=ml);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=h5e(r);continue}var q=Y6(u),C=q[0],E=q[1],P=wa(M.dtick),R=a==="log"&&!(P||M.dtick.charAt(0)==="L"),B=Ye.tickFirst(M,t);if(_){if(r._tmin=B,B=E:N<=E;N=Ye.tickIncrement(N,Y,f,n)){if(_&&H++,M.rangebreaks&&!f){if(N=v)break}if(y.length>d||N===I)break;I=N;var W={value:l5e(N,j,Y)};_?(N===B&&(W.first=!0),R&&N!==(N|0)&&(W.simpleLabel=!0),i>1&&H%i&&(W.skipLabel=!0),y.push(W)):(W.minor=!0,b.push(W))}}function V(Me,Le){let Se=Le.find(qe=>qe.value===Me.value);if(Se!=null)return Se;let Ee=1e7;for(let qe=0;qeV(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*pl(r,a,Sm);else if(i>f0)r/=f0,e.dtick="M"+pl(r,1,Vz);else if(i>Cn){if(e.dtick=pl(r,Cn,e._hasDayOfWeekBreaks?[1,2,7,14]:d5e),!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>ml?e.dtick=pl(r,ml,Vz):i>Gh?e.dtick=pl(r,Gh,jz):i>Pm?e.dtick=pl(r,Pm,jz):(a=n(10),e.dtick=pl(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"+pl(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=pl(r,a,p5e)):(e.tick0=0,a=n(10),e.dtick=pl(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>=ml)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 y5e(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 g5e(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function b5e(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 x5e(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 _5e(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=w5e(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 w5e(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"],T5e=["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 A5e(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"?T5e[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=N5e(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 M5e(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 L5e(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(B){return a.indexOf(B)!==-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,q=e._id.charAt(0),C=e.tickangle,E;if(q==="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(B){return B.dx+T+k*B.fontSize},b.yFn=function(B){return B.dy+w+B.fontSize*x},b.anchorFn=function(B,I){if(f){if(l)return"end";if(s)return"start"}return!wa(I)||I===0||I===180?"middle":I*_<0!==c?"end":"start"},b.heightFn=function(B,I,N){return I<-60||I>60?-.5*N:e.side==="top"!==c?-N:0};else if(q==="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(B){return B.dx+r-(T+B.fontSize*x)*_+k*B.fontSize},b.yFn=function(B){return B.dy+w+B.fontSize*Oh},b.anchorFn=function(B,I){return wa(I)&&Math.abs(I)===90?"middle":E?"end":"start"},b.heightFn=function(B,I,N){return e.side==="right"&&(I*=-1),I<-30?-N:I<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 n5e(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),V=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[V]?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(V){var J=Wi.select(this),re=J.select(".text-math-group"),le=s.anchorFn(V,W),ne=t.transFn.call(J.node(),V)+(wa(W)&&+W!=0?" rotate("+W+","+s.xFn(V)+","+(s.yFn(V)-V.fontSize/2)+")":""),$=sf.lineCount(J),ce=Yh*V.fontSize,te=s.heightFn(V,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,V=r._id.charAt(0)==="x",J=0,re=V?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;V?(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=[],V,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))H*N&&(R=N,C[q]=E[q]=B[q])}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 Y=Sr.syncOrAsync(b);return Y&&Y.then&&e._promises.push(Y),Y};function C5e(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 D5e(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,Zxe.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)||!E5e(e,r,t,a)||P5e(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=r5e:/%L/.test(r)?e>=e5e:/%[SX]/.test(r)?e>=Pm:/%M/.test(r)?e>=Gh:/%[HI]/.test(r)?e>=ml:/%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((pZe,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((mZe,sN)=>{"use strict";var B5e=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&&(B5e(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var fN=z((yZe,uN)=>{var O5e={left:0,top:0};uN.exports=H5e;function H5e(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=U5e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function U5e(e){return e===window||e===document||e===document.body?O5e:e.getBoundingClientRect()}});var J6=z((gZe,cN)=>{"use strict";var G5e=q4();function Y5e(){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=G5e&&Y5e()});var hN=z((bZe,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((xZe,pN)=>{"use strict";var dN=ke(),V5e=[["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),V5e[t][r]}});var gN=z((_Ze,yN)=>{"use strict";var j5e=Ch(),W5e=Np(),X5e=wh().getGraphDiv,Z5e=(ah(),Ne(th)),K6=yN.exports={};K6.wrapped=function(e,r,t){var i;e=X5e(e),e._fullLayout&&W5e.clear(e._fullLayout._uid+Z5e.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&&j5e.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((wZe,wN)=>{"use strict";var $5e=fN(),Q6=C4(),J5e=J6(),K5e=ke().removeElement,Q5e=(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,J5e?(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 $5e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Ys=z((TZe,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((AZe,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;il_e,itemGap:()=>o_e,itemHeightPad:()=>u_e,itemMinHeight:()=>s_e,scrollBarColor:()=>t_e,scrollBarEnterAttrs:()=>n_e,scrollBarMargin:()=>a_e,scrollBarMinHeight:()=>r_e,scrollBarWidth:()=>e_e,titlePad:()=>i_e});var e_e,r_e,t_e,a_e,n_e,i_e,o_e,l_e,s_e,u_e,Om=Ct(()=>{"use strict";e_e=6,r_e=20,t_e="#808BA4",a_e=4,n_e={rx:20,ry:3,width:0,height:0},i_e=2,o_e=5,l_e=6,s_e=16,u_e=3});var t7=z((MZe,qN)=>{"use strict";var r7=Ia(),f_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:f_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((SZe,LN)=>{"use strict";var Hm=Ar(),Ti=ke(),c_e=Pt(),v_e=Gn(),h_e=t7(),d_e=Oc(),a7=Zh();function p_e(e,r,t,a,n){var i=r[e]||{},o=c_e.newContainer(t,e);function l(W,V){return Ti.coerce(i,o,h_e,W,V)}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,V){var J=f._input,re=f;return Ti.coerce(J,re,v_e,W,V)},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 V=0;VW.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"),q=l("yref"),C=l("xref"),E=M==="h",P=q==="paper",R=C==="paper",B,I,N,H="left";E?(B=0,Hm.getComponentMethod("rangeslider","isVisible")(r.xaxis)?P?(I=1.1,N="bottom"):(I=1,N="top"):P?(I=-.1,N="top"):(I=0,N="bottom")):(I=1,N="auto",R?B=1.02:(B=1,H="right")),Ti.coerce(i,o,{x:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:B}},"x"),Ti.coerce(i,o,{y:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:I}},"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",H),l("yanchor",N),l("maxheight"),l("valign"),Ti.noneOrAll(i,o,["x","y"]);var Y=l("title.text");if(Y){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(),m_e=i7.pushUnique,y_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=[],q=[],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 B(Se,Ee){P[Se].visible=Ee,R=!0}function I(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?B(Ue,Je):E(Ue,Je)}}var N=p.legend;if(!p._isShape&&Vs.traceIs(p,"pie-like")){var H=l.label,G=f.indexOf(H);if(n==="toggle")G===-1?f.push(H):f.splice(G,1);else if(n==="toggleothers"){var Y=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,V,J){if(t.visible!==!1&&!(a&&W!==t._id))if(V===""||!u7.isGrouped(t)){var re="~~i"+c;s.push(re),l[re]=[J],c++}else s.indexOf(V)===-1?(s.push(V),u=!0,l[V]=[J]):l[V].push(J)}for(d=0;dB&&(P=B)}C[d][0]._groupMinRank=P,C[d][0]._preGroupSort=d}var I=function(W,V){return W[0]._groupMinRank-V[0]._groupMinRank||W[0]._preGroupSort-V[0]._preGroupSort},N=function(W,V){var J=s7(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank,re=s7(V.trace.legendrank)?V.trace.legendrank[V.i]:V.trace.legendrank;return J-re||W._preSort-V._preSort};for(C.forEach(function(W,V){W[0]._preGroupSort=V}),C.sort(I),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 g_e=et(),b_e=qr();FN.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?g_e.pointStyle(r,a,n,t):b_e.fill(r,t.color)}});var Ym=z((EZe,BN)=>{"use strict";var NN=qr(),IN=Gm().castOption,x_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(x_e,t,a,n).style("stroke-width",l).call(NN.stroke,o)}});var d7=z((PZe,YN)=>{"use strict";var Dn=Pr(),f7=Ar(),gn=ke(),c7=gn.strTranslate,Ai=et(),Zi=qr(),v7=xi().extractOpts,jm=ii(),__e=Ym(),w_e=Gm().castOption,ON=(Om(),Ne(Bm)),HN=12,UN=5,hf=2,T_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(q,C,E,P){var R;if(q+1)R=q;else if(C&&C.width>0)R=C.width;else return 0;return i?P:Math.min(R,E)};r.each(function(q){var C=Dn.select(this),E=gn.ensureSingle(C,"g","layers");E.style("opacity",q[0].trace.opacity);var P=a.indentation,R=a.valign,B=q[0].lineHeight,I=q[0].height;if(R==="middle"&&P===0||!B||!I)E.attr("transform",null);else{var N={top:1,bottom:-1}[R],H=N*(.5*(B-I+3))||0,G=a.indentation;E.attr("transform",c7(G,H))}var Y=E.selectAll("g.legendfill").data([q]);Y.enter().append("g").classed("legendfill",!0);var j=E.selectAll("g.legendlines").data([q]);j.enter().append("g").classed("legendlines",!0);var W=E.selectAll("g.legendsymbols").data([q]);W.enter().append("g").classed("legendsymbols",!0),W.selectAll("g.legendpoints").data([q]).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(q){var C=GN(q),E=C.showFill,P=C.showLine,R=C.showGradientLine,B=C.showGradientFill,I=C.anyFill,N=C.anyLine,H=q[0],G=H.trace,Y,j,W=v7(G),V=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),V,"fill")}},le=function(oe){if(oe.size()){var Ae="legendline-"+G.uid;Ai.lineGroupStyle(oe),Ai.gradient(oe,t,Ae,h7(J),V,"stroke")}},ne=jm.hasMarkers(G)||!I?"M5,0":N?"M5,-2":"M5,-3",$=Dn.select(this),ce=$.select(".legendfill").selectAll("path").data(E||B?[q]:[]);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||B?(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,T_e,UN);j=gn.minExtend(G,{line:{width:ge}}),Y=[gn.minExtend(H,{trace:j})]}var se=$.select(".legendlines").selectAll("path").data(P||R?[Y]:[]);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(q){var C=GN(q),E=C.anyFill,P=C.anyLine,R=C.showLine,B=C.showMarker,I=q[0],N=I.trace,H=!B&&!P&&!E&&jm.hasText(N),G,Y;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 I._distinct&&I.index&&te[I.index]?te[I.index]:te[0]}if(B||H||R){var V={},J={};if(B){V.mc=j("marker.color",W);var re=N.type==="scattermap";V.mx=re?"circle":j("marker.symbol",W),V.mo=j("marker.opacity",gn.mean,[.2,1]),V.mlc=j("marker.line.color",W),V.mlw=j("marker.line.width",gn.mean,[0,5],hf),V.mld=j("marker.line.dash",W),J.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var le=j("marker.size",gn.mean,[2,16],HN);V.ms=le,J.marker.size=le}R&&(J.line={width:j("line.width",W,[0,10],UN)}),H&&(V.tx="Aa",V.tp=j("textposition",W),V.ts=10,V.tc=j("textfont.color",W),V.tf=j("textfont.family",W),V.tw=j("textfont.weight",W),V.ty=j("textfont.style",W),V.tv=j("textfont.variant",W),V.tC=j("textfont.textcase",W),V.tE=j("textfont.lineposition",W),V.tS=j("textfont.shadow",W)),G=[gn.minExtend(I,V)],Y=gn.minExtend(N,J),Y.selectedpoints=null,Y.texttemplate=null}var ne=Dn.select(this).select("g.legendpoints"),$=ne.selectAll("path.scatterpts").data(B?G:[]);$.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),$.exit().remove(),$.call(Ai.pointStyle,Y,t),B&&(G[0].mrc=3);var ce=ne.selectAll("g.pointtext").data(H?G:[]);ce.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),ce.exit().remove(),ce.selectAll("text").call(Ai.textPointStyle,Y,t)}function d(q){var C=q[0].trace,E=C.type==="waterfall";if(q[0]._distinct&&E){var P=q[0].trace[q[0].dir].marker;return q[0].mc=P.color,q[0].mlw=P.line.width,q[0].mlc=P.line.color,y(q,this,"waterfall")}var R=[];C.visible&&E&&(R=q[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=Dn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(R);B.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),B.exit().remove(),B.each(function(I){var N=Dn.select(this),H=C[I[0]].marker,G=f(void 0,H.line,v0,hf);N.attr("d",I[1]).style("stroke-width",G+"px").call(Zi.fill,H.color),G&&N.call(Zi.stroke,H.line.color)})}function p(q){y(q,this)}function m(q){y(q,this,"funnel")}function y(q,C,E){var P=q[0].trace,R=P.marker||{},B=R.line||{},I=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"),H=Dn.select(C).select("g.legendpoints").selectAll("path.legend"+E).data(N?[q]:[]);H.enter().append("path").classed("legend"+E,!0).attr("d",I).attr("transform",u),H.exit().remove(),H.each(function(G){var Y=Dn.select(this),j=G[0],W=f(j.mlw,R.line,v0,hf);Y.style("stroke-width",W+"px");var V=j.mcc;if(!a._inHover&&"mc"in j){var J=v7(R),re=J.mid;re===void 0&&(re=(J.max+J.min)/2),V=Ai.tryColorscale(R,"")(re)}var le=V||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}`;Y.call(Ai.pattern,"legend",t,me,te,Ae,Pe,V,ne.fillmode,se,oe,ge)}else Y.call(Zi.fill,le);W&&Zi.stroke(Y,j.mlc||B.color)})}function b(q){var C=q[0].trace,E=Dn.select(this).select("g.legendpoints").selectAll("path.legendbox").data(C.visible&&f7.traceIs(C,"box-violin")?[q]:[]);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 B=f(void 0,C.line,v0,hf);P.style("stroke-width",B+"px").call(Zi.fill,C.fillcolor),B&&Zi.stroke(P,C.line.color)}})}function T(q){var C=q[0].trace,E=Dn.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(C.visible&&C.type==="candlestick"?[q,q]:[]);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 B=Dn.select(this),I=C[R?"increasing":"decreasing"],N=f(void 0,I.line,v0,hf);B.style("stroke-width",N+"px").call(Zi.fill,I.fillcolor),N&&Zi.stroke(B,I.line.color)})}function w(q){var C=q[0].trace,E=Dn.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(C.visible&&C.type==="ohlc"?[q,q]:[]);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 B=Dn.select(this),I=C[R?"increasing":"decreasing"],N=f(void 0,I.line,v0,hf);B.style("fill","none").call(Ai.dashLine,I.line.dash,N),N&&Zi.stroke(B,I.line.color)})}function x(q){k(q,this,"pie")}function _(q){k(q,this,"funnelarea")}function k(q,C,E){var P=q[0],R=P.trace,B=E?R.visible&&R.type===E:f7.traceIs(R,E),I=Dn.select(C).select("g.legendpoints").selectAll("path.legend"+E).data(B?[q]:[]);if(I.enter().append("path").classed("legend"+E,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),I.exit().remove(),I.size()){var N=R.marker||{},H=f(w_e(N.line.width,P.pts),N.line,v0,hf),G="pieLike",Y=gn.minExtend(R,{marker:{line:{width:H}}},G),j=gn.minExtend(P,{trace:Y},G);__e(I,j,Y,t)}}function M(q){var C=q[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(B,I){var N=Dn.select(this),H=v7(C),G=H.colorscale,Y=H.reversescale,j=function(re){if(re.size()){var le="legendfill-"+C.uid;Ai.gradient(re,t,le,h7(Y,E==="radial"),G,"fill")}},W;if(G){if(!E){var J=G.length;W=I===0?G[Y?J-1:0][1]:I===1?G[Y?0:J-1][1]:G[Math.floor((J-1)/2)][1]}}else{var V=C.vertexcolor||C.facecolor||C.color;W=gn.isArrayOrTypedArray(V)?V[I]||V[0]:V}N.attr("d",B[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((RZe,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(),A_e=d7(),p0=Zh(),h0=1,M_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(M_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(q){l||q.attr("pointer-events","all")}),y=Ta.ensureSingleById(a._topdefs,"clipPath",i,function(q){q.append("rect")}),b=Ta.ensureSingle(m,"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 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)&&L_e(T,e,t,n)):(T.selectAll("."+n+"titletext").remove(),T.selectAll("."+n+"titletoggle").remove());var _=Ta.ensureSingle(m,"rect","scrollbar",function(q){q.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(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 df.traceIs(E,"pie-like")?p.indexOf(q[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){En.select(this).call(S_e,e,t)}).call(A_e,e,t).each(function(q){l||q[0].groupTitle&&t.groupclick==="toggleitem"||En.select(this).call(q_e,e,n)}),Ta.syncOrAsync([m7.previousPromises,function(){return E_e(e,k,M,t,T)},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 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,B;E?R=q.l+q.w*t.x-d0[$m(t)]*t._width:R=a.width*t.x-d0[$m(t)]*t._width,P?B=q.t+q.h*(1-t.y)-d0[Jm(t)]*t._effHeight:B=a.height*(1-t.y)-d0[Jm(t)]*t._effHeight;var I=P_e(e,n,R,B);if(I)return;if(a.margin.autoexpand){var N=R,H=B;R=E?Ta.constrain(R,0,a.width-t._width):N,B=P?Ta.constrain(B,0,a.height-t._effHeight):H,R!==N&&Ta.log("Constrain "+n+".x to make legend fit inside graph"),B!==H&&Ta.log("Constrain "+n+".y to make legend fit inside graph")}Aa.setTranslate(m,R,B)}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 Y=Math.max(na.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),j=t._effHeight-Y-2*na.scrollBarMargin,W=t._height-t._effHeight,V=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,Y,V),m.on("wheel",function(){J=Ta.constrain(t._scrollY+En.event.deltaY/W*j,0,W),se(J,Y,V),J!==0&&J!==W&&En.event.preventDefault()});var re,le,ne,$=function(Ce,Me,Le){var Se=(Le-Me)/V+Ce;return Ta.constrain(Se,0,W)},ce=function(Ce,Me,Le){var Se=(Me-Le)/V+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,Y,V))});_.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,Y,V))});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,q.l,q.l+q.w,t.xanchor),Ae=p7.align(Se+t._height,-t._height,q.t+q.h,q.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 S_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 q_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 L_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(){C_e(r,t,a,n)})}function C_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 D_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 E_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,q=b||T||_!=="v"||k!=="paper";M||(M=q?.5:1);let C=q?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=D_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),B=a.x<0||a.x===0&&R==="right",I=a.x>1||a.x===1&&R==="left",N=T||b,H=i.width/2;a._maxWidth=Math.max(B?N&&R==="left"?l.l+l.w:H:I?N&&R==="right"?l.r+l.w:H:l.w,2*p);var G=0,Y=0;t.each(function(Ce){var Me=Wm(Ce,a,p);G=Math.max(G,Me),Y+=Me}),E=null;var j=0;if(u){var W=0,V=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;V>0&&Le+c+V>a._maxWidth?(j=Math.max(j,V),V=0,J+=W+w,W=Me):W=Math.max(W,Me),Aa.setTranslate(this,V,J),V+=Le}),a._width=Math.max(j,V)+c,a._height=J+W+m}else{var re=t.size(),le=Y+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()&&k_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 P_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(),R_e=ia.pushUnique,b7=ia.strTranslate,F_e=ia.strRotate,z_e=Ch(),Qt=Da(),N_e=kN(),gl=et(),Ea=qr(),Km=Xi(),Bo=jr(),I_e=(Ha(),Ne(Oa)).zindexSeparator,pf=Ar(),Mi=No(),mf=(ah(),Ne(th)),B_e=n7(),O_e=g7(),uI=mf.YANGLE,_7=Math.PI*uI/180,H_e=1/Math.sin(_7),U_e=Math.cos(_7),G_e=Math.sin(_7),Wt=mf.HOVERARROWSIZE,$r=mf.HOVERTEXTPAD,eI={box:!0,ohlc:!0,violin:!0,candlestick:!0},Y_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(){j_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=hI(n),o=dI(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),q=p.trace;if(pf.traceIs(q,"gl3d")){var C=n._fullLayout[q.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=cI(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-pq[0]._length||Me<0||Me>C[0]._length)return Km.unhoverRaw(e,r)}if(r.pointerX=Ce+q[0]._offset,r.pointerY=Me+C[0]._offset,"xval"in r?G=Mi.flat(i,r.xval):G=Mi.p2c(q,Ce),"yval"in r?Y=Mi.flat(i,r.yval):Y=Mi.p2c(C,Me),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!$l(G[0])||!$l(Y[0]))return ia.warn("Fx.hover failed",r,e),Km.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=G,e._hoverYVals=Y,e._hoverXAxes=q,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")&&I!==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:I,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<=I&&(!$n||Ht.spikeDistance<$n.spikeDistance)&&(oe[re]=Ht)}}if(c&&N.length===0&&I!==0&&V_e(te.xa,te.ya)){te.distance=I,te.index=!1;var at=J._module.hoverPoints(te,$,ce,"closest",{hoverLayer:l._hoverlayer});if(at&&(at=at.filter(function(Wr){return Wr.spikeDistance<=I})),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(),I!==0)for(let tr=0;trFt.trace.subplot===tt&&Ft.index!==void 0&&Ft.index!==!1&&Ft.spikeDistance<=I);Yr.drawSpikelines(ft,oe[tt],G&&G[tr],Y&&Y[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=sI("x",Oe,l),_r=sI("y",Oe,l);qe(Qe,_r);var gr=[],Re={},Ze=0,ze=function(tr){var tt=eI[tr.trace.type]?fI(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=hI(e),ie=dI(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"&&(H.length>1||N.length>1)||d==="closest"&&Ae&&N.length>1,Zt=Ea.combine(l.plot_bgcolor||Ea.background,l.paper_bgcolor),$t=cI(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);N_e(Jl.select(n),ra?"pointer":"")}var sa=$_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:q,yaxes:C,xvals:Mi.c2dApply(q,G),yvals:Mi.c2dApply(C,Y),xPixel:r.pointerX,yPixel:r.pointerY})}}function fI(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 W_e=/([\s\S]*)<\/extra>/;function x7(e,r){return Qm(e,Qt.getMathOrTextNode(r))}function cI(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",q=w[M];if(q===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 V=a.hoverlabel,J=V.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}):q,$={showlegend:!0,legend:{title:{text:ne,font:J},font:J,bgcolor:V.bgcolor,bordercolor:V.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},ce={font:J};B_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?F_e(uI):""))}}),{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=lI(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(W_e,(p,m)=>(o=lI(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(H){return H*t._invScaleX},y=function(H){return H*t._invScaleY};e.each(function(H){var G=H[n],Y=H[i],j=G._id.charAt(0)==="x",W=G.range;f===0&&W&&W[0]>W[1]!==j&&(l=-1);var V=0,J=j?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var re=vI(H,r),le=H.anchor,ne=le==="end"?-1:1,$,ce;if(le==="middle")$=H.crossPos+(j?y(re.y-H.by/2):m(H.bx/2+H.tx2width/2)),ce=$+(j?y(H.by):m(H.bx));else if(j)$=H.crossPos+y(Wt+re.y)-y(H.by/2-Wt),ce=$+y(H.by);else{var te=m(ne*Wt+re.x),ge=te+m(ne*H.bx);$=H.crossPos+Math.min(te,ge),ce=H.crossPos+Math.max(te,ge)}j?d!==void 0&&p!==void 0&&Math.min(ce,p)-Math.max($,d)>1&&(Y.side==="left"?(V=Y._mainLinePosition,J=t.width):J=Y._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(ce,v)-Math.max($,c)>1&&(Y.side==="top"?(V=Y._mainLinePosition,J=t.height):J=Y._mainLinePosition)}u[f++]=[{datum:H,traceIndex:H.trace.index,dp:0,pos:H.pos,posref:H.posref,size:H.by*(j?H_e:1)/2,pmin:V,pmax:J}]}),u.sort(function(H,G){return H[0].posref-G[0].posref||l*(G[0].traceIndex-H[0].traceIndex)});var b,T,w,x,_,k,M;function q(H){var G=H[0],Y=H[H.length-1];if(T=G.pmin-G.pos-G.dp+G.size,w=Y.pos+Y.dp+Y.size-G.pmax,T>.01){for(_=H.length-1;_>=0;_--)H[_].dp+=T;b=!1}if(!(w<.01)){if(T<-.01){for(_=H.length-1;_>=0;_--)H[_].dp-=w;b=!1}if(b){var j=0;for(x=0;xG.pmax&&j++;for(x=H.length-1;x>=0&&!(j<=0);x--)k=H[x],k.pos>G.pmax-1&&(k.del=!0,j--);for(x=0;x=0;_--)H[_].dp-=w;for(x=H.length-1;x>=0&&!(j<=0);x--)k=H[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(q)}for(x=u.length-1;x>=0;x--){var B=u[x];for(_=B.length-1;_>=0;_--){var I=B[_],N=I.datum;N.offset=I.dp,N.del=I.del}}}function vI(e,r){var t=0,a=e.offset;return r&&(a*=-G_e,t=e.offset*U_e),{x:t,y:a}}function X_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=X_e(o),v=vI(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(gl.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||$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:Bo.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:Bo.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=Bo.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Bo.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=Bo.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Bo.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){let a=r._id.charAt(0)==="y",n=1/0,i=-1/0;for(let o of r._counterAxes||[]){let l=Bo.getFromId(e,o);if(!l)continue;let s=l._padStart||0,u=l._padEnd||0;a?(n=Math.min(n,t.l+l.domain[0]*t.w+s),i=Math.max(i,t.l+l.domain[1]*t.w-u)):(n=Math.min(n,t.t+(1-l.domain[1])*t.h+s),i=Math.max(i,t.t+(1-l.domain[0])*t.h-u))}if(r.anchor==="free"){let o=a?t.l+r.position*t.w:t.t+(1-r.position)*t.h;n=Math.min(n,o),i=Math.max(i,o)}return[n,i]}function iI(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=Bo.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){let Y=nI(e,f,i);_=Y[0],k=Y[1]}a.insert("line",":first-child").attr({x1:_,x2:k,y1:p,y2:p,"stroke-width":T,stroke:w,"stroke-dasharray":gl.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 M=r.vLinePoint,q,C;u=M&&M.xa,f=M&&M.ya;var E=u.spikesnap;E==="cursor"?(q=o.pointerX,C=o.pointerY):(q=u._offset+M.x,C=f._offset+M.y);var P=Ea.wcagContrast(M.color,c)<1.5?Ea.contrast(c):M.color,R=u.spikemode,B=u.spikethickness,I=u.spikecolor||P,N=Bo.getPxPosition(e,u),H,G;if(R.indexOf("toaxis")!==-1||R.indexOf("across")!==-1){if(R.indexOf("toaxis")!==-1&&(H=N,G=C),R.indexOf("across")!==-1){let Y=nI(e,u,i);H=Y[0],G=Y[1]}a.insert("line",":first-child").attr({x1:q,x2:q,y1:H,y2:G,"stroke-width":B,stroke:I,"stroke-dasharray":gl.dashStyle(u.spikedash,B)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:q,x2:q,y1:H,y2:G,"stroke-width":B+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}R.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:q,cy:N-(u.side!=="top"?B:-B),r:B,fill:I}).classed("spikeline",!0)}}}function $_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 oI(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function lI(e,r){return Qt.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function J_e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,dI=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((zZe,pI)=>{"use strict";var K_e=ke(),Q_e=qr(),e4e=No().isUnifiedHover;pI.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&&e4e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Q_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),K_e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var yI=z((NZe,mI)=>{"use strict";var r4e=ke(),t4e=ry(),a4e=Sc();mI.exports=function(r,t){function a(n,i){return r4e.coerce(r,t,a4e,n,i)}t4e(r,t,a)}});var xI=z((IZe,bI)=>{"use strict";var gI=ke(),n4e=W1(),i4e=ry();bI.exports=function(r,t,a,n){function i(l,s){return gI.coerce(r,t,n4e,l,s)}var o=gI.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),i4e(r,t,i,o)}});var A7=z((BZe,_I)=>{"use strict";var o4e=ke(),l4e=Sc();_I.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:o4e.coerce(r,t,l4e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var AI=z((OZe,TI)=>{"use strict";var wI=ke(),s4e=Sc(),u4e=A7(),f4e=ry();TI.exports=function(r,t){function a(u,f){return wI.coerce(r,t,s4e,u,f)}var n=u4e(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"),f4e(r,t,a),wI.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var SI=z((HZe,kI)=>{"use strict";var M7=ke(),MI=Ar();kI.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 v4e=Ar(),qI=No(),h4e=T7().hover;LI.exports=function(r,t,a){var n=v4e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&h4e(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&&qI.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&qI.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((GZe,PI)=>{"use strict";var d4e=Pr(),ty=ke(),p4e=Xi(),Jh=No(),DI=Sc(),EI=T7();PI.exports={moduleType:"component",name:"fx",constants:(ah(),Ne(th)),schema:{layout:DI},attributes:W1(),layoutAttributes:DI,supplyLayoutGlobalDefaults:yI(),supplyDefaults:xI(),supplyLayoutDefaults:AI(),calc:SI(),getDistanceFunction:Jh.getDistanceFunction,getClosest:Jh.getClosest,inbox:Jh.inbox,quadrature:Jh.quadrature,appendArrayPointValue:Jh.appendArrayPointValue,castHoverOption:y4e,castHoverinfo:g4e,hover:EI.hover,unhover:p4e.unhover,loneHover:EI.loneHover,loneUnhover:m4e,click:CI()};function m4e(e){var r=ty.isD3Selection(e)?e:d4e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function y4e(e,r,t){return ty.castOption(e,r,"hoverlabel."+t)}function g4e(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((VZe,RI)=>{"use strict";RI.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((jZe,FI)=>{"use strict";FI.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:()=>b4e,SQRT2:()=>k4e,cos45:()=>A4e,i000:()=>x4e,i090:()=>_4e,i180:()=>w4e,i270:()=>T4e,sin45:()=>M4e});var b4e,x4e,_4e,w4e,T4e,A4e,M4e,k4e,oy=Ct(()=>{"use strict";b4e=32,x4e=0,_4e=8,w4e=16,T4e=24,A4e=Math.cos(Math.PI/4),M4e=Math.sin(Math.PI/4),k4e=Math.sqrt(2)});var ly=z((WZe,NI)=>{"use strict";var S4e=ke().strTranslate;function zI(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 q4e(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 L4e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return zI(e,t[r])}}function C4e(e){return S4e(e.xaxis._offset,e.yaxis._offset)}NI.exports={p2r:zI,r2p:q4e,axValue:L4e,getTransform:C4e}});var js=z(Ql=>{"use strict";var D4e=v6(),OI=(oy(),Ne(iy)),m0=OI.CIRCLE_SIDES,k7=OI.SQRT2,HI=ly(),II=HI.p2r,BI=HI.r2p,E4e=[0,3,4,5,6,1,2],P4e=[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 UI=Ca(),WI=yf(),R4e=WI.drawMode,F4e=WI.openMode,y0=(oy(),Ne(iy)),GI=y0.i000,YI=y0.i090,VI=y0.i180,jI=y0.i270,z4e=y0.cos45,N4e=y0.sin45,XI=ly(),uy=XI.p2r,Ws=XI.r2p,I4e=zs(),B4e=I4e.clearOutline,fy=js(),O4e=fy.readPaths,H4e=fy.writePaths,U4e=fy.ellipseOver,G4e=fy.fixDatesForPaths;function Y4e(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(!R4e(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var V4e=yf(),j4e=V4e.selectMode,W4e=zs(),X4e=W4e.clearOutline,S7=js(),Z4e=S7.readPaths,$4e=S7.writePaths,J4e=S7.fixDatesForPaths;JI.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(!j4e(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(dt6e,paramIsX:()=>e6e,paramIsY:()=>r6e,paramRE:()=>Q4e,segmentRE:()=>K4e});var K4e,Q4e,e6e,r6e,t6e,ed=Ct(()=>{"use strict";K4e=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Q4e=/[^\s,]+/g,e6e={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:{}},r6e={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:{}},t6e={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)),KI=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,B){var I;if(E)if(P==="domain")B?I=function(N){return E._offset+E._length*(1-N)}:I=function(N){return E._offset+E._length*N};else{let N=Ka.shapePositionToRange(E);I=function(H){return E._offset+E.r2p(N(H,!0))},R==="path"&&E.type==="date"&&(I=Ka.decodeDate(I))}else B?I=function(N){return i.t+i.h*(1-N)}:I=function(N){return i.l+i.w*N};return I}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 a6e(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,q=w+_+","+x,C=w+","+(x-k);return"M"+q+M+" 0 1,1 "+C+M+" 0 0,1 "+q+"Z"};function a6e(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.*/,""),KI.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((KZe,rB)=>{"use strict";var n6e=ke(),_l=jr(),QI=Da(),eB=et(),i6e=js().readPaths,gf=Zs(),o6e=gf.getPathString,rd=qp(),l6e=(un(),Ne(sn)).FROM_TL;rB.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 V=Array.isArray(a.xref),J=Array.isArray(a.yref);for(var u in rd){var f=typeof rd[u]=="function",c=!V||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=n6e.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=o6e(r,a),q=i6e(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=s6e(w,_,x,k):N=0),T.call(function(V){return V.call(eB.font,m).attr({}),QI.convertToTspans(V,r),V});var H=eB.bBox(T.node()),G=u6e(w,_,x,k,a,N,H),Y=G.textx,j=G.texty,W=G.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[W],y:j,x:Y,transform:"rotate("+N+","+Y+","+j+")"}).call(QI.positionText,Y,j)}};function s6e(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 u6e(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 f6e=ke(),c6e=f6e.strTranslate,tB=Xi(),iB=yf(),v6e=iB.drawMode,oB=iB.selectMode,lB=Ar(),aB=qr(),hy=(oy(),Ne(iy)),h6e=hy.i000,d6e=hy.i090,p6e=hy.i180,m6e=hy.i270,y6e=zs(),sB=y6e.clearOutlineControllers,D7=js(),vy=D7.pointsOnRectangle,C7=D7.pointsOnEllipse,g6e=D7.writePaths,b6e=cy().newShapes,x6e=cy().createShapeObj,_6e=q7(),w6e=L7();uB.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 Y={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,Y=b6e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Y=_6e(t,a),i._fullLayout._reselect=!0),Object.keys(Y).length&&lB.call((G||{}).redrawing?"relayout":"_guiRelayout",i,Y)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=v6e(f),v=oB(f);(c||v)&&(i._fullLayout._outlining=!0),sB(i),t.attr("d",g6e(r));var d,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=T6e([],r);var T=u.append("g").attr("class","outline-controllers");E(T),H()}if(c&&a.hasText){var w=u.select(".label-temp"),x=x6e(t,a,a.dragmode);w6e(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,Y){if(r.length){var j=b[m][y][1],W=b[m][y][2],V=r[m],J=V.length;if(vy(V)){var re=G,le=Y;if(a.isActiveSelection){var ne=nB(V,y);ne[1]===V[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,Y){if(G===2){m=+Y.srcElement.getAttribute("data-i"),y=+Y.srcElement.getAttribute("data-j");var j=r[m];!vy(j)&&!C7(j)&&q()}}function E(G){d=[];for(var Y=0;Y{"use strict";var M6e=Pr(),pB=Ar(),P7=ke(),bf=jr(),k6e=js().readPaths,S6e=dy(),my=L7(),mB=zs().clearOutlineControllers,E7=qr(),yy=et(),q6e=Pt().arrayEditor,fB=Xi(),cB=Yn(),vB=Ys(),xf=(ed(),Ne(Qh)),oi=Zs(),R7=oi.getPathString;bB.exports={draw:F7,drawOne:yB,eraseActiveShape:P6e,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&&cB.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&cB.click(e,o,t.id)}})}function gB(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=C6e(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 C6e(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 D6e(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,q,C,E,P,R=M6e.select(r.node().parentNode),B=bf.getFromId(e,t.xref),I=bf.getRefType(t.xref),N=bf.getFromId(e,t.yref),H=bf.getRefType(t.yref),G=t.x0shift,Y=t.x1shift,j=t.y0shift,W=t.y1shift,V=function(Ee,qe){var Ue=oi.getDataToPixel(e,B,qe,!1,I);return Ue(Ee)},J=function(Ee,qe){var Ue=oi.getDataToPixel(e,N,qe,!0,H);return Ue(Ee)},re=oi.getPixelToData(e,B,!1,I),le=oi.getPixelToData(e,N,!0,H),ne=te(),$={element:ne.node(),gd:e,prepFn:oe,doneFn:Ae,clickFn:Pe},ce;fB.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?V(t.xanchor)+t.x0:V(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?V(t.xanchor)+t.x1:V(t.x1,Y),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?fB.getCursor(Ke/Ue,1-De/Je):"move";vB(r,Be),ce=Be.split("-")[0]}}function oe(Ee){py(e)||(s&&(b=V(t.xanchor)),u&&(T=J(t.yanchor)),t.type==="path"?P=t.path:(d=s?t.x0:V(t.x0),p=u?t.y0:J(t.y0),m=s?t.x1:V(t.x1),y=u?t.y1:J(t.y1)),dy?(w=p,M="y0",x=y,q="y1"):(w=y,M="y1",x=p,q="y0"),se(Ee),Me(n,t),Se(r,t,e),$.moveFn=ce==="move"?me:Ce,$.altKey=Ee.altKey)}function Ae(){py(e)||(vB(r),Le(n),gB(r,e,t),pB.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(V(Be)+Ee)},B&&B.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=hB(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(V(Qe)+Ee)},B&&B.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=hB(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(q,t[q]=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=V(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 hB(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 E6e(e,r){if(gy(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){dB(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=dB,F7(e)}}}function dB(e){if(gy(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(mB(e),delete e._fullLayout._activeShapeIndex,F7(e))}}function P6e(e){if(gy(e)){mB(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var g0=ke()._,R6e=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")}};xB.exports=R6e});var AB=z((t$e,TB)=>{"use strict";var wB=Pr(),{dfltConfig:F6e}=As(),z6e=_B(),N6e=(e,r,t,a,n)=>{let i=z6e(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===F6e.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)},I6e=(e,r,t)=>{let a=wB.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",()=>{wB.event.target===n.node()&&i()}),N6e(e,n,r,()=>{i(),t()},i)};TB.exports=I6e});var I7=z((a$e,DB)=>{"use strict";var ki=Ar(),B6e=_a(),kB=Ca(),lt=ny(),O6e=by().eraseActiveShape,H6e=AB(),b0=ke(),Jr=b0._,ot={};DB.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}H6e(e,r,function(){B6e.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:O6e};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=kB.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"?MB*v:1/MB*v;_>x?_=x:_{"use strict";var EB=I7(),V6e=Object.keys(EB),PB=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],RB=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(PB,["downloadJson"]),x0=[],j6e=function(e){if(RB.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)}};V6e.forEach(function(e){j6e(EB[e])});x0.sort();FB.exports={DRAW_MODES:PB,backButtons:RB,foreButtons:x0}});var H7={};Dt(H7,{default:()=>X6e});var O7,W6e,X6e,U7=Ct(()=>{"use strict";O7=wc(B7()),W6e={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(" ")}},X6e=W6e});var NB=z((i$e,zB)=>{"use strict";var Z6e=ke(),td=qr(),$6e=Pt(),J6e=(U7(),Ne(H7)).default;zB.exports=function(r,t){var a=r.modebar||{},n=$6e.newContainer(t,"modebar");function i(l,s){return Z6e.coerce(a,n,J6e,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 HB=z((o$e,OB)=>{"use strict";var G7=Pr(),K6e=Br(),wy=ke(),IB=ny(),Q6e=Jv().version,e7e=new DOMParser;function BB(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var wl=BB.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||IB.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};wl.createIcon=function(e){var r=K6e(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=e7e.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 a7e=Ca(),UB=ii(),Y7=Ar(),n7e=No().isUnifiedHover,i7e=HB(),Ty=I7(),o7e=B7().DRAW_MODES,l7e=ke().extendDeep;GB.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=h7e(i):!a.displayModeBar&&a.watermark?o=[]:o=s7e(r),n?n.update(r,o):t._modeBar=i7e(r,o)};function s7e(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Y,j){if(typeof j=="string"){if(j.toLowerCase()===Y.toLowerCase())return!0}else{var W=j.name,V=j._cat||j.name;if(W===Y||V===Y.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(Y){for(var j=0;j1?(C=["toggleHover"],E=["resetViews"]):c?(q=["zoomInGeo","zoomOutGeo"],C=["hoverClosestGeo"],E=["resetGeo"]):f?(C=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(q=["zoomInMap","zoomOutMap"],C=["toggleHover"],E=["resetViewMap"]):v?C=["hoverClosestPie"]:T?(C=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):C=["toggleHover"],u&&C.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(c7e(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"]:m||c?P=["pan2d"]:y&&(P=["zoom2d"]),f7e(t)&&P.push("select2d","lasso2d");var R=[],B=function(Y){R.indexOf(Y)===-1&&C.indexOf(Y)!==-1&&R.push(Y)};if(Array.isArray(l)){for(var I=[],N=0;N{"use strict";VB.exports={moduleType:"component",name:"modebar",layoutAttributes:(U7(),Ne(H7)).default,supplyLayoutDefaults:NB(),manage:YB()}});var j7=z((u$e,jB)=>{"use strict";var d7e=(un(),Ne(sn)).FROM_BL;jB.exports=function(r,t,a){a===void 0&&(a=d7e[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(),Oo=Ca().id2name,p7e=ji(),WB=j7(),m7e=l0(),y7e=(Kt(),Ne(aa)).ALMOST_EQUAL,g7e=(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 x7e(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oy7e*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=k0){let s=a[1]-a[0],u=s-l;u>0&&(o=s/(u/r+l))}e.domain=e._input.domain=[i+(a[0]-i)/o,i+(a[1]-i)/o],e.setScale()}});var ky=z(Wa=>{"use strict";var My=Pr(),Rn=Ar(),Si=_a(),$i=ke(),$7=Da(),J7=ay(),nd=qr(),_0=et(),JB=o0(),tO=V7(),id=jr(),es=(un(),Ne(sn)),aO=wf(),w7e=aO.enforce,T7e=aO.clean,KB=Bh().doAutoRange,nO="start",A7e="middle",iO="end",M7e=(Ha(),Ne(Oa)).zindexSeparator;Wa.layoutStyles=function(e){return $i.syncOrAsync([Si.doAutoMargin,S7e],e)};function k7e(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function S7e(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),tO.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){D7e(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:rO(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+JB.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:rO(r.yanchor)}).call($7.positionText,o,m)}}}};function q7e(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=L7e(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function D7e(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"&&q7e(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 E7e(e,r){var t=e.title,a=e._size,n=0;return r===nO?n=t.pad.l:r===iO&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function P7e(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 rO(e){return e==="top"?es.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":es.MID_SHIFT+"em"}function R7e(e){var r=e.title,t=A7e;return $i.isRightAnchor(r)?t=iO:$i.isLeftAnchor(r)&&(t=nO),t}function F7e(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 z7e=js().readPaths,N7e=dy(),oO=zs().clearOutlineControllers,K7=qr(),lO=et(),I7e=Pt().arrayEditor,sO=Zs(),B7e=sO.getPathString;fO.exports={draw:Sy,drawOne:uO,activateLastSelection:U7e};function Sy(e){var r=e._fullLayout;oO(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(lO.dashLine,y?"solid":d,y?4+v:v);if(O7e(b,e,a),p){var T=I7e(e.layout,"selections",a);b.style({cursor:"move"});var w={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=z7e(l,e);N7e(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 H7e(e,_)})}}function O7e(e,r,t){var a=t.xref+t.yref;lO.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function H7e(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 U7e(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&&(oO(e),delete e._fullLayout._activeSelectionIndex,Sy(e))}}});var vO=z((h$e,cO)=>{function G7e(){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}cO.exports=G7e});var dO=z((d$e,hO)=>{function Y7e(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}hO.exports=Y7e});var mO=z((p$e,pO)=>{var V7e={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}};pO.exports=V7e});var gO=z((m$e,yO)=>{var od=mO();function j7e(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,H){var G=N.seg.start,Y=N.seg.end,j=H.seg.start,W=H.seg.end;return r.pointsCollinear(G,j,W)?r.pointsCollinear(Y,j,W)||r.pointAboveOrOnLine(Y,j,W)?1:-1:r.pointAboveOrOnLine(G,j,W)?1:-1}function T(N){return y.findTransition(function(H){var G=b(N,H.ev);return G>0})}function w(N,H){var G=N.seg,Y=H.seg,j=G.start,W=G.end,V=Y.start,J=Y.end;t&&t.checkIntersection(G,Y);var re=r.linesIntersect(j,W,V,J);if(re===!1){if(!r.pointsCollinear(j,W,V)||r.pointsSame(j,J)||r.pointsSame(W,V))return!1;var le=r.pointsSame(j,V),ne=r.pointsSame(W,J);if(le&&ne)return H;var $=!le&&r.pointBetween(j,V,J),ce=!ne&&r.pointBetween(W,V,J);if(le)return ce?v(H,W):v(N,J),H;$&&(ne||(ce?v(H,W):v(N,J)),v(H,j))}else re.alongA===0&&(re.alongB===-1?v(N,V):re.alongB===0?v(N,re.pt):re.alongB===1&&v(N,J)),re.alongB===0&&(re.alongA===-1?v(H,j):re.alongA===0?v(H,re.pt):re.alongA===1&&v(H,W));return!1}for(var x=[];!i.isEmpty();){var _=i.getHead();if(t&&t.vert(_.pt[0]),_.isStart){let N=function(){if(M){var H=w(_,M);if(H)return H}return q?w(_,q):!1};var I=N;t&&t.segmentNew(_.seg,_.primary);var k=T(_),M=k.before?k.before.ev:null,q=k.after?k.after.ev:null;t&&t.tempStatus(_.seg,M?M.seg:!1,q?q.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,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?m:p,_.seg.otherFill={above:P,below:P}}t&&t.status(_.seg,M?M.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(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 B=_.seg.myFill;_.seg.myFill=_.seg.otherFill,_.seg.otherFill=B}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 W7e(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,N,H){return f.index=I,f.matches_head=N,f.matches_pt1=H,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 X7e={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)}};_O.exports=X7e});var AO=z((b$e,TO)=>{var Z7e={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 $7e=vO(),J7e=dO(),MO=gO(),K7e=xO(),sd=wO(),kO=AO(),Ji=!1,ud=J7e(),li;li={buildLog:function(e){return e===!0?Ji=$7e():e===!1&&(Ji=!1),Ji===!1?!1:Ji.list},epsilon:function(e){return ud.epsilon(e)},segments:function(e){var r=MO(!0,ud,Ji);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=MO(!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:K7e(e.segments,ud,Ji),inverted:e.inverted}},polygonFromGeoJSON:function(e){return kO.toPolygon(li,e)},polygonToGeoJSON:function(e){return kO.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);SO.exports=li});var CO=z((_$e,LO)=>{LO.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((w$e,DO)=>{"use strict";var rw=Mp().dot,Ly=(Kt(),Ne(aa)).BADNUM,Cy=DO.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,q,C,E;for(k=1;kMath.max(M,w)||b>Math.max(q,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 EO={};Dt(EO,{BENDPX:()=>Q7e,MINSELECT:()=>ewe,SELECTDELAY:()=>rwe,SELECTID:()=>twe});var Q7e,ewe,rwe,twe,PO=Ct(()=>{"use strict";Q7e=1.5,ewe=12,rwe=100,twe="-select"});var rH=z((T$e,eH)=>{"use strict";var RO=qO(),awe=CO(),hd=Ar(),nwe=et().dashStyle,cd=qr(),iwe=Yn(),owe=No().makeEventData,gd=yf(),lwe=gd.freeMode,swe=gd.rectMode,dd=gd.drawMode,ow=gd.openMode,lw=gd.selectMode,FO=Zs(),zO=(ed(),Ne(Qh)),HO=dy(),UO=zs().clearOutline,GO=js(),aw=GO.handleEllipse,uwe=GO.readPaths,fwe=cy().newShapes,cwe=q7(),vwe=ew().activateLastSelection,Ey=ke(),hwe=Ey.sorterAsc,YO=tw(),vd=Np(),Ki=Ca().getFromId,dwe=ay(),pwe=ky().redrawReglTraces,Py=(PO(),Ne(EO)),Tl=Py.MINSELECT,mwe=YO.filter,sw=YO.tester,uw=ly(),NO=uw.p2r,ywe=uw.axValue,gwe=uw.getTransform;function fw(e){return e.subplot!==void 0}function bwe(e,r,t,a,n){var i=!fw(a),o=lwe(n),l=swe(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=gwe(w),_=r-T.left,k=t-T.top;m._calcInverseTransform(p);var M=Ey.apply3DTransform(m._invTransform)(_,k);_=M[0],k=M[1];var q=m._invScaleX,C=m._invScaleY,E=_,P=k,R="M"+_+","+k,B=a.xaxes[0],I=a.yaxes[0],N=B._length,H=I._length,G=e.altKey&&!(dd(n)&&s),Y,j,W,V,J,re,le;jO(e,p,a),o&&(Y=mwe([[_,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":nwe($.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=B._id,Me=I._id;JO(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&&VO(Me,p,a.xaxes,a.yaxes,a.subplot,a,ne),Le==="event"&&yd(p,void 0);iwe.click(p,Me,w.id)}).catch(Ey.error)}},a.doneFn=function(){ge.remove(),vd.done(oe).then(function(){vd.clear(oe),!y&&V&&a.selectionDefs&&(V.subtract=G,a.selectionDefs.push(V),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 VO(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(Awe(l)){jO(e,r,i),v=Ry(r,t,a,n);var k=Mwe(l,v),M=k.pointNumbers.length>0;if(M?kwe(v,k):Swe(v)&&(T=BO(k))){for(o&&o.remove(),_=0;_=0}function Twe(e){return e._fullLayout._activeSelectionIndex>=0}function pd(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;wwe(n)&&n._fullLayout._deactivateShape(n),Twe(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=fwe(u,e)),f&&hd.call("_guiRelayout",n,{shapes:f});var c;s&&!fw(e)&&(c=cwe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,hd.call("_guiRelayout",n,{selections:c}).then(function(){r&&vwe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function IO(e){return e._id}function Ry(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(IO),o=t.map(IO),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function kwe(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=OO(e,!0);if(Ce.length){var Me=Ce[0].xref,Le=Ce[0].yref;if(Me&&Le){var Se=KO(Ce),Ee=QO([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,Cwe(l,s,f)||JO(e,l,s,a),me&&(Ae.points.length?yd(e,Ae):hw(e)),v._deselect=!1}return{eventData:Ae,selectionTesters:t}}function Lwe(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";tH.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:()=>Fwe});function Fwe(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((k$e,iH)=>{"use strict";var aH=dw(),nH=Ia(),Fy=(Ha(),Ne(Oa)),zwe=Pt().templatedArray,M$e=(xd(),Ne(bd));iH.exports=zwe("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:nH({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:aH.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:aH.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:nH({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var _d={};Dt(_d,{PTS_LINESONLY:()=>Nwe,eventDataKeys:()=>Hwe,maxScreensAway:()=>Owe,minTolerance:()=>Iwe,toleranceGrowth:()=>Bwe});var Nwe,Iwe,Bwe,Owe,Hwe,wd=Ct(()=>{"use strict";Nwe=20,Iwe=.2,Bwe=10,Owe=20,Hwe=[]});var zy=z((S$e,oH)=>{"use strict";oH.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Qi=z((q$e,dH)=>{"use strict";var lH=Fo().axisHoverFormat,{hovertemplateAttrs:Uwe,texttemplateAttrs:Gwe,templatefallbackAttrs:sH}=gi(),uH=cl(),Ywe=Ia(),fH=Ui().dash,Vwe=Ui().pattern,jwe=et(),Wwe=(wd(),Ne(_d)),Td=St().extendFlat,Xwe=zy();function cH(e){return{valType:"any",dflt:0,editType:"calc"}}function vH(e){return{valType:"any",editType:"calc"}}function hH(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}dH.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:cH("x"),yperiod:cH("y"),xperiod0:vH("x0"),yperiod0:vH("y0"),xperiodalignment:hH("x"),yperiodalignment:hH("y"),xhoverformat:lH("x"),yhoverformat:lH("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:Gwe(),texttemplatefallback:sH({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:Uwe({},{keys:Wwe.eventDataKeys}),hovertemplatefallback:sH(),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({},fH,{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:Xwe(!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:Vwe,marker:Td({symbol:{valType:"enumerated",values:jwe.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({},fH,{arrayOk:!0}),editType:"calc"},uH("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"},uH("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:Ywe({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var pw=z((C$e,yH)=>{"use strict";var pH=w0(),mH=Qi().line,Zwe=Ui().dash,Ny=St().extendFlat,$we=Do().overrideAll,Jwe=Pt().templatedArray,L$e=(xd(),Ne(bd));yH.exports=$we(Jwe("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Ny({},pH.xref,{}),yref:Ny({},pH.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:mH.color,width:Ny({},mH.width,{min:1,dflt:1}),dash:Ny({},Zwe,{dflt:"dot"})}}),"arraydraw","from-root")});var _H=z((D$e,xH)=>{"use strict";var gH=ke(),Iy=jr(),Kwe=zo(),Qwe=pw(),bH=Zs();xH.exports=function(r,t){Kwe(r,t,{name:"selections",handleItemDefaults:e8e});for(var a=t.selections,n=0;n{"use strict";wH.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((P$e,kH)=>{"use strict";var r8e=Ar(),AH=ke(),MH=Ca();kH.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=r8e.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 SH=ew(),Md=rH();qH.exports={moduleType:"component",name:"selections",layoutAttributes:pw(),supplyLayoutDefaults:_H(),supplyDrawNewSelectionDefaults:TH(),includeBasePlot:Ad()("selections"),draw:SH.draw,drawOne:SH.drawOne,reselect:Md.reselect,prepSelect:Md.prepSelect,clearOutline:Md.clearOutline,clearSelectionsCache:Md.clearSelectionsCache,selectOnClick:Md.selectOnClick}});var XH=z((F$e,WH)=>{"use strict";var _w=Pr(),eo=ke(),LH=eo.numberFormat,t8e=J6(),By=Ar(),NH=eo.strTranslate,a8e=Da(),yw=qr(),Js=et(),n8e=Yn(),CH=jr(),i8e=Ys(),o8e=Xi(),IH=yf(),Oy=IH.selectingOrDrawing,l8e=IH.freeMode,s8e=(un(),Ne(sn)).FROM_TL,u8e=ay(),f8e=ky().redrawReglTraces,c8e=_a(),gw=Ca().getFromId,v8e=Al().prepSelect,h8e=Al().clearOutline,d8e=Al().selectOnClick,mw=j7(),ww=(Ha(),Ne(Oa)),DH=ww.MINDRAG,Vn=ww.MINZOOM,EH=!0;function p8e(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,q,C,E,P,R,B,I,N,H,G;t+=r.yaxis._shift;function Y(){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&&d8e(xe,Ie,m,y,r.id,V),We.indexOf("event")>-1&&n8e.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=m8e(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(a8e.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)})}}o8e.init(V);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=HH(s,ce,b,T,te),Ae=UH(s,b,T)}function Ce(ue,xe){if(e._transitioningWithDuration)return!1;var Ie=Math.max(0,Math.min(w,H*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!q||Xe0){var Ze;if(k.isSubplotConstrained||!M&&q.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)*s8e[Ie||ue.constraintoward||"middle"]}return W}function BH(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(i8e,a),n.node()}function OH(e,r,t,a,n,i,o){var l=BH(e,"rect",r,t);return _w.select(l).call(Js.setRect,a,n,i,o),l}function PH(e,r){for(var t=0;t=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function g8e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function HH(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",NH(t,a)).attr("d",n+"Z")}function UH(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",NH(r,t)).attr("d","M0,0Z")}function GH(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"),YH(e,r,n,i)}function YH(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 VH(e){EH&&e.data&&e._context.showTips&&(eo.notifier(eo._(e,"Double-click to zoom back out"),"long",e),EH=!1)}function b8e(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 x8e(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 FH(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 _8e=Pr(),Uy=Yn(),w8e=Xi(),T8e=Ys(),Ho=XH().makeDragBox,Xa=(Ha(),Ne(Oa)).DRAGGERSIZE;Gy.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){_8e.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=Ho(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,w8e.unhover(r,v))},r._context.showAxisDragHandles&&(Ho(r,o,l._offset-Xa,s._offset-Xa,Xa,Xa,"n","w"),Ho(r,o,l._offset+l._length,s._offset-Xa,Xa,Xa,"n","e"),Ho(r,o,l._offset-Xa,s._offset+s._length,Xa,Xa,"s","w"),Ho(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),Ho(r,o,l._offset+l._length*.1,f,l._length*.8,Xa,"","ew"),Ho(r,o,l._offset,f,l._length*.1,Xa,"","w"),Ho(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),Ho(r,o,c,s._offset+s._length*.1,Xa,s._length*.8,"ns",""),Ho(r,o,c,s._offset+s._length*.9,Xa,s._length*.1,"s",""),Ho(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";T8e(r._draggers,t)}});var JH=z((N$e,$H)=>{"use strict";var ZH=Ar();$H.exports=function(r){for(var t=ZH.layoutArrayContainers,a=ZH.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var A8e=Fu(),Aw=Ap(),kd=Ms(),M8e=p4().sorterAsc,Mw=Ar();Sd.containerArrayMatch=JH();var k8e=Sd.isAddVal=function(r){return r==="add"||A8e(r)},KH=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(KH(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(M8e),m=t.get(),y=m||[],b=i(v,o).get(),T=[],w=-1,x=y.length,_,k,M,q,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),KH(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 B;if(w===-1)B=p;else{for(x=Math.max(y.length,x),B=[],_=0;_=w));_++)B.push(M);for(_=w;_{"use strict";var aU=Br(),nU=Ar(),Fn=ke(),qd=_a(),iU=Ca(),Ld=iU.cleanId,S8e=iU.getFromTrace,kw=nU.traceIs,q8e=["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=tU(r);t;){if(t in e)return!0;t=tU(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(),D8e=Br(),E8e=C4(),or=ke(),zt=or.nestedProperty,Lw=Ch(),jn=$P(),to=Ar(),rg=$c(),Cr=_a(),zn=jr(),P8e=$6(),R8e=ji(),jy=et(),F8e=qr(),z8e=Tw().initInteractions,N8e=(Wl(),Ne(jl)),I8e=Al().clearOutline,cU=As().dfltConfig,Vy=QH(),Ma=oU(),wt=ky(),Ks=Do(),B8e=(Ha(),Ne(Oa)).AX_NAME_PATTERN,qw=0,lU=5;function O8e(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)}hU(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)&&(f9e(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",q),e._clearResponsive=()=>window.removeEventListener("resize",q);else{let C=e.offsetWidth,E=e.offsetHeight,P=new ResizeObserver(()=>{let R=e.offsetWidth,B=e.offsetHeight,I=Math.abs(R-C)>1||Math.abs(B-E)>1;C=R,E=B,I&&R&&B&&q()});P.observe(e),e._clearResponsive=()=>P.disconnect()}}}else or.clearResponsive(e);let d=document.fonts?[...document.fonts].filter(q=>q.status!=="loaded"):[];var p=or.extendFlat({},u._size),m=0;function y(){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,jy.savedBBoxes={},Kr._doPlot(e))})}function Dd(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function U8e(e){return or.extendFlat(cU,e)}function vU(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){or.error(t)}}function G8e(e,r){var t=F8e.combine(r,"white");vU(e,t)}function hU(e,r){if(!e._context){e._context=or.extendDeep({},cU);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 dU(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 j8e(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],B=q.parts[P-1]+"."+R,I=q.parts.slice(0,P).join("."),N=zt(e.layout,I).get(),H=zt(a,I).get(),G=q.get();if(C!==void 0){b[M]=C,T[M]=R==="reverse"?C:rs(G);var Y=rg.getLayoutValObject(a,q.parts);if(Y&&Y.impliedEdits&&C!==null)for(var j in Y.impliedEdits)w(or.relativeAttr(M,j),Y.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(B.match(TU))k(B),zt(a,I+"._inputRange").set(null);else if(B.match(AU)){k(B),zt(a,I+"._inputRange").set(null);var V=zt(a,I).get();V._inputDomain&&(V._input.domain=V._inputDomain.slice())}else B.match($8e)&&zt(a,I+"._inputDomain").set(null);if(R==="type"){_=N;var J=H.type==="linear"&&C==="log",re=H.type==="log"&&C==="linear";if(J||re){if(!_||!_.range)w(I+".autorange",!0);else if(H.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(I+".autorange",!0),le<=0?le=ne/1e6:ne<=0&&(ne=le/1e6),w(I+".range[0]",Math.log(le)/Math.LN10),w(I+".range[1]",Math.log(ne)/Math.LN10)):(w(I+".range[0]",Math.pow(10,le)),w(I+".range[1]",Math.pow(10,ne)))}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"],to.getComponentMethod("annotations","convertCoords")(e,H,C,w),to.getComponentMethod("images","convertCoords")(e,H,C,w)}else w(I+".autorange",!0),w(I+".range",null);zt(a,I+"._inputRange").set(null)}else if(R.match(B8e)){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),!I&&$&&C&&(C.range!==void 0||C.autorange!==void 0)&&(k(`${R}.range`),$._inputRange=null)}var te=Vy.containerArrayMatch(M);if(te){f=te.array,c=te.index;var ge=te.property,se=Y||{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(I+".autorange",!0),N.range=[1,0]),H.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:Y?Ks.update(y,Y):y.calc=!0,q.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)}}(kU(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 Q8e(e,r){for(var t=0;t[I,e._ev.listeners(I)]);i=Kr.newPlot(e,r,t,a).then(()=>{for(let[I,N]of B)N.forEach(H=>e.on(I,H));return Kr.react(e,r,t,a)})}else{e.data=r||[],Ma.cleanData(e.data),e.layout=t||{},Ma.cleanLayout(e.layout),r9e(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=n9e(e,s,v,d,p),y=m.newDataRevision,b=a9e(e,l,c,d,p,y);if(kU(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 a9e(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 B=0;Ba._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 o9e(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&&qwq.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 s9e(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 u9e(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 f9e(e){var r=Xy.select(e),t=e._fullLayout;if(t._calcInverseTransform=u9e,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(N8e.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=i9e;Kr.addFrames=o9e;Kr.deleteFrames=l9e;Kr.addTraces=bU;Kr.deleteTraces=xU;Kr.extendTraces=yU;Kr.moveTraces=Cw;Kr.prependTraces=gU;Kr.newPlot=V8e;Kr._doPlot=O8e;Kr.purge=s9e;Kr.react=t9e;Kr.redraw=Y8e;Kr.relayout=Cd;Kr.restyle=Jy;Kr.setPlotConfig=U8e;Kr.update=Qy;Kr._guiRelayout=Dw(Cd);Kr._guiRestyle=Dw(Jy);Kr._guiUpdate=Dw(Qy);Kr._storeDirectGUIEdit=Z8e});var ts=z(ao=>{"use strict";var c9e=Ar();ao.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ao.getRedrawFunc=function(e){return function(){c9e.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 SU=window.URL||window.webkitURL;ao.createObjectURL=function(e){return SU.createObjectURL(e)};ao.revokeObjectURL=function(e){return SU.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=v9e(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 v9e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Rw=Pr(),G$e=ke(),h9e=et(),d9e=qr(),Y$e=(Wl(),Ne(jl)),Pw=/"/g,Tf="TOBESTRIPPED",p9e=new RegExp(`("${Tf})|(${Tf}")|("${Tf})|(${Tf}")`,"g"),m9e=["&","&","&",""",""",""","'","'","'"],y9e=["<","<","<"],g9e=[">",">",">"];function b9e(e){let r=Rw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return m9e.includes(n)?a:y9e.includes(n)?"<":g9e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function x9e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}qU.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(h9e.setRect,0,0,l,s).call(d9e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var _9e=ke(),w9e=Ju().EventEmitter,Ed=ts();function T9e(e){var r=e.emitter||new w9e,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"||_9e.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}LU.exports=T9e});var zw=z((W$e,EU)=>{"use strict";var CU=Br(),DU=Ew(),A9e=_a(),Ml=ke(),Pd=ts(),M9e=ag(),k9e=ng(),S9e=Jv().version,Fw=(j_(),Ne(V_)).default;function q9e(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&&CU(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&CU(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 q=M9e(m,u,v),C=m._fullLayout.width,E=m._fullLayout.height;function P(){DU.purge(m),document.body.removeChild(m)}if(u==="full-json"){var R=A9e.graphJson(m,!1,"object",!0,!0);return R.version=S9e,R=JSON.stringify(R),P(),k(p?R:Pd.encodeJSON(R))}if(P(),u==="svg")return k(p?q:Pd.encodeSVG(q));var B=document.createElement("canvas");B.id=Ml.randstr(),k9e({format:u,width:C,height:E,scale:v,canvas:B,svg:q,promise:!0}).then(k).catch(M)})}function _(k){return p?k.replace(Pd.IMAGE_URL_PREFIX,""):k}return new Promise(function(k,M){DU.newPlot(m,t,y,b).then(T).then(w).then(x).then(function(q){k(_(q))}).catch(function(q){M(q)})})}EU.exports=q9e});var FU=z((X$e,RU)=>{"use strict";var no=ke(),L9e=_a(),C9e=$c(),D9e=As().dfltConfig,Uo=no.isPlainObject,Mf=Array.isArray,Nw=no.isArrayOrTypedArray;RU.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=C9e.get(),n=[],i={_context:no.extendFlat({},D9e)},o,l;Mf(r)?(i.data=no.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Za("array","data"))),Uo(t)?(i.layout=no.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Za("object","layout"))),L9e.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 q=c[x].length;for(w=0;w<(T?Math.min(q,y[x].length):q);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 I9e=ke(),og=ts();function B9e(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(I9e.isSafari()){var f=t==="svg"?",":";base64,";return og.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}zU.exports=B9e});var Iw=z(($$e,HU)=>{"use strict";var lg=ke(),IU=Da(),O9e=zw(),H9e=NU(),BU=ts(),OU=40;function U9e(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=O9e(e,r),o=r.filename||e.fn;if(!o){let s=BU.getPlotTitle(e);if(s&&!IU.matchTex(s))o=lg.slugify(s,OU);else{let u=BU.getPlotSubtitle(e);u&&!IU.matchTex(u)&&(o=lg.slugify(u,OU))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),H9e(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}HU.exports=U9e});var jU=z(Bw=>{"use strict";var si=ke(),ui=si.isPlainObject,UU=$c(),GU=_a(),G9e=Gn(),YU=Pt(),VU=As().dfltConfig;Bw.makeTemplate=function(e){e=si.isPlainObject(e)?e:si.getGraphDiv(e),e=si.extendDeep({_context:VU},{data:e.data,layout:e.layout}),GU.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,V9e.bind(null,d));var m=si.coerce(d,{},G9e,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),Rd(t,a.layout,Y9e.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)&&j9e(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(W9e)};function j9e(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 X9e=wh().getGraphDiv,Z9e=by().eraseActiveShape;Xt.deleteActiveShape=function(e){return Z9e(X9e(e))};Xt.toImage=zw();Xt.validate=FU();Xt.downloadImage=Iw();var WU=jU();Xt.makeTemplate=WU.makeTemplate;Xt.validateTemplate=WU.validateTemplate});var Hw=z((Q$e,ZU)=>{"use strict";var Ow=ke(),$9e=Ar();ZU.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=$9e.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((eJe,KU)=>{"use strict";var $U=ke().dateTick0,J9e=(Kt(),Ne(aa)),K9e=J9e.ONEWEEK;function JU(e,r){return e%K9e===0?$U(r,1):$U(r,0)}KU.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",JU(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",JU(l,t.ycalendar)),n("yperiodalignment"))}}});var rG=z((rJe,eG)=>{"use strict";var QU=["orientation","groupnorm","stackgaps"];eG.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 tG=qr(),aG=xi().hasColorscale,nG=Xl(),Q9e=ii();iG.exports=function(r,t,a,n,i,o={}){var l=Q9e.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),aG(r,"marker")&&nG(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=tG.background:u=tG.defaultLine,i("marker.line.color",u),aG(r,"marker.line")&&nG(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((aJe,oG)=>{"use strict";var eTe=ke().isArrayOrTypedArray,rTe=xi().hasColorscale,tTe=Xl();oG.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),rTe(r,"line"))tTe(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(eTe(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var Yw=z((nJe,lG)=>{"use strict";lG.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Vw=z((iJe,sG)=>{"use strict";var aTe=ke();sG.exports=function(e,r,t,a,n){n=n||{},a("textposition"),aTe.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var jw=z((oJe,fG)=>{"use strict";var fg=qr(),uG=ke().isArrayOrTypedArray;function nTe(e){for(var r=fg.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var cG=ke(),iTe=Ar(),oTe=Qi(),lTe=(wd(),Ne(_d)),M0=ii(),sTe=Hw(),uTe=A0(),fTe=rG(),cTe=Uw(),vTe=Gw(),vG=Yw(),hTe=Vw(),dTe=jw(),pTe=ke().coercePattern;hG.exports=function(r,t,a,n){function i(d,p){return cG.coerce(r,t,oTe,d,p)}var o=sTe(r,t,n,i);if(o||(t.visible=!1),!!t.visible){uTe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=fTe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var mTe=wf().getAxisGroup;pG.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=mTe(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 yG=z((uJe,mG)=>{"use strict";var yTe=ke(),gTe=Fd(),bTe=Qi();mG.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return yTe.coerce(n._input,n,bTe,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 bG=z((fJe,gG)=>{"use strict";var xTe=ke(),_Te=Zp();gG.exports=function(e,r){function t(n,i){return xTe.coerce(e,r,_Te,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var k0=z((cJe,_G)=>{"use strict";var wTe=Br(),xG=ke(),TTe=xG.dateTime2ms,cg=xG.incrementMonth,ATe=(Kt(),Ne(aa)),MTe=ATe.ONEAVGMONTH;_G.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(wTe(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=TTe(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((vJe,TG)=>{"use strict";var Ww=xi().hasColorscale,Xw=e0(),wG=ii();TG.exports=function(r,t){wG.hasLines(t)&&Ww(t,"line")&&Xw(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),wG.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((hJe,AG)=>{"use strict";var ca=ke();AG.exports=function(r,t){for(var a=0;a{"use strict";var MG=ke();kG.exports=function(r,t){MG.isArrayOrTypedArray(t.selectedpoints)&&MG.tagSelected(r,t)}});var dg=z((pJe,PG)=>{"use strict";var SG=Br(),Jw=ke(),zd=jr(),qG=k0(),$w=(Kt(),Ne(aa)).BADNUM,Kw=ii(),kTe=Zw(),STe=vg(),qTe=hg();function LTe(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=qG(r,a,"x",i),s=qG(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,_;DG(t,r);var k="x",M="y",q;if(p)Jw.pushUnique(p.traceIndices,r.index),y=p.orientation==="v",y?(M="s",q="x"):(k="s",q="y"),x=p.stackgaps==="interpolate";else{var C=CG(r,c);LG(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";RG.exports=pg;var CTe=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;iDTe,eventDataKeys:()=>ETe});var DTe,ETe,Id=Ct(()=>{"use strict";DTe=3,ETe=["value","label"]});var yg=z((yJe,BG)=>{"use strict";var oo=Br(),{isArrayOrTypedArray:as}=ke(),{BADNUM:S0}=(Kt(),Ne(aa)),PTe=Ar(),Bd=jr(),{getAxisGroup:RTe}=wf(),mg=FG(),{TEXTPAD:FTe}=(Id(),Ne(Nd)),{LINE_SPACING:zTe}=(un(),Ne(sn)),{BR_TAG_ALL:NTe}=Da();function ITe(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*zTe*t+FTe;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 XTe(e,r,t,a){for(var n=q0(a),i=0;i{"use strict";var OG=dg(),HG=yg().setGroupPositions;function $Te(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 KTe=et(),WG=(Kt(),Ne(aa)),Od=WG.BADNUM,XG=WG.LOG_CLIP,YG=XG+.5,VG=XG-.5,gg=ke(),QTe=gg.segmentsIntersect,jG=gg.constrain,o8=(wd(),Ne(_d));ZG.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,q,C,E,P,R,B,I,N,H,G,Y,j,W,V;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?YG:VG)/(i._m*s*(i._m>0?YG:VG)))),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[jG(Re[0],ge,se),jG(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;q=P,Y=I[0]*B[0]+I[1]*B[1],Y>H?(H=Y,C=P,R=!1):Y=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 $G={tonextx:1,tonexty:1,tonext:1};JG.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 Go=Pr(),eAe=Ar(),Hd=ke(),L0=Hd.ensureSingle,eY=Hd.identity,da=et(),C0=ii(),rAe=l8(),tAe=KG(),bg=tw().tester;rY.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=tAe(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(),aAe(r,l,t),f){o&&(s=o());var v=Go.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){QG(r,p,t,d,c,this,i)})})}else l.each(function(d,p){QG(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function aAe(e,r,t){r.each(function(a){var n=L0(Go.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,eY);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=L0(Go.select(this),"path","js-fill")})})}function QG(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;nAe(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=Go.select(i),y=L0(m,"g","errorbars"),b=L0(m,"g","lines"),T=L0(m,"g","points"),w=L0(m,"g","text");if(eAe.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,q;k==="y"?(M=1,q=v.c2p(0,!0)):k==="x"&&(M=0,q=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var C="",E=[],P=d._prevtrace,R=null,B=null;P&&(C=P._prevRevpath||"",_=P._nextFill,E=P._ownPolygons,R=P._fillsegments,B=P._fillElement);var I,N,H="",G="",Y,j,W,V,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?(Y=da.steps(p.shape),j=da.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?Y=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)}:Y=j=function(De){return"M"+De.join("L")},W=function(De){return j(De.reverse())},$=rAe(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=B,d._fillsegments=ne.slice(0,te),ne=d._fillsegments,$.length&&(V=$[0][0].slice(),J=$[$.length-1],re=J[J.length-1].slice()),ce=function(De){return function(Be){if(I=Y(Be),N=W(Be),H?k?(H+="L"+I.slice(1),G=N+("L"+G.slice(1))):(H+="Z"+I,G=N+"Z"+G):(H=I,G=N),C0.hasLines(d)){var er=Go.select(this);if(er.datum(a),De)f(er.style("opacity",0).attr("d",I).call(da.lineGroupStyle)).style("opacity",1);else{var ae=f(er);ae.attr("d",I),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";tY.exports={container:"marker",min:"cmin",max:"cmax"}});var u8=z((TJe,aY)=>{"use strict";var xg=jr();aY.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((AJe,nY)=>{"use strict";var f8=Pr(),D0=et(),iAe=Ar();function oAe(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),iAe.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 lAe(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))}nY.exports={style:oAe,stylePoints:c8,styleText:v8,styleOnSelect:lAe}});var oY=z((MJe,iY)=>{"use strict";var E0=qr(),sAe=ii();iY.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)&&sAe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var d8=z((kJe,sY)=>{"use strict";var _g=ke(),lY=Yn(),uAe=Ar(),fAe=oY(),h8=qr(),cAe=_g.fillText;sY.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 Y=l.c2p(G.xStart),j=l.c2p(G.xEnd);return u>=Math.min(Y,j)&&u<=Math.max(Y,j)?0:1/0}var W=Math.max(3,G.mrc||0),V=1-1/W,J=Math.abs(l.c2p(G.x)-u);return J=Math.min(Y,j)&&f<=Math.max(Y,j)?0:1/0}var W=Math.max(3,G.mrc||0),V=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),V=Math.max(V,te)));return W=Math.max(W,0),V=Math.min(V,l._length),{x0:W,x1:V,y0:le,y1:le}}if(v.indexOf("fills")!==-1&&o._fillElement){var I=R(o._fillElement)&&!R(o._fillExclusionElement);if(I){var N=B(o._polygons);N===null&&(N={x0:c[0],x1:c[0],y0:c[1],y1:c[1]});var H=h8.defaultLine;return h8.opacity(o.fillcolor)?H=o.fillcolor:h8.opacity((o.line||{}).color)&&(H=o.line.color),_g.extendFlat(r,{distance:r.maxHoverDistance,x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1,color:H,hovertemplate:!1}),delete r.index,o.text&&!_g.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var p8=z((SJe,fY)=>{"use strict";var uY=ii();fY.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&&!uY.hasMarkers(l)&&!uY.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";cY.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var mY=z((LJe,pY)=>{"use strict";var wg=Ar().traceIs,m8=Am();pY.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(vAe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function vAe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=hAe(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,dY(i,a)){var u=hY(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(dY(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function hY(e){return{v:"x",h:"y"}[e.orientation||"v"]}function dY(e,r){var t=hY(e),a=wg(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var gY=z((CJe,yY)=>{"use strict";var dAe=Qn().isTypedArraySpec;function pAe(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||dAe(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=pAe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var y8=z((DJe,xY)=>{"use strict";var bY=qr(),mAe=Hi(),yAe=ke();xY.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(q,C){return yAe.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=bY.mix(i,n.bgColor,n.blend||mAe.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=bY.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((EJe,kY)=>{"use strict";var _Y=Br(),gAe=Ar(),Gd=ke(),bAe=Pt(),xAe=zo(),g8=ji(),wY=im(),TY=om(),_Ae=sm(),wAe=um(),TAe=gY(),AAe=y8(),MAe=$6(),AY=l0(),Tg=(Ha(),Ne(Oa)).WEEKDAY_PATTERN,kAe=(Ha(),Ne(Oa)).HOUR_PATTERN;kY.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=gAe.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"),AY(t,i),MAe(r,t,a,n),TAe(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(wAe(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}}),wY(r,t,a,c);var T=n.hasMinor;if(T&&(bAe.newContainer(t,"minor"),wY(r,t,a,c,{isMinor:!0})),_Ae(r,t,a,c,n),TY(r,t,a,n),T){var w=n.isMinor;n.isMinor=!0,TY(r,t,a,n),n.isMinor=w}AAe(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(xAe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:SAe}),!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=MY(i[l]),s){o=Tg;break}}var u=a("pattern",o);if(u===Tg)for(l=0;l<2;l++)s=MY(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(!_Y(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 kAe:if(!_Y(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 LAe=Br(),Ag=ke();SY.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||(LAe(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),l==="x"?(a("domainpad.left"),a("domainpad.right")):(a("domainpad.top"),a("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var zY=z((RJe,FY)=>{"use strict";var Sf=ke(),qY=qr(),CAe=No().isUnifiedHover,DAe=A7(),LY=Pt(),EAe=Oc(),CY=ji(),PAe=mY(),DY=b8(),RAe=wf(),EY=x8(),w8=Ca(),kl=w8.id2name,PY=w8.name2id,FAe=(Ha(),Ne(Oa)).AX_ID_PATTERN,RY=Ar(),Mg=RY.traceIs,_8=RY.getComponentMethod;function kg(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}FY.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 zAe=Pr(),NY=Ar(),Sg=ke(),qi=et(),qg=jr();IY.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,q=!!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],B=P[1]-P[0];C[0]=(E[0]*(1-b)+b*P[0]-E[0])/(E[1]-E[0])*_,C[2]=_*(1-b+b*B/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=Sg.simpleMap(y.yr0,x.r2l),N=Sg.simpleMap(y.yr1,x.r2l),H=I[1]-I[0],G=N[1]-N[0];C[1]=(I[1]*(1-b)+b*N[1]-I[1])/(I[0]-I[1])*k,C[3]=k*(1-b+b*G/H),x.range[0]=w.l2r(I[0]*(1-b)+b*N[0]),x.range[1]=x.l2r(I[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 Y=M?_/C[2]:1,j=q?k/C[3]:1,W=M?C[0]:0,V=q?C[1]:0,J=M?C[0]/C[2]*_:0,re=q?C[1]/C[3]*k:0,le=w._offset-J,ne=x._offset-re;T.clipRect.call(qi.setTranslate,W,V).call(qi.setScale,1/Y,1/j),T.plot.call(qi.setTranslate,le,ne).call(qi.setScale,Y,j),qi.setPointGroupScale(T.zoomScalePts,1/Y,1/j),qi.setTextPointsScale(T.zoomScaleTxt,1/Y,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(),OY=Ar(),qf=ke(),NAe=_a(),IAe=et(),HY=Kp().getModuleCalcData,Qs=Ca(),Yo=(Ha(),Ne(Oa)),BAe=(Wl(),Ne(jl)),st=qf.ensureSingle;function Lg(e,r,t){return qf.ensureSingle(e,r,t,function(a){a.datum(t)})}var Lf=Yo.zindexSeparator;bn.name="cartesian";bn.attr=["xaxis","yaxis"];bn.idRoot=["x","y"];bn.idRegex=Yo.idRegex;bn.attrRegex=Yo.attrRegex;bn.attributes=vY();bn.layoutAttributes=ji();bn.supplyLayoutDefaults=zY();bn.transitionAxes=BY();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 YY(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=Cg.select(this);f.remove(),VY(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();jY.exports={hasLines:Dg.hasLines,hasMarkers:Dg.hasMarkers,hasText:Dg.hasText,isBubble:Dg.isBubble,attributes:Qi(),layoutAttributes:Zp(),supplyDefaults:dG(),crossTraceDefaults:yG(),supplyLayoutDefaults:bG(),calc:dg().calc,crossTraceCalc:GG(),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 $Y=z((IJe,ZY)=>{"use strict";var HAe=Pr(),UAe=qr(),XY=dw(),T8=ke(),GAe=T8.strScale,YAe=T8.strRotate,VAe=T8.strTranslate;ZY.exports=function(r,t,a){var n=r.node(),i=XY[a.arrowhead||0],o=XY[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 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){I();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(),q="";if(M{"use strict";var JY=Pr(),A8=Ar(),jAe=_a(),ru=ke(),M8=ru.strTranslate,Vd=jr(),Cf=qr(),ns=et(),KY=Yn(),k8=Da(),S8=Ys(),Yd=Xi(),WAe=Pt().arrayEditor,XAe=$Y();rV.exports={draw:ZAe,drawOne:QY,drawRaw:eV};function ZAe(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)V.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;H.call(k8.positionText,Re,gr).call(ns.setClipUrl,R?m:null,e)}B.select("rect").call(ns.setRect,E,E,$,ce),P.call(ns.setRect,q/2,q/2,te-q,ge-q),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(XAe(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?H.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())}):H.call(G)}});var lV=z((OJe,oV)=>{"use strict";var tV=ke(),$Ae=Ar(),aV=Pt().arrayEditor;oV.exports={hasClickToShow:JAe,onClick:KAe};function JAe(e,r){var t=iV(e,r);return t.on.length>0||t.explicitOff.length>0}function KAe(e,r){var t=iV(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();sV.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 fV=z((UJe,uV)=>{"use strict";var C8=ke(),Df=jr(),QAe=zo(),eMe=L8(),rMe=w0();uV.exports=function(r,t){QAe(r,t,{name:"annotations",handleItemDefaults:tMe})};function tMe(e,r,t){function a(w,x){return C8.coerce(e,r,rMe,w,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){eMe(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 hV=z((GJe,vV)=>{"use strict";var D8=ke(),Ef=jr(),aMe=Eg().draw;vV.exports=function(r){var t=r._fullLayout,a=D8.filterVisible(t.annotations);if(a.length&&r._fullData.length)return D8.syncOrAsync([aMe,nMe],r)};function nMe(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"&&cV(t,a),o==="range"&&cV(t,n)})}function cV(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 pV=z((YJe,dV)=>{"use strict";var iMe=Br(),oMe=j1();dV.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=oMe(p,t.range):m=Math.pow(10,p),iMe(m)||(m=null),n(f+d,m)}for(var v=0;v{"use strict";var E8=Eg(),mV=lV();yV.exports={moduleType:"component",name:"annotations",layoutAttributes:w0(),supplyLayoutDefaults:fV(),includeBasePlot:Ad()("annotations"),calcAutorange:hV(),draw:E8.draw,drawOne:E8.drawOne,drawRaw:E8.drawRaw,hasClickToShow:mV.hasClickToShow,onClick:mV.onClick,convertCoords:pV()}});var Pg=z((jJe,bV)=>{"use strict";var Nt=w0(),lMe=Do().overrideAll,sMe=Pt().templatedArray;bV.exports=lMe(sMe("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 _V=z((WJe,xV)=>{"use strict";var P8=ke(),uMe=jr(),fMe=zo(),cMe=L8(),vMe=Pg();xV.exports=function(r,t,a){fMe(r,t,{name:"annotations",handleItemDefaults:hMe,fullLayout:a.fullLayout})};function hMe(e,r,t,a){function n(l,s){return P8.coerce(e,r,vMe,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],uMe.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(cMe(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 MV=z((XJe,AV)=>{"use strict";var wV=ke(),TV=jr();AV.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 pMe(e,r){var t=R8(e.projection,R8(e.view,R8(e.model,[r[0],r[1],r[2],1])));return t}kV.exports=pMe});var LV=z(($Je,qV)=>{"use strict";var mMe=Eg().drawRaw,yMe=SV(),gMe=["x","y","z"];qV.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=yMe(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),mMe(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var EV=z((JJe,DV)=>{"use strict";var bMe=Ar(),CV=ke();DV.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:Pg()}}},layoutAttributes:Pg(),handleDefaults:_V(),includeBasePlot:xMe,convert:MV(),draw:LV()};function xMe(e,r){var t=bMe.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var KJe=(Ha(),Ne(Oa)),PV=Ia(),RV=Qi().line,_Me=Ui().dash,Vo=St().extendFlat,wMe=Pt().templatedArray,QJe=(xd(),Ne(bd)),R0=Gn(),FV=w0(),{shapeTexttemplateAttrs:TMe,templatefallbackAttrs:AMe}=gi(),MMe=qp();zV.exports=wMe("shape",{visible:Vo({},R0.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Vo({},R0.legend,{editType:"calc+arraydraw"}),legendgroup:Vo({},R0.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Vo({},R0.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:PV({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Vo({},R0.legendrank,{editType:"calc+arraydraw"}),legendwidth:Vo({},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:Vo({},FV.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:Vo({},FV.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:Vo({},RV.color,{editType:"arraydraw"}),width:Vo({},RV.width,{editType:"calc+arraydraw"}),dash:Vo({},_Me,{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:TMe({},{keys:Object.keys(MMe)}),texttemplatefallback:AMe({editType:"arraydraw"}),font:PV({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 IV=z((rKe,NV)=>{"use strict";var F0=ke(),Li=jr(),kMe=zo(),SMe=F8(),jd=Zs();NV.exports=function(r,t){kMe(r,t,{name:"shapes",handleItemDefaults:LMe})};function qMe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function LMe(e,r,t){function a(w,x){return F0.coerce(e,r,SMe,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,q,C,E;let P=w+"ref",R=e[P];if(Array.isArray(R)&&R.length>0){let B=jd.countDefiningCoords(s,o,w);E=Li.coerceRefArray(e,r,k,w,void 0,"paper",B),r["_"+w+"refArray"]=!0}else E=Li.coerceRef(e,r,k,w,void 0,"paper");if(Array.isArray(E))E.forEach(function(B){Li.getRefType(B)==="range"&&(M=Li.getFromId(k,B),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(B){let I=E[B];Li.getRefType(I)==="range"?(M=Li.getFromId(k,I),q=jd.shapePositionToRange(M),C=jd.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&a(w+B+"shift")):q=C=F0.identity;let H=w+B,G=e[H];if(e[H]=q(e[H],!0),_==="pixel"?a(H,p[B]):Li.coercePosition(r,k,a,I,H,d[B]),r[H]=C(r[H]),e[H]=G,B===0&&_==="pixel"){let Y=e[x];e[x]=q(e[x],!0),Li.coercePosition(r,k,a,I,x,.25),r[x]=C(r[x]),e[x]=Y}});else{if(Li.getRefType(E)==="range"?(M=Li.getFromId(k,E),M._shapeIndices.push(r._index),C=jd.rangeToShapePosition(M),q=jd.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(w+"0shift"),a(w+"1shift"))):q=C=F0.identity,u){let I=w+"0",N=w+"1",H=e[I],G=e[N];e[I]=q(e[I],!0),e[N]=q(e[N],!0),_==="pixel"?(a(I,p[0]),a(N,p[1])):(Li.coercePosition(r,k,a,E,I,d[0]),Li.coercePosition(r,k,a,E,N,d[1])),r[I]=C(r[I]),r[N]=C(r[N]),e[I]=H,e[N]=G}if(_==="pixel"){let I=e[x];e[x]=q(e[x],!0),Li.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 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",qMe(m,T)),a("label.padding"),F0.coerceFont(a,"label.font",t.font)}}});var HV=z((tKe,OV)=>{"use strict";var CMe=qr(),BV=ke();function DMe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}OV.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"),BV.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",CMe.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",DMe(o,u)),a("newshape.label.padding"),BV.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var XV=z((aKe,WV)=>{"use strict";var z8=ke(),so=jr(),Sl=(ed(),Ne(Qh)),N8=Zs();WV.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,GV(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=so.getFromId(r,i.xref),l=VV(o,i,Sl.paramIsX),l&&(i._extremes[o._id]=so.findExtremes(o,l,GV(i))));if(u==="array"){let f=UV(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=so.getFromId(r,c),i._extremes[o._id]=so.findExtremes(o,v,YV(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=so.getFromId(r,i.yref),l=VV(o,i,Sl.paramIsY),l&&(i._extremes[o._id]=so.findExtremes(o,l,YV(i))))}};function UV(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 GV(e){return jV(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function YV(e){return jV(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function jV(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 VV(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 JV=z((nKe,$V)=>{"use strict";var ZV=by();$V.exports={moduleType:"component",name:"shapes",layoutAttributes:F8(),supplyLayoutDefaults:IV(),supplyDrawNewShapeDefaults:HV(),includeBasePlot:Ad()("shapes"),calcAutorange:XV(),draw:ZV.draw,drawOne:ZV.drawOne}});var I8=z((oKe,QV)=>{"use strict";var KV=(Ha(),Ne(Oa)),EMe=Pt().templatedArray,iKe=(xd(),Ne(bd));QV.exports=EMe("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",KV.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",KV.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var rj=z((lKe,ej)=>{"use strict";var PMe=ke(),B8=jr(),RMe=zo(),FMe=I8(),zMe="images";ej.exports=function(r,t){var a={name:zMe,handleItemDefaults:NMe};RMe(r,t,a)};function NMe(e,r,t){function a(v,d){return PMe.coerce(e,r,FMe,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 ij=z((sKe,nj)=>{"use strict";var tj=Pr(),IMe=et(),z0=jr(),aj=Ca(),BMe=(Wl(),Ne(jl));nj.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var oj=Br(),OMe=j1();lj.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";uj.exports={moduleType:"component",name:"images",layoutAttributes:I8(),supplyLayoutDefaults:rj(),includeBasePlot:Ad()("images"),draw:ij(),convertCoords:sj()}});var Rg={};Dt(Rg,{activeColor:()=>cke,arrowOffsetX:()=>ske,arrowPadX:()=>ake,arrowSymbol:()=>hke,autoMarginIdRoot:()=>KMe,blankHeaderOpts:()=>QMe,buttonClassName:()=>XMe,containerClassName:()=>UMe,dropdownButtonClassName:()=>WMe,dropdownButtonGroupClassName:()=>jMe,gapButton:()=>fke,gapButtonHeader:()=>uke,headerArrowClassName:()=>VMe,headerClassName:()=>YMe,headerGroupClassName:()=>GMe,hoverColor:()=>vke,itemRectClassName:()=>ZMe,itemTextClassName:()=>$Me,menuIndexAttrName:()=>JMe,minHeight:()=>rke,minWidth:()=>eke,name:()=>HMe,rx:()=>nke,ry:()=>ike,textOffsetX:()=>oke,textOffsetY:()=>lke,textPadX:()=>tke});var HMe,UMe,GMe,YMe,VMe,jMe,WMe,XMe,ZMe,$Me,JMe,KMe,QMe,eke,rke,tke,ake,nke,ike,oke,lke,ske,uke,fke,cke,vke,hke,Fg=Ct(()=>{"use strict";HMe="updatemenus",UMe="updatemenu-container",GMe="updatemenu-header-group",YMe="updatemenu-header",VMe="updatemenu-header-arrow",jMe="updatemenu-dropdown-button-group",WMe="updatemenu-dropdown-button",XMe="updatemenu-button",ZMe="updatemenu-item-rect",$Me="updatemenu-item-text",JMe="updatemenu-active-index",KMe="updatemenu-",QMe={label:" "},eke=30,rke=30,tke=24,ake=16,nke=2,ike=2,oke=12,lke=3,ske=4,uke=5,fke=2,cke="#F4FAFF",vke="#F4FAFF",hke={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var O8=z((cKe,vj)=>{"use strict";var dke=Ia(),pke=Hi(),mke=St().extendFlat,yke=Do().overrideAll,gke=Lp(),cj=Pt().templatedArray,bke=cj("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}});vj.exports=yke(cj("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:bke,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:mke(gke({editType:"arraydraw"}),{}),font:dke({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:pke.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var mj=z((vKe,pj)=>{"use strict";var zg=ke(),hj=zo(),dj=O8(),xke=(Fg(),Ne(Rg)),_ke=xke.name,wke=dj.buttons;pj.exports=function(r,t){var a={name:_ke,handleItemDefaults:Tke};hj(r,t,a)};function Tke(e,r,t){function a(o,l){return zg.coerce(e,r,dj,o,l)}var n=hj(e,r,{name:"buttons",handleItemDefaults:Ake}),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 Ake(e,r){function t(n,i){return zg.coerce(e,r,wke,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 bj=z((hKe,gj)=>{"use strict";gj.exports=oa;var jo=Pr(),yj=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,q=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(yj.fill,oa.barColor),M?(this.hbar=R.attr({rx:oa.barRadius,ry:oa.barRadius,x:E,y:P,width:q,height:C}),this._hbarXMin=E+q/2,this._hbarTranslateMax=y-q):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var B=f>b,I=oa.barWidth+2*oa.barPad,N=oa.barLength+2*oa.barPad,H=l+s,G=u;H+I>i&&(H=i-I);var Y=this.container.selectAll("rect.scrollbar-vertical").data(B?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(yj.fill,oa.barColor),B?(this.vbar=Y.attr({rx:oa.barRadius,ry:oa.barRadius,x:H,y:G,width:I,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,V=B?w+I+.5:w+.5,J=x-.5,re=M?_+C+.5:_+.5,le=n._topdefs.selectAll("#"+j).data(M||B?[0]:[]);if(le.exit().remove(),le.enter().append("clipPath").attr("id",j).append("rect"),M||B?(this._clipRect=le.select("rect").attr({x:Math.floor(W),y:Math.floor(J),width:Math.ceil(V)-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||B){var ne=jo.behavior.drag().on("dragstart",function(){jo.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 $=jo.behavior.drag().on("dragstart",function(){jo.event.sourceEvent.preventDefault(),jo.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call($),B&&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-=jo.event.dx),this.vbar&&(t-=jo.event.dy),this.setTranslate(r,t)};oa.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=jo.event.deltaY),this.vbar&&(t+=jo.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(jo.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(jo.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 Lj=z((dKe,qj)=>{"use strict";var I0=Pr(),Wd=_a(),Xd=qr(),B0=et(),Ci=ke(),Ig=Da(),Mke=Pt().arrayEditor,_j=(un(),Ne(sn)).LINE_SPACING,Lr=(Fg(),Ne(Rg)),kke=bj();qj.exports=function(r){var t=r._fullLayout,a=Ci.filterVisible(t[Lr.name]);function n(v){Wd.autoMargin(r,kj(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,Ske);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 Rke=(Fg(),Ne(Rg));Cj.exports={moduleType:"component",name:Rke.name,layoutAttributes:O8(),supplyLayoutDefaults:mj(),draw:Lj()}});var $d={};Dt($d,{arrowOffsetX:()=>eSe,autoMarginIdRoot:()=>$ke,containerClassName:()=>zke,currentValueClass:()=>Wke,currentValueInset:()=>SSe,currentValuePadding:()=>kSe,gripBgActiveColor:()=>mSe,gripBgColor:()=>pSe,gripBorder:()=>vSe,gripBorderColor:()=>dSe,gripBorderWidth:()=>hSe,gripHeight:()=>cSe,gripRadius:()=>uSe,gripRectClass:()=>Hke,gripWidth:()=>fSe,groupClassName:()=>Nke,inputAreaClass:()=>Ike,inputProxyClass:()=>Gke,labelClass:()=>jke,labelGroupClass:()=>Vke,labelOffset:()=>gSe,labelPadding:()=>ySe,labelsClass:()=>Yke,menuIndexAttrName:()=>Zke,minHeight:()=>Kke,minWidth:()=>Jke,minorTickColor:()=>ASe,minorTickLength:()=>MSe,minorTickOffset:()=>TSe,name:()=>Fke,railBgColor:()=>oSe,railBorder:()=>aSe,railBorderColor:()=>iSe,railBorderWidth:()=>nSe,railHeight:()=>Xke,railInset:()=>lSe,railRadius:()=>rSe,railRectClass:()=>Bke,railTouchRectClass:()=>Oke,railWidth:()=>tSe,stepInset:()=>sSe,textPadX:()=>Qke,tickColor:()=>xSe,tickLength:()=>wSe,tickOffset:()=>_Se,tickRectClass:()=>Uke,tickWidth:()=>bSe});var 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,ASe,MSe,kSe,SSe,Jd=Ct(()=>{"use strict";Fke="sliders",zke="slider-container",Nke="slider-group",Ike="slider-input-area",Bke="slider-rail-rect",Oke="slider-rail-touch-rect",Hke="slider-grip-rect",Uke="slider-tick-rect",Gke="slider-input-proxy",Yke="slider-labels",Vke="slider-label-group",jke="slider-label",Wke="slider-current-value",Xke=5,Zke="slider-active-index",$ke="slider-",Jke=30,Kke=30,Qke=40,eSe=4,rSe=2,tSe=5,aSe=4,nSe=1,iSe="#bec8d9",oSe="#f8fafc",lSe=8,sSe=10,uSe=10,fSe=20,cSe=20,vSe=20,hSe=1,dSe="#bec8d9",pSe="#f6f8fa",mSe="#dbdde0",ySe=8,gSe=0,bSe=1,xSe="#333",_Se=25,wSe=7,TSe=25,ASe="#333",MSe=4,kSe=8,SSe=0});var Y8=z((mKe,Rj)=>{"use strict";var Ej=Ia(),qSe=Lp(),LSe=St().extendDeepAll,CSe=Do().overrideAll,DSe=Th(),Pj=Pt().templatedArray,Pf=(Jd(),Ne($d)),ESe=Pj("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}});Rj.exports=CSe(Pj("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:ESe,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:LSe(qSe({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:DSe.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:Ej({})},font:Ej({}),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 Ij=z((yKe,Nj)=>{"use strict";var O0=ke(),Fj=zo(),zj=Y8(),PSe=(Jd(),Ne($d)),RSe=PSe.name,FSe=zj.steps;Nj.exports=function(r,t){Fj(r,t,{name:RSe,handleItemDefaults:zSe})};function zSe(e,r,t){function a(c,v){return O0.coerce(e,r,zj,c,v)}for(var n=Fj(e,r,{name:"steps",handleItemDefaults:NSe}),i=0,o=0;o{"use strict";var Wo=Pr(),Bg=_a(),tu=qr(),Xo=et(),Di=ke(),ISe=Di.strTranslate,Kd=Da(),BSe=Pt().arrayEditor,Hr=(Jd(),Ne($d)),W8=(un(),Ne(sn)),Hj=W8.LINE_SPACING,V8=W8.FROM_TL,j8=W8.FROM_BR;Wj.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=OSe(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,Uj(f))}if(i.exit().each(function(){Wo.select(this).selectAll("g."+Hr.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+Hr.groupClassName).data(n,HSe);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",ISe(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 Oj(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 XSe(e,r,t){var a=t._dims,n=Di.ensureSingle(e,"rect",Hr.railTouchRectClass,function(i){i.call(Vj,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),Xo.setTranslate(n,0,a.currentValueTotalHeight)}function ZSe(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"),Xo.setTranslate(n,Hr.railInset,(t.inputAreaWidth-Hr.railWidth)*.5+t.currentValueTotalHeight)}});var $j=z((bKe,Zj)=>{"use strict";var $Se=(Jd(),Ne($d));Zj.exports={moduleType:"component",name:$Se.name,layoutAttributes:Y8(),supplyLayoutDefaults:Ij(),draw:Xj()}});var Hg=z((xKe,Kj)=>{"use strict";var Jj=Hi();Kj.exports={bgcolor:{valType:"color",dflt:Jj.background,editType:"plot"},bordercolor:{valType:"color",dflt:Jj.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((_Ke,Qj)=>{"use strict";Qj.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:()=>QSe,containerClassName:()=>KSe,extraPad:()=>wqe,grabAreaCursor:()=>yqe,grabAreaFill:()=>mqe,grabAreaMaxClassName:()=>sqe,grabAreaMinClassName:()=>iqe,grabAreaWidth:()=>gqe,grabberMaxClassName:()=>lqe,grabberMinClassName:()=>nqe,handleMaxClassName:()=>uqe,handleMinClassName:()=>oqe,handleRadius:()=>xqe,handleStrokeWidth:()=>_qe,handleWidth:()=>bqe,maskColor:()=>vqe,maskMaxClassName:()=>tqe,maskMaxOppAxisClassName:()=>cqe,maskMinClassName:()=>rqe,maskMinOppAxisClassName:()=>fqe,maskOppAxisColor:()=>hqe,name:()=>JSe,rangePlotClassName:()=>eqe,slideBoxClassName:()=>aqe,slideBoxCursor:()=>pqe,slideBoxFill:()=>dqe});var JSe,KSe,QSe,eqe,rqe,tqe,aqe,nqe,iqe,oqe,lqe,sqe,uqe,fqe,cqe,vqe,hqe,dqe,pqe,mqe,yqe,gqe,bqe,xqe,_qe,wqe,Gg=Ct(()=>{"use strict";JSe="rangeslider",KSe="rangeslider-container",QSe="rangeslider-bg",eqe="rangeslider-rangeplot",rqe="rangeslider-mask-min",tqe="rangeslider-mask-max",aqe="rangeslider-slidebox",nqe="rangeslider-grabber-min",iqe="rangeslider-grabarea-min",oqe="rangeslider-handle-min",lqe="rangeslider-grabber-max",sqe="rangeslider-grabarea-max",uqe="rangeslider-handle-max",fqe="rangeslider-mask-min-opp-axis",cqe="rangeslider-mask-max-opp-axis",vqe="rgba(0,0,0,0.4)",hqe="rgba(0,0,0,0.2)",dqe="transparent",pqe="ew-resize",mqe="transparent",yqe="col-resize",gqe=10,bqe=4,xqe=1,_qe=1,wqe=15});var tW=z(Vg=>{"use strict";var Tqe=Ca(),Aqe=Da(),eW=(Gg(),Ne(Ug)),Mqe=(un(),Ne(sn)).LINE_SPACING,Yg=eW.name;function rW(e){var r=e&&e[Yg];return r&&r.visible}Vg.isVisible=rW;Vg.makeData=function(e){for(var r=Tqe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var jg=ke(),aW=Pt(),nW=Ca(),kqe=Hg(),Sqe=Z8();iW.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=aW.newContainer(i,"rangeslider");function s(_,k){return jg.coerce(o,l,kqe,_,k)}var u,f;function c(_,k){return jg.coerce(u,f,Sqe,_,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")))===nW.name2id(a)}).map(function(_){return _.slice(_.indexOf("y"),_.length)}),m=jg.simpleMap(p,nW.id2name),y=0;y{"use strict";var qqe=Ca().list,Lqe=Bh().getAutoRange,Cqe=(Gg(),Ne(Ug));lW.exports=function(r){for(var t=qqe(r,"x",!0),a=0;a{"use strict";var Wg=Pr(),Dqe=Ar(),Eqe=_a(),pa=ke(),Xg=pa.strTranslate,fW=et(),au=qr(),Pqe=o0(),Rqe=lo(),$8=Ca(),Fqe=Xi(),zqe=Ys(),Zr=(Gg(),Ne(Ug));cW.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=G.max)N=E[H+1];else if(I=G.pmax)N=E[H+1];else if(I0?e.touches[0].clientX:0}function Nqe(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=uW(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=Fqe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var T=uW(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 Wqe=ke(),Xqe=Hg(),Zqe=Z8(),J8=tW();hW.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Wqe.extendFlat({},Xqe,{yaxis:Zqe})}}},layoutAttributes:Hg(),handleDefaults:oW(),calcAutorange:sW(),draw:vW(),isVisible:J8.isVisible,makeData:J8.makeData,autoMarginOpts:J8.autoMarginOpts}});var Zg=z((SKe,mW)=>{"use strict";var $qe=Ia(),pW=Hi(),Jqe=Pt().templatedArray,Kqe=Jqe("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"});mW.exports={visible:{valType:"boolean",editType:"plot"},buttons:Kqe,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:$qe({editType:"plot"}),bgcolor:{valType:"color",dflt:pW.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:pW.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var K8={};Dt(K8,{darkAmount:()=>nLe,lightAmount:()=>aLe,minButtonWidth:()=>eLe,rx:()=>rLe,ry:()=>tLe,yPad:()=>Qqe});var Qqe,eLe,rLe,tLe,aLe,nLe,Q8=Ct(()=>{"use strict";Qqe=.02,eLe=30,rLe=3,tLe=3,aLe=25,nLe=10});var bW=z((qKe,gW)=>{"use strict";var $g=ke(),iLe=qr(),oLe=Pt(),lLe=zo(),yW=Zg(),e9=(Q8(),Ne(K8));gW.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=oLe.newContainer(t,"rangeselector");function s(d,p){return $g.coerce(o,l,yW,d,p)}var u=lLe(o,l,{name:"buttons",handleItemDefaults:sLe,calendar:i}),f=s("visible",u.length>0);if(f){var c=uLe(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",iLe.contrast(v,e9.lightAmount,e9.darkAmount)),s("bordercolor"),s("borderwidth")}};function sLe(e,r,t,a){var n=a.calendar;function i(s,u){return $g.coerce(e,r,yW.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 uLe(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var fLe=d5(),cLe=ke().titleCase;xW.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=vLe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function vLe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=fLe["utc"+cLe(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 LW=z((CKe,qW)=>{"use strict";var Kg=Pr(),hLe=Ar(),dLe=_a(),wW=qr(),SW=et(),is=ke(),TW=is.strTranslate,Jg=Da(),pLe=Ca(),a9=(un(),Ne(sn)),AW=a9.LINE_SPACING,MW=a9.FROM_TL,kW=a9.FROM_BR,t9=(Q8(),Ne(K8)),mLe=_W();qW.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(yLe(r),gLe);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=mLe(o,u);u._isActive=bLe(o,u,c),f.call(r9,l,u),f.call(_Le,l,u,r),f.on("click",function(){r._dragged||hLe.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)})}),TLe(r,s,l,o._name,i)})};function yLe(e){for(var r=pLe.list(e,"x",!0),t=[],a=0;a{"use strict";CW.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Zg()}}},layoutAttributes:Zg(),handleDefaults:bW(),draw:LW()}});var H0=z(n9=>{"use strict";var EW=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:EW({},t,{}),y:EW({},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 ALe=ke(),MLe=(Nc(),Ne(_h)).counter,kLe=H0().attributes,PW=(Ha(),Ne(Oa)).idRegex,SLe=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:[MLe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[PW.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[PW.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:kLe({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 qLe(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=SLe.newContainer(r,"grid");function v(k,M){return ALe.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:RW("x",v,T,x,p),y:RW("y",v,w,_,d,b)}}function RW(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";IW.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 HW=z((FKe,OW)=>{"use strict";var BW=Br(),CLe=Ar(),DLe=ke(),ELe=Pt(),PLe=o9();OW.exports=function(e,r,t,a){var n="error_"+a.axis,i=ELe.newContainer(r,n),o=e[n]||{};function l(p,m){return DLe.coerce(o,i,PLe,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||BW(o.thickness)||BW(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",CLe.traceIs(r,"gl3d")?0:4))}}});var l9=z((zKe,GW)=>{"use strict";GW.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=UW(t,r.value),l=UW(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 UW(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 jW=z((NKe,VW)=>{"use strict";var s9=Br(),RLe=Ar(),u9=jr(),FLe=ke(),zLe=l9();VW.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var WW=Pr(),nu=Br(),NLe=et(),ILe=ii();XW.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=ILe.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var y=WW.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),NLe.setClipUrl(y,a.layerClipId,r),y.each(function(T){var w=WW.select(this),x=BLe(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 q=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=!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 BLe(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 KW=z((BKe,JW)=>{"use strict";var OLe=Pr(),$W=qr();JW.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=OLe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call($W.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call($W.stroke,i.color)})}});var rX=z((OKe,eX)=>{"use strict";var Qd=ke(),QW=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;eX.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Rf,bar:Rf,histogram:Rf,scatter3d:QW(r2,"calc","nested"),scattergl:QW(Rf,"calc","nested")}},supplyDefaults:HW(),calc:jW(),makeComputeError:l9(),plot:ZW(),style:KW(),hoverInfo:HLe};function HLe(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 tX={};Dt(tX,{cn:()=>ULe});var ULe,aX=Ct(()=>{"use strict";ULe={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 cX=z((HKe,fX)=>{"use strict";var iu=Pr(),r3=_a(),nX=Ar(),os=jr(),e3=Xi(),uo=ke(),$o=uo.strTranslate,uX=St().extendFlat,f9=Ys(),Zo=et(),U0=qr(),GLe=o0(),YLe=Da(),VLe=xi().flipScale,jLe=b8(),WLe=x8(),XLe=ji(),v9=(un(),Ne(sn)),iX=v9.LINE_SPACING,oX=v9.FROM_TL,lX=v9.FROM_BR,ea=(aX(),Ne(tX)).cn;function ZLe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+ea.colorbar).data($Le(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=JLe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&KLe(n,a,e)}),t.exit().each(function(a){r3.autoMargin(e,a._id)}).remove(),t.order()}function $Le(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(w){return uX(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?VLe(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]],sX=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function JLe(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,q=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,B=QLe(t,r,C),I=B.fill,N=B.line,H=Math.round(o*(l==="fraction"?a?x.w:x.h:1)),G=H/(a?x.w:x.h),Y=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),j=Y/(a?x.h:x.w),W=T?x.w:t._fullLayout.width,V=b?x.h:t._fullLayout.height,J=Math.round(a?m*W+d:y*V+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?V*(1-$):W*$);r._lenFrac=j,r._thickFrac=G,r._uFrac=ne,r._vFrac=$;var te=r._axis=eCe(t,r,C);te.position=G+(a?m+d/x.w:y+p/x.h);var ge=["top","bottom"].indexOf(q)!==-1;if(a&&ge&&(te.title.side=q,te.titlex=m+d/x.w,te.titley=$+(M.side==="top"?j-p/x.h:p/x.h)),!a&&!ge&&(te.title.side=q,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(Y/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=sX(c9([$,$+j],me),me),te.setScale(),e.attr("transform",$o(Math.round(x.l),Math.round(x.t)));var Ce=e.select("."+ea.cbtitleunshift).attr("transform",$o(-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(),GLe.draw(t,ae,uX(Ge,be||{}))}function Ke(){if(a&&ge||!a&&!ge){var ae,be;q==="top"&&(ae=d+x.l+W*m,be=p+x.t+V*(1-$-j)+3+Le*.75),q==="bottom"&&(ae=d+x.l+W*m,be=p+x.t+V*(1-$)-3-Le*.25),q==="right"&&(be=p+x.t+V*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(q==="right")sr=be,Ge=x.l+W*ae+10+Le*(te.showticklabels?1:.5);else if(Ge=be,q==="bottom"&&(sr=x.t+V*ae+10+(Me.indexOf("inside")===-1?te.tickfont.size:0)+(te.ticks!=="inside"&&r.ticklen||0)),q==="top"){var vr=M.text.split("
").length;sr=x.t+V*ae+10-H-iX*Le*vr}Je((a?"h":"v")+te._id+"title",{avoid:{selection:iu.select(t).selectAll("g."+te._id+"tick"),side:q,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)*iX);var ue;if(sr?(ue=Zo.bBox(sr),Ue=ue.width,qe=ue.height,qe>vr&&(Ge[1]-=(qe-vr)/2)):be.node()&&!be.classed(ea.jsPlaceholder)&&(ue=Zo.bBox(be.node()),Ue=ue.width,qe=ue.height),a){if(qe){if(qe+=5,q==="top")te.domain=sX(te.domain,qe/x.h),Ge[1]*=-1;else{te.domain=c9(te.domain,qe/x.h);var xe=YLe.lineCount(be);Ge[1]+=(1-xe)*vr}ae.attr("transform",$o(Ge[0],Ge[1])),te.setScale()}}else Ue&&(q==="right"&&(te.domain=c9(te.domain,(Ue+Le/2)/x.w)),ae.attr("transform",$o(Ge[0],Ge[1])),te.setScale())}e.selectAll("."+ea.cbfills+",."+ea.cblines).attr("transform",a?$o(0,Math.round(x.h*(1-te.domain[1]))):$o(Math.round(x.w*te.domain[0]),0)),Se.attr("transform",a?$o(0,Math.round(-x.t)):$o(Math.round(-x.l),0));var Ie=e.select("."+ea.cbfills).selectAll("rect."+ea.cbfill).attr("style","").data(I);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]:(I[Re]+I[Re-1])/2,Re===I.length-1?C[1]:(I[Re]+I[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(H,2)).attr(a?"height":"width",Math.max(iu.max(Ze)-iu.min(Ze),2));if(r._fillgradient)Zo.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")+H).call(Zo.lineGroupStyle,k.width,E(gr),k.dash)}),Se.selectAll("g."+te._id+"tick,path").remove();var Xe=J+H+(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=H+s/2;Me.indexOf("inside")===-1&&(ae=Zo.bBox(Se.node()),be+=a?ae.width:ae.height),Ee=Ce.select("text");var Ge=0,sr=a&&q==="top",vr=!a&&q==="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=Zo.bBox(Ie),Ge=ae.width,xe=ae.height):(ae=Zo.bBox(Ce.node()),Ge=ae.right-x.l-(a?J:ce),xe=ae.bottom-x.t-(a?ce:J),!a&&q==="top"&&(be+=ae.height,ue=ae.height)),vr&&(Ee.attr("transform",$o(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?Y: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(Y+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-Y:J)+(sr?qe:0)).attr(a?"width":"height",Math.max(H,2)).attr(a?"height":"width",Math.max(Y-(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",$o(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=Zo.bBox(cr),mr=Zo.getTranslate(e),ie=2;ze.each(function(Fa,kt){var Zt=0,$t=rr-1;if(kt===Zt||kt===$t){var Lt=Zo.bBox(this),ra=Zo.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=oX[c],He=lX[c],Gr=oX[v],rt=lX[v],qt=We-H;a?(i==="pixels"?(ye.y=y,ye.t=Y*Gr,ye.b=Y*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=Y*Fe,ye.r=Y*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 KLe(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+$o(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?nX.call("_guiRestyle",t,u,r._traceIndex):nX.call("_guiRelayout",t,u)}}})}function QLe(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";vX.exports={moduleType:"component",name:"colorbar",attributes:am(),supplyDefaults:l6(),draw:cX().draw,hasColorbar:e6()}});var pX=z((GKe,dX)=>{"use strict";dX.exports={moduleType:"component",name:"legend",layoutAttributes:t7(),supplyLayoutDefaults:n7(),draw:g7(),style:d7()}});var yX=z((YKe,mX)=>{"use strict";mX.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 bX=z((VKe,gX)=>{"use strict";gX.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((jKe,TX)=>{"use strict";var rCe=Ar(),wX=ke(),h9=wX.extendFlat,xX=wX.extendDeep;function _X(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 tCe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}TX.exports=function(r,t){var a,n=r.data,i=r.layout,o=xX([],n),l=xX({},i,_X(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 aCe=Ju().EventEmitter,nCe=Ar(),iCe=ke(),AX=ts(),oCe=d9(),lCe=ag(),sCe=ng();function uCe(e,r){var t=new aCe,a=oCe(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=AX.getDelay(n._fullLayout);setTimeout(function(){var s=lCe(n),u=document.createElement("canvas");u.id=iCe.randstr(),t=sCe({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=AX.getRedrawFunc(n);return nCe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}MX.exports=uCe});var LX=z((XKe,qX)=>{"use strict";var SX=ts(),fCe={getDelay:SX.getDelay,getRedrawFunc:SX.getRedrawFunc,clone:d9(),toSVG:ag(),svgToImg:ng(),toImage:kX(),downloadImage:Iw()};qX.exports=fCe});var DX=z(ls=>{"use strict";ls.version=Jv().version;ZS();RP();var cCe=Ar(),t2=ls.register=cCe.register,m9=XU(),CX=Object.keys(m9);for(t3=0;t3{"use strict";EX.exports=DX()});var zf=z((JKe,IX)=>{"use strict";var va=Qi(),RX=Fo().axisHoverFormat,{hovertemplateAttrs:vCe,texttemplateAttrs:hCe,templatefallbackAttrs:FX}=gi(),NX=cl(),dCe=Ia(),zX=(Id(),Ne(Nd)),pCe=Ui().pattern,Ff=St().extendFlat,y9=dCe({editType:"calc",arrayOk:!0,colorEditType:"style"}),mCe=va.marker,yCe=mCe.line,gCe=Ff({},yCe.width,{dflt:0}),bCe=Ff({width:gCe,editType:"calc"},NX("marker.line")),xCe=Ff({line:bCe,editType:"calc"},NX("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:pCe,cornerradius:{valType:"any",editType:"calc"}});IX.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:RX("x"),yhoverformat:RX("y"),text:va.text,texttemplate:hCe({editType:"plot"},{keys:zX.eventDataKeys}),texttemplatefallback:FX({editType:"plot"}),hovertext:va.hovertext,hovertemplate:vCe({},{keys:zX.eventDataKeys}),hovertemplatefallback:FX(),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:xCe,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((KKe,BX)=>{"use strict";BX.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((QKe,UX)=>{"use strict";var _Ce=qr(),OX=xi().hasColorscale,HX=Xl(),wCe=ke().coercePattern;UX.exports=function(r,t,a,n,i){var o=a("marker.color",n),l=OX(r,"marker");l&&HX(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",_Ce.defaultLine),OX(r,"marker.line")&&HX(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),wCe(a,"marker.pattern",o,l),a("selected.marker.color"),a("unselected.marker.color")}});var Nf=z((eQe,XX)=>{"use strict";var GX=Br(),Y0=ke(),YX=qr(),TCe=Ar(),ACe=Hw(),MCe=A0(),kCe=g9(),SCe=Fd(),VX=zf(),i3=Y0.coerceFont;function qCe(e,r,t,a){function n(u,f){return Y0.coerce(e,r,VX,u,f)}var i=ACe(e,r,a,n);if(!i){r.visible=!1;return}MCe(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");WX(e,r,a,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),kCe(e,r,n,t,a);var l=(r.marker.line||{}).color,s=TCe.getComponentMethod("errorbars","supplyDefaults");s(e,r,l||YX.defaultLine,{axis:"y"}),s(e,r,l||YX.defaultLine,{axis:"x",inherit:"y"}),Y0.coerceSelectionMarkerOpacity(r,n)}function LCe(e,r){var t,a;function n(l,s){return Y0.coerce(a._input,a,VX,l,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&GX(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function WX(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")}XX.exports={supplyDefaults:qCe,crossTraceDefaults:LCe,handleText:WX,validateCornerradius:jX}});var b9=z((rQe,ZX)=>{"use strict";var CCe=Ar(),DCe=jr(),ECe=ke(),PCe=n3(),RCe=Nf().validateCornerradius;ZX.exports=function(e,r,t){function a(m,y){return ECe.coerce(e,r,PCe,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=DCe.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=RCe(p)}});var o3=z((tQe,$X)=>{"use strict";var V0=ke();$X.exports=function(r,t){for(var a=0;a{"use strict";var JX=jr(),KX=k0(),QX=xi().hasColorscale,eZ=e0(),FCe=o3(),zCe=hg();rZ.exports=function(r,t){var a=JX.getFromId(r,t.xaxis||"x"),n=JX.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=KX(t,n,"y",l),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),l=a.makeCalcdata(t,"x"),s=KX(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 NCe=Pr(),ICe=ke();function BCe(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=NCe.select(this).select("text");ICe.setTransormAndDisplay(u,s)}})}}function OCe(e,r,t){if(t.uniformtext.mode){var a=aZ(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var UCe=qr(),GCe=Br(),iZ=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(GCe(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 UCe.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 iZ(e)?r{"use strict";var n2=Pr(),YCe=qr(),i2=et(),oZ=ke(),lZ=Ar(),sZ=a2().resizeText,x9=zf(),VCe=x9.textfont,jCe=x9.insidetextfont,WCe=x9.outsidetextfont,vn=l3();function XCe(e){var r=n2.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");sZ(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;uZ(i,o,e)}),lZ.getComponentMethod("errorbars","style")(r)}function uZ(e,r,t){i2.pointStyle(e.selectAll("path"),r,t),fZ(e,r,t)}function fZ(e,r,t){e.selectAll("text").each(function(a){var n=n2.select(this),i=oZ.ensureUniformFontSize(t,cZ(n,a,r,t));i2.font(n,i)})}function ZCe(e,r,t){var a=r[0].trace;a.selectedpoints?$Ce(t,a,e):(uZ(t,a,e),lZ.getComponentMethod("errorbars","style")(t))}function $Ce(e,r,t){i2.selectedPointStyle(e.selectAll("path"),r),JCe(e.selectAll("text"),r,t)}function JCe(e,r,t){e.each(function(a){var n=n2.select(this),i;if(a.selected){i=oZ.ensureUniformFontSize(t,cZ(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 cZ(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var o=pZ(r,t);i=hZ(t,r.i,n,o)}else e.classed("bartext-outside")&&(i=dZ(t,r.i,n));return i}function vZ(e,r,t){return _9(VCe,e.textfont,r,t)}function hZ(e,r,t,a){var n=vZ(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:YCe.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(jCe,e.insidetextfont,r,n)}function dZ(e,r,t){var a=vZ(e,r,t);return _9(WCe,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 pZ(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}mZ.exports={style:XCe,styleTextPoints:fZ,styleOnSelect:ZCe,getInsideTextFont:hZ,getOutsideTextFont:dZ,getBarColor:pZ,resizeText:sZ}});var A9=z((lQe,AZ)=>{"use strict";var s3=Pr(),u3=Br(),Qa=ke(),KCe=Da(),QCe=qr(),ou=et(),eDe=Ar(),f3=jr().tickText,yZ=a2(),rDe=yZ.recordMinTextSize,tDe=yZ.clearMinTextSize,w9=j0(),W0=l3(),aDe=(Id(),Ne(Nd)),gZ=zf(),nDe=gZ.text,iDe=gZ.textposition,oDe=No().appendArrayPointValue,Nn=aDe.TEXTPAD;function lDe(e){return e.id}function sDe(e){if(e.ids)return lDe}function T9(e){return(e>0)-(e<0)}function Jo(e,r){return e0}function fDe(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},tDe("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=xZ(n),M=Qa.ensureSingle(v,"g","points"),q=sDe(d),C=M.selectAll("g.point").data(Qa.identity,q);C.enter().append("g").classed("point",!0),C.exit().remove(),C.each(function(P,R){var B=s3.select(this),I=uDe(P,o,l,_),N=I[0][0],H=I[0][1],G=I[1][0],Y=I[1][1],j=(_?H-N:Y-G)===0;j&&w&&W0.getLineWidth(d,P)&&(j=!1),j||(j=!u3(N)||!u3(H)||!u3(G)||!u3(Y)),P.isBlank=j,j&&(_?H=N:Y=G),x&&!j&&(_?(N-=Jo(N,H)*x,H+=Jo(N,H)*x):(G-=Jo(G,Y)*x,Y+=Jo(G,Y)*x));var W,V;if(d.type==="waterfall"){if(!j){var J=d[P.dir].marker;W=J.line.width,V=J.color}}else W=W0.getLineWidth(d,P),V=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=QCe.opacity(V),$=ne<1||W>.01?re:le;e._context.staticPlot||(N=$(N,H,_),H=$(H,N,_),G=$(G,Y,!_),Y=$(Y,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(_?Y-G:H-N),sr=Math.abs(_?H-N:Y-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"+Y+"H"+H+"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"+(Y-Ee*Le)+"H"+Ue(H-(se-me)*Me,N)+"A "+se+","+se+" 0 0 "+Se+" "+H+","+(Y-se*Le-qe)+"V"+(G+se*Le+qe)+"A "+se+","+se+" 0 0 "+Se+" "+Ue(H-(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"+(Y-se*Le)+"A "+se+","+se+" 0 0 "+Se+" "+(N+se*Me)+","+Y+"H"+(H-se*Me)+"A "+se+","+se+" 0 0 "+Se+" "+H+","+(Y-se*Le)+"V"+(G+se*Le)+"A "+se+","+se+" 0 0 "+Se+" "+(H-se*Me)+","+G+"Z";else{Ae=Math.abs(Y-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(Y-(se-me)*Le,G)+"A "+se+","+se+" 0 0 "+Se+" "+(N+se*Me-Ke)+","+Y+"H"+(H-se*Me+Ke)+"A "+se+","+se+" 0 0 "+Se+" "+(H-Je*Me)+","+De(Y-(se-me)*Le,G)+"V"+G+"Z"}}else oe=Pe}else oe=Pe;var Be=bZ(Qa.ensureSingle(B,"path"),s,n,i);if(Be.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((H-N)*(Y-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)}cDe(e,r,B,c,R,N,H,G,Y,se,me,n,i),r.layerClipId&&ou.hideOutsideRangePoint(P,B.select("text"),o,l,d.xcalendar,d.ycalendar)});var E=d.cliponaxis===!1;ou.setClipUrl(v,E?null:r.layerClipId,e)});eDe.getComponentMethod("errorbars","plot")(e,f,r,n)}function cDe(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(KCe.convertToTspans,e);return Me}var T=a[0].trace,w=T.orientation==="h",x=mDe(a,w,d,p),_=dDe(m,a,n,d,p);y=pDe(T,n);var k=c.mode==="stack"||c.mode==="relative",M=a[n],q=!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),B=w9.getInsideTextFont(T,n,P,R),I=w9.getOutsideTextFont(T,n,P),N=T.insidetextanchor||"end",H=t.datum();w?d.type==="log"&&H.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",V.remove(),V=null)}else y="inside";if(!V){ne=Qa.ensureUniformFontSize(e,y==="outside"?I:B),V=b(t,_,ne);var te=V.attr("transform");if(V.attr("transform",""),J=ou.bBox(V.node()),re=J.width,le=J.height,V.attr("transform",te),re<=0||le<=0){V.remove();return}}var ge=T.textangle,se,oe;y==="outside"?(oe=T.constraintext==="both"||T.constraintext==="outside",se=hDe(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ge,zeroBarDir:x})):(oe=T.constraintext==="both"||T.constraintext==="inside",se=TZ(i,o,l,s,J,{isHorizontal:w,constrained:oe,angle:ge,anchor:N,hasB:C,r:u,overhead:f})),se.fontSize=ne.size,rDe(T.type==="histogram"?"bar":T.type,se,m),M.transform=se;var Ae=bZ(V,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 _Z(e){return e==="auto"?0:e}function wZ(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 TZ(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=_Z(s);s==="auto"&&!(T<=x&&w<=_)&&(T>x||w>_)&&(!(T>_||w>x)||TNn){var P=vDe(e,r,t,a,q,y,b,o,m);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,B=(n.top+n.bottom)/2,I=(e+Nn)*p+(r-Nn)*d,N=(t+a)/2,H=0,G=0;if(c||f){var Y=(o?q.x:q.y)/2;y&&(f||m)&&(k+=E);var j=o?Jo(e,r):Jo(t,a);o?c?(I=e+j*k,H=-j*Y):(I=r-j*k,H=j*Y):c?(N=t+j*k,G=-j*Y):(N=a-j*k,G=j*Y)}return{textX:R,textY:B,targetX:I,targetY:N,anchorX:H,anchorY:G,scale:C,rotate:M}}function vDe(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 hDe(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=_Z(s),y=wZ(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,q;return(o?e===r:t===a)&&i.zeroBarDir?q=i.zeroBarDir:q=o?Jo(r,e):Jo(t,a),o?(x=r-q*d,k=q*b):(_=a+q*d,M=-q*b),{textX:T,textY:w,targetX:x,targetY:_,anchorX:k,anchorY:M,scale:p,rotate:m}}function dDe(e,r,t,a,n){var i=r[0].trace,o=i.texttemplate,l;return o?l=yDe(e,r,t,a,n):i.textinfo?l=gDe(r,t,a,n):l=W0.getValue(i.text,t),W0.coerceString(nDe,l)}function pDe(e,r){var t=W0.getValue(e.textposition,r);return W0.coerceEnumerated(iDe,t)}function mDe(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=-Jo(s.range[0],s.range[1]);return i?n?0:-u:u}function yDe(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={};oDe(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 gDe(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("
")}AZ.exports={plot:fDe,toMoveInsideBar:TZ}});var k9=z((sQe,qZ)=>{"use strict";var o2=Yn(),bDe=Ar(),MZ=qr(),xDe=ke().fillText,_De=l3().getLineWidth,M9=jr().hoverLabelText,wDe=(Kt(),Ne(aa)).BADNUM;function TDe(e,r,t,a,n){var i=kZ(e,r,t,a,n);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=SZ(l,s),bDe.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}}function kZ(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 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($,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 B($){return P(_($),k($),c)}function I($){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=I($);return o2.inbox(te-ce,ge-ce,f+(ge-ce)/(ge-te)-1)}function H($){var ce=d,te=$.b,ge=I($);return o2.inbox(te-ce,ge-ce,c+(ge-ce)/(ge-te)-1)}var G=e[p+"a"],Y=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!==wDe){x||(C=function($){return Math.min(_($),$.p-l.bargroupwidth/2)},E=function($){return Math.max(k($),$.p+l.bargroupwidth/2)});var V=e.index,J=i[V],re=o.base?J.b+J.s:J.s;e[m+"0"]=e[m+"1"]=Y.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(Y,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=M9(Y,J.b,o[m+"hoverformat"]),e.spikeDistance=(H(J)+B(J))/2,e[p+"Spike"]=G.c2p(J.p,!0),xDe(J,o,e),e.hovertemplate=o.hovertemplate,e}}function SZ(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=_De(e,r);if(MZ.opacity(t))return t;if(MZ.opacity(a)&&n)return a}qZ.exports={hoverPoints:TDe,hoverOnBars:kZ,getTraceColor:SZ}});var CZ=z((uQe,LZ)=>{"use strict";LZ.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((fQe,DZ)=>{"use strict";DZ.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";EZ.exports={attributes:zf(),layoutAttributes:n3(),supplyDefaults:Nf().supplyDefaults,crossTraceDefaults:Nf().crossTraceDefaults,supplyLayoutDefaults:b9(),calc:tZ(),crossTraceCalc:yg().crossTraceCalc,colorbar:Ud(),arraysToCalcdata:o3(),plot:A9().plot,style:j0().style,styleOnSelect:j0().styleOnSelect,hoverPoints:k9().hoverPoints,eventData:CZ(),selectPoints:S9(),moduleType:"trace",name:"bar",basePlotModule:lo(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var FZ=z((vQe,RZ)=>{"use strict";RZ.exports=PZ()});var c3=z((hQe,BZ)=>{"use strict";var MDe=zy(),fo=Qi(),zZ=zf(),kDe=Hi(),NZ=Fo().axisHoverFormat,{hovertemplateAttrs:SDe,templatefallbackAttrs:qDe}=gi(),ss=St().extendFlat,X0=fo.marker,IZ=X0.line;BZ.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:NZ("x"),yhoverformat:NZ("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({},IZ.color,{arrayOk:!1,dflt:kDe.defaultLine,editType:"style"}),width:ss({},IZ.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:MDe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:zZ.offsetgroup,alignmentgroup:zZ.alignmentgroup,selected:{marker:fo.selected.marker,editType:"style"},unselected:{marker:fo.unselected.marker,editType:"style"},text:ss({},fo.text,{}),hovertext:ss({},fo.hovertext,{}),hovertemplate:SDe({}),hovertemplatefallback:qDe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:fo.zorder}});var v3=z((dQe,OZ)=>{"use strict";OZ.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((pQe,YZ)=>{"use strict";var co=ke(),LDe=Ar(),CDe=qr(),DDe=A0(),EDe=Fd(),HZ=Am(),l2=c3();function PDe(e,r,t,a){function n(p,m){return co.coerce(e,r,l2,p,m)}if(UZ(e,r,n,a),r.visible!==!1){DDe(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",CDe.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"),GZ(e,r,n,{prefix:"box"}),n("zorder")}}function UZ(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 q=t("orientation",T);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=LDe.getComponentMethod("calendars","handleTraceDefaults");C(e,r,["x","y"],a)}function GZ(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 RDe(e,r){var t,a;function n(s){return co.coerce(a._input,a,l2,s)}for(var i=0;i{"use strict";var FDe=Ar(),zDe=ke(),NDe=v3();function VZ(e,r,t,a,n){for(var i=n+"Layout",o=!1,l=0;l{"use strict";var C9=Br(),h3=jr(),BDe=k0(),ka=ke(),Ei=(Kt(),Ne(aa)).BADNUM,us=ka._;r$.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=ODe(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,q,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],B=function(Se){return f.d2c((t[Se]||[])[s])},I=1/0,N=-1/0;for(s=0;s=_.q1&&_.q3>=_.med){var G=B("lowerfence");_.lf=G!==Ei&&G<=_.q1?G:$Z(_,M,q);var Y=B("upperfence");_.uf=Y!==Ei&&Y>=_.q3?Y:JZ(_,M,q);var j=B("mean");_.mean=j!==Ei?j:q?ka.mean(M,q):(_.q1+_.q3)/2;var W=B("sd");_.sd=j!==Ei&&W>=0?W:q?ka.stdev(M,q,_.mean):_.q3-_.q1,_.lo=KZ(_),_.uo=QZ(_);var V=B("notchspan");V=V!==Ei&&V>0?V:e$(_,q),_.ln=_.med-V,_.un=_.med+V;var J=_.lf,re=_.uf;t.boxpoints&&M.length&&(J=Math.min(J,M[0]),re=Math.max(re,M[q-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}I=Math.min(I,_.min),N=Math.max(N,_.max),_.pts2=k.filter(P),o.push(_)}}t._extremes[f._id]=h3.findExtremes(f,[I,N],{padded:!0})}else{var ne=f.makeCalcdata(t,c),$=HDe(w,x),ce=w.length,te=UDe(ce);for(s=0;s=0&&ge0){if(_={},_.pos=_[d]=w[s],k=_.pts=te[s].sort(XZ),M=_[c]=k.map(ZZ),q=M.length,_.min=M[0],_.max=M[q-1],_.mean=ka.mean(M,q),_.sd=ka.stdev(M,q,_.mean)*t.sdmultiple,_.med=ka.interp(M,.5),q%2&&(Pe||me)){var Ce,Me;Pe?(Ce=M.slice(0,q/2),Me=M.slice(q/2+1)):me&&(Ce=M.slice(0,q/2+1),Me=M.slice(q/2)),_.q1=ka.interp(Ce,.5),_.q3=ka.interp(Me,.5)}else _.q1=ka.interp(M,.25),_.q3=ka.interp(M,.75);_.lf=$Z(_,M,q),_.uf=JZ(_,M,q),_.lo=KZ(_),_.uo=QZ(_);var Le=e$(_,q);_.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 GDe(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 ODe(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=BDe(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 t$=jr(),YDe=ke(),VDe=wf().getAxisGroup,a$=["v","h"];function jDe(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"?(Y=q*(k?1:.5),V=W,j=V=E):M==="negative"?(Y=V=E,j=q*(k?1:.5),J=W):(Y=j=q,V=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>Y?(ce=!0,ne=oe,re=Ae):Ae>V&&(ne=oe,re=Y)),Ae<=Y&&(re=Y);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=Y,le=j;var me=new Array(f.length);for(u=0;u{"use strict";var Z0=Pr(),Of=ke(),WDe=et(),o$=5,XDe=.01;function ZDe(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),l$(s,{pos:v,val:d},c,f,n),s$(s,{x:i,y:o},c,f),u$(s,{pos:v,val:d},c,f)})}function l$(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,q=t.whiskerwidth,C=s?_*q+(1-q)*M:l.l2p(x-f)+c,E=s?k*q+(1-q)*M:l.l2p(x+f)+c,P=l.l2p(x-y*m)+c,R=l.l2p(x+b*m)+c,B=t.sizemode==="sd",I=o.c2p(B?w.mean-w.sd:w.q1,!0),N=B?o.c2p(w.mean+w.sd,!0):o.c2p(w.q3,!0),H=Of.constrain(B?o.c2p(w.mean,!0):o.c2p(w.med,!0),Math.min(I,N)+1,Math.max(I,N)-1),G=w.lf===void 0||t.boxpoints===!1||B,Y=o.c2p(G?w.min:w.lf,!0),j=o.c2p(G?w.max:w.uf,!0),W=o.c2p(w.ln,!0),V=o.c2p(w.un,!0);i?Z0.select(this).attr("d","M"+H+","+P+"V"+R+"M"+I+","+_+"V"+k+(p?"H"+W+"L"+H+","+R+"L"+V+","+k:"")+"H"+N+"V"+_+(p?"H"+V+"L"+H+","+P+"L"+W+","+_:"")+"Z"+(d?"M"+I+","+M+"H"+Y+"M"+N+","+M+"H"+j+(v===0?"":"M"+Y+","+C+"V"+E+"M"+j+","+C+"V"+E):"")):Z0.select(this).attr("d","M"+P+","+H+"H"+R+"M"+_+","+I+"H"+k+(p?"V"+W+"L"+R+","+H+"L"+k+","+V:"")+"V"+N+"H"+_+(p?"V"+V+"L"+P+","+H+"L"+_+","+W:"")+"Z"+(d?"M"+M+","+I+"V"+Y+"M"+M+","+N+"V"+j+(v===0?"":"M"+C+","+Y+"H"+E+"M"+C+","+j+"H"+E):""))})}function s$(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*XDe,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(WDe.translatePoints,n,i)}function u$(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":""))})}f$.exports={plot:ZDe,plotBoxAndWhiskers:l$,plotPoints:s$,plotBoxMean:u$}});var N9=z((xQe,c$)=>{"use strict";var R9=Pr(),F9=qr(),z9=et();function $De(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 JDe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?z9.selectedPointStyle(n,a):z9.pointStyle(n,a,e)}c$.exports={style:$De,styleOnSelect:JDe}});var B9=z((_Qe,p$)=>{"use strict";var KDe=jr(),I9=ke(),lu=Yn(),v$=qr(),QDe=I9.fillText;function eEe(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(h$(e,r,t,a))),o.indexOf("points")!==-1&&(s=d$(e,r,t)),a==="closest"?s?[s]:l:(s&&l.push(s),l)}function h$(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,q=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+q,w)},k=_,M=0),l.side==="negative"&&(T=function(oe){var Ae=C(oe);return lu.inbox(Ae-q,Ae,w)},k=0,M=_)):(T=function(oe){var Ae=C(oe);return lu.inbox(Ae-q,Ae+q,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 B=lu.getDistanceFunction(a,y,b,R);if(lu.getClosest(n,B,e),e.index===!1)return[];var I=n[e.index],N=l.line.color,H=(l.marker||{}).color;v$.opacity(N)&&l.line.width?e.color=N:v$.opacity(H)&&l.boxpoints?e.color=H:e.color=l.fillcolor,e[f+"0"]=v.c2p(I.pos+s.bPos-M,!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 G=f+"Spike";e.spikeDistance=R(I)*x/w,e[G]=v.c2p(I.pos,!0);var Y=l.boxmean||l.sizemode==="sd"||(l.meanline||{}).visible,j=l.boxpoints||l.points,W=j&&Y?["max","uf","q3","med","mean","q1","lf","min"]:j&&!Y?["max","uf","q3","med","q1","lf","min"]:!j&&Y?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],V=d.range[1]{"use strict";m$.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((TQe,g$)=>{"use strict";g$.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";b$.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:y$(),selectPoints:O9(),moduleType:"trace",name:"box",basePlotModule:lo(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var w$=z((MQe,_$)=>{"use strict";_$.exports=x$()});var u2=z((kQe,A$)=>{"use strict";var rEe=cl(),{extendFlat:fi}=St(),tEe=Gn(),{axisHoverFormat:H9}=Fo(),aEe=Ia(),{hovertemplateAttrs:nEe,templatefallbackAttrs:T$,texttemplateAttrs:iEe}=gi(),Pi=Qi();A$.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:nEe(),hovertemplatefallback:T$(),texttemplate:iEe({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:T$({editType:"plot"}),textfont:aEe({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:fi({},tEe.showlegend,{dflt:!1}),zorder:Pi.zorder},rEe("",{cLetter:"z",autoColorDflt:!1}))});var U9=z((SQe,k$)=>{"use strict";var oEe=Br(),d3=ke(),lEe=Ar();k$.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=M$(i,a),u=M$(o,a),!sEe(l))return 0;a("transpose"),t._length=null}var v=lEe.getComponentMethod("calendars","handleTraceDefaults");return v(r,t,[i,o],n),!0};function M$(e,r){var t=r(e),a=t?r(e+"type","array"):"scaled";return a==="scaled"&&(r(e+"0"),r("d"+e)),t}function sEe(e){for(var r=!0,t=!1,a=!1,n,i=0;i0&&(t=!0);for(var o=0;o{"use strict";var S$=ke();q$.exports=function(r,t){r("texttemplate"),r("texttemplatefallback");var a=S$.extendFlat({},t.font,{color:"auto",size:"auto"});S$.coerceFont(r,"textfont",a)}});var G9=z((LQe,L$)=>{"use strict";L$.exports=function(r,t,a){var n=a("zsmooth");n===!1&&(a("xgap"),a("ygap")),a("zhoverformat")}});var E$=z((CQe,D$)=>{"use strict";var C$=ke(),uEe=U9(),fEe=f2(),cEe=A0(),vEe=G9(),hEe=Xl(),dEe=u2();D$.exports=function(r,t,a,n){function i(l,s){return C$.coerce(r,t,dEe,l,s)}var o=uEe(r,t,i,n);if(!o){t.visible=!1;return}cEe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),fEe(i,n),vEe(r,t,i,n),i("hoverongaps"),i("connectgaps",C$.isArray1D(t.z)&&t.zsmooth!==!1),hEe(r,t,n,i,{prefix:"",cLetter:"z"}),i("zorder")}});var Y9=z((DQe,P$)=>{"use strict";var $0=Br();P$.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";R$.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";F$.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var J0=(Kt(),Ne(aa)),Hf=J0.ONEAVGYEAR,z$=J0.ONEAVGMONTH,m3=J0.ONEDAY,N$=J0.ONEHOUR,I$=J0.ONEMIN,B$=J0.ONESEC,O$=jr().tickIncrement;G$.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(_B$?e>m3?e>Hf*1.1?Hf:e>z$*1.1?z$:m3:e>N$?N$:e>I$?I$:B$:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function pEe(e,r,t,a,n,i){if(a&&e>m3){var o=U$(r,n,i),l=U$(t,n,i),s=e===Hf?0:1;return o[s]!==l[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function U$(e,r,t){var a=r.c2d(e,Hf,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var $9=z((FQe,X$)=>{"use strict";var X9=Br(),In=ke(),Y$=Ar(),vo=jr(),{hasColorscale:V$}=xi(),j$=e0(),mEe=o3(),W$=Y9(),yEe=V9(),gEe=j9(),bEe=W9();function xEe(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,q,C,E;u.enabled&&M&&(_=_.replace(/ ?density$/,""),M=!1);var P=k==="max"||k==="min",R=P?null:0,B=W$.count,I=yEe[_],N=!1,H=function(Ae){return i.r2c(Ae,0,s)},G;for(In.isArrayOrTypedArray(r[l])&&k!=="count"&&(G=r[l],N=k==="avg",B=W$[k]),f=H(v.start),C=H(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],V?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),V$(r,"marker")&&j$(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),V$(r,"marker.line")&&j$(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),mEe(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,q=!1;for(f=0;ft.r2l(G)&&(j=vo.tickIncrement(j,s.size,!0,d)),B.start=t.l2r(j),H||In.nestedProperty(r,i+".start").set(B.start)}var W=s.end,V=t.r2l(R.end),J=V!==void 0;if((s.endFound||J)&&V!==t.r2l(W)){var re=J?V:In.aggNums(Math.max,null,p);B.end=t.l2r(re),J||In.nestedProperty(r,i+".start").set(B.end)}var le="autobin"+a;return r._input[le]===!1&&(r._input[i]=In.extendFlat({},r[i]||{}),delete r._input[le],delete r[le]),[B,p]}function _Ee(e,r,t,a,n){var i=e._fullLayout,o=wEe(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())}}X$.exports={calc:xEe,calcAllAutoBins:Z9}});var tJ=z((zQe,rJ)=>{"use strict";var Z$=ke(),K0=jr(),$$=Y9(),AEe=V9(),MEe=j9(),kEe=W9(),J$=$9().calcAllAutoBins;rJ.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=J$(r,t,a,"x"),y=m[0],b=m[1],T=J$(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=[],q=[],C=typeof y.size=="string",E=typeof w.size=="string",P=[],R=[],B=C?P:y,I=E?R:w,N=0,H=[],G=[],Y=t.histnorm,j=t.histfunc,W=Y.indexOf("density")!==-1,V=j==="max"||j==="min",J=V?null:0,re=$$.count,le=AEe[Y],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=$$[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(),aJ=(Kt(),Ne(aa)).BADNUM,nJ=k0();iJ.exports=function(r,t,a,n,i,o){var l=r._length,s=t.makeCalcdata(r,n),u=a.makeCalcdata(r,i);s=nJ(r,t,n,s).vals,u=nJ(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,q=b.length;for(p=0;p{"use strict";var SEe=Br(),qEe=ke(),y3=(Kt(),Ne(aa)).BADNUM;lJ.exports=function(r,t,a,n){var i,o,l,s,u,f;function c(b){if(SEe(b))return+b}if(t&&t.transpose){for(i=0,u=0;u{"use strict";var LEe=ke(),uJ=.01,CEe=[[-1,0],[1,0],[0,-1],[0,1]];function DEe(e){return .5-.25*Math.min(1,e*.5)}cJ.exports=function(r,t){var a=1,n;for(fJ(r,t),n=0;nuJ;n++)a=fJ(r,t,DEe(a));return a>uJ&&LEe.log("interp2d didn't converge quickly",a),r};function fJ(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 dJ=z((OQe,hJ)=>{"use strict";var EEe=ke().maxRowLength;hJ.exports=function(r){var t=[],a={},n=[],i=r[0],o=[],l=[0,0,0],s=EEe(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 gJ=z((HQe,yJ)=>{"use strict";var pJ=Ar(),mJ=ke().isArrayOrTypedArray;yJ.exports=function(r,t,a,n,i,o){var l=[],s=pJ.traceIs(r,"contour"),u=pJ.traceIs(r,"histogram"),f,c,v,d=mJ(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 bJ=Ar(),J9=ke(),g3=jr(),xJ=k0(),PEe=tJ(),REe=e0(),FEe=oJ(),zEe=sJ(),NEe=vJ(),IEe=dJ(),b3=gJ(),K9=(Kt(),Ne(aa)).BADNUM;wJ.exports=function(r,t){var a=g3.getFromId(r,t.xaxis||"x"),n=g3.getFromId(r,t.yaxis||"y"),i=bJ.traceIs(t,"contour"),o=bJ.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=PEe(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)?(FEe(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=xJ(t,a,"x",c).vals,v=xJ(t,n,"y",m).vals,t._x=s,t._y=v),u=t.x0,f=t.dx,d=t.y0,p=t.dy,y=zEe(w,t,a,n)}(a.rangebreaks||n.rangebreaks)&&(y=BEe(s,v,y),o||(s=_J(s),v=_J(v),t._x=s,t._y=v)),!o&&(i||t.connectgaps)&&(t._emptypoints=IEe(y),NEe(y,t._emptypoints));function x(B){l=t._input.zsmooth=t.zsmooth=!1,J9.warn('cannot use zsmooth: "fast": '+B)}function _(B){if(B.length>1){var I=(B[B.length-1]-B[0])/(B.length-1),N=Math.abs(I/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,q=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,q),t._extremes[n._id]=g3.findExtremes(n,E);var P={x:q,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===q.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||REe(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 _J(e){for(var r=[],t=e.length,a=0;aTJ,STYLE:()=>OEe});var TJ,OEe,w3=Ct(()=>{"use strict";TJ=[["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"]],OEe=TJ.map(e=>e.join(": ")+"; ").join("")});var eT=z((GQe,MJ)=>{"use strict";var AJ=(w3(),Ne(_3)),HEe=et(),Q9=ke(),Q0=null;function UEe(){if(Q0!==null)return Q0;Q0=!1;var e=Q9.isSafari()||Q9.isMacWKWebView()||Q9.isIOS();if(window.navigator.userAgent&&!e){var r=Array.from(AJ.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=HEe.tester.append("image").attr("style",AJ.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}MJ.exports=UEe});var T3=z((YQe,FJ)=>{"use strict";var kJ=Pr(),GEe=Ar(),YEe=et(),VEe=jr(),ho=ke(),SJ=Da(),jEe=u8(),qJ=qr(),WEe=vl().extractOpts,XEe=vl().makeColorScaleFuncFromTrace,ZEe=(Wl(),Ne(jl)),$Ee=(un(),Ne(sn)),rT=$Ee.LINE_SPACING,JEe=eT(),KEe=(w3(),Ne(_3)).STYLE,PJ="heatmap-label";function RJ(e){return e.selectAll("g."+PJ)}function LJ(e){RJ(e).remove()}FJ.exports=function(e,r,t,a){var n=r.xaxis,i=r.yaxis;ho.makeTraceGroups(a,t,"hm").each(function(o){var l=kJ.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=GEe.traceIs(u,"contour"),T=b?"best":u.zsmooth,w=v.length,x=ho.maxRowLength(v),_=!1,k=!1,M,q,C,E,P,R,B,I;for(R=0;M===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(j){var W=l.selectAll("image").data([]);W.exit().remove(),LJ(l);return}var V,J;N==="fast"?(V=x,J=w):(V=G,J=Y);var re=document.createElement("canvas");re.width=V,re.height=J;var le=re.getContext("2d",{willReadFrequently:!0}),ne=XEe(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,Y)});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(V*J*4)}catch(nt){De=new Array(V*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?DJ:CJ,vr=y?DJ:CJ,ue,xe,Ie;for(R=0;RGr||Gr>i._length))for(B=ie;Bqt||qt>n._length)){var gt=jEe({x:rt,y:He},u,e._fullLayout);gt.x=rt,gt.y=He;var Ut=s.z[R][B];Ut===void 0?(gt.z="",gt.zLabel=""):(gt.z=Ut,gt.zLabel=VEe.tickText(ze,Ut,"hover").text);var Bt=s.text&&s.text[R]&&s.text[R][B];(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(I=0;I{"use strict";zJ.exports={min:"zmin",max:"zmax"}});var A3=z((jQe,NJ)=>{"use strict";var QEe=Pr();NJ.exports=function(r){QEe.select(r).selectAll(".hm image").style("opacity",function(t){return t.trace.opacity})}});var k3=z((WQe,BJ)=>{"use strict";var IJ=Yn(),c2=ke(),M3=c2.isArrayOrTypedArray,ePe=jr(),rPe=vl().extractOpts;BJ.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(IJ.inbox(t-c[0],t-c[c.length-1],0)>0||IJ.inbox(a-v[0],a-v[v.length-1],0)>0)return;if(o){var q;for(T=[2*c[0]-c[1]],q=1;q{"use strict";OJ.exports={attributes:u2(),supplyDefaults:E$(),calc:x3(),plot:T3(),colorbar:tT(),style:A3(),hoverPoints:k3(),moduleType:"trace",name:"heatmap",basePlotModule:lo(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var GJ=z((ZQe,UJ)=>{"use strict";UJ.exports=HJ()});var aT=z(($Qe,YJ)=>{"use strict";YJ.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var VJ={};Dt(VJ,{eventDataKeys:()=>tPe});var tPe,jJ=Ct(()=>{"use strict";tPe=["binNumber"]});var S3=z((JQe,$J)=>{"use strict";var ci=zf(),WJ=Fo().axisHoverFormat,{hovertemplateAttrs:aPe,texttemplateAttrs:nPe,templatefallbackAttrs:XJ}=gi(),nT=Ia(),ZJ=aT(),iPe=(jJ(),Ne(VJ)),iT=St().extendFlat;$J.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:WJ("x"),yhoverformat:WJ("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:ZJ("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:ZJ("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:aPe({},{keys:iPe.eventDataKeys}),hovertemplatefallback:XJ(),texttemplate:nPe({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:XJ({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 eK=z((KQe,QJ)=>{"use strict";var JJ=Ar(),v2=ke(),KJ=qr(),oPe=Nf().handleText,lPe=g9(),sPe=S3();QJ.exports=function(r,t,a,n){function i(T,w){return v2.coerce(r,t,sPe,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");oPe(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=JJ.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[v];m&&i("histfunc"),i("histnorm"),i("autobin"+c),lPe(r,t,i,a,n),v2.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,b=JJ.getComponentMethod("errorbars","supplyDefaults");b(r,t,y||KJ.defaultLine,{axis:"y"}),b(r,t,y||KJ.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var L3=z((QQe,aK)=>{"use strict";var h2=ke(),uPe=Ca(),q3=Ar().traceIs,fPe=Fd(),cPe=Nf().validateCornerradius,rK=h2.nestedProperty,oT=wf().getAxisGroup,tK=[{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"}],vPe=["x","y"];aK.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},o=[],l,s,u,f,c,v,d;function p(N,H){return h2.coerce(l._input,l,l._module.attributes,N,H)}function m(N){return N.orientation==="v"?"x":"y"}function y(N,H){var G=uPe.getFromTrace({_fullLayout:t},N,H);return G.type}function b(N,H,G){var Y=N.uid+"__"+G;H||(H=Y);var j=y(N,G),W=N[G+"calendar"]||"",V=a[H],J=!0;V&&(j===V.axType&&W===V.calendar?(J=!1,V.traces.push(N),V.dirs.push(G)):(H=Y,j!==V.axType&&h2.warn(["Attempted to group the bins of trace",N.index,"set on a","type:"+j,"axis","with bins on","type:"+V.axType,"axis."].join(" ")),W!==V.calendar&&h2.warn(["Attempted to group the bins of trace",N.index,"set with a",W,"calendar","with bins",V.calendar?"on a "+V.calendar+" calendar":"w/o a set calendar"].join(" ")))),J&&(a[H]={traces:[N],dirs:[G],axType:j,calendar:N[G+"calendar"]||""}),N["_"+G+"bingroup"]=H}for(c=0;c{"use strict";var hPe=k9().hoverPoints,dPe=jr().hoverLabelText;nK.exports=function(r,t,a,n,i){var o=hPe(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"]=dPe(r[u+"a"],[l.ph0,l.ph1],s[u+"hoverformat"])}return o}}});var lT=z((rer,oK)=>{"use strict";oK.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 sK=z((ter,lK)=>{"use strict";lK.exports={attributes:S3(),layoutAttributes:n3(),supplyDefaults:eK(),crossTraceDefaults:L3(),supplyLayoutDefaults:b9(),calc:$9().calc,crossTraceCalc:yg().crossTraceCalc,plot:A9().plot,layerName:"barlayer",style:j0().style,styleOnSelect:j0().styleOnSelect,colorbar:Ud(),hoverPoints:iK(),selectPoints:S9(),eventData:lT(),moduleType:"trace",name:"histogram",basePlotModule:lo(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var fK=z((aer,uK)=>{"use strict";uK.exports=sK()});var D3=z((ner,hK)=>{"use strict";var Ko=S3(),cK=aT(),C3=u2(),pPe=Gn(),sT=Fo().axisHoverFormat,{hovertemplateAttrs:mPe,texttemplateAttrs:yPe,templatefallbackAttrs:vK}=gi(),gPe=cl(),d2=St().extendFlat;hK.exports=d2({x:Ko.x,y:Ko.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Ko.histnorm,histfunc:Ko.histfunc,nbinsx:Ko.nbinsx,xbins:cK("x"),nbinsy:Ko.nbinsy,ybins:cK("y"),autobinx:Ko.autobinx,autobiny:Ko.autobiny,bingroup:d2({},Ko.bingroup,{}),xbingroup:d2({},Ko.bingroup,{}),ybingroup:d2({},Ko.bingroup,{}),xgap:C3.xgap,ygap:C3.ygap,zsmooth:C3.zsmooth,xhoverformat:sT("x"),yhoverformat:sT("y"),zhoverformat:sT("z",1),hovertemplate:mPe({},{keys:["z"]}),hovertemplatefallback:vK(),texttemplate:yPe({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:vK({editType:"plot"}),textfont:C3.textfont,showlegend:d2({},pPe.showlegend,{dflt:!1})},gPe("",{cLetter:"z",autoColorDflt:!1}))});var uT=z((ier,pK)=>{"use strict";var bPe=Ar(),dK=ke();pK.exports=function(r,t,a,n){var i=a("x"),o=a("y"),l=dK.minRowLength(i),s=dK.minRowLength(o);if(!l||!s){t.visible=!1;return}t._length=Math.min(l,s);var u=bPe.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 yK=z((oer,mK)=>{"use strict";var xPe=ke(),_Pe=uT(),wPe=G9(),TPe=Xl(),APe=f2(),MPe=D3();mK.exports=function(r,t,a,n){function i(o,l){return xPe.coerce(r,t,MPe,o,l)}_Pe(r,t,i,n),t.visible!==!1&&(wPe(r,t,i,n),TPe(r,t,n,i,{prefix:"",cLetter:"z"}),i("hovertemplate"),i("hovertemplatefallback"),APe(i,n),i("xhoverformat"),i("yhoverformat"))}});var xK=z((ler,bK)=>{"use strict";var kPe=k3(),gK=jr().hoverLabelText;bK.exports=function(r,t,a,n,i){var o=kPe(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=gK(r.xa,[v[0],v[1]],c.xhoverformat),r.yLabel=gK(r.ya,[d[0],d[1]],c.yhoverformat),o}}});var wK=z((ser,_K)=>{"use strict";_K.exports={attributes:D3(),supplyDefaults:yK(),crossTraceDefaults:L3(),calc:x3(),plot:T3(),layerName:"heatmaplayer",colorbar:tT(),style:A3(),hoverPoints:xK(),eventData:lT(),moduleType:"trace",name:"histogram2d",basePlotModule:lo(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var AK=z((uer,TK)=>{"use strict";TK.exports=wK()});var E3={};Dt(E3,{COMPARISON_OPS:()=>SPe,COMPARISON_OPS2:()=>qPe,CONSTRAINT_REDUCTION:()=>DPe,INTERVAL_OPS:()=>LPe,SET_OPS:()=>CPe});var SPe,qPe,LPe,CPe,DPe,P3=Ct(()=>{"use strict";SPe=["=","!=","<",">=",">","<="],qPe=["=","<",">=",">","<="],LPe=["[]","()","[)","(]","][",")(","](",")["],CPe=["{}","}{"],DPe={"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}});var F3=z((fer,qK)=>{"use strict";var Sa=u2(),R3=Qi(),kK=Fo(),fT=kK.axisHoverFormat,EPe=kK.descriptionOnlyNumbers,PPe=cl(),RPe=Ui().dash,FPe=Ia(),ev=St().extendFlat,SK=(P3(),Ne(E3)),zPe=SK.COMPARISON_OPS2,NPe=SK.INTERVAL_OPS,MK=R3.line;qK.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:FPe({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:EPe("contour label")},operation:{valType:"enumerated",values:[].concat(zPe).concat(NPe),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:ev({},MK.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:RPe,smoothing:ev({},MK.smoothing,{}),editType:"plot"},zorder:R3.zorder},PPe("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var vT=z((cer,CK)=>{"use strict";var xn=D3(),Ll=F3(),IPe=cl(),cT=Fo().axisHoverFormat,LK=St().extendFlat;CK.exports=LK({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:LK({},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},IPe("",{cLetter:"z",editTypeOverride:"calc"}))});var hT=z((ver,DK)=>{"use strict";DK.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((her,EK)=>{"use strict";var BPe=ke();EK.exports=function(r,t,a,n){n||(n={});var i=r("contours.showlabels");if(i){var o=t.font;BPe.coerceFont(r,"contours.labelfont",o,{overrideDflt:{color:a}}),r("contours.labelformat")}n.hasHover!==!1&&r("zhoverformat")}});var pT=z((der,PK)=>{"use strict";var OPe=Xl(),HPe=dT();PK.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,OPe(r,t,n,a,{prefix:"",cLetter:"z"})),a("line.smoothing"),HPe(a,n,s,i)}});var NK=z((per,zK)=>{"use strict";var RK=ke(),UPe=uT(),GPe=hT(),YPe=pT(),VPe=f2(),FK=vT();zK.exports=function(r,t,a,n){function i(l,s){return RK.coerce(r,t,FK,l,s)}function o(l){return RK.coerce2(r,t,FK,l)}UPe(r,t,i,n),t.visible!==!1&&(GPe(r,t,i,o),YPe(r,t,i,n),i("xhoverformat"),i("yhoverformat"),i("hovertemplate"),i("hovertemplatefallback"),t.contours&&t.contours.coloring==="heatmap"&&VPe(i,n))}});var OK=z((mer,BK)=>{"use strict";var yT=jr(),mT=ke();BK.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=IK(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=IK(l,s,r.ncontours).dtick,u.size=a.size=f}}};function IK(e,r,t){var a={type:"linear",range:[e,r]};return yT.autoTicks(a,(r-e)/(t||15)),a}});var p2=z((yer,HK)=>{"use strict";HK.exports=function(r){return r.end+r.size/1e6}});var gT=z((ger,GK)=>{"use strict";var UK=vl(),jPe=x3(),WPe=OK(),XPe=p2();GK.exports=function(r,t){var a=jPe(r,t),n=a[0].z;WPe(t,n);var i=t.contours,o=UK.extractOpts(t),l;if(i.coloring==="heatmap"&&o.auto&&t.autocontour===!1){var s=i.start,u=XPe(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 UK.calc(r,t,{vals:l,cLetter:"z"}),a}});var z3={};Dt(z3,{BOTTOMSTART:()=>ZPe,CHOOSESADDLE:()=>eRe,LABELDISTANCE:()=>tRe,LABELINCREASE:()=>aRe,LABELMAX:()=>iRe,LABELMIN:()=>nRe,LABELOPTIMIZER:()=>oRe,LEFTSTART:()=>JPe,NEWDELTA:()=>QPe,RIGHTSTART:()=>KPe,SADDLEREMAINDER:()=>rRe,TOPSTART:()=>$Pe});var ZPe,$Pe,JPe,KPe,QPe,eRe,rRe,tRe,aRe,nRe,iRe,oRe,N3=Ct(()=>{"use strict";ZPe=[1,9,13,104,713],$Pe=[4,6,7,104,713],JPe=[8,12,14,208,1114],KPe=[2,3,11,208,1114],QPe=[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]],eRe={104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},rRe={1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},tRe=2,aRe=10,nRe=3,iRe=10,oRe={EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}});var VK=z((ber,YK)=>{"use strict";var I3=(N3(),Ne(z3));YK.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 ZK=z((xer,XK)=>{"use strict";var B3=ke(),rv=(N3(),Ne(z3));XK.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(WK(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,q,C,E,P,R,B,I,N;for(d=1;d=x;d--)if(_=w[d],_=x&&_+w[k]R&&B--,e.edgepaths[B]=N.concat(s,I));break}j||(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 WK(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 QK=z((_er,KK)=>{"use strict";var bT=(P3(),Ne(E3)),fRe=Br();KK.exports={"[]":$K("[]"),"][":$K("]["),">":xT(">"),"<":xT("<"),"=":xT("=")};function JK(e,r){var t=Array.isArray(r),a;function n(i){return fRe(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 $K(e){return function(r){r=JK(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=JK(e,r),{start:r,end:1/0,size:1/0}}}});var tQ=z((wer,rQ)=>{"use strict";var eQ=ke(),cRe=QK(),vRe=p2();rQ.exports=function(r,t,a){for(var n=r.type==="constraint"?cRe[r._operation](r.value):r,i=n.size,o=[],l=vRe(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){eQ.warn("Too many contours, clipping at 1000",r);break}return o}});var iQ=z((Ter,nQ)=>{"use strict";var tv=ke();nQ.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";oQ.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(),hRe=vl(),fQ=Da(),sQ=jr(),uQ=l0(),dRe=T3(),cQ=VK(),vQ=ZK(),pRe=tQ(),mRe=iQ(),hQ=lQ(),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=pRe(d,t,u),m=en.ensureSingle(s,"g","heatmapcoloring"),y=[];d.coloring==="heatmap"&&(y=[l]),dRe(r,t,y,m),cQ(p),vQ(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=mRe(p,d._operation)),yRe(s,_,d),gRe(s,k,_,d),bRe(s,p,r,u,d),_Re(s,t,r,u,_)})};function yRe(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 gRe(e,r,t,a){var n=a.coloring==="fill"||a.type==="constraint"&&a._operation!=="=",i="M"+t.join("L")+"Z";n&&hQ(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:"")+dQ(s,t);u?g2.select(this).attr("d",u).style("stroke","none"):g2.select(this).remove()})}function dQ(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 xRe(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 TRe=Pr(),wT=vl(),ARe=p2();pQ.exports=function(r){var t=r.contours,a=t.start,n=ARe(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(),mQ=et(),MRe=A3(),kRe=TT();yQ.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?kRe(i):null;n.selectAll("g.contourlevel").each(function(y){O3.select(this).selectAll("path").call(mQ.lineGroupStyle,l.width,c?d(y.level):l.color,l.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(y){mQ.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))}}),MRe(r)}});var MT=z((qer,bQ)=>{"use strict";var gQ=vl(),SRe=TT(),qRe=p2();function LRe(e,r,t){var a=r.contours,n=r.line,i=a.size||1,o=a.coloring,l=SRe(r,{isColorbar:!0});if(o==="heatmap"){var s=gQ.extractOpts(r);t._fillgradient=s.reversescale?gQ.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:qRe(a),size:i}}bQ.exports={min:"zmin",max:"zmax",calc:LRe}});var kT=z((Ler,xQ)=>{"use strict";var H3=qr(),CRe=k3();xQ.exports=function(r,t,a,n,i){i||(i={}),i.isContour=!0;var o=CRe(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 wQ=z((Cer,_Q)=>{"use strict";_Q.exports={attributes:vT(),supplyDefaults:NK(),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 AQ=z((Der,TQ)=>{"use strict";TQ.exports=wQ()});var DQ=z((Eer,CQ)=>{"use strict";var MQ=Br(),DRe=dT(),qQ=qr(),kQ=qQ.addOpacity,ERe=qQ.opacity,LQ=(P3(),Ne(E3)),SQ=ke().isArrayOrTypedArray,PRe=LQ.CONSTRAINT_REDUCTION,RRe=LQ.COMPARISON_OPS2;CQ.exports=function(r,t,a,n,i,o){var l=t.contours,s,u,f,c=a("contours.operation");if(l._operation=PRe[c],FRe(a,l),c==="="?s=l.showlines=!0:(s=a("contours.showlines"),f=a("fillcolor",kQ((r.line||{}).color||i,.5))),s){var v=f&&ERe(f)?kQ(t.fillcolor,1):i;u=a("line.color",v),a("line.width",2),a("line.dash")}a("line.smoothing"),DRe(a,n,u,o)};function FRe(e,r){var t;RRe.indexOf(r.operation)===-1?(e("contours.value",[0,1]),SQ(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])]:MQ(r.value)&&(t=parseFloat(r.value),r.value=[t,t+1])):(e("contours.value",0),MQ(r.value)||(SQ(r.value)?r.value=parseFloat(r.value[0]):r.value=0))}});var RQ=z((Per,PQ)=>{"use strict";var ST=ke(),zRe=U9(),NRe=A0(),IRe=DQ(),BRe=hT(),ORe=pT(),HRe=f2(),EQ=F3();PQ.exports=function(r,t,a,n){function i(u,f){return ST.coerce(r,t,EQ,u,f)}function o(u){return ST.coerce2(r,t,EQ,u)}var l=zRe(r,t,i,n);if(!l){t.visible=!1;return}NRe(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?IRe(r,t,i,n,a):(BRe(r,t,i,o),ORe(r,t,i,n)),t.contours&&t.contours.coloring==="heatmap"&&HRe(i,n),i("zorder")}});var zQ=z((Rer,FQ)=>{"use strict";FQ.exports={attributes:F3(),supplyDefaults:RQ(),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 IQ=z((Fer,NQ)=>{"use strict";NQ.exports=zQ()});var qT=z((zer,UQ)=>{"use strict";var{hovertemplateAttrs:URe,texttemplateAttrs:GRe,templatefallbackAttrs:BQ}=gi(),YRe=zy(),Ri=Qi(),VRe=Gn(),OQ=cl(),jRe=Ui().dash,su=St().extendFlat,po=Ri.marker,b2=Ri.line,HQ=po.line;UQ.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:GRe({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:BQ({editType:"plot"}),hovertext:su({},Ri.hovertext,{}),line:{color:b2.color,width:b2.width,dash:jRe,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:YRe(),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:HQ.width,dash:HQ.dash,editType:"calc"},OQ("marker.line")),gradient:po.gradient,editType:"calc"},OQ("marker")),textfont:Ri.textfont,textposition:Ri.textposition,selected:Ri.selected,unselected:Ri.unselected,hoverinfo:su({},VRe.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:Ri.hoveron,hovertemplate:URe(),hovertemplatefallback:BQ()}});var jQ=z((Ner,VQ)=>{"use strict";var GQ=ke(),WRe=(wd(),Ne(_d)),av=ii(),XRe=Uw(),ZRe=Gw(),YQ=Yw(),$Re=Vw(),JRe=jw(),KRe=qT();VQ.exports=function(r,t,a,n){function i(v,d){return GQ.coerce(r,t,KRe,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();WQ.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 KQ=z((Ber,JQ)=>{"use strict";var CT=Br(),QRe=Zw(),eFe=vg(),rFe=hg(),tFe=dg().calcMarkerSize,ZQ=["a","b","c"],$Q={a:["b","c"],b:["a","c"],c:["a","b"]};JQ.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 aFe=s8();QQ.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 nFe=d8();ree.exports=function(r,t,a,n){var i=nFe(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 nee=z((Uer,aee)=>{"use strict";aee.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 mee=z((Ger,pee)=>{"use strict";var cee=Pr(),DT=Ar(),yo=ke(),mo=yo.strTranslate,U3=yo._,Wn=qr(),Uf=et(),iee=Da(),x2=l0(),ET=St().extendFlat,iFe=_a(),cs=jr(),oee=Xi(),lee=Yn(),vee=yf(),see=vee.freeMode,oFe=vee.rectMode,PT=o0(),lFe=Al().prepSelect,sFe=Al().selectOnClick,uFe=Al().clearOutline,fFe=Al().clearSelectionsCache,hee=(Ha(),Ne(Oa));function dee(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}pee.exports=dee;var Qo=dee.prototype;Qo.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Qo.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(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=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 q="M"+p+","+(m+b)+"h"+y+"l-"+y/2+",-"+b+"Z";t.clipDef.select("path").attr("d",q),t.layers.plotbg.select("path").attr("d",q);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 B=mo(p+y/2,m)+"rotate(-30)"+mo(0,-M._offset);t.layers.caxis.attr("transform",B),t.layers.cgrid.attr("transform",B),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)};Qo.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"}})}};Qo.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=cFe(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 cFe(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var $a=hee.MINZOOM/2+.87,vFe="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",hFe="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",dFe="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",pFe="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",uee=!0;Qo.clearOutline=function(){fFe(this.dragOptions),uFe(this.dragOptions.gd)};Qo.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,B){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;see(I)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,I==="zoom"?(e.dragOptions.moveFn=k,e.dragOptions.clickFn=b,e.dragOptions.doneFn=M,T(P,R,B)):I==="pan"?(e.dragOptions.moveFn=C,e.dragOptions.clickFn=b,e.dragOptions.doneFn=E,q(),e.clearOutline(t)):(oFe(I)||see(I))&&lFe(P,R,B,e.dragOptions,I)}};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 B=t._fullLayout.clickmode;fee(t),P===2&&(t.emit("plotly_doubleclick",null),DT.call("_guiRelayout",t,y({a:0,b:0,c:0}))),B.indexOf("select")>-1&&P===1&&sFe(R,t,[e.xaxis],[e.yaxis],e.id,e.dragOptions),B.indexOf("event")>-1&&lee.click(t,R,e.id)}function T(P,R,B){var I=r.getBoundingClientRect();o=R-I.left,l=B-I.top,t._fullLayout._calcInverseTransform(t);var N=t._fullLayout._invTransform,H=yo.apply3DTransform(N)(o,l);o=H[0],l=H[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 B=o+P*n,I=l+R*i,N=Math.max(0,Math.min(1,w(o,l),w(B,I))),H=Math.max(0,Math.min(1,x(o,l),x(B,I))),G=Math.max(0,Math.min(1,_(o,l),_(B,I))),Y=(N/2+G)*e.w,j=(1-N/2-H)*e.w,W=(Y+j)/2,V=j-Y,J=(1-N)*e.h,re=J-V/nv;V.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(){fee(t),f!==s&&(DT.call("_guiRelayout",t,y(f)),uee&&t.data&&t._context.showTips&&(yo.notifier(U3(t,"Double-click to zoom back out"),"long",t),uee=!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 B=P/e.xaxis._m,I=R/e.yaxis._m;f={a:s.a-I,b:s.b+(B+I)/2,c:s.c-(B-I)/2};var N=[f.a,f.b,f.c].sort(yo.sorterAsc),H={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[H.a],b:N[H.b],c:N[H.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 Y=mo(-P,-R);e.clipDefRelative.select("path").attr("transform",Y),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){lee.hover(t,P,e.id),t._fullLayout._lasthover=r,t._fullLayout._hoversubplot=e.id},r.onmouseout=function(P){t._dragging||oee.unhover(t,P)},oee.init(this.dragOptions)};function fee(e){cee.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var FT=z((Yer,yee)=>{"use strict";var mFe=Hi(),yFe=H0().attributes,Qr=ji(),gFe=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=yee.exports=gFe({domain:yFe({name:"ternary"}),bgcolor:{valType:"color",dflt:mFe.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 bee=z((Ver,gee)=>{"use strict";var bFe=ke(),xFe=Pt(),_Fe=H0().defaults;gee.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 bFe.coerce(v,d,o,T,w)}for(var m=0;m{"use strict";var wFe=qr(),TFe=Pt(),_2=ke(),AFe=bee(),MFe=sm(),kFe=um(),SFe=om(),qFe=im(),LFe=y8(),_ee=FT(),xee=["aaxis","baxis","caxis"];wee.exports=function(r,t,a){AFe(r,t,a,{type:"ternary",attributes:_ee,handleDefaults:CFe,font:t.font,paper_bgcolor:t.paper_bgcolor})};function CFe(e,r,t,a){var n=t("bgcolor"),i=t("sum");a.bgColor=wFe.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 DFe(e,r,t,a){var n=_ee[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"),qFe(e,r,i,"linear"),kFe(e,r,i,"linear"),MFe(e,r,i,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),SFe(e,r,i,{outerTicks:!0});var d=i("showticklabels");d&&(_2.coerceFont(i,"tickfont",t.font,{overrideDflt:{color:s}}),i("tickangle"),i("tickformat")),LFe(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 Aee=z(go=>{"use strict";var EFe=mee(),PFe=Kp().getSubplotCalcData,RFe=ke().counterRegex,iv="ternary";go.name=iv;var FFe=go.attr="subplot";go.idRoot=iv;go.idRegex=go.attrRegex=RFe(iv);var zFe=go.attributes={};zFe[FFe]={valType:"subplotid",dflt:"ternary",editType:"calc"};go.layoutAttributes=FT();go.supplyLayoutDefaults=Tee();go.plot=function(r){for(var t=r._fullLayout,a=r.calcdata,n=t._subplots[iv],i=0;i{"use strict";Mee.exports={attributes:qT(),supplyDefaults:jQ(),colorbar:Ud(),formatLabels:XQ(),calc:KQ(),plot:eee(),style:kf().style,styleOnSelect:kf().styleOnSelect,hoverPoints:tee(),selectPoints:p8(),eventData:nee(),moduleType:"trace",name:"scatterternary",basePlotModule:Aee(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var qee=z((Zer,See)=>{"use strict";See.exports=kee()});var zT=z(($er,Cee)=>{"use strict";var Pa=c3(),ov=St().extendFlat,Lee=Fo().axisHoverFormat;Cee.exports={y:Pa.y,x:Pa.x,x0:Pa.x0,y0:Pa.y0,xhoverformat:Lee("x"),yhoverformat:Lee("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((Jer,Dee)=>{"use strict";var NT=v3(),IT=ke().extendFlat;Dee.exports={violinmode:IT({},NT.boxmode,{}),violingap:IT({},NT.boxgap,{}),violingroupgap:IT({},NT.boxgroupgap,{})}});var zee=z((Ker,Fee)=>{"use strict";var Eee=ke(),NFe=qr(),Pee=s2(),Ree=zT();Fee.exports=function(r,t,a,n){function i(_,k){return Eee.coerce(r,t,Ree,_,k)}function o(_,k){return Eee.coerce2(r,t,Ree,_,k)}if(Pee.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",NFe.addOpacity(t.line.color,.5));Pee.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 Iee=z((Qer,Nee)=>{"use strict";var IFe=ke(),BFe=BT(),OFe=q9();Nee.exports=function(r,t,a){function n(i,o){return IFe.coerce(r,t,BFe,i,o)}OFe._supply(r,t,a,n,"violin")}});var V3=z(Gf=>{"use strict";var HFe=ke(),UFe={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=UFe.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(),GFe=D9(),Bee=V3(),YFe=(Kt(),Ne(aa)).BADNUM;Oee.exports=function(r,t){var a=GFe(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 XFe=E9().setPositionOffset,Uee=["v","h"];Gee.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(),ZFe=et(),YT=P9(),$Fe=l8(),JFe=V3();Vee.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=$Fe(f,{xaxis:l,yaxis:s,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return ZFe.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(I){var N=UT.select(this),H=I.density,G=H.length,Y=T.c2l(I.pos+m,!0),j=T.l2p(Y),W;if(p.width)W=d.maxKDE/y;else{var V=o._violinScaleGroupStats[p.scalegroup];W=p.scalemode==="count"?V.maxKDE/y*(V.maxCount/I.pts.length):V.maxKDE/y}var J,re,le,ne,$,ce,te;if(x){for(ce=new Array(G),ne=0;ne{"use strict";var Wee=Pr(),lv=qr(),KFe=kf().stylePoints;Xee.exports=function(r){var t=Wee.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=Wee.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),KFe(i,n,r)})}});var Qee=z((irr,Kee)=>{"use strict";var QFe=qr(),VT=ke(),eze=jr(),$ee=B9(),Jee=V3();Kee.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=$ee.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 q=VT.extendFlat({},r),C=_.c2p(k,!0),E=Jee.getKdeValue(M,s,k),P=Jee.getPositionOnKdePath(M,s,C),R=x._offset,B=x._length;q[T+"0"]=P[0],q[T+"1"]=P[1],q[w+"0"]=q[w+"1"]=C,q[w+"Label"]=w+": "+eze.hoverLabelText(_,k,s[w+"hoverformat"])+", "+l[0].t.labels.kde+" "+E.toFixed(3);for(var I=0,N=0;N{"use strict";ere.exports={attributes:zT(),layoutAttributes:BT(),supplyDefaults:zee(),crossTraceDefaults:s2().crossTraceDefaults,supplyLayoutDefaults:Iee(),calc:Hee(),crossTraceCalc:Yee(),plot:jee(),style:Zee(),styleOnSelect:kf().styleOnSelect,hoverPoints:Qee(),selectPoints:O9(),moduleType:"trace",name:"violin",basePlotModule:lo(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var are=z((lrr,tre)=>{"use strict";tre.exports=rre()});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:()=>tze});var nre,ire,j3,ore,lre,sre,ure,rze,tze,XT=Ct(()=>{"use strict";nre=wc(St()),ire=wc(Gn()),j3=wc(gi()),ore=wc(Qi());sv();lre=["rgb","rgba","rgba256","hsl","hsla"],sre=[],ure=[];for(let e of lre){let r=jT[e];sre.push(`For the \`${e}\` colormodel, it is [${(r.zminDflt||r.min).join(", ")}].`),ure.push(`For the \`${e}\` colormodel, it is [${(r.zmaxDflt||r.max).join(", ")}].`)}rze={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:lre,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.",sre.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.",ure.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,nre.extendFlat)({},ire.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:ore.zorder},tze=rze});var vre=z((urr,cre)=>{"use strict";var aze=ke(),nze=(XT(),Ne(WT)).default,fre=(sv(),Ne(w2)),ize=ts().IMAGE_URL_PREFIX;cre.exports=function(r,t){function a(o,l){return aze.coerce(r,t,nze,o,l)}a("source"),t.source&&!t.source.match(ize)&&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=fre.colormodel[t.colormodel],a("zmin",i.zminDflt||i.min),a("zmax",i.zmaxDflt||i.max)):t._hasSource&&(t.colormodel="rgba256",i=fre.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((frr,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((crr,hre)=>{hre.exports=Ju().EventEmitter});var mre=z(W3=>{"use strict";W3.byteLength=lze;W3.toByteArray=uze;W3.fromByteArray=vze;var Dl=[],bo=[],oze=typeof Uint8Array!="undefined"?Uint8Array:Array,JT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Yf=0,dre=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 lze(e){var r=pre(e),t=r[0],a=r[1];return(t+a)*3/4-a}function sze(e,r,t){return(r+t)*3/4-t}function uze(e){var r,t=pre(e),a=t[0],n=t[1],i=new oze(sze(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 fze(e){return Dl[e>>18&63]+Dl[e>>12&63]+Dl[e>>6&63]+Dl[e&63]}function cze(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 yre=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=mre(),fv=yre(),gre=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;vv.Buffer=je;vv.SlowBuffer=gze;vv.INSPECT_MAX_BYTES=50;var X3=2147483647;vv.kMaxLength=X3;je.TYPED_ARRAY_SUPPORT=hze();!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 hze(){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 wre(e,r,t)}je.poolSize=8192;function wre(e,r,t){if(typeof e=="string")return pze(e,r);if(ArrayBuffer.isView(e))return mze(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=yze(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 wre(e,r,t)};Object.setPrototypeOf(je.prototype,Uint8Array.prototype);Object.setPrototypeOf(je,Uint8Array);function Tre(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 dze(e,r,t){return Tre(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 dze(e,r,t)};function aA(e){return Tre(e),hs(e<0?0:nA(e)|0)}je.allocUnsafe=function(e){return aA(e)};je.allocUnsafeSlow=function(e){return aA(e)};function pze(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!je.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=Are(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 gze(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 Are(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 Pre(e).length;default:if(n)return a?-1:tA(e).length;r=(""+r).toLowerCase(),n=!0}}je.byteLength=Are;function bze(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 Lze(this,r,t);case"utf8":case"utf-8":return kre(this,r,t);case"ascii":return Sze(this,r,t);case"latin1":case"binary":return qze(this,r,t);case"base64":return Mze(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Cze(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+=" ... "),""};gre&&(je.prototype[gre]=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:bre(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):bre(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function bre(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 xze(this,r,t,a);case"utf8":case"utf-8":return _ze(this,r,t,a);case"ascii":case"latin1":case"binary":return wze(this,r,t,a);case"base64":return Tze(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Aze(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 Mze(e,r,t){return r===0&&t===e.length?QT.fromByteArray(e):QT.fromByteArray(e.slice(r,t))}function kre(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 kze(a)}var xre=4096;function kze(e){let r=e.length;if(r<=xre)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 Sre(e,r,t,a,n){Ere(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 qre(e,r,t,a,n){Ere(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 Sre(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});je.prototype.writeBigUInt64BE=uu(function(r,t=0){return qre(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 Sre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});je.prototype.writeBigInt64BE=uu(function(r,t=0){return qre(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Lre(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 Cre(e,r,t,a,n){return r=+r,t=t>>>0,n||Lre(e,r,t,4,34028234663852886e22,-34028234663852886e22),fv.write(e,r,t,a,23,4),t+4}je.prototype.writeFloatLE=function(r,t,a){return Cre(this,r,t,!0,a)};je.prototype.writeFloatBE=function(r,t,a){return Cre(this,r,t,!1,a)};function Dre(e,r,t,a,n){return r=+r,t=t>>>0,n||Lre(e,r,t,8,17976931348623157e292,-17976931348623157e292),fv.write(e,r,t,a,52,8),t+8}je.prototype.writeDoubleLE=function(r,t,a){return Dre(this,r,t,!0,a)};je.prototype.writeDoubleBE=function(r,t,a){return Dre(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=_re(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=_re(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function _re(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 Dze(e,r,t){cv(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&T2(r,e.length-(t+1))}function Ere(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)}Dze(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 Eze=/[^+/0-9A-Za-z-_]/g;function Pze(e){if(e=e.split("=")[0],e=e.trim().replace(Eze,""),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 Rze(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function Pre(e){return QT.toByteArray(Pze(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 zze=(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"?Nze:e}function Nze(){throw new Error("BigInt not supported")}});var $3=z((mrr,Rre)=>{"use strict";Rre.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((yrr,Fre)=>{"use strict";var Ize=$3();Fre.exports=function(){return Ize()&&!!Symbol.toStringTag}});var J3=z((grr,zre)=>{"use strict";zre.exports=Object});var Ire=z((brr,Nre)=>{"use strict";Nre.exports=Error});var Ore=z((xrr,Bre)=>{"use strict";Bre.exports=EvalError});var Ure=z((_rr,Hre)=>{"use strict";Hre.exports=RangeError});var Yre=z((wrr,Gre)=>{"use strict";Gre.exports=ReferenceError});var lA=z((Trr,Vre)=>{"use strict";Vre.exports=SyntaxError});var dv=z((Arr,jre)=>{"use strict";jre.exports=TypeError});var Xre=z((Mrr,Wre)=>{"use strict";Wre.exports=URIError});var $re=z((krr,Zre)=>{"use strict";Zre.exports=Math.abs});var Kre=z((Srr,Jre)=>{"use strict";Jre.exports=Math.floor});var ete=z((qrr,Qre)=>{"use strict";Qre.exports=Math.max});var tte=z((Lrr,rte)=>{"use strict";rte.exports=Math.min});var nte=z((Crr,ate)=>{"use strict";ate.exports=Math.pow});var ote=z((Drr,ite)=>{"use strict";ite.exports=Math.round});var ste=z((Err,lte)=>{"use strict";lte.exports=Number.isNaN||function(r){return r!==r}});var fte=z((Prr,ute)=>{"use strict";var Bze=ste();ute.exports=function(r){return Bze(r)||r===0?r:r<0?-1:1}});var vte=z((Rrr,cte)=>{"use strict";cte.exports=Object.getOwnPropertyDescriptor});var jf=z((Frr,hte)=>{"use strict";var K3=vte();if(K3)try{K3([],"length")}catch(e){K3=null}hte.exports=K3});var M2=z((zrr,dte)=>{"use strict";var Q3=Object.defineProperty||!1;if(Q3)try{Q3({},"a",{value:1})}catch(e){Q3=!1}dte.exports=Q3});var yte=z((Nrr,mte)=>{"use strict";var pte=typeof Symbol!="undefined"&&Symbol,Oze=$3();mte.exports=function(){return typeof pte!="function"||typeof Symbol!="function"||typeof pte("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Oze()}});var sA=z((Irr,gte)=>{"use strict";gte.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var uA=z((Brr,bte)=>{"use strict";var Hze=J3();bte.exports=Hze.getPrototypeOf||null});var wte=z((Orr,_te)=>{"use strict";var Uze="Function.prototype.bind called on incompatible ",Gze=Object.prototype.toString,Yze=Math.max,Vze="[object Function]",xte=function(r,t){for(var a=[],n=0;n{"use strict";var Xze=wte();Tte.exports=Function.prototype.bind||Xze});var eb=z((Urr,Ate)=>{"use strict";Ate.exports=Function.prototype.call});var rb=z((Grr,Mte)=>{"use strict";Mte.exports=Function.prototype.apply});var Ste=z((Yrr,kte)=>{"use strict";kte.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var fA=z((Vrr,qte)=>{"use strict";var Zze=pv(),$ze=rb(),Jze=eb(),Kze=Ste();qte.exports=Kze||Zze.call(Jze,$ze)});var tb=z((jrr,Lte)=>{"use strict";var Qze=pv(),eNe=dv(),rNe=eb(),tNe=fA();Lte.exports=function(r){if(r.length<1||typeof r[0]!="function")throw new eNe("a function is required");return tNe(Qze,rNe,r)}});var Fte=z((Wrr,Rte)=>{"use strict";var aNe=tb(),Cte=jf(),Ete;try{Ete=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var cA=!!Ete&&Cte&&Cte(Object.prototype,"__proto__"),Pte=Object,Dte=Pte.getPrototypeOf;Rte.exports=cA&&typeof cA.get=="function"?aNe([cA.get]):typeof Dte=="function"?function(r){return Dte(r==null?r:Pte(r))}:!1});var ab=z((Xrr,Bte)=>{"use strict";var zte=sA(),Nte=uA(),Ite=Fte();Bte.exports=zte?function(r){return zte(r)}:Nte?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return Nte(r)}:Ite?function(r){return Ite(r)}:null});var vA=z((Zrr,Ote)=>{"use strict";var nNe=Function.prototype.call,iNe=Object.prototype.hasOwnProperty,oNe=pv();Ote.exports=oNe.call(nNe,iNe)});var ob=z(($rr,jte)=>{"use strict";var ht,lNe=J3(),sNe=Ire(),uNe=Ore(),fNe=Ure(),cNe=Yre(),bv=lA(),gv=dv(),vNe=Xre(),hNe=$re(),dNe=Kre(),pNe=ete(),mNe=tte(),yNe=nte(),gNe=ote(),bNe=fte(),Yte=Function,hA=function(e){try{return Yte('"use strict"; return ('+e+").constructor;")()}catch(r){}},k2=jf(),xNe=M2(),dA=function(){throw new gv},_Ne=k2?(function(){try{return arguments.callee,dA}catch(e){try{return k2(arguments,"callee").get}catch(r){return dA}}})():dA,mv=yte()(),dn=ab(),wNe=uA(),TNe=sA(),Vte=rb(),S2=eb(),yv={},ANe=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%":sNe,"%eval%":eval,"%EvalError%":uNe,"%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%":Yte,"%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%":lNe,"%Object.getOwnPropertyDescriptor%":k2,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ht:Promise,"%Proxy%":typeof Proxy=="undefined"?ht:Proxy,"%RangeError%":fNe,"%ReferenceError%":cNe,"%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%":_Ne,"%TypedArray%":ANe,"%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%":vNe,"%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%":Vte,"%Object.defineProperty%":xNe,"%Object.getPrototypeOf%":wNe,"%Math.abs%":hNe,"%Math.floor%":dNe,"%Math.max%":pNe,"%Math.min%":mNe,"%Math.pow%":yNe,"%Math.round%":gNe,"%Math.sign%":bNe,"%Reflect.getPrototypeOf%":TNe};if(dn)try{null.error}catch(e){Hte=dn(dn(e)),Wf["%Error.prototype%"]=Hte}var Hte,MNe=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},Ute={__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(),kNe=q2.call(S2,Array.prototype.concat),SNe=q2.call(Vte,Array.prototype.splice),Gte=q2.call(S2,String.prototype.replace),ib=q2.call(S2,String.prototype.slice),qNe=q2.call(S2,RegExp.prototype.exec),LNe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,CNe=/\\(\\)?/g,DNe=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 Gte(r,LNe,function(i,o,l,s){n[n.length]=l?Gte(s,CNe,"$1"):o||i}),n},ENe=function(r,t){var a=r,n;if(nb(Ute,a)&&(n=Ute[a],a="%"+n[0]+"%"),nb(Wf,a)){var i=Wf[a];if(i===yv&&(i=MNe(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!")};jte.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(qNe(/^%?[^%]*%?$/,r)===null)throw new bv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=DNe(r),n=a.length>0?a[0]:"",i=ENe("%"+n+"%",t),o=i.name,l=i.value,s=!1,u=i.alias;u&&(n=u[0],SNe(a,kNe([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((Jrr,Zte)=>{"use strict";var Wte=ob(),Xte=tb(),PNe=Xte([Wte("%String.prototype.indexOf%")]);Zte.exports=function(r,t){var a=Wte(r,!!t);return typeof a=="function"&&PNe(r,".prototype.")>-1?Xte([a]):a}});var Kte=z((Krr,Jte)=>{"use strict";var RNe=A2()(),FNe=Xf(),pA=FNe("Object.prototype.toString"),lb=function(r){return RNe&&r&&typeof r=="object"&&Symbol.toStringTag in r?!1:pA(r)==="[object Arguments]"},$te=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]"},zNe=(function(){return lb(arguments)})();lb.isLegacyArguments=$te;Jte.exports=zNe?lb:$te});var nae=z((Qrr,aae)=>{"use strict";var Qte=Xf(),NNe=A2()(),INe=vA(),BNe=jf(),gA;NNe?(eae=Qte("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=BNe(r,"lastIndex"),a=t&&INe(t,"value");if(!a)return!1;try{eae(r,yA)}catch(n){return n===mA}}):(rae=Qte("Object.prototype.toString"),tae="[object RegExp]",gA=function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:rae(r)===tae});var eae,mA,sb,yA,rae,tae;aae.exports=gA});var oae=z((etr,iae)=>{"use strict";var ONe=Xf(),HNe=nae(),UNe=ONe("RegExp.prototype.exec"),GNe=dv();iae.exports=function(r){if(!HNe(r))throw new GNe("`regex` must be a RegExp");return function(a){return UNe(r,a)!==null}}});var sae=z((rtr,lae)=>{"use strict";var YNe=function*(){}.constructor;lae.exports=()=>YNe});var vae=z((ttr,cae)=>{"use strict";var fae=Xf(),VNe=oae(),jNe=VNe(/^\s*(?:function)?\*/),WNe=A2()(),uae=ab(),XNe=fae("Object.prototype.toString"),ZNe=fae("Function.prototype.toString"),$Ne=sae();cae.exports=function(r){if(typeof r!="function")return!1;if(jNe(ZNe(r)))return!0;if(!WNe){var t=XNe(r);return t==="[object GeneratorFunction]"}if(!uae)return!1;var a=$Ne();return a&&uae(r)===a.prototype}});var mae=z((atr,pae)=>{"use strict";var dae=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 JNe=/^\s*class\b/,_A=function(r){try{var t=dae.call(r);return JNe.test(t)}catch(a){return!1}},bA=function(r){try{return _A(r)?!1:(dae.call(r),!0)}catch(t){return!1}},fb=Object.prototype.toString,KNe="[object Object]",QNe="[object Function]",eIe="[object GeneratorFunction]",rIe="[object HTMLAllCollection]",tIe="[object HTML document.all class]",aIe="[object HTMLCollection]",nIe=typeof Symbol=="function"&&!!Symbol.toStringTag,iIe=!(0 in[,]),wA=function(){return!1};typeof document=="object"&&(hae=document.all,fb.call(hae)===fb.call(document.all)&&(wA=function(r){if((iIe||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=fb.call(r);return(t===rIe||t===tIe||t===aIe||t===KNe)&&r("")==null}catch(a){}return!1}));var hae;pae.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(nIe)return bA(r);if(_A(r))return!1;var t=fb.call(r);return t!==QNe&&t!==eIe&&!/^\[object HTML/.test(t)?!1:bA(r)}});var bae=z((ntr,gae)=>{"use strict";var oIe=mae(),lIe=Object.prototype.toString,yae=Object.prototype.hasOwnProperty,sIe=function(r,t,a){for(var n=0,i=r.length;n=3&&(n=a),cIe(r)?sIe(r,t,n):typeof r=="string"?uIe(r,t,n):fIe(r,t,n)}});var _ae=z((itr,xae)=>{"use strict";xae.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var Tae=z((otr,wae)=>{"use strict";var TA=_ae(),vIe=typeof globalThis=="undefined"?window:globalThis;wae.exports=function(){for(var r=[],t=0;t{"use strict";var Aae=M2(),hIe=lA(),_v=dv(),Mae=jf();kae.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=!!Mae&&Mae(r,t);if(Aae)Aae(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 hIe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var kA=z((str,qae)=>{"use strict";var MA=M2(),Sae=function(){return!!MA};Sae.hasArrayLengthDefineBug=function(){if(!MA)return null;try{return MA([],"length",{value:1}).length!==1}catch(r){return!0}};qae.exports=Sae});var Pae=z((utr,Eae)=>{"use strict";var dIe=ob(),Lae=AA(),pIe=kA()(),Cae=jf(),Dae=dv(),mIe=dIe("%Math.floor%");Eae.exports=function(r,t){if(typeof r!="function")throw new Dae("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||mIe(t)!==t)throw new Dae("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,i=!0;if("length"in r&&Cae){var o=Cae(r,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(i=!1)}return(n||i||!a)&&(pIe?Lae(r,"length",t,!0,!0):Lae(r,"length",t)),r}});var Fae=z((ftr,Rae)=>{"use strict";var yIe=pv(),gIe=rb(),bIe=fA();Rae.exports=function(){return bIe(yIe,gIe,arguments)}});var L2=z((ctr,cb)=>{"use strict";var xIe=Pae(),zae=M2(),_Ie=tb(),Nae=Fae();cb.exports=function(r){var t=_Ie(arguments),a=1+r.length-(arguments.length-1);return xIe(t,a>0?a:0,!0)};zae?zae(cb.exports,"apply",{value:Nae}):cb.exports.apply=Nae});var CA=z((vtr,Hae)=>{"use strict";var db=bae(),wIe=Tae(),Iae=L2(),qA=Xf(),hb=jf(),vb=ab(),TIe=qA("Object.prototype.toString"),Oae=A2()(),Bae=typeof globalThis=="undefined"?window:globalThis,SA=wIe(),LA=qA("String.prototype.slice"),AIe=qA("Array.prototype.indexOf",!0)||function(r,t){for(var a=0;a-1}function qIe(e){if(!e||typeof e!="object")return!1;if(!Oae){var r=LA(TIe(e),8,-1);return SIe(r)?r:r!=="Object"?!1:kIe(e)}return hb?MIe(e):null}Hae.exports=qIe});var Gae=z((htr,Uae)=>{"use strict";var LIe=CA();Uae.exports=function(r){return!!LIe(r)}});var PA=z(dt=>{"use strict";var CIe=Kte(),DIe=vae(),el=CA(),Yae=Gae();function wv(e){return e.call.bind(e)}var Vae=typeof BigInt!="undefined",jae=typeof Symbol!="undefined",xo=wv(Object.prototype.toString),EIe=wv(Number.prototype.valueOf),PIe=wv(String.prototype.valueOf),RIe=wv(Boolean.prototype.valueOf);Vae&&(Wae=wv(BigInt.prototype.valueOf));var Wae;jae&&(Xae=wv(Symbol.prototype.valueOf));var Xae;function D2(e,r){if(typeof e!="object")return!1;try{return r(e),!0}catch(t){return!1}}dt.isArgumentsObject=CIe;dt.isGeneratorFunction=DIe;dt.isTypedArray=Yae;function FIe(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}dt.isPromise=FIe;function zIe(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):Yae(e)||$ae(e)}dt.isArrayBufferView=zIe;function NIe(e){return el(e)==="Uint8Array"}dt.isUint8Array=NIe;function IIe(e){return el(e)==="Uint8ClampedArray"}dt.isUint8ClampedArray=IIe;function BIe(e){return el(e)==="Uint16Array"}dt.isUint16Array=BIe;function OIe(e){return el(e)==="Uint32Array"}dt.isUint32Array=OIe;function HIe(e){return el(e)==="Int8Array"}dt.isInt8Array=HIe;function UIe(e){return el(e)==="Int16Array"}dt.isInt16Array=UIe;function GIe(e){return el(e)==="Int32Array"}dt.isInt32Array=GIe;function YIe(e){return el(e)==="Float32Array"}dt.isFloat32Array=YIe;function VIe(e){return el(e)==="Float64Array"}dt.isFloat64Array=VIe;function jIe(e){return el(e)==="BigInt64Array"}dt.isBigInt64Array=jIe;function WIe(e){return el(e)==="BigUint64Array"}dt.isBigUint64Array=WIe;function mb(e){return xo(e)==="[object Map]"}mb.working=typeof Map!="undefined"&&mb(new Map);function XIe(e){return typeof Map=="undefined"?!1:mb.working?mb(e):e instanceof Map}dt.isMap=XIe;function yb(e){return xo(e)==="[object Set]"}yb.working=typeof Set!="undefined"&&yb(new Set);function ZIe(e){return typeof Set=="undefined"?!1:yb.working?yb(e):e instanceof Set}dt.isSet=ZIe;function gb(e){return xo(e)==="[object WeakMap]"}gb.working=typeof WeakMap!="undefined"&&gb(new WeakMap);function $Ie(e){return typeof WeakMap=="undefined"?!1:gb.working?gb(e):e instanceof WeakMap}dt.isWeakMap=$Ie;function EA(e){return xo(e)==="[object WeakSet]"}EA.working=typeof WeakSet!="undefined"&&EA(new WeakSet);function JIe(e){return EA(e)}dt.isWeakSet=JIe;function bb(e){return xo(e)==="[object ArrayBuffer]"}bb.working=typeof ArrayBuffer!="undefined"&&bb(new ArrayBuffer);function Zae(e){return typeof ArrayBuffer=="undefined"?!1:bb.working?bb(e):e instanceof ArrayBuffer}dt.isArrayBuffer=Zae;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 $ae(e){return typeof DataView=="undefined"?!1:xb.working?xb(e):e instanceof DataView}dt.isDataView=$ae;var DA=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function C2(e){return xo(e)==="[object SharedArrayBuffer]"}function Jae(e){return typeof DA=="undefined"?!1:(typeof C2.working=="undefined"&&(C2.working=C2(new DA)),C2.working?C2(e):e instanceof DA)}dt.isSharedArrayBuffer=Jae;function KIe(e){return xo(e)==="[object AsyncFunction]"}dt.isAsyncFunction=KIe;function QIe(e){return xo(e)==="[object Map Iterator]"}dt.isMapIterator=QIe;function eBe(e){return xo(e)==="[object Set Iterator]"}dt.isSetIterator=eBe;function rBe(e){return xo(e)==="[object Generator]"}dt.isGeneratorObject=rBe;function tBe(e){return xo(e)==="[object WebAssembly.Module]"}dt.isWebAssemblyCompiledModule=tBe;function Kae(e){return D2(e,EIe)}dt.isNumberObject=Kae;function Qae(e){return D2(e,PIe)}dt.isStringObject=Qae;function ene(e){return D2(e,RIe)}dt.isBooleanObject=ene;function rne(e){return Vae&&D2(e,Wae)}dt.isBigIntObject=rne;function tne(e){return jae&&D2(e,Xae)}dt.isSymbolObject=tne;function aBe(e){return Kae(e)||Qae(e)||ene(e)||rne(e)||tne(e)}dt.isBoxedPrimitive=aBe;function nBe(e){return typeof Uint8Array!="undefined"&&(Zae(e)||Jae(e))}dt.isAnyArrayBuffer=nBe;["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((ptr,ane)=>{ane.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 nne=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=oBe),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 oBe(e,r){var t=fu.styles[r];return t?"\x1B["+fu.colors[t][0]+"m"+e+"\x1B["+fu.colors[t][1]+"m":e}function lBe(e,r){return e}function sBe(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=uBe(e,r);if(n)return n;var i=Object.keys(r),o=sBe(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(one(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=fBe(e,r,t,o,i):v=i.map(function(d){return NA(e,r,t,o,d,u)}),e.seen.pop(),cBe(v,s,f)}function uBe(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(lne(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 fBe(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")),$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(` +`))):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 cBe(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]}pt.types=PA();function ine(e){return Array.isArray(e)}pt.isArray=ine;function IA(e){return typeof e=="boolean"}pt.isBoolean=IA;function kb(e){return e===null}pt.isNull=kb;function sBe(e){return e==null}pt.isNullOrUndefined=sBe;function one(e){return typeof e=="number"}pt.isNumber=one;function Sb(e){return typeof e=="string"}pt.isString=Sb;function uBe(e){return typeof e=="symbol"}pt.isSymbol=uBe;function $f(e){return e===void 0}pt.isUndefined=$f;function E2(e){return Tv(e)&&BA(e)==="[object RegExp]"}pt.isRegExp=E2;pt.types.isRegExp=E2;function Tv(e){return typeof e=="object"&&e!==null}pt.isObject=Tv;function Mb(e){return Tv(e)&&BA(e)==="[object Date]"}pt.isDate=Mb;pt.types.isDate=Mb;function P2(e){return Tv(e)&&(BA(e)==="[object Error]"||e instanceof Error)}pt.isError=P2;pt.types.isNativeError=P2;function Tb(e){return typeof e=="function"}pt.isFunction=Tb;function fBe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}pt.isPrimitive=fBe;pt.isBuffer=RA();function BA(e){return Object.prototype.toString.call(e)}function zA(e){return e<10?"0"+e.toString(10):e.toString(10)}var cBe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function vBe(){var e=new Date,r=[zA(e.getHours()),zA(e.getMinutes()),zA(e.getSeconds())].join(":");return[e.getDate(),cBe[e.getMonth()],r].join(" ")}pt.log=function(){console.log("%s - %s",vBe(),pt.format.apply(pt,arguments))};pt.inherits=vs();pt._extend=function(e,r){if(!r||!Tv(r))return e;for(var t=Object.keys(r),a=t.length;a--;)e[t[a]]=r[t[a]];return e};function lne(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var Zf=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;pt.promisify=function(r){if(typeof r!="function")throw new TypeError('The "original" argument must be of type Function');if(Zf&&r[Zf]){var t=r[Zf];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Zf,{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 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{"use strict";function une(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 fne(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;)kBe(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:MBe,value:function(t,a){return HA(this,fne(fne({},a),{},{depth:0,customInspect:!1}))}}]),e})()});var GA=z((gtr,mne)=>{"use strict";function SBe(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(pne,t,i)):process.nextTick(pne,t,i):r?(process.nextTick(Lb,t),r(i)):process.nextTick(Lb,t)}),this)}function pne(e,r){UA(e,r),Lb(e)}function Lb(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function qBe(){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 LBe(e,r){var t=e._readableState,a=e._writableState;t&&t.autoDestroy||a&&a.autoDestroy?e.destroy(r):e.emit("error",r)}mne.exports={destroy:SBe,undestroy:qBe,errorOrDestroy:LBe}});var Jf=z((btr,bne)=>{"use strict";function CBe(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r}var gne={};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){CBe(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,gne[e]=n}function yne(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 DBe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function EBe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function PBe(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"&&DBe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(EBe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(yne(r,"type"));else{var i=PBe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(yne(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");bne.exports.codes=gne});var YA=z((xtr,xne)=>{"use strict";var RBe=Jf().codes.ERR_INVALID_OPT_VALUE;function FBe(e,r,t){return e.highWaterMark!=null?e.highWaterMark:r?e[t]:null}function zBe(e,r,t,a){var n=FBe(r,a,t);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var i=a?t:"highWaterMark";throw new RBe(i,n)}return Math.floor(n)}return e.objectMode?16:16*1024}xne.exports={getHighWaterMark:zBe}});var wne=z((_tr,_ne)=>{_ne.exports=NBe;function NBe(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((wtr,qne)=>{"use strict";qne.exports=Ra;function Ane(e){var r=this;this.next=null,this.entry=null,this.finish=function(){fOe(r,e)}}var Av;Ra.WritableState=F2;var IBe={deprecate:wne()},Mne=$T(),Db=hv().Buffer,BBe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function OBe(e){return Db.from(e)}function HBe(e){return Db.isBuffer(e)||e instanceof BBe}var WA=GA(),UBe=YA(),GBe=UBe.getHighWaterMark,cu=Jf().codes,YBe=cu.ERR_INVALID_ARG_TYPE,VBe=cu.ERR_METHOD_NOT_IMPLEMENTED,jBe=cu.ERR_MULTIPLE_CALLBACK,WBe=cu.ERR_STREAM_CANNOT_PIPE,XBe=cu.ERR_STREAM_DESTROYED,ZBe=cu.ERR_STREAM_NULL_VALUES,$Be=cu.ERR_STREAM_WRITE_AFTER_END,JBe=cu.ERR_UNKNOWN_ENCODING,Mv=WA.errorOrDestroy;vs()(Ra,Mne);function KBe(){}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=GBe(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){iOe(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 Ane(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:IBe.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)),Mne.call(this)}Ra.prototype.pipe=function(){Mv(this,new WBe)};function QBe(e,r){var t=new $Be;Mv(e,t),process.nextTick(r,t)}function eOe(e,r,t,a){var n;return t===null?n=new ZBe:typeof t!="string"&&!r.objectMode&&(n=new YBe("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&&HBe(e);return i&&!Db.isBuffer(e)&&(e=OBe(e)),typeof r=="function"&&(t=r,r=null),i?r="buffer":r||(r=a.defaultEncoding),typeof t!="function"&&(t=KBe),a.ending?QBe(this,t):(i||eOe(this,a,e,t))&&(a.pendingcb++,n=tOe(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&&kne(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 JBe(r);return this._writableState.defaultEncoding=r,this};Object.defineProperty(Ra.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function rOe(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 tOe(e,r,t,a,n,i){if(!t){var o=rOe(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 cOe=Object.keys||function(e){var r=[];for(var t in e)r.push(t);return r};Cne.exports=Pl;var Lne=JA(),$A=XA();vs()(Pl,Lne);for(ZA=cOe($A.prototype),Eb=0;Eb{var Rb=hv(),Rl=Rb.Buffer;function Dne(e,r){for(var t in e)r[t]=e[t]}Rl.from&&Rl.alloc&&Rl.allocUnsafe&&Rl.allocUnsafeSlow?Ene.exports=Rb:(Dne(Rb,KA),KA.Buffer=Qf);function Qf(e,r,t){return Rl(e,r,t)}Qf.prototype=Object.create(Rl.prototype);Dne(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(Fne=>{"use strict";var eM=Pne().Buffer,Rne=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 dOe(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 pOe(e){var r=dOe(e);if(typeof r!="string"&&(eM.isEncoding===Rne||!Rne(e)))throw new Error("Unknown encoding: "+e);return r||e}Fne.StringDecoder=z2;function z2(e){this.encoding=pOe(e);var r;switch(this.encoding){case"utf16le":this.text=_Oe,this.end=wOe,r=4;break;case"utf8":this.fillLast=gOe,r=4;break;case"base64":this.text=TOe,this.end=AOe,r=3;break;default:this.write=MOe,this.end=kOe;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 mOe(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 yOe(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 gOe(e){var r=this.lastTotal-this.lastNeed,t=yOe(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 bOe(e,r){var t=mOe(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 xOe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"\uFFFD":r}function _Oe(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 wOe(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 TOe(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 AOe(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function MOe(e){return e.toString(this.encoding)}function kOe(e){return e&&e.length?this.write(e):""}});var Fb=z((Mtr,Ine)=>{"use strict";var zne=Jf().codes.ERR_STREAM_PREMATURE_CLOSE;function SOe(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=COe(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function COe(e){var r=DOe(e,"string");return typeof r=="symbol"?r:String(r)}function DOe(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 EOe=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 POe(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 ROe(e){process.nextTick(POe,e)}function FOe(e,r){return function(t,a){e.then(function(){if(r[Nb]){t(du(void 0,!0));return}r[tM](t,a)},a)}}var zOe=Object.getPrototypeOf(function(){}),NOe=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(FOe(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),zOe),IOe=function(r){var t,a=Object.create(NOe,(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,EOe(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",ROe.bind(null,a)),a};Bne.exports=IOe});var Une=z((Str,Hne)=>{Hne.exports=function(){throw new Error("Readable.from is not available in the browser")}});var JA=z((Ltr,Kne)=>{"use strict";Kne.exports=Mt;var kv;Mt.ReadableState=jne;var qtr=Ju().EventEmitter,Vne=function(r,t){return r.listeners(t).length},B2=$T(),Ib=hv().Buffer,BOe=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function OOe(e){return Ib.from(e)}function HOe(e){return Ib.isBuffer(e)||e instanceof BOe}var aM=OA(),ut;aM&&aM.debuglog?ut=aM.debuglog("stream"):ut=function(){};var UOe=dne(),fM=GA(),GOe=YA(),YOe=GOe.getHighWaterMark,Bb=Jf().codes,VOe=Bb.ERR_INVALID_ARG_TYPE,jOe=Bb.ERR_STREAM_PUSH_AFTER_EOF,WOe=Bb.ERR_METHOD_NOT_IMPLEMENTED,XOe=Bb.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Sv,nM,iM;vs()(Mt,B2);var I2=fM.errorOrDestroy,oM=["error","close","destroy","pause","resume"];function ZOe(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 jne(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=YOe(this,e,"readableHighWaterMark",t),this.buffer=new UOe,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 jne(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),Wne(this,e,r,!1,a)};Mt.prototype.unshift=function(e){return Wne(this,e,null,!0,!1)};function Wne(e,r,t,a,n){ut("readableAddChunk",r);var i=e._readableState;if(r===null)i.reading=!1,KOe(e,i);else{var o;if(n||(o=$Oe(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=OOe(r)),a)i.endEmitted?I2(e,new XOe):lM(e,i,r,!0);else if(i.ended)I2(e,new jOe);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=Gne?e=Gne:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Yne(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=JOe(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=Yne(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=$ne(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 KOe(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,Xne(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(Xne,e))}function Xne(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(QOe,e,r))}function QOe(e,r){for(;!r.reading&&!r.ended&&(r.length1&&Jne(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),Vne(e,"error")===0&&I2(e,y)}ZOe(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 eHe(e){return function(){var t=e._readableState;ut("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Vne(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(rHe,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(Zne,this),t};Mt.prototype.removeAllListeners=function(e){var r=B2.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Zne,this),r};function Zne(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 rHe(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,tHe(this,e)),e.paused=!1,this};function tHe(e,r){r.resumeScheduled||(r.resumeScheduled=!0,process.nextTick(aHe,e,r))}function aHe(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(nHe,r,e))}function nHe(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=Une()),iM(Mt,e,r)});function Jne(e,r){for(var t=0,a=e.length;t{"use strict";eie.exports=ds;var Hb=Jf().codes,iHe=Hb.ERR_METHOD_NOT_IMPLEMENTED,oHe=Hb.ERR_MULTIPLE_CALLBACK,lHe=Hb.ERR_TRANSFORM_ALREADY_TRANSFORMING,sHe=Hb.ERR_TRANSFORM_WITH_LENGTH_0,Ub=Kf();vs()(ds,Ub);function uHe(e,r){var t=this._transformState;t.transforming=!1;var a=t.writecb;if(a===null)return this.emit("error",new oHe);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";tie.exports=O2;var rie=vM();vs()(O2,rie);function O2(e){if(!(this instanceof O2))return new O2(e);rie.call(this,e)}O2.prototype._transform=function(e,r,t){t(null,e)}});var sie=z((Etr,lie)=>{"use strict";var hM;function cHe(e){var r=!1;return function(){r||(r=!0,e.apply(void 0,arguments))}}var oie=Jf().codes,vHe=oie.ERR_MISSING_ARGS,hHe=oie.ERR_STREAM_DESTROYED;function nie(e){if(e)throw e}function dHe(e){return e.setHeader&&typeof e.abort=="function"}function pHe(e,r,t,a){a=cHe(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,dHe(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(o||new hHe("pipe"))}}}function iie(e){e()}function mHe(e,r){return e.pipe(r)}function yHe(e){return!e.length||typeof e[e.length-1]!="function"?nie:e.pop()}function gHe(){for(var e=arguments.length,r=new Array(e),t=0;t0;return pHe(o,s,u,function(f){n||(n=f),f&&i.forEach(iie),!s&&(i.forEach(iie),a(n))})});return r.reduce(mHe)}lie.exports=gHe});var fie=z((Ptr,uie)=>{uie.exports=wo;var dM=Ju().EventEmitter,bHe=vs();bHe(wo,dM);wo.Readable=JA();wo.Writable=XA();wo.Duplex=Kf();wo.Transform=vM();wo.PassThrough=aie();wo.finished=Fb();wo.pipeline=sie();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 cie=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=_He),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 _He(e,r){var t=pu.styles[r];return t?"\x1B["+pu.colors[t][0]+"m"+e+"\x1B["+pu.colors[t][1]+"m":e}function wHe(e,r){return e}function THe(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=AHe(e,r);if(n)return n;var i=Object.keys(r),o=THe(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(hie(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=MHe(e,r,t,o,i):v=i.map(function(d){return yM(e,r,t,o,d,u)}),e.seen.pop(),kHe(v,s,f)}function AHe(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(die(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 MHe(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")),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(` +`))):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 kHe(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]}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(` + `)+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}mt.types=PA();function hie(e){return Array.isArray(e)}mt.isArray=hie;function gM(e){return typeof e=="boolean"}mt.isBoolean=gM;function Xb(e){return e===null}mt.isNull=Xb;function SHe(e){return e==null}mt.isNullOrUndefined=SHe;function die(e){return typeof e=="number"}mt.isNumber=die;function Zb(e){return typeof e=="string"}mt.isString=Zb;function qHe(e){return typeof e=="symbol"}mt.isSymbol=qHe;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 LHe(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}mt.isPrimitive=LHe;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 CHe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function DHe(){var e=new Date,r=[mM(e.getHours()),mM(e.getMinutes()),mM(e.getSeconds())].join(":");return[e.getDate(),CHe[e.getMonth()],r].join(" ")}mt.log=function(){console.log("%s - %s",DHe(),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 pie(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 mie(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 GHe(e,r,t){return e.substr(!t||t<0?0:+t,r.length)===r}function YHe(e,r,t){return(t===void 0||t>e.length)&&(t=e.length),e.substring(t-r.length,t)===r}function VHe(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"&&GHe(r,"not ")?(a="must not be",r=r.replace(/^not /,"")):a="must be";var n;if(YHe(e," argument"))n="The ".concat(e," ").concat(a," ").concat(yie(r,"type"));else{var i=VHe(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(i," ").concat(a," ").concat(yie(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);bie.exports.codes=gie});var Lie=z((ztr,qie)=>{"use strict";function xie(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 _ie(e){for(var r=1;re.length)&&(t=e.length),e.substring(t-r.length,t)===r}function tUe(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 rl="",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:"},aUe=10;function Aie(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 nUe(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],` +`),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<=aUe){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(KHe(" ",c),"^"),c=0)}}}for(var m=u[u.length-1],y=f[f.length-1];m===y&&(c++<2?o=` + `.concat(tUe(" ",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,` +`);if(T.length>30)for(T[26]="".concat(rl,"...").concat(_n);T.length>27;)T.pop();return"".concat(ic.notIdentical,` `).concat(T.join(` `),` `)}c>3&&(o=` -`.concat(el,"...").concat(_n).concat(o),l=!0),a!==""&&(o=` +`.concat(rl,"...").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(Y2,"+ actual").concat(_n," ").concat(V2,"- expected").concat(_n),_=" ".concat(rl,"...").concat(_n," Lines skipped");for(c=0;c1&&c>2&&(k>4?(n+=` +`.concat(rl,"...").concat(_n),l=!0):k>3&&(n+=` `.concat(f[c-2]),w++),n+=` `.concat(f[c-1]),w++),i=c,a+=` `.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(rl,"...").concat(_n),l=!0):k>3&&(n+=` `.concat(u[c-2]),w++),n+=` `.concat(u[c-1]),w++),i=c,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(Y2,"+").concat(_n," ").concat(u[c]),w++;else{var M=f[c],q=u[c],C=q!==M&&(!Tie(q,",")||q.slice(0,-1)!==M);C&&Tie(M,",")&&M.slice(0,-1)===q&&(C=!1,q+=","),C?(k>1&&c>2&&(k>4?(n+=` +`.concat(rl,"...").concat(_n),l=!0):k>3&&(n+=` `.concat(u[c-2]),w++),n+=` `.concat(u[c-1]),w++),i=c,n+=` -`.concat(Y2,"+").concat(_n," ").concat(S),a+=` +`.concat(Y2,"+").concat(_n," ").concat(q),a+=` `.concat(V2,"-").concat(_n," ").concat(M),w+=2):(n+=a,a="",(k===1||c===0)&&(n+=` - `.concat(S),w++))}if(w>20&&c20&&c30)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(rl,"...").concat(_n).concat(a,` +`)+"".concat(rl,"...").concat(_n)}return"".concat(x).concat(l?_:"",` +`).concat(n).concat(a).concat(o).concat(v)}var iUe=(function(e,r){$He(a,e);var t=JHe(a);function a(n){var i;if(WHe(this,a),hi(n)!=="object"||n===null)throw new rUe("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?(rl="\x1B[34m",Y2="\x1B[32m",_n="\x1B[39m",V2="\x1B[31m"):(rl="",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=Aie(u),f=Aie(f)),l==="deepStrictEqual"||l==="strictEqual")i=t.call(this,nUe(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(rl,"...").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(` `),` @@ -86,19 +86,19 @@ should equal -`):m=" ".concat(l," ").concat(m)),i=t.call(this,"".concat(p).concat(m))}return Error.stackTraceLimit=c,i.generatedMessage=!o,Object.defineProperty(TM(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(TM(i),s),i.stack,i.name="AssertionError",Mie(i)}return YHe(a,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(i,o){return MM(this,xie(xie({},o),{},{customInspect:!1,depth:0}))}}]),a})(AM(Error),MM.custom);Sie.exports=rUe});var kM=z((Ptr,Cie)=>{"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{"use strict";var Cie=Object.prototype.toString;Die.exports=function(r){var t=Cie.call(r),a=t==="[object Arguments]";return a||(a=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&Cie.call(r.callee)==="[object Function]"),a}});var Oie=z((Itr,Bie)=>{"use strict";var Iie;Object.keys||(Z2=Object.prototype.hasOwnProperty,SM=Object.prototype.toString,Eie=kM(),qM=Object.prototype.propertyIsEnumerable,Pie=!qM.call({toString:null},"toString"),Rie=qM.call(function(){},"prototype"),$2=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Qb=function(e){var r=e.constructor;return r&&r.prototype===e},Fie={$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},zie=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!Fie["$"+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})(),Nie=function(e){if(typeof window=="undefined"||!zie)return Qb(e);try{return Qb(e)}catch(r){return!1}},Iie=function(r){var t=r!==null&&typeof r=="object",a=SM.call(r)==="[object Function]",n=Eie(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=Rie&&a;if(i&&r.length>0&&!Z2.call(r,0))for(var s=0;s0)for(var u=0;u{"use strict";var oUe=Array.prototype.slice,lUe=kM(),Hie=Object.keys,ex=Hie?function(r){return Hie(r)}:Oie(),Uie=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 lUe(a)?Uie(oUe.call(a)):Uie(a)})}else Object.keys=ex;return Object.keys||ex};Gie.exports=ex});var Xie=z((Otr,Wie)=>{"use strict";var sUe=LM(),Vie=$3()(),jie=Xf(),rx=J3(),uUe=jie("Array.prototype.push"),Yie=jie("Object.prototype.propertyIsEnumerable"),fUe=Vie?rx.getOwnPropertySymbols:null;Wie.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=Xie(),cUe=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",r=e.split(""),t={},a=0;a{"use strict";var Jie=function(e){return e!==e};Kie.exports=function(r,t){return r===0&&t===0?1/r===1/t:!!(r===t||Jie(r)&&Jie(t))}});var tx=z((Gtr,Qie)=>{"use strict";var hUe=DM();Qie.exports=function(){return typeof Object.is=="function"?Object.is:hUe}});var aoe=z((Ytr,toe)=>{"use strict";var eoe=ob(),roe=L2(),dUe=roe(eoe("String.prototype.indexOf"));toe.exports=function(r,t){var a=eoe(r,!!t);return typeof a=="function"&&dUe(r,".prototype.")>-1?roe(a):a}});var J2=z((Vtr,loe)=>{"use strict";var pUe=LM(),mUe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",yUe=Object.prototype.toString,gUe=Array.prototype.concat,noe=AA(),bUe=function(e){return typeof e=="function"&&yUe.call(e)==="[object Function]"},ioe=kA()(),xUe=function(e,r,t,a){if(r in e){if(a===!0){if(e[r]===t)return}else if(!bUe(a)||!a())return}ioe?noe(e,r,t,!0):noe(e,r,t)},ooe=function(e,r){var t=arguments.length>2?arguments[2]:{},a=pUe(r);mUe&&(a=gUe.call(a,Object.getOwnPropertySymbols(r)));for(var n=0;n{"use strict";var _Ue=tx(),wUe=J2();soe.exports=function(){var r=_Ue();return wUe(Object,{is:r},{is:function(){return Object.is!==r}}),r}});var hoe=z((Wtr,voe)=>{"use strict";var TUe=J2(),AUe=L2(),MUe=DM(),foe=tx(),kUe=uoe(),coe=AUe(foe(),Object);TUe(coe,{getPolyfill:foe,implementation:MUe,shim:kUe});voe.exports=coe});var EM=z((Xtr,doe)=>{"use strict";doe.exports=function(r){return r!==r}});var PM=z((Ztr,poe)=>{"use strict";var SUe=EM();poe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:SUe}});var yoe=z(($tr,moe)=>{"use strict";var qUe=J2(),LUe=PM();moe.exports=function(){var r=LUe();return qUe(Number,{isNaN:r},{isNaN:function(){return Number.isNaN!==r}}),r}});var _oe=z((Jtr,xoe)=>{"use strict";var CUe=L2(),DUe=J2(),EUe=EM(),goe=PM(),PUe=yoe(),boe=CUe(goe(),Number);DUe(boe,{getPolyfill:goe,implementation:EUe,shim:PUe});xoe.exports=boe});var Hoe=z((Ktr,Ooe)=>{"use strict";function woe(e,r){return NUe(e)||zUe(e,r)||FUe(e,r)||RUe()}function RUe(){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 FUe(e,r){if(e){if(typeof e=="string")return Toe(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 Toe(e,r)}}function Toe(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(jUe).concat(lx(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function zoe(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 tl(e){"@babel/helpers - typeof";return tl=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},tl(e)}function Uoe(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 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 +`));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){ale(r,t,a,e,"match")};la.doesNotMatch=function e(r,t,a){ale(r,t,a,e,"doesNotMatch")};function nle(){for(var e=arguments.length,r=new Array(e),t=0;t{var t1=1e3,a1=t1*60,n1=a1*60,i1=n1*24,gGe=i1*365.25;ole.exports=function(e,r){r=r||{};var t=typeof e;if(t==="string"&&e.length>0)return bGe(e);if(t==="number"&&isNaN(e)===!1)return r.long?_Ge(e):xGe(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function bGe(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*gGe;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 xGe(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 _Ge(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=sle.exports=OM.debug=OM.default=OM;It.coerce=kGe;It.disable=AGe;It.enable=TGe;It.enabled=MGe;It.humanize=lle();It.names=[];It.skips=[];It.formatters={};var BM;function wGe(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=cle.exports=ule();Zn.log=LGe;Zn.formatArgs=qGe;Zn.save=CGe;Zn.load=fle;Zn.useColors=SGe;Zn.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:DGe();Zn.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function SGe(){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 qGe(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 LGe(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function CGe(e){try{e==null?Zn.storage.removeItem("debug"):Zn.storage.debug=e}catch(r){}}function fle(){var e;try{e=Zn.storage.debug}catch(r){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}Zn.enable(fle());function DGe(){try{return window.localStorage}catch(e){}}});var xle=z((rar,ble)=>{var Ev=Jb(),xu=vle()("stream-parser");ble.exports=PGe;var dle=-1,mx=0,EGe=1,ple=2;function PGe(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=RGe,e._skipBytes=FGe,r&&(e._passthrough=zGe),r?e._transform=IGe:e._write=NGe}function o1(e){xu("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=dle,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function RGe(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 FGe(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=EGe}function zGe(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=ple}function NGe(e,r,t){this._parserInit||o1(this),xu("write(%o bytes)",e.length),typeof r=="function"&&(t=r),yle(this,e,null,t)}function IGe(e,r,t){this._parserInit||o1(this),xu("transform(%o bytes)",e.length),typeof r!="function"&&(r=this._parserOutput),yle(this,e,r,t)}function mle(e,r,t,a){return e._parserBytesLeft<=0?a(new Error("got data but not currently parsing anything")):r.length<=e._parserBytesLeft?function(){return hle(e,r,t,a)}:function(){var n=r.slice(0,e._parserBytesLeft);return hle(e,n,t,function(i){if(i)return a(i);if(r.length>n.length)return function(){return mle(e,r.slice(n.length),t,a)}})}}function hle(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===ple&&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=dle,e._parserBuffers.splice(0),n){var i=[];r&&i.push(r),t&&i.push(t);var o=n.length>i.length;o&&i.push(gle(a));var l=n.apply(e,i);if(!o||a===l)return a}}else return a}var yle=gle(mle);function gle(e){return function(){for(var r=e.apply(this,arguments);typeof r=="function";)r=r();return r}}});var _le=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 wle=fie().Transform,BGe=xle(),_u=_le();function l1(){wle.call(this,{readableObjectMode:!0})}l1.prototype=Object.create(wle.prototype);l1.prototype.constructor=l1;BGe(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(YGe(e,r),!!r.sizes.length){var t=VGe(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 jGe(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 Mle=z((oar,Ale)=>{"use strict";var WGe=Tt().str2arr,XGe=Tt().sliceEq,ZGe=Tt().readUInt32BE,_x=Tle(),$Ge=xx(),JGe=WGe("ftyp");Ale.exports=function(e){if(XGe(e,4,JGe)){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=ZGe(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+s+4,o.exif_location.offset+o.exif_location.length),f=$Ge.get_orientation(u);f>0&&(l.orientation=f)}return l}}}}}}});var Lle=z((lar,qle)=>{"use strict";var KGe=Tt().str2arr,QGe=Tt().sliceEq,kle=Tt().readInt16LE,Sle=Tt().readInt32LE,eYe=Tt().readUInt32LE,rYe=KGe("BM");qle.exports=function(e){if(!(e.length<26)&&QGe(e,0,rYe)){var r,t,a=eYe(e,14);if(a===12)t=kle(e,18),r=kle(e,20);else if(a>12)t=Sle(e,18),r=Sle(e,22);else return;return{width:t,height:Math.abs(r),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var Rle=z((sar,Ple)=>{"use strict";var Ele=Tt().str2arr,Cle=Tt().sliceEq,Dle=Tt().readUInt16LE,tYe=Ele("GIF87a"),aYe=Ele("GIF89a");Ple.exports=function(e){if(!(e.length<10)&&!(!Cle(e,0,tYe)&&!Cle(e,0,aYe)))return{width:Dle(e,6),height:Dle(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var zle=z((uar,Fle)=>{"use strict";var YM=Tt().readUInt16LE,nYe=0,iYe=1,VM=16;Fle.exports=function(e){var r=YM(e,0),t=YM(e,2),a=YM(e,4);if(!(r!==nYe||t!==iYe||!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 Ile=z((far,Nle)=>{"use strict";var jM=Tt().readUInt16BE,oYe=Tt().str2arr,lYe=Tt().sliceEq,sYe=xx(),uYe=oYe("Exif\0\0");Nle.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&&lYe(e,r,uYe)&&(n=sYe.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 Gle=z((car,Ule)=>{"use strict";var Hle=Tt().str2arr,Ble=Tt().sliceEq,Ole=Tt().readUInt32BE,fYe=Hle(`\x89PNG\r  -`),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();})(); +`),cYe=Hle("IHDR");Ule.exports=function(e){if(!(e.length<24)&&Ble(e,0,fYe)&&Ble(e,12,cYe))return{width:Ole(e,16),height:Ole(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var jle=z((har,Vle)=>{"use strict";var vYe=Tt().str2arr,hYe=Tt().sliceEq,Yle=Tt().readUInt32BE,dYe=vYe("8BPS\0");Vle.exports=function(e){if(!(e.length<22)&&hYe(e,0,dYe))return{width:Yle(e,18),height:Yle(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:._-]*",Xle="[^\"'=<>`\\x00-\\x20]+",pYe="'[^']*'",mYe='"[^"]*"',yYe="(?:"+Xle+"|"+pYe+"|"+mYe+")",gYe="(?:\\s+"+WM+"(?:\\s*=\\s*"+yYe+")?)",bYe="<[?][\\s\\S]*?[?]>",xYe="",_Ye="",wYe="]*(?:\\[[\\s\\S]*?\\][^>]*)?>",TYe=new RegExp("^(?:\\s+|"+bYe+"|"+xYe+"|"+_Ye+"|"+wYe+")*"),AYe=new RegExp("^<("+WM+")("+gYe+"*)\\s*/?>"),Wle=new RegExp("\\s+("+WM+")(?:\\s*=\\s*(?:("+Xle+`)|'([^']*)'|"([^"]*)"))?`,"g"),MYe=/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(MYe);return t===null?"px":t[0]}XM.parse=function(e){var r=e.match(TYe)[0],t=AYe.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(Wle.lastIndex=0;(i=Wle.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 $le=z((par,Zle)=>{"use strict";var kYe=ZM().parse,SYe=ZM().MAX_DATA_LENGTH;Zle.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+SYe),n=r;n{"use strict";var Qle=Tt().str2arr,Jle=Tt().sliceEq,qYe=Tt().readUInt16LE,LYe=Tt().readUInt16BE,CYe=Tt().readUInt32LE,DYe=Tt().readUInt32BE,EYe=Qle("II*\0"),PYe=Qle("MM\0*");function wx(e,r,t){return t?LYe(e,r):qYe(e,r)}function $M(e,r,t){return t?DYe(e,r):CYe(e,r)}function Kle(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)}ese.exports=function(e){if(!(e.length<8)&&!(!Jle(e,0,EYe)&&!Jle(e,0,PYe))){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 nse=Tt().str2arr,tse=Tt().sliceEq,ase=Tt().readUInt16LE,JM=Tt().readUInt32LE,RYe=xx(),FYe=nse("RIFF"),zYe=nse("WEBP");function NYe(e,r){if(!(e[r+3]!==157||e[r+4]!==1||e[r+5]!==42))return{width:ase(e,r+6)&16383,height:ase(e,r+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function IYe(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 BYe(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"}}ise.exports=function(e){if(!(e.length<16)&&!(!tse(e,0,FYe)||!tse(e,8,zYe))){var r=12,t=null,a=0,n=JM(e,4)+8;if(!(n>e.length)){for(;r+8=10?t=t||NYe(e,r+8):i==="VP8L"&&o>=5?t=t||IYe(e,r+8):i==="VP8X"&&o>=10?t=t||BYe(e,r+8):i==="EXIF"&&(a=RYe.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 sse=z((gar,lse)=>{"use strict";lse.exports={avif:Mle(),bmp:Lle(),gif:Rle(),ico:zle(),jpeg:Ile(),png:Gle(),psd:jle(),svg:$le(),tiff:rse(),webp:ose()}});var use=z((bar,QM)=>{"use strict";var KM=sse();function OYe(e){for(var r=Object.keys(KM),t=0;t0&&a.height>0?a:null}return null}QM.exports=function(r){return OYe(r)};QM.exports.parsers=KM});var cse=z(fse=>{"use strict";var HYe=use(),UYe=ts().IMAGE_URL_PREFIX,GYe=hv().Buffer;fse.getImageSize=function(e){var r=e.replace(UYe,""),t=new GYe(r,"base64");return HYe(t)}});var dse=z((_ar,hse)=>{"use strict";var vse=ke(),YYe=(sv(),Ne(w2)),VYe=Br(),Tx=jr(),jYe=ke().maxRowLength,WYe=cse().getImageSize;hse.exports=function(r,t){var a,n;if(t._hasZ)a=t.z.length,n=jYe(t.z);else if(t._hasSource){var i=WYe(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 JYe=Pr(),oc=ke(),pse=oc.strTranslate,KYe=(Wl(),Ne(jl)),QYe=(sv(),Ne(w2)),eVe=eT(),rVe=(w3(),Ne(_3)).STYLE;mse.exports=function(r,t,a,n){var i=t.xaxis,o=t.yaxis,l=!r._context._exportedPlot&&eVe();oc.makeTraceGroups(n,a,"im").each(function(s){var u=JYe.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,q,C;for(C=0;x===void 0&&C0;)_=i.c2p(p+C*T),C--;for(C=0;M===void 0&&C0;)q=o.c2p(m+C*w),C--;if(_j[0];if(W||V){var J=x+P/2,re=M+R/2;G+="transform:"+pse(J+"px",re+"px")+"scale("+(W?-1:1)+","+(V?-1:1)+")"+pse(-J+"px",-re+"px")+";"}}H.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")}H.attr({"xlink:href":ne,height:R,width:P,x,y:M})});r._promises.push(le)})}});var bse=z((Tar,gse)=>{"use strict";var tVe=Pr();gse.exports=function(r){tVe.select(r).selectAll(".im image").style("opacity",function(t){return t[0].trace.opacity})}});var Tse=z((Aar,wse)=>{"use strict";var xse=Yn(),_se=ke(),Ax=_se.isArrayOrTypedArray,aVe=(sv(),Ne(w2));wse.exports=function(r,t,a){var n=r.cd[0],i=n.trace,o=r.xa,l=r.ya;if(!(xse.inbox(t-n.x0,t-(n.x0+n.w*i.dx),0)>0||xse.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=aVe.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,q="["+f.slice(0,i.colormodel.length).join(", ")+"]";return[_se.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:q,text:x,hovertemplateLabels:{zLabel:q,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 Mse=z((Mar,Ase)=>{"use strict";Ase.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 Sse=z((kar,kse)=>{"use strict";kse.exports={attributes:(XT(),Ne(WT)).default,supplyDefaults:vre(),calc:dse(),plot:yse(),style:bse(),hoverPoints:Tse(),eventData:Mse(),moduleType:"trace",name:"image",basePlotModule:lo(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var Lse=z((Sar,qse)=>{"use strict";qse.exports=Sse()});var ek=z((qar,Dse)=>{"use strict";var Mx=Gn(),nVe=H0().attributes,iVe=Ia(),oVe=Hi(),{hovertemplateAttrs:lVe,texttemplateAttrs:sVe,templatefallbackAttrs:Cse}=gi(),wu=St().extendFlat,uVe=Ui().pattern,kx=iVe({editType:"plot",arrayOk:!0,colorEditType:"plot"});Dse.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:oVe.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:uVe,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:lVe({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:Cse(),texttemplate:sVe({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:Cse({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:nVe({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 Fse=z((Lar,Rse)=>{"use strict";var fVe=Br(),u1=ke(),cVe=ek(),vVe=H0().defaults,hVe=Nf().handleText,dVe=ke().coercePattern;function Ese(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 Pse(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");dVe(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 pVe(e,r,t,a){function n(T,w){return u1.coerce(e,r,cVe,T,w)}var i=n("labels"),o=n("values"),l=Ese(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,Pse(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");hVe(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");vVe(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")}Rse.exports={handleLabelsAndValues:Ese,handleMarkerDefaults:Pse,supplyDefaults:pVe}});var rk=z((Car,zse)=>{"use strict";zse.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Ise=z((Dar,Nse)=>{"use strict";var mVe=ke(),yVe=rk();Nse.exports=function(r,t){function a(n,i){return mVe.coerce(r,t,yVe,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var tk=z((Ear,Hse)=>{"use strict";var gVe=Br(),Fv=qr(),bVe={};function xVe(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 Bse(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 _Ve(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=Ose(i,bVe));for(var l=0,s=0;s{"use strict";var wVe=No().appendArrayMultiPointValues;Use.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]),wVe(a,t,r.pts),t.type==="funnelarea"&&(delete a.v,delete a.i),a}});var cue=z((Rar,fue)=>{"use strict";var di=Pr(),TVe=_a(),Sx=Yn(),Zse=qr(),ms=et(),pn=ke(),AVe=pn.strScale,Yse=pn.strTranslate,ak=Da(),$se=a2(),MVe=$se.recordMinTextSize,kVe=$se.clearMinTextSize,Jse=(Id(),Ne(Nd)).TEXTPAD,Dr=Gm(),qx=Gse(),Vse=ke().isValidTextValue;function SVe(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;kVe("pie",a),eue(r,e),lue(r,n);var i=pn.makeTraceGroups(a._pielayer,r,"trace").each(function(o){var l=di.select(this),s=o[0],u=s.trace;zVe(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,q=di.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(Kse,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(Y,j,W,V){var J=V*(j[0]-Y[0]),re=V*(j[1]-Y[1]);return"a"+V*s.r+","+V*s.r+" 0 "+x.largeArc+(W?" 1 ":" 0 ")+J+","+re}var R=u.hole;if(x.v===s.vTotal){var B="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"+B):C.attr("d",B)}else{var I=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]+I+"Z")}else C.attr("d","M"+k+","+M+"l"+x.px0[0]+","+x.px0[1]+I+"Z")}sue(e,x,s);var H=Dr.castOption(u.textposition,x.pts),G=q.selectAll("g.slicetext").data(x.text&&H!=="none"?[0]:[]);G.enter().append("g").classed("slicetext",!0),G.exit().remove(),G.each(function(){var Y=pn.ensureSingle(di.select(this),"text","",function($){$.attr("data-notex",1)}),j=pn.ensureUniformFontSize(e,H==="outside"?LVe(u,x,a.font):Qse(u,x,a.font));Y.text(x.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(ms.font,j).call(ak.convertToTspans,e);var W=ms.bBox(Y.node()),V;if(H==="outside")V=Xse(W,x);else if(V=rue(W,x,s),H==="auto"&&V.scale<1){var J=pn.ensureUniformFontSize(e,u.outsidetextfont);Y.call(ms.font,J),W=ms.bBox(Y.node()),V=Xse(W,x)}var re=V.textPosAngle,le=re===void 0?x.pxmid:Lx(s.r,re);if(V.targetX=k+le[0]*V.rCenter+(V.x||0),V.targetY=M+le[1]*V.rCenter+(V.y||0),uue(V,W),V.outside){var ne=V.targetY;x.yLabelMin=ne-W.height/2,x.yLabelMid=ne,x.yLabelMax=ne+W.height/2,x.labelExtraX=0,x.labelExtraY=0,v=!0}V.fontSize=j.size,MVe(u.type,V,a),o[_].transform=V,pn.setTransormAndDisplay(Y,V)})});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=EVe(s):k=iue(s,n),x.attr("transform",Yse(k.x,k.y)+AVe(Math.min(1,k.scale))+Yse(k.tx,k.ty))}),v&&RVe(c,u),qVe(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;TVe.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 qVe(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(Zse.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:l,fill:"none"})})}function Kse(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 LVe(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 Qse(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||Zse.contrast(r.color),family:n,size:i,weight:o,style:l,variant:s,textcase:u,lineposition:f,shadow:c}}function eue(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=jse(e,a,o,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||v)&&(y=Wse(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 CVe(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 EVe(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 iue(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=oue(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=PVe(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 PVe(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 oue(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 RVe(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,q=w.cyFinal+o(w.px0[1],w.px1[1]),C=_-k,E,P,R,B,I,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?(B=R.cyFinal+o(R.px0[1],R.px1[1]),C=B-k-w.labelExtraY,C*s>0&&(w.labelExtraY+=C)):(M+w.labelExtraY-q)*s>0&&(E=3*l*Math.abs(P-c.indexOf(w)),I=R.cxFinal+i(R.px0[0],R.px1[0]),N=I+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=DVe(u,r))}function Lx(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function sue(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);Vse(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);(Vse(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 uue(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}fue.exports={plot:SVe,formatSliceLabel:sue,transformInsideText:rue,determineInsideTextFont:Qse,positionTitleOutside:iue,prerenderTitles:eue,layoutAreas:lue,attachFxHandlers:Kse,computeTransform:uue}});var due=z((Far,hue)=>{"use strict";var vue=Pr(),NVe=Ym(),IVe=a2().resizeText;hue.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");IVe(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,o=vue.select(this);o.style({opacity:i.opacity}),o.selectAll("path.surface").each(function(l){vue.select(this).call(NVe,l,i,r)})})}});var mue=z(zv=>{"use strict";var pue=_a();zv.name="pie";zv.plot=function(e,r,t,a){pue.plotBasePlot(zv.name,e,r,t,a)};zv.clean=function(e,r,t,a){pue.cleanBasePlot(zv.name,e,r,t,a)}});var gue=z((Nar,yue)=>{"use strict";yue.exports={attributes:ek(),supplyDefaults:Fse().supplyDefaults,supplyLayoutDefaults:Ise(),layoutAttributes:rk(),calc:tk().calc,crossTraceCalc:tk().crossTraceCalc,plot:cue().plot,style:due(),styleOne:Ym(),moduleType:"trace",name:"pie",basePlotModule:mue(),categories:["pie-like","pie","showLegend"],meta:{}}});var xue=z((Iar,bue)=>{"use strict";bue.exports=gue()});var wn=z((Bar,wue)=>{"use strict";var _ue=Object.getOwnPropertySymbols,BVe=Object.prototype.hasOwnProperty,OVe=Object.prototype.propertyIsEnumerable;function HVe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function UVe(){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}}wue.exports=UVe()?Object.assign:function(e,r){for(var t,a=HVe(e),n,i=1;i{var Dx=wn();function Tue(){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(Tue.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=Aue.exports=new Tue;Vr.cdate=ik;Vr.baseCalendar=ok;Vr.calendars.gregorian=lk});var Mue=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 q=""+_;if(u(x,M))for(;q.length1},T=function(R,B){var I=b(R,B),N=[2,3,I?4:2,I?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],H=new RegExp("^-?\\d{1,"+N+"}"),G=r.substring(q).match(H);if(!G)throw(rn.local.missingNumberAt||rn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=G[0].length,parseInt(G[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 T("m")},_=function(R,B,I,N){for(var H=b(R,N)?I:B,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 kue=z(()=>{var Tu=Tn(),GVe=wn(),uk=Tu.instance();function Ex(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ex.prototype=new Tu.baseCalendar;GVe(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(VVe);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(jVe);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(WVe);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=ZVe(e,i,t,n);return uk.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=uk.fromJD(e),t=XVe(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(YVe),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 YVe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,VVe=/^\d?\d[iI]?/m,jVe=/^闰?十?[一二三四五六七八九]?月/m,WVe=/^闰?十?[一二三四五六七八九]?/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 XVe(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 Sue=z(()=>{var lc=Tn(),$Ve=wn();function fk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fk.prototype=new lc.baseCalendar;$Ve(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 que=z(()=>{var ys=Tn(),JVe=wn();function ck(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}ck.prototype=new ys.baseCalendar;JVe(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:KVe[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 KVe={20:"Fruitbat",21:"Anchovy"};ys.calendars.discworld=ck});var Lue=z(()=>{var sc=Tn(),QVe=wn();function vk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vk.prototype=new sc.baseCalendar;QVe(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 Cue=z(()=>{var ku=Tn(),eje=wn();function hk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hk.prototype=new ku.baseCalendar;eje(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 Due=z(()=>{var f1=Tn(),rje=wn();function dk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dk.prototype=new f1.baseCalendar;rje(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 Eue=z(()=>{var c1=Tn(),tje=wn();function pk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pk.prototype=new c1.baseCalendar;tje(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 Rue=z(()=>{var Mo=Tn(),aje=wn();function yk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yk.prototype=new Mo.baseCalendar;aje(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,[Pue(e+20,20),Pue(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 Pue(e,r){return mk(e-1,r)+1}Mo.calendars.mayan=yk});var zue=z(()=>{var uc=Tn(),nje=wn();function gk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gk.prototype=new uc.baseCalendar;var Fue=uc.instance("gregorian");nje(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 Fue.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 Nue=z(()=>{var fc=Tn(),ije=wn();function bk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bk.prototype=new fc.baseCalendar;ije(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(),oje=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;oje(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 Bue=z(()=>{var cc=Tn(),lje=wn(),zx=cc.instance();function xk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xk.prototype=new cc.baseCalendar;lje(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 Oue=z(()=>{var vc=Tn(),sje=wn(),Nx=vc.instance();function _k(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_k.prototype=new vc.baseCalendar;sje(_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 Hue=z(()=>{var hc=Tn(),uje=wn();function wk(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wk.prototype=new hc.baseCalendar;uje(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 Gue=z((ynr,Uue)=>{"use strict";Uue.exports=Tn();Mue();kue();Sue();que();Lue();Cue();Due();Eue();Rue();zue();Nue();Iue();Bue();Oue();Hue()});var $ue=z((gnr,Zue)=>{"use strict";var Vue=Gue(),v1=ke(),jue=(Kt(),Ne(aa)),fje=jue.EPOCHJD,cje=jue.ONEDAY,Mk={valType:"enumerated",values:v1.sortObjectKeys(Vue.calendars),editType:"calc",dflt:"gregorian"},Wue=function(e,r,t,a){var n={};return n[t]=Mk,v1.coerce(e,r,n,t,a)},vje=function(e,r,t,a){for(var n=0;n{"use strict";Jue.exports=$ue()});var gje=z((xnr,efe)=>{var Que=PX();Que.register([FZ(),w$(),GJ(),fK(),AK(),AQ(),IQ(),qee(),are(),Lse(),xue(),Kue()]);efe.exports=Que});return gje();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-finance.js b/dist/plotly-finance.js index b39cc6fe001..8162256e4f8 100644 --- a/dist/plotly-finance.js +++ b/dist/plotly-finance.js @@ -1,5 +1,5 @@ /** -* plotly.js (finance) v4.2.0 +* plotly.js (finance) v4.3.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.2.0"; + exports.version = "4.3.0"; } }); @@ -9261,7 +9261,7 @@ var Plotly = (() => { for (var i = 1; i < length; i++) { input = inputs[i]; for (key in input) { - src = target[key]; + src = Object.prototype.hasOwnProperty.call(target, key) ? target[key] : void 0; copy = input[key]; if (noArrayCopies && isArray(copy)) { target[key] = copy; @@ -19641,8 +19641,8 @@ var Plotly = (() => { }; var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/; var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/; - function notValid(prop) { - return prop.slice(0, 2) === "__"; + function notValid(obj, prop) { + return prop in obj && !Object.prototype.hasOwnProperty.call(obj, prop); } lib.expandObjectPaths = function(data) { var match, key, prop, datum, idx, dest, trailingPath; @@ -19652,7 +19652,7 @@ var Plotly = (() => { if (match = key.match(dottedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; delete data[key]; data[prop] = lib.extendDeepNoArrays( data[prop] || {}, @@ -19661,7 +19661,7 @@ var Plotly = (() => { } else if (match = key.match(indexedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; idx = parseInt(match[2]); delete data[key]; data[prop] = data[prop] || []; @@ -19670,11 +19670,11 @@ var Plotly = (() => { dest = data[prop][idx] = data[prop][idx] || {}; lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum))); } else { - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; data[prop][idx] = lib.expandObjectPaths(datum); } } else { - if (notValid(key)) continue; + if (notValid(data, key)) continue; data[key] = lib.expandObjectPaths(data[key]); } } @@ -22229,7 +22229,7 @@ var Plotly = (() => { ax._counterAxes.sort(axisIDs.idSort); ax._subplotsWith.sort(Lib.subplotSort); ax._mainSubplot = findMainSubplot(ax, newFullLayout); - if (ax._counterAxes.length && (ax.spikemode && ax.spikemode.indexOf("across") !== -1 || ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { + if (ax._counterAxes.length && (ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { var min = 1; var max = 0; for (j = 0; j < ax._counterAxes.length; j++) { @@ -25421,6 +25421,33 @@ var Plotly = (() => { dflt: [0, 1], editType: "plot" }, + domainpad: { + left: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + right: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + top: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + bottom: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + editType: "plot" + }, position: { valType: "number", min: 0, @@ -29097,6 +29124,12 @@ var Plotly = (() => { function isValidCategory(v) { return v !== null && v !== void 0; } + var MIN_PADDED_LENGTH = 2; + function padFactor(wanted, bandLength) { + if (wanted <= 0) return 0; + const room = Math.max(0, bandLength - MIN_PADDED_LENGTH); + return wanted > room ? room / wanted : 1; + } module.exports = function setConvert(ax, fullLayout) { fullLayout = fullLayout || {}; var axId = ax._id || "x"; @@ -29467,6 +29500,7 @@ var Plotly = (() => { if (ax.overlaying) { var ax2 = axisIds.getFromId({ _fullLayout: fullLayout }, ax.overlaying); ax.domain = ax2.domain; + ax.domainpad = ax2.domainpad; } var rangeAttr = usePrivateRange && ax._r ? "_r" : "range"; var calendar = ax.calendar; @@ -29474,14 +29508,26 @@ var Plotly = (() => { var rl0 = ax.r2l(ax[rangeAttr][0], calendar); var rl1 = ax.r2l(ax[rangeAttr][1], calendar); var isY2 = axLetter === "y"; + const bandLength = (isY2 ? gs.h : gs.w) * (ax.domain[1] - ax.domain[0]); + const pad = ax.domainpad; + let padStart = 0; + let padEnd = 0; + if (pad) { + padStart = (isY2 ? pad.top : pad.left) || 0; + padEnd = (isY2 ? pad.bottom : pad.right) || 0; + const fits = padFactor(padStart + padEnd, bandLength); + padStart *= fits; + padEnd *= fits; + } + ax._length = bandLength - padStart - padEnd; + ax._padStart = padStart; + ax._padEnd = padEnd; if (isY2) { - ax._offset = gs.t + (1 - ax.domain[1]) * gs.h; - ax._length = gs.h * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.t + (1 - ax.domain[1]) * gs.h + padStart; ax._m = ax._length / (rl0 - rl1); ax._b = -ax._m * rl1; } else { - ax._offset = gs.l + ax.domain[0] * gs.w; - ax._length = gs.w * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.l + ax.domain[0] * gs.w + padStart; ax._m = ax._length / (rl1 - rl0); ax._b = -ax._m * rl0; } @@ -31338,7 +31384,7 @@ var Plotly = (() => { for (var i = 0; i < vals.length; i++) { var vali = tickVal2l(vals[i]); if (vali > tickMin && vali < tickMax) { - var obj = axes.tickText(ax, vali, false, String(text[i]), { + const obj = axes.tickText(ax, vali, false, text[i] !== void 0, { first: i === firstIdx, last: i === lastIdx }); @@ -33427,6 +33473,7 @@ var Plotly = (() => { var noSwapAttrs = [ "anchor", "domain", + "domainpad", "overlaying", "position", "side", @@ -38012,6 +38059,30 @@ var Plotly = (() => { } return d; } + function getAcrossSpikeSpan(gd, ax, gs) { + const isY = ax._id.charAt(0) === "y"; + let start = Infinity; + let end = -Infinity; + for (const counterId of ax._counterAxes || []) { + const counterAx = Axes.getFromId(gd, counterId); + if (!counterAx) continue; + const padStart = counterAx._padStart || 0; + const padEnd = counterAx._padEnd || 0; + if (isY) { + start = Math.min(start, gs.l + counterAx.domain[0] * gs.w + padStart); + end = Math.max(end, gs.l + counterAx.domain[1] * gs.w - padEnd); + } else { + start = Math.min(start, gs.t + (1 - counterAx.domain[1]) * gs.h + padStart); + end = Math.max(end, gs.t + (1 - counterAx.domain[0]) * gs.h - padEnd); + } + } + if (ax.anchor === "free") { + const position = isY ? gs.l + ax.position * gs.w : gs.t + (1 - ax.position) * gs.h; + start = Math.min(start, position); + end = Math.max(end, position); + } + return [start, end]; + } function createSpikelines(gd, closestPoints, opts) { var container = opts.container; var fullLayout = opts.fullLayout; @@ -38048,14 +38119,9 @@ var Plotly = (() => { xEndSpike = hLinePointX; } if (yMode.indexOf("across") !== -1) { - var xAcross0 = ya._counterDomainMin; - var xAcross1 = ya._counterDomainMax; - if (ya.anchor === "free") { - xAcross0 = Math.min(xAcross0, ya.position); - xAcross1 = Math.max(xAcross1, ya.position); - } - xBase = gs.l + xAcross0 * gs.w; - xEndSpike = gs.l + xAcross1 * gs.w; + const xSpan = getAcrossSpikeSpan(gd, ya, gs); + xBase = xSpan[0]; + xEndSpike = xSpan[1]; } container.insert("line", ":first-child").attr({ x1: xBase, @@ -38109,14 +38175,9 @@ var Plotly = (() => { yEndSpike = vLinePointY; } if (xMode.indexOf("across") !== -1) { - var yAcross0 = xa._counterDomainMin; - var yAcross1 = xa._counterDomainMax; - if (xa.anchor === "free") { - yAcross0 = Math.min(yAcross0, xa.position); - yAcross1 = Math.max(yAcross1, xa.position); - } - yBase = gs.t + (1 - yAcross1) * gs.h; - yEndSpike = gs.t + (1 - yAcross0) * gs.h; + const ySpan = getAcrossSpikeSpan(gd, xa, gs); + yBase = ySpan[0]; + yEndSpike = ySpan[1]; } container.insert("line", ":first-child").attr({ x1: vLinePointX, @@ -42772,7 +42833,7 @@ var Plotly = (() => { var outerMax = rangeCenter + halfRange * factor * 1.0001; var getPadMin = autorange.makePadFn(fullLayout, ax, 0); var getPadMax = autorange.makePadFn(fullLayout, ax, 1); - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); var m = Math.abs(ax._m); var extremes = autorange.concatExtremes(gd, ax); var minArray = extremes.min; @@ -42797,7 +42858,7 @@ var Plotly = (() => { rangeMax = ax.l2r(rangeMax); ax.range = ax._input.range = rl0 < rl1 ? [rangeMin, rangeMax] : [rangeMax, rangeMin]; } - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); } } } @@ -42828,13 +42889,26 @@ var Plotly = (() => { } } }; - function updateDomain(ax, factor) { + function domainPadFraction(ax, fullLayout) { + const pad = ax.domainpad; + if (!pad) return 0; + const gs = fullLayout._size; + return ax._id.charAt(0) === "y" ? ((pad.top || 0) + (pad.bottom || 0)) / gs.h : ((pad.left || 0) + (pad.right || 0)) / gs.w; + } + function updateDomain(ax, factor, fullLayout) { var inputDomain = ax._inputDomain; var centerFraction = FROM_BL2[ax.constraintoward]; var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction; + let divisor = factor; + const padFraction = domainPadFraction(ax, fullLayout); + if (padFraction > 0) { + const inputSpan = inputDomain[1] - inputDomain[0]; + const drawnSpan = inputSpan - padFraction; + if (drawnSpan > 0) divisor = inputSpan / (drawnSpan / factor + padFraction); + } ax.domain = ax._input.domain = [ - center + (inputDomain[0] - center) / factor, - center + (inputDomain[1] - center) / factor + center + (inputDomain[0] - center) / divisor, + center + (inputDomain[1] - center) / divisor ]; ax.setScale(); } @@ -50063,6 +50137,10 @@ var Plotly = (() => { if (!newType || newType === "-") newType = "linear"; Registry.getComponentMethod("annotations", "convertCoords")(gd, fullProp, newType, doextra); Registry.getComponentMethod("images", "convertCoords")(gd, fullProp, newType, doextra); + if (!ptrunk && fullProp && vi && (vi.range !== void 0 || vi.autorange !== void 0)) { + recordAlteredAxis(`${pleaf}.range`); + fullProp._inputRange = null; + } } var containerArrayMatch = manageArrays.containerArrayMatch(ai); if (containerArrayMatch) { @@ -50576,6 +50654,14 @@ var Plotly = (() => { newFullLayout[key]._inputDomain = null; } } + const newRange = newFullLayout[key].range; + const oldRange = oldFullLayout[key].range; + const oldInputRange = oldFullLayout[key]._inputRange; + if (oldInputRange && newRange && oldRange) { + const isInputRange = newRange[0] === oldInputRange[0] && newRange[1] === oldInputRange[1]; + const isOldRange = newRange[0] === oldRange[0] && newRange[1] === oldRange[1]; + if (!isInputRange && !isOldRange) newFullLayout[key]._inputRange = null; + } } var diffOpts = { getValObject: getLayoutValObject, @@ -55824,6 +55910,13 @@ var Plotly = (() => { var domain = coerce("domain", dfltDomain); if (domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain; Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain); + if (letter === "x") { + coerce("domainpad.left"); + coerce("domainpad.right"); + } else { + coerce("domainpad.top"); + coerce("domainpad.bottom"); + } if (containerOut.tickmode === "sync") { containerOut.tickmode = "auto"; } @@ -61200,9 +61293,8 @@ var Plotly = (() => { } axisOpts.cleanRange("rangeslider.range"); var gs = fullLayout._size; - var domain = axisOpts.domain; - opts2._width = gs.w * (domain[1] - domain[0]); - var x = Math.round(gs.l + gs.w * domain[0]); + opts2._width = axisOpts._length; + const x = Math.round(axisOpts._offset); var y = Math.round( gs.t + gs.h * (1 - axisOpts._counterDomainMin) + (axisOpts.side === "bottom" ? axisOpts._depth : 0) + opts2._offsetShift + constants2.extraPad ); diff --git a/dist/plotly-finance.min.js b/dist/plotly-finance.min.js index 6ce05f1724f..07906d80468 100644 --- a/dist/plotly-finance.min.js +++ b/dist/plotly-finance.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (finance - minified) v4.2.0 +* plotly.js (finance - minified) v4.3.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 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(` +"use strict";var Plotly=(()=>{var Sj=Object.create;var Tc=Object.defineProperty,qj=Object.defineProperties,Dj=Object.getOwnPropertyDescriptor,Pj=Object.getOwnPropertyDescriptors,Ej=Object.getOwnPropertyNames,qd=Object.getOwnPropertySymbols,Rj=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)=>qj(e,Pj(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 Ej(r))!Cg.call(e,n)&&n!==t&&Tc(e,n,{get:()=>r[n],enumerable:!(a=Dj(r,n))||a.enumerable});return e};var N9=(e,r,t)=>(t=e!=null?Sj(Rj(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.3.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((hTe,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 N;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 V(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,Cj),Tn.push(Ni);for(var Ga=e.event.changedTouches,fi=0,hl=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,hl,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,vl=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)*vl,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)/vl);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(B);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 N,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(;Or24?(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 D$(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-z$(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 z$(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 F$(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(O$(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 N$;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 B$(d){for(var g=i0,T=I$(d[0][0],d[0][1],d[1][0],d[1][1]),L=g.length,C;L--;)C=g[L],(!H$(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 X$(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=W$.get(T)||R8,L=Z$.get(L)||B,J$(L(T.apply(null,r.call(arguments,1))))};function J$(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 $$(d){return d*d}function K$(d){return d*d*d}function j$(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 Q$(d){return function(g){return Math.pow(g,d)}}function eK(d){return 1-Math.cos(d*ae)}function rK(d){return Math.pow(2,10*(d-1))}function tK(d){return 1-Math.sqrt(1-d*d)}function aK(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 nK(d){return d||(d=1.70158),function(g){return g*g*((d+1)*g-d)}}function iK(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=lK;function lK(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=oK;function oK(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=sK;function sK(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:fK)})(d)};function I8(d){var g=[d.a,d.b],T=[d.c,d.d],L=H8(g),C=B8(g,T),q=H8(uK(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 dK(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 hK(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),cK(d.translate,g.translate,T,L),vK(d.rotate,g.rotate,T,L),dK(d.skew,g.skew,T,L),hK(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 dl(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)}),dl(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=SK,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 dl(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 FK(d){return d.reduce(NK,0)}function NK(d,g){return d+g[1]}e.layout.histogram=function(){var d=!0,g=Number,T=BK,L=IK;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 IK(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 BK(d){return[e.min(d),e.max(d)]}e.layout.pack=function(){var d=e.layout.hierarchy().sort(HK),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,dl(I,function(he){he.r=+j(he.value)}),dl(I,Z8),g){var Q=g*(L?1:Math.max(2*I.r/Z,2*I.r/J))/2;dl(I,function(he){he.r+=Q}),dl(I,Z8),dl(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 HK(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(OK),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&&(GK(VK(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 GK(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 UK(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 VK(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;dl(I,function(ee){var ne=ee.children;ne&&ne.length?(ee.x=WK(ne),ee.y=XK(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 dl(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 XK(d){return 1+e.max(d,function(g){return g.y})}function WK(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?$K:ZK,Z=L?mK:pK;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 KK={s:1,g:1,p:1,r:1,e:1};function i9(d){return-Math.floor(Math.log(d)/Math.LN10+.01)}function cTe(d,g){var T=i9(g[2]);return d in KK?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:jK);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 jK={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 oj(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 mj(d){return d.length<3?Fi(d):d[0]+Md(d,pj(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 yj(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(gj(g=L)):g},d};function gj(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=bj,g=xj;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 xj(){return 64}function bj(){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:j$,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):B: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=Tj,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=Mj,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 wj?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",wj={top:1,right:1,bottom:1,left:1};function Tj(d,g,T){d.attr("transform",function(L){var C=g(L);return"translate("+(isFinite(C)?C:T(L))+",0)"})}function Mj(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,B);be.exit().remove(),be.enter().append("g").attr("class",function(lr){return"resize "+lr}).style("cursor",function(lr){return Aj[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,H=A.range,N=k.range,B=S.range,Y=D.range,O=P.range,U=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=U.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 V=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=U,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=B,e.timeTuesday=A,e.timeTuesdays=H,e.timeWednesday=k,e.timeWednesdays=N,e.timeWeek=b,e.timeWeeks=R,e.timeYear=W,e.timeYears=V,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:U,e:U,f:re,g:ge,G:ke,H:X,I:W,j:V,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:vl,B:oi,c:ca,d:S,e:S,f:N,g:b,G:w,H:P,I:P,j:D,L:H,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,"%":B};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 vl(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 H(ae,pe,Re){var Oe=o.exec(pe.slice(Re,Re+3));return Oe?(ae.L=+Oe[0],Re+Oe[0].length):-1}function N(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 B(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 U(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 V(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=[],H=0,N=k[0],B=0;R>0&&N>0&&(B+N+1>P&&(N=Math.max(1,P-B)),F.push(D.substring(R-=N,R+N)),!((B+=N+1)>P));)N=k[H=(H+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,H=P.length;return F===H?P:F>H?P+new Array(F-H+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)),H=k.percent===void 0?"%":k.percent+"",N=k.minus===void 0?"-":k.minus+"",B=k.nan===void 0?"NaN":k.nan+"";function Y(U){U=o(U);var X=U.fill,W=U.align,V=U.sign,$=U.symbol,re=U.zero,se=U.width,oe=U.comma,K=U.precision,me=U.trim,ie=U.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)?H:"",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)?B:ce(Math.abs(ge),K),me&&(ge=u(ge)),Ae&&+ge==0&&V!=="+"&&(Ae=!1),qe=(Ae?V==="("?V:N:V==="-"||V==="("?"":V)+qe,ke=(ie==="s"?y[8+f/3]:"")+ke+(Ae&&V==="("?")":""),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 U+""},Ne}function O(U,X){var W=Y((U=o(U),U.type="f",U)),V=Math.max(-8,Math.min(8,Math.floor(a(X)/3)))*3,$=Math.pow(10,-V),re=y[8+V/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((pTe,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((mTe,W9)=>{"use strict";var zj=X9();W9.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&zj(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Nt={};pt(Nt,{ALMOST_EQUAL:()=>eQ,BADNUM:()=>Dg,EPOCHJD:()=>Qj,FP_SAFE:()=>Fj,LOG_CLIP:()=>rQ,MINUS_SIGN:()=>tQ,ONEAVGMONTH:()=>Uj,ONEAVGQUARTER:()=>Oj,ONEAVGYEAR:()=>Ij,ONEDAY:()=>Wj,ONEHOUR:()=>Zj,ONEMAXMONTH:()=>Gj,ONEMAXQUARTER:()=>Hj,ONEMAXYEAR:()=>Nj,ONEMICROSEC:()=>jj,ONEMILLI:()=>Kj,ONEMIN:()=>Jj,ONEMINMONTH:()=>Vj,ONEMINQUARTER:()=>Yj,ONEMINYEAR:()=>Bj,ONESEC:()=>$j,ONEWEEK:()=>Xj});var Dg,Fj,Nj,Ij,Bj,Hj,Oj,Yj,Gj,Uj,Vj,Xj,Wj,Zj,Jj,$j,Kj,jj,Qj,eQ,rQ,tQ,Rt=Cr(()=>{"use strict";Dg=void 0,Fj=Number.MAX_VALUE*1e-4,Nj=316224e5,Ij=315576e5,Bj=31536e6,Hj=79488e5,Oj=78894e5,Yj=76896e5,Gj=26784e5,Uj=26298e5,Vj=24192e5,Xj=6048e5,Wj=864e5,Zj=36e5,Jj=6e4,$j=1e3,Kj=1,jj=.001,Qj=24405875e-1,eQ=1-1e-6,rQ=10,tQ="\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((yTe,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 aQ=Pg().decode,nQ=qs(),Eg=Array.isArray,iQ=ArrayBuffer,lQ=DataView;function $9(e){return iQ.isView(e)&&!(e instanceof lQ)}Ii.isTypedArray=$9;function Nd(e){return Eg(e)||$9(e)}Ii.isArrayOrTypedArray=Nd;function oQ(e){return!Nd(e[0])}Ii.isArray1D=oQ;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=sQ(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=aQ(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(),dQ=/^\w*$/,hQ=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 pQ=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,mQ=/^[^\.\[\]]+$/;ow.exports=function(e,r){for(;r;){var t=e.match(pQ);if(t)e=t[1];else if(e.match(mQ))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((wTe,uw)=>{"use strict";var yQ=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 yQ(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var vw=G((TTe,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;ogQ,modHalf:()=>xQ});function gQ(e,r){let t=e%r;return t<0?t+r:t}function xQ(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 bQ(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:()=>wQ,HOVERFONT:()=>AQ,HOVERFONTSIZE:()=>MQ,HOVERID:()=>LQ,HOVERMINTIME:()=>kQ,HOVERTEXTPAD:()=>TQ,YANGLE:()=>_Q});var _Q,wQ,TQ,MQ,AQ,kQ,LQ,qc=Cr(()=>{"use strict";_Q=60,wQ=6,TQ=3,MQ=13,AQ="Arial, sans-serif",kQ=50,LQ="-hover"});var p0=G((kTe,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((LTe,gw)=>{"use strict";var CQ=Ta(),Dc=p0().hoverlabel,Pc=At().extendFlat;gw.exports={hoverlabel:{bgcolor:Pc({},Dc.bgcolor,{arrayOk:!0}),bordercolor:Pc({},Dc.bordercolor,{arrayOk:!0}),font:CQ({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((CTe,xw)=>{"use strict";var SQ=Ta(),qQ=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:SQ({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:qQ.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var cM=G((zTe,fM)=>{var S3=Object.defineProperty,DQ=Object.getOwnPropertyDescriptor,PQ=Object.getOwnPropertyNames,EQ=Object.prototype.hasOwnProperty,RQ=(e,r)=>{for(var t in r)S3(e,t,{get:r[t],enumerable:!0})},zQ=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of PQ(r))!EQ.call(e,n)&&n!==t&&S3(e,n,{get:()=>r[n],enumerable:!(a=DQ(r,n))||a.enumerable});return e},FQ=e=>zQ(S3({},"__esModule",{value:!0}),e),Sw={};RQ(Sw,{a98:()=>Lae,average:()=>Pee,averageAngle:()=>yl,averageNumber:()=>Xw,blend:()=>Dte,blerp:()=>u3,clampChroma:()=>Kte,clampGamut:()=>t5,clampRgb:()=>$te,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:()=>Cae,differenceCie76:()=>Aee,differenceCie94:()=>kee,differenceCiede2000:()=>Lee,differenceCmc:()=>Cee,differenceEuclidean:()=>b0,differenceHueChroma:()=>Hc,differenceHueNaive:()=>Vw,differenceHueSaturation:()=>Bc,differenceHyab:()=>See,differenceItp:()=>Dee,differenceKotsarenkoRamos:()=>qee,displayable:()=>r5,dlab:()=>Sae,dlch:()=>qae,easingGamma:()=>iM,easingInOutSine:()=>Aae,easingMidpoint:()=>jT,easingSmootherstep:()=>Tae,easingSmoothstep:()=>bae,easingSmoothstepInverse:()=>_ae,filterBrightness:()=>lae,filterContrast:()=>oae,filterDeficiencyDeuter:()=>gae,filterDeficiencyProt:()=>yae,filterDeficiencyTrit:()=>xae,filterGrayscale:()=>fae,filterHueRotate:()=>vae,filterInvert:()=>cae,filterSaturate:()=>uae,filterSepia:()=>sae,fixupAlpha:()=>Aa,fixupHueDecreasing:()=>bee,fixupHueIncreasing:()=>xee,fixupHueLonger:()=>gee,fixupHueShorter:()=>ml,formatCss:()=>Mte,formatHex:()=>Ate,formatHex8:()=>kte,formatHsl:()=>Cte,formatRgb:()=>Lte,getMode:()=>cn,hsi:()=>Dae,hsl:()=>Pae,hsv:()=>Eae,hwb:()=>Rae,inGamut:()=>fh,interpolate:()=>Hte,interpolateWith:()=>eM,interpolateWithPremultipliedAlpha:()=>Ote,interpolatorLinear:()=>xr,interpolatorPiecewise:()=>Ow,interpolatorSplineBasis:()=>tM,interpolatorSplineBasisClosed:()=>aM,interpolatorSplineMonotone:()=>Ute,interpolatorSplineMonotone2:()=>Vte,interpolatorSplineMonotoneClosed:()=>Xte,interpolatorSplineNatural:()=>Yte,interpolatorSplineNaturalClosed:()=>Gte,itp:()=>zae,jab:()=>Fae,jch:()=>Nae,lab:()=>Iae,lab65:()=>Bae,lch:()=>Hae,lch65:()=>Oae,lchuv:()=>Yae,lerp:()=>Es,lrgb:()=>Gae,luv:()=>Uae,mapAlphaDivide:()=>KT,mapAlphaMultiply:()=>$T,mapTransferGamma:()=>Fte,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:()=>eae,okhsl:()=>Vae,okhsv:()=>Xae,oklab:()=>Wae,oklch:()=>Zae,p3:()=>Jae,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:()=>$ae,random:()=>zte,rec2020:()=>Kae,removeParser:()=>$Q,rgb:()=>jae,round:()=>XT,samples:()=>Jte,serializeHex:()=>K3,serializeHex8:()=>WT,serializeHsl:()=>JT,serializeRgb:()=>ZT,toGamut:()=>jte,trilerp:()=>oee,unlerp:()=>lee,useMode:()=>mt,useParser:()=>Fw,wcagContrast:()=>kae,wcagLuminance:()=>C3,xyb:()=>Qae,xyz50:()=>ene,xyz65:()=>rne,yiq:()=>tne});fM.exports=FQ(Sw);var NQ=(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=NQ,IQ={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=IQ,BQ=e=>qw(Dw[e.toLowerCase()],6),Pw=BQ,HQ=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,OQ=e=>{let r;return(r=e.match(HQ))?qw(parseInt(r[1],16),r[1].length):void 0},Ew=OQ,Dn="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",STe=`(?:${Dn}|none)`,Fc=`${Dn}%`,qTe=`(?:${Dn}%|none)`,q3=`(?:${Dn}%|${Dn})`,YQ=`(?:${Dn}%|${Dn}|none)`,GQ=`(?:${Dn}(deg|grad|rad|turn)|${Dn})`,DTe=`(?:${Dn}(deg|grad|rad|turn)|${Dn}|none)`,g0="\\s*,\\s*",PTe=new RegExp("^"+YQ+"$"),UQ=new RegExp(`^rgba?\\(\\s*${Dn}${g0}${Dn}${g0}${Dn}\\s*(?:,\\s*${q3}\\s*)?\\)$`),VQ=new RegExp(`^rgba?\\(\\s*${Fc}${g0}${Fc}${g0}${Fc}\\s*(?:,\\s*${q3}\\s*)?\\)$`),XQ=e=>{let r={mode:"rgb"},t;if(t=e.match(UQ))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(VQ))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=XQ,WQ=(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=WQ,ZQ=(e="rgb")=>r=>(r=Bi(r,e))!==void 0?r.mode===e?r:pl[r.mode][e]?pl[r.mode][e](r):e==="rgb"?pl[r.mode].rgb(r):pl.rgb[e](pl[r.mode].rgb(r)):void 0,kt=ZQ,pl={},zw={},x0=[],D3={},JQ=e=>e,mt=e=>(pl[e.mode]=ct(ct({},pl[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{pl[r]||(pl[r]={}),pl[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=JQ)}),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)},$Q=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_]/,KQ=/[^\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 jQ={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*jQ[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!==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();})(); +`||r[Or]===" "||r[Or]===" ");)Or++;let n;if(Od(r)&&(n=Rc(r),n.type!==fr.Hue)){t.push({type:fr.Alpha,value:n});continue}if(s3(r)&&Vd(r)==="none"){t.push({type:fr.Alpha,value:{type:fr.None,value:void 0}});continue}return}if(/\d/.test(a)){Or--,t.push(Rc(r));continue}if(o3.test(a)){Or--,t.push(QQ(r));continue}return}return t}function ree(e){e._i=0;let r=e[e._i++];if(!r||r.type!==fr.Function||r.value!=="color"||(r=e[e._i++],r.type!==fr.Ident))return;let t=D3[r.value];if(!t)return;let a={mode:t},n=Nw(e,!1);if(!n)return;let i=cn(t).channels;for(let l=0,o,s;l4)){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 tee(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 aee=e=>{if(typeof e!="string")return;let r=eee(e),t=r?tee(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=iee,Es=(e,r,t)=>e+t*(r-e),lee=(e,r,t)=>(t-e)/(r-e),u3=(e,r,t,a,n,i)=>Es(Es(e,r,n),Es(t,a,n),i),oee=(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),see=e=>{let r=[];for(let t=0;tr=>{let t=see(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},uee={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=uee,Ig=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),fee=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=fee,Bg=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),cee=({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=cee,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)},vee=({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=vee,dee=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=dee,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},hee=({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=hee,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=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=pee,mee=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=mee,yee=e=>(e=e%360)<0?e+360:e,tn=yee,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),[]),ml=e=>eh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),gee=e=>eh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),xee=e=>eh(e,r=>r>=0?r:r+360),bee=e=>eh(e,r=>r<=0?r:r-360),Ua=[-.14861,1.78277,-.29227,-.90649,1.97294,0],_ee=Math.PI/180,wee=180/Math.PI,bw=Ua[3]*Ua[4],_w=Ua[1]*Ua[4],ww=Ua[1]*Ua[2]-Ua[0]*Ua[3],Tee=({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)*wee-120),a!==void 0&&(o.alpha=a),o},Gw=Tee,Mee=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*_ee,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=Mee,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))}},Aee=()=>b0("lab65"),kee=(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))}},Lee=(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,H=(b+M)/2,N;b*M===0?N=A+k:(N=(A+k)/2,N-=(Math.abs(A-k)>Math.PI)*Math.PI,N+=(N<0)*2*Math.PI);let B=Math.pow(F-50,2),Y=1-.17*Math.cos(N-Math.PI/6)+.24*Math.cos(2*N)+.32*Math.cos(3*N+Math.PI/30)-.2*Math.cos(4*N-63*Math.PI/180),O=1+.015*B/Math.sqrt(20+B),U=1+.045*H,X=1+.015*H*Y,W=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*N-275)/25,2)),V=2*Math.sqrt(Math.pow(H,7)/(Math.pow(H,7)+Math.pow(25,7))),$=-1*Math.sin(2*W)*V;return Math.sqrt(Math.pow(S/(e*O),2)+Math.pow(D/(r*U),2)+Math.pow(R/(t*X),2)+$*D/(r*U)*R/(t*X))}},Cee=(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))}},See=()=>{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)}},qee=()=>b0("yiq",[.5053,.299,.1957]),Dee=()=>b0("itp",[518400,129600,518400]),yl=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 Pee(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 Eee={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:ml},s:xr,l:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Bc},average:{h:yl}},Ww=Eee,Ree=({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=Ree,zee=({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=zee,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},ETe=Math.pow(29,3)/Math.pow(3,3),RTe=Math.pow(6,3)/Math.pow(29,3),Gg=e=>Math.pow(e,3)>Jw?Math.pow(e,3):(116*e-16)/Zw,Fee=({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=Fee,Nee=e=>_o(P3(e)),Oc=Nee,Ug=e=>e>Jw?Math.cbrt(e):(Zw*e+16)/116,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=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=Iee,Bee=e=>{let r=E3(bo(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Yc=Bee,Xd=1,$w=1,Ic=26/180*Math.PI,Wd=Math.cos(Ic),Zd=Math.sin(Ic),Kw=100/Math.log(139/100),Hee=({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=Hee,Oee=({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=Oee,Tw=e=>Jd(Ol(e,"dlch")),Mw=e=>Yl($d(e),"dlab"),Yee={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=Yee,Gee={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:ml},alpha:{use:xr,fixup:Aa}},difference:{h:Hc},average:{h:yl}},Qw=Gee;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}},Xee=Vee,Wee=new RegExp(`^hsla?\\(\\s*${GQ}${g0}${Fc}${g0}${Fc}\\s*(?:,\\s*${q3}\\s*)?\\)$`),Zee=e=>{let r=e.match(Wee);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=Xee(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=Zee;function Jee(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=Jee,$ee={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:ml},s:xr,l:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Bc},average:{h:yl}},R3=$ee;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 jee(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=jee,Qee={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:ml},w:xr,b:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Vw},average:{h:yl}},fT=Qee,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),ere=({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=ere,Zg=(e=0)=>Math.max(e*cT,0),rre=({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=rre,tre={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=tre,are=134.03437499999998,nre=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),are)},$g=(e=0)=>Math.max(e*203,0),ire=({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)-nre,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=ire,lre=134.03437499999998,Aw=16295499532821565e-27,Kg=e=>{if(e<0)return 0;let r=Math.pow(e,1/lre);return 1e4*Math.pow((th-r)/(nh*r-ah),1/rh)},jg=e=>e/203,ore=({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=ore,sre=e=>{let r=I3(bo(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},H3=sre,ure=e=>_o(B3(e)),O3=ure,fre={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=fre,cre=({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=cre,vre=({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=vre,dre={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:ml},c:xr,j:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Hc},average:{h:yl}},pT=dre,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,hre=({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=hre,pre=({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=pre,mre=e=>_0(lh(e)),G3=mre,yre=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=yre,e3=e=>e>Y3?Math.cbrt(e):(ih*e+16)/116,gre=({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=gre,xre=e=>{let r=oh(w0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},U3=xre;function bre(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=bre,_re={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=_re,wre=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=wre;function Tre(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=Tre,Mre={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:ml},c:xr,l:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Hc},average:{h:yl}},uh=Mre,Are=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=Are,kre=({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=kre,Lre=({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=Lre,bT=(e,r,t)=>4*e/(e+15*r+3*t),_T=(e,r,t)=>9*r/(e+15*r+3*t),Cre=bT(Ma.X,Ma.Y,Ma.Z),Sre=_T(Ma.X,Ma.Y,Ma.Z),qre=e=>e<=Y3?ih*e:116*Math.cbrt(e)-16,Dre=({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=qre(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-Cre),l=13*n*(l-Sre));let o={mode:"luv",l:n,u:i,v:l};return a!==void 0&&(o.alpha=a),o},Kd=Dre,Pre=(e,r,t)=>4*e/(e+15*r+3*t),Ere=(e,r,t)=>9*r/(e+15*r+3*t),Rre=Pre(Ma.X,Ma.Y,Ma.Z),zre=Ere(Ma.X,Ma.Y,Ma.Z),Fre=({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)+Rre,i=t/(13*e)+zre,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=Fre,Nre=e=>V3(Kd(w0(e))),Ire=e=>_0(jd(X3(e))),Bre={mode:"lchuv",toMode:{luv:X3,rgb:Ire},fromMode:{rgb:Nre,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:ml},c:xr,l:xr,alpha:{use:xr,fixup:Aa}},difference:{h:Hc},average:{h:yl}},wT=Bre,Hre=Et(ct({},Fs),{mode:"lrgb",toMode:{rgb:Is},fromMode:{rgb:Ns},parse:["srgb-linear"],serialize:"srgb-linear"}),TT=Hre,Ore={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=Ore,Yre=({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=Yre,Gre=e=>{let r=W3(Ns(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Gc=Gre,Ure=({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=Ure,Vre=e=>Is(T0(e)),Uc=Vre;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 Xre(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=Xre(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 Wre(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,H=4.0767416621*b-3.3077115913*M+.2309699292*A-1,N=4.0767416621*k-3.3077115913*S+.2309699292*D,B=4.0767416621*P-3.3077115913*R+.2309699292*F,Y=N/(N*N-.5*H*B),O=-H*Y,U=-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,V=X/(X*X-.5*U*W),$=-U*V,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,$=V>=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=Wre(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=Zre;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 Jre=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=Jre;function $re(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=$re,Kre=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=Kre;function jre(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=jre,Qre=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=Qre,ete=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=ete,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=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=rte,tte=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=tte,r3=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},ate=({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=ate,t3=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},nte=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=nte,ite=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=ite,kw=1.09929682680944,lte=.018053968510807,a3=e=>{let r=Math.abs(e);return r>lte?(Math.sign(e)||1)*(kw*Math.pow(r,.45)-(kw-1)):4.5*e},ote=({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=ote,Lw=1.09929682680944,ste=.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=ute,fte=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=fte,Rs=.0037930732552754493,zT=Math.cbrt(Rs),i3=e=>Math.cbrt(e)-zT,cte=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=cte,l3=e=>Math.pow(e+zT,3),vte=({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=vte,dte={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=dte,hte={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=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:"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=pte,mte=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=mte,yte={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=yte,gte=({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=gte,xte=({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=xte,bte={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=bte,_te=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,wte=(e=4)=>r=>typeof r=="number"?_te(r,e):r,XT=wte,zc=XT(2),Nc=e=>Math.max(0,Math.min(1,e||0)),zs=e=>Math.round(Nc(e)*255),$3=kt("rgb"),Tte=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))})`},Mte=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)},Ate=e=>K3($3(e)),kte=e=>WT($3(e)),Lte=e=>ZT($3(e)),Cte=e=>JT(Tte(e)),Ste={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},qte=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:Ste[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})})},Dte=qte,Pte=([e,r])=>e+Math.random()*(r-e),Ete=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),Rte=(e="rgb",r={})=>{let t=cn(e),a=Ete(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=Pte(a[i]||t.ranges[i])),n),{mode:e})},zte=Rte,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,Fte=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,Nte=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=Bte,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))}),Ite(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})}},Hte=(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},Ote=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},Yte=e=>tM(nM(e)),Gte=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]}},Ute=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)},Vte=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)},Xte=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)},Wte=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),iM=Wte,Zte=(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 $te(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 Kte(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 jte(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 Qte=(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]))},eae=Qte,a5=e=>Math.max(e,0),n5=e=>Math.max(Math.min(e,1),0),rae=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),tae=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]},aae=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]},nae=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]},iae=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)},oae=(e=1,r="rgb")=>{let t=a5(e);return Vc(j3(t,(1-t)/2),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")=>ch(nae(e),r,!0),cae=(e=1,r="rgb")=>{let t=n5(e);return Vc((a,n)=>n==="alpha"?a:rae(t,1-t,a),r,!0)},vae=(e=0,r="rgb")=>ch(iae(e),r,!0),dae=kt("rgb"),hae=[[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]],pae=[[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]],mae=[[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}=dae(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)}},yae=(e=1)=>i5(hae,e),gae=(e=1)=>i5(pae,e),xae=(e=1)=>i5(mae,e),bae=e=>e*e*(3-2*e),_ae=e=>.5-Math.sin(Math.asin(1-2*e)/3),wae=e=>e*e*e*(e*(e*6-15)+10),Tae=wae,Mae=e=>(1-Math.cos(e*Math.PI))/2,Aae=Mae;function C3(e){let r=kt("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function kae(e,r){let t=C3(e),a=C3(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var Lae=mt(Yw),Cae=mt(Ww),Sae=mt(jw),qae=mt(Qw),Dae=mt(tT),Pae=mt(R3),Eae=mt(N3),Rae=mt(fT),zae=mt(dT),Fae=mt(hT),Nae=mt(pT),Iae=mt(sh),Bae=mt(yT),Hae=mt(uh),Oae=mt(xT),Yae=mt(wT),Gae=mt(TT),Uae=mt(MT),Vae=mt(kT),Xae=mt(LT),Wae=mt(ST),Zae=mt(DT),Jae=mt(PT),$ae=mt(ET),Kae=mt(RT),jae=mt(Fs),Qae=mt(IT),ene=mt(BT),rne=mt(YT),tne=mt(VT)});var l5={};pt(l5,{default:()=>nne});var ane,nne,o5=Cr(()=>{"use strict";ane={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(" ")}},nne=ane});var wo=G((ITe,mM)=>{"use strict";var{format:ine,width:lne,height:one,scale:sne}=(o5(),Fe(l5)).default,vM=sne,{dflt:NTe}=vM,une=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:ine,filename:{valType:"string"},width:lne,height:one,scale:une},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((HTe,yM)=>{"use strict";var s5=Er(),fne=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;fne(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((GTe,LM)=>{"use strict";var{converter:xM,formatHex:cne,formatRgb:vne,wcagContrast:dne,wcagLuminance:hne}=cM(),{isArrayOrTypedArray:bM}=Sn(),{warn:pne}=To(),{background:Zc,defaultLine:h5,defaults:mne,lightLine:yne}=vi(),_M=xM("rgb"),gne=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,xne={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=>vne(TM(e)),bne=e=>cne(TM(e)),_ne=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&&pne(`Invalid color specifier: ${_ne(e)}. Defaulting to "#000"`),xne)},Wc=e=>Un(Et(ct({},Gt(e)),{alpha:1})),wne=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]),Tne=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}},Mne=(e,r)=>{let t=MM(e)?Tne(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},Ane=(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)})},kne=(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=gne(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)=>dne(Gt(e),Gt(r)),kM=e=>vh(e,Zc)>vh(e,h5),Lne=Un(Gt(Zc)),Cne=Un(Gt(h5)),Sne=(e,r,t)=>(Gt(e).alpha!==1&&(e=AM(e,Zc)),kM(e)?r?d5(e,r):Lne:t?d5(e,-t):Cne),qne=(e,r)=>{e.style({stroke:Wc(r),"stroke-opacity":Gt(r).alpha})},Dne=(e,r)=>{e.style({fill:Wc(r),"fill-opacity":Gt(r).alpha})},Pne=(e,r)=>!!(e&&r&&Wc(e)===Wc(r)),Ene=e=>wM(e)!==void 0,Rne=(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)}))},zne=(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})},Fne=(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},Nne=e=>Un(Gt(e)),Ine=e=>bne(Gt(e)).toUpperCase(),Bne=e=>{let r=Gt(e);return[vn(r.r)*255,vn(r.g)*255,vn(r.b)*255,vn(r.alpha)]},Hne=([e,r,t,a])=>Un({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),One=e=>{let r=Gt(e);return hne({mode:"rgb",r:vn(r.r),g:vn(r.g),b:vn(r.b)})};LM.exports={addOpacity:Ane,adjustLightness:d5,background:Zc,brighten:Rne,combine:AM,contrast:Sne,defaultLine:h5,defaults:mne,equals:Pne,fill:Dne,hexString:Ine,interpolate:kne,isChannelArray:MM,isDark:kM,isValid:Ene,lightLine:yne,luminosity:One,mix:zne,mostReadable:Fne,normalize:Mne,opacity:wne,parse:Gt,rgb:Wc,rgbaArray:Bne,rgbaArrayToString:Hne,rgbaString:Nne,stroke:qne,wcagContrast:vh}});var Hs=G((VTe,qM)=>{"use strict";var Yne=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 Gne(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;tWne,HIDE_PLACEHOLDER:()=>Xne,SHOW_PLACEHOLDER:()=>Vne});var Vne,Xne,Wne,k0=Cr(()=>{"use strict";Vne=100,Xne=1e3,Wne=.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,Zne=qn(),Jne=Hs(),y5=kr(),$ne=(k0(),Fe(A0)).DESELECTDIM,C0=Id(),PM=(L0(),Fe(Jc)).counter,Kne=(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(Jne.get(e,t))}},angle:{coerceFunction:function(e,r,t){Mo(e)&&(e=Ao(e)),e==="auto"?r.set("auto"):m5(e)?r.set(Kne(+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((ZTe,zM)=>{"use strict";zM.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{FM.exports=jne;function jne(){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(($Te,IM)=>{IM.exports=Qne;function Qne(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((KTe,HM)=>{HM.exports=eie;function eie(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((jTe,YM)=>{YM.exports=rie;function rie(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((QTe,GM)=>{GM.exports=tie;function tie(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((eMe,VM)=>{VM.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],_=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,H=v*x-h*y,N=_*H-w*F+b*R+M*P-A*D+k*S;return N?(N=1/N,e[0]=(o*H-s*F+u*R)*N,e[1]=(n*F-a*H-i*R)*N,e[2]=(m*k-y*A+x*M)*N,e[3]=(v*A-c*k-h*M)*N,e[4]=(s*P-l*H-u*D)*N,e[5]=(t*H-n*P+i*D)*N,e[6]=(y*b-p*k-x*w)*N,e[7]=(f*k-v*b+h*w)*N,e[8]=(l*F-o*P+u*S)*N,e[9]=(a*P-t*F-i*S)*N,e[10]=(p*A-m*b+x*_)*N,e[11]=(c*b-f*A-h*_)*N,e[12]=(o*D-l*R-s*S)*N,e[13]=(t*R-a*D+n*S)*N,e[14]=(m*w-p*M-y*_)*N,e[15]=(f*M-c*w+v*_)*N,e):null}});var ZM=G((rMe,WM)=>{WM.exports=nie;function nie(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((tMe,JM)=>{JM.exports=iie;function iie(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((aMe,KM)=>{KM.exports=lie;function lie(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((nMe,QM)=>{QM.exports=oie;function oie(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((iMe,rA)=>{rA.exports=sie;function sie(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((lMe,aA)=>{aA.exports=uie;function uie(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,H,N,B;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,H=n*l*f+i*s,N=i*l*f-n*s,B=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*H+m*N+w*B,e[9]=v*H+y*N+b*B,e[10]=h*H+x*N+M*B,e[11]=p*H+_*N+A*B,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var lA=G((oMe,iA)=>{iA.exports=fie;function fie(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((sMe,oA)=>{oA.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[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((uMe,uA)=>{uA.exports=vie;function vie(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((fMe,cA)=>{cA.exports=die;function die(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((cMe,dA)=>{dA.exports=hie;function hie(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((vMe,pA)=>{pA.exports=pie;function pie(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((dMe,yA)=>{yA.exports=mie;function mie(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((hMe,xA)=>{xA.exports=yie;function yie(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((pMe,_A)=>{_A.exports=gie;function gie(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((mMe,TA)=>{TA.exports=xie;function xie(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((yMe,AA)=>{AA.exports=bie;function bie(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((gMe,LA)=>{LA.exports=_ie;function _ie(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((xMe,SA)=>{SA.exports=wie;function wie(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((bMe,DA)=>{DA.exports=Tie;function Tie(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((_Me,EA)=>{EA.exports=Mie;function Mie(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((wMe,zA)=>{var Aie=x5();zA.exports=kie;function kie(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?Aie(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((TMe,NA)=>{NA.exports=Lie;function Lie(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((MMe,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 Cie=b5();aa.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var Sie=Er(),HA=To(),qie=mh(),Die=b5();function Pie(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 Eie(e){var r=Sie.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 Rie(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 zie(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&OA(t)}function Fie(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 Nie(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=qie.convertCssMatrix(n);t=Die.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=[];Iie(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Iie(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Bie(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}VA.exports={getGraphDiv:Pie,isPlotDiv:Eie,removeElement:OA,addStyleRule:Rie,addRelatedStyleRule:YA,deleteRelatedStyleRule:zie,setStyleOnHover:Fie,getFullTransformMatrix:Nie,getElementTransformMatrix:GA,getElementAndAncestors:UA,equalDomRects:Bie}});var Kc=G((LMe,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((CMe,QA)=>{"use strict";var ZA=At().extendFlat,Hie=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"]},Oie=JA.flags.slice().concat(["fullReplot"]),Yie=$A.flags.slice().concat("layoutReplot");QA.exports={traces:JA,layout:$A,traceFlags:function(){return WA(Oie)},layoutFlags:function(){return WA(Yie)},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:()=>Uie,FORMAT_LINK:()=>Gie});var Gie,Uie,T5=Cr(()=>{"use strict";Gie="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",Uie="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Vn=G(S0=>{"use strict";var{DATE_FORMAT_LINK:Vie,FORMAT_LINK:Xie}=(T5(),Fe(w5)),Wie=["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 Zie({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}".`,Xie,"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}".`,Vie,"for details on the date formatting syntax.",Wie].join(" ")}S0.templateFormatStringDescription=Zie;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((PMe,ik)=>{"use strict";function ko(e,r){return r?r.d2l(e):e}function ek(e,r){return r?r.l2d(e):e}function Jie(e){return e.x0}function $ie(e){return e.x1}function Kie(e){return e.y0}function jie(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 Qie(e,r){return Math.abs(yh(e,r))}function ele(e,r,t){return Math.abs(gh(e,r,t))}function rle(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 tle(e,r){return ek((ko(e.x1,r)+tk(e)+ko(e.x0,r)+rk(e))/2,r)}function ale(e,r,t){return ek((ko(e.y1,t)+nk(e)+ko(e.y0,t)+ak(e))/2,t)}function nle(e,r,t){return e.type!=="line"?void 0:gh(e,r,t)/yh(e,r)}var ile=["x0","x1","y0","y1","dy","height","ycenter"],lle=["x0","x1","y0","y1","dx","width","xcenter"];ik.exports={x0:Jie,x1:$ie,y0:Kie,y1:jie,slope:nle,dx:yh,dy:gh,width:Qie,height:ele,length:rle,xcenter:tle,ycenter:ale,simpleXVariables:ile,simpleYVariables:lle}});var sk=G((EMe,ok)=>{"use strict";var ole=Oi().overrideAll,Ys=qn(),lk=Ta(),sle=Yi().dash,Lo=At().extendFlat,{shapeTexttemplateAttrs:ule,templatefallbackAttrs:fle}=Vn(),cle=xh();ok.exports=ole({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({},sle,{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:ule({newshape:!0},{keys:Object.keys(cle)}),texttemplatefallback:fle({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((RMe,uk)=>{"use strict";var vle=Yi().dash,dle=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:dle({},vle,{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((zMe,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((FMe,pk)=>{"use strict";var M5=Ta(),hle=Kc(),_h=vi(),vk=sk(),dk=fk(),ple=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(ple({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({},hle.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(),BMe=$c().addStyleRule,xk=At(),mle=qn(),yle=q0(),gle=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 Tle=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,Mle=/^\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,Ale=/^\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=kle(e,!!r);if(r<2)return t;var a=na.dateTime2ms(t,e);return a+=En*(r-1),na.ms2DateTime(a,0,e)};function kle(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?Ale:Mle);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=Tle("%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 Lle=/%\d?f/g,Cle=/%h/g,Sle={1:"1",2:"1",3:"2",4:"2"};function Ck(e,r,t,a){e=e.replace(Lle,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(Cle,function(){return Sle[t("%q")(n)]}),Ul(a))try{e=Gl.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var qle=[59,59.9,59.99,59.999,59.9999];function Dle(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),qle[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 Dle(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 Ple=Gr(),Ele=To(),Rle=C5(),zle=(Rt(),Fe(Nt)).BADNUM,S5=1e-9;Vl.findBin=function(e,r,t){if(Ple(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?Fle:Nle:s=t?Ble:Ile,e+=l*S5*(t?-1:1)*(l>=0?1:-1);a90&&Ele.log("Long binary search..."),a-1};function Fle(e,r){return er}function Ble(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]===zle;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||Rle;for(var t=1/0,a,n=0;nOle});function Hle(e){return Object.keys(e).sort()}var Ole,P5=Cr(()=>{"use strict";Ole=Hle});var Rk=G(ia=>{"use strict";var ev=Gr(),Yle=Sn().isArrayOrTypedArray;ia.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),ev(r)||(r=!1),Yle(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((VMe,Ik)=>{"use strict";var zk=(h0(),Fe(d0)),E5=zk.mod,Gle=zk.modHalf,rv=Math.PI,qo=2*rv;function Ule(e){return e/180*rv}function Vle(e){return e/rv*180}function R5(e){return Math.abs(e[1]-e[0])>qo-1e-14}function Fk(e,r){return Gle(r-e,qo)}function Xle(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 Wle(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((JMe,Vk)=>{"use strict";Vk.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var Wk=G(($Me,Sh)=>{"use strict";Sh.exports=I5;Sh.exports.isMobile=I5;Sh.exports.default=I5;var Kle=/(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,jle=/CrOS/,Qle=/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=Kle.test(r)&&!jle.test(r)||!!e.tablet&&Qle.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((KMe,Zk)=>{"use strict";var eoe=Gr(),roe=Wk();Zk.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=toe(),typeof t!="string")return!0;var a=roe({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(eoe(u)&&(u=+u),u>=13)return!0}}}return a};function toe(){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((jMe,$k)=>{"use strict";var aoe=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]=aoe.select(this)}),n}});var Qk=G((QMe,jk)=>{"use strict";var noe=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=noe.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var rL=G((eAe,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=ooe(r)?loe:ioe,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:()=>foe});function uoe(e){return typeof e=="string"&&(e=e.replace(soe,"")),(0,lL.default)(e)?Number(e):void 0}var lL,soe,foe,sL=Cr(()=>{"use strict";lL=N9(Gr());Rt();soe=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;foe=uoe});var cL=G((nAe,fL)=>{"use strict";var coe=/<[^>]*>/g,voe=/[\p{S}\p{P}]/gu,doe=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,hoe=/�/g,poe=/\s+/g,qh="-",uL=qh.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),moe=new RegExp(uL+"{3,}","g"),yoe=new RegExp(uL+"$","g"),goe=60;function xoe(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}fL.exports=function(r,t=goe){var a=xoe(r!=null?r:"").replace(hoe,"").replace(coe," ").replace(voe,n=>n===qh?n:"").toLowerCase().trim().replace(poe,qh).replace(doe,"").replace(moe,qh);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(yoe,"")}});var Se=G((iAe,TL)=>{"use strict";var av=Er(),boe=c0().utcFormat,_oe=qg().format,yL=Gr(),gL=(Rt(),Fe(Nt)),xL=gL.FP_SAFE,woe=-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=_oe(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 gl=Bk();ve.deg2rad=gl.deg2rad;ve.rad2deg=gl.rad2deg;ve.angleDelta=gl.angleDelta;ve.angleDist=gl.angleDist;ve.isFullCircle=gl.isFullCircle;ve.isAngleInsideSector=gl.isAngleInsideSector;ve.isPtInsideSector=gl.isPtInsideSector;ve.pathArc=gl.pathArc;ve.pathSector=gl.pathSector;ve.pathAnnulus=gl.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 Toe=(L0(),Fe(Jc));ve.counterRegex=Toe.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=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;nkoe.test(window.navigator.userAgent);var Loe=/Firefox\/(\d+)\.\d+/;ve.getFirefoxVersion=function(){var e=Loe.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 qoe={max:10,count:0,name:"hovertemplate"};ve.hovertemplateString=e=>O5(Et(ct({},e),{opts:qoe}));var Doe={max:10,count:0,name:"texttemplate"};ve.texttemplateString=e=>O5(Et(ct({},e),{opts:Doe}));var Poe=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Eoe(e){var r=e.match(Poe);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Roe={max:10,count:0,name:"texttemplate",parseMultDiv:!0};ve.texttemplateStringForShapes=e=>O5(Et(ct({},e),{opts:Roe}));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=Eoe(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(),zoe=mL!==null&&mL<86;ve.getPositionFromD3Event=function(){return zoe?[av.event.layerX,av.event.layerY]:[av.event.offsetX,av.event.offsetY]}});var kL=G(()=>{"use strict";var Foe=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"),Foe.addStyleRule(AL,ML[Y5]);var AL,Y5});var G5=G((uAe,LL)=>{LL.exports=!0});var V5=G((fAe,CL)=>{"use strict";var Noe=G5(),U5;typeof window.matchMedia=="function"?U5=!window.matchMedia("(hover: none)").matches:U5=Noe;CL.exports=U5});var Fh=G((cAe,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 Ioe(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=Yoe;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,Ioe(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 Boe(){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=Boe.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():Hoe(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?Ooe(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,Uoe={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(),Voe=wo().dfltConfig;function Xoe(e,r){for(var t=[],a,n=0;nVoe.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(),Woe=Z5(),Zoe=Kc(),Joe=wo().configAttributes,UL=Oi(),Vi=iv.extendDeepAll,I0=iv.isPlainObject,$oe=iv.isArrayOrTypedArray,Bh=iv.nestedProperty,Koe=iv.valObjectMeta,$5="_isSubplotObj",Hh="_isLinkedToArray",joe="_arrayAttrRegexps",XL="_deprecated",K5=[$5,Hh,joe,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]=ese(r)}),{defs:{valObjects:Koe,metaKeys:K5.concat(["description","role","editType","impliedEdits"]),editType:{traces:UL.traces,layout:UL.layout},impliedEdits:{}},traces:e,layout:rse(),frames:tse(),animation:B0(Zoe),config:B0(Joe)}};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)$oe(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 ese(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 rse(){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(),ose=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,{},ose,"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:()=>vse,AX_NAME_PATTERN:()=>dse,DFLTRANGEX:()=>_se,DFLTRANGEY:()=>wse,DRAGGERSIZE:()=>xse,HOUR_PATTERN:()=>pse,MINDRAG:()=>yse,MINZOOM:()=>gse,REDRAWDELAY:()=>bse,SUBPLOT_PATTERN:()=>hse,WEEKDAY_PATTERN:()=>mse,attrRegex:()=>use,clipOnAxisFalseQuery:()=>Mse,idRegex:()=>sse,layerValue2layerClass:()=>Ase,traceLayerClasses:()=>Tse,xAxisMatch:()=>fse,yAxisMatch:()=>cse,zindexSeparator:()=>kse});var sse,use,fse,cse,vse,dse,hse,pse,mse,yse,gse,xse,bse,_se,wse,Tse,Mse,Ase,kse,La=Cr(()=>{"use strict";L0();sse={x:Os("x","( domain)?"),y:Os("y","( domain)?")},use=Os("[xy]axis"),fse=Os("xaxis"),cse=Os("yaxis"),vse=/^[xyz][0-9]*( domain)?$/,dse=/^[xyz]axis[0-9]*$/,hse=/^x([0-9]*)y([0-9]*)$/,pse="hour",mse="day of week",yse=8,gse=20,xse=20,bse=50,_se=[-1,6],wse=[-1,4],Tse=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Mse=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],Ase={"above traces":"above","below traces":"below"},kse="z"});var va=G(Rn=>{"use strict";var Lse=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 Cse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Sse(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}KL.exports={clearOutlineControllers:Cse,clearOutline:Sse}});var Oh=G((bAe,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(),_Ae=(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 qse=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((AAe,vC)=>{"use strict";var MAe=Er(),Pse=c0().timeFormatLocale,Ese=qg().formatLocale,lv=Gr(),Rse=Pg(),zse=Mc().version,jr=Ar(),Fse=H0(),Nse=yt(),vr=Se(),Ise=kr(),aC=(Rt(),Fe(Nt)).BADNUM,zn=va(),Bse=Ro().clearOutline,Hse=Oh(),tx=Kc(),Ose=Z5(),Yse=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=zse;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 Gse=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Use=["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,Gse);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=Wse(v,n.separators),n._extraFormat=iC(e,Use),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var w=n._subplots=Xse(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Vse(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")),H=!!(n._has&&n._has("cartesian")),N=F,B=H;N&&!B?a._bgLayer.remove():B&&!N&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&Bse({_fullLayout:a}),Zse(o,n),nC(n,a),jr.getComponentMethod("colorscale","crossTraceDefaults")(o,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var Y=n._tracePreGUI,O={},U;for(U in Y)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,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 $se(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,H=P.size,N=R.val,B=R.size,Y=t-l.r-l.l,O=a-l.t-l.b;for(var U in v){if(lv(H)&&v[U].r){var X=v[U].r.val,W=v[U].r.size;if(X>F){var V=(H*X+(W-Y)*F)/(X-F),$=(W*(1-F)+(H-Y)*(1-X))/(X-F);V+$>s+u&&(s=V,u=$)}}if(lv(B)&&v[U].t){var re=v[U].t.val,se=v[U].t.size;if(re>N){var oe=(B*re+(se-O)*N)/(re-N),K=(se*(1-N)+(B-O)*(1-re))/(re-N);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)||$se(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)?Rse.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:()=>tue,xlink:()=>hC,xmlns:()=>rue});var rue,dC,hC,tue,$s=Cr(()=>{"use strict";rue="http://www.w3.org/2000/xmlns/",dC="http://www.w3.org/2000/svg",hC="http://www.w3.org/1999/xlink",tue={xmlns:dC,"xmlns:xlink":hC}});var Va={};pt(Va,{CAP_SHIFT:()=>oue,FROM_BL:()=>aue,FROM_BR:()=>iue,FROM_TL:()=>nue,LINE_SPACING:()=>lue,MID_SHIFT:()=>sue,OPPOSITE_SIDE:()=>uue});var aue,nue,iue,lue,oue,sue,uue,Xa=Cr(()=>{"use strict";aue={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},nue={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},iue={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},lue=1.3,oue=.7,sue=.35,uue={left:"right",right:"left",top:"bottom",bottom:"top"}});var ba=G(dn=>{"use strict";var $t=Er(),pi=Se(),fue=pi.strTranslate,ax=($s(),Fe(Js)),cue=(Xa(),Fe(Va)).LINE_SPACING,vue=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,lx=e=>e?e.match(vue):null;dn.matchTex=lx;var due=e=>{var r=lx(e);return!!r&&!r[1]&&!r[3]};dn.isPureTex=due;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]+")"+fue(-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 hue(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&&!gue()&&(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=Cue(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");xue(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()),hue(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 pue=/(<|<|<)/g,mue=/(>|>|>)/g;function yue(e){return e.replace(pue,"\\lt ").replace(mue,"\\gt ")}var nx=null,_C=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,pC=!1,mC=!1;function gue(){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 xue(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=yue(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"},bue={sub:"0.3em",sup:"-0.6em"},_ue={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,wue=//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,Tue=/(^|[\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 Mue=/(^|;)\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 Aue={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},kue=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Xh(e){return e.replace(kue,function(r,t){var a;return t.charAt(0)==="#"?a=Lue(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=Aue[t],a||r})}dn.convertEntities=Xh;function Lue(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 Cue(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*cue+"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=wue.test(r);f?l():(n=e,a=[{node:e}]);for(var c=r.split(ox),v=0;v{"use strict";var Sue=Er(),sv=Gr(),Wh=Se(),js=kr(),que=Hs().isValid;function Due(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)),Eue=EC.FORMAT_LINK,Rue=EC.DATE_FORMAT_LINK;function zue(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: "+Eue+"."].join(" ")}function RC(e,r){return fx(e,r)+[" And for dates see: "+Rue+".","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:zue,descriptionOnlyNumbers:fx,descriptionWithDates:RC}});var Zn=G((qAe,jC)=>{"use strict";var FC=Ta(),G0=vi(),KC=Yi().dash,vx=At().extendFlat,NC=yt().templatedArray,SAe=Vn().templateFormatStringDescription,IC=Xi().descriptionWithDates,Fue=(Rt(),Fe(Nt)).ONEDAY,xl=(La(),Fe(ka)),Nue=xl.HOUR_PATTERN,Iue=xl.WEEKDAY_PATTERN,cx={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Bue=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:[xl.idRegex.x.toString(),xl.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:[xl.idRegex.x.toString(),xl.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:[Iue,Nue,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Fue},editType:"calc"}),tickmode:Bue,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",xl.idRegex.x.toString(),xl.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",xl.idRegex.x.toString(),xl.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"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},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((DAe,eS)=>{"use strict";var Ct=Zn(),QC=Ta(),dx=At().extendFlat,Hue=Oi().overrideAll;eS.exports=Hue({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((EAe,tS)=>{"use strict";var Oue=Zh(),Yue=(L0(),Fe(Jc)).counter,Gue=(P5(),Fe(D5)).default,rS=Hs().scales,PAe=Gue(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=Oue),t.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Yue("coloraxis"),dflt:null,editType:"calc"}),k}});var px=G((RAe,aS)=>{"use strict";var Uue=At().extendFlat,Vue=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:Uue({_isSubplotObj:!0,editType:"calc"},Vue("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var mx=G((zAe,nS)=>{"use strict";var Xue=Se();nS.exports=function(r){return Xue.isPlainObject(r.colorbar)}});var xx=G(gx=>{"use strict";var yx=Gr(),iS=Se(),lS=(Rt(),Fe(Nt)),Wue=lS.ONEDAY,Zue=lS.ONEWEEK;gx.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Wue: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%Zue===0?1:0));if(!(a==="D1"||a==="D2"))return yx(e)?Number(e):0}});var $h=G((NAe,sS)=>{"use strict";var oS=xx(),Jue=Se().isArrayOrTypedArray,$ue=Sn().isTypedArraySpec,Kue=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 $ue(M)&&(M=Kue(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;Jue(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((IAe,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((BAe,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((HAe,vS)=>{"use strict";var jh=Se(),jue=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=jue.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var wx=Se(),Que=kr().contrast,dS=Zn(),e0e=_x(),r0e=mi();hS.exports=function(r,t,a,n,i){i||(i={});var l=a("labelalias");wx.isPlainObject(l)||delete t.labelalias;var o=e0e(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?Que(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");r0e(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:t0e}),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 t0e(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((YAe,pS)=>{"use strict";var a0e=_x();pS.exports=function(r,t,a,n,i){i||(i={});var l=i.tickSuffixDflt,o=a0e(r),s=a("tickprefix");s&&a("showtickprefix",o);var u=a("ticksuffix",l);u&&a("showticksuffix",o)}});var Tx=G((GAe,mS)=>{"use strict";var zo=Se(),n0e=yt(),i0e=$h(),l0e=Kh(),o0e=Qh(),s0e=e1(),u0e=Zh();mS.exports=function(r,t,a){var n=n0e.newContainer(t,"colorbar"),i=r.colorbar||{};function l(R,F){return zo.coerce(i,n,u0e,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"),i0e(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"),s0e(i,n,l,"linear",S),o0e(i,n,l,"linear",S),l0e(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((UAe,xS)=>{"use strict";var yS=Gr(),Ax=Se(),f0e=mx(),c0e=Tx(),gS=Hs().isValid,v0e=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=v0e(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=f0e(u));var D=n(l+"showscale",S);D&&(l&&c&&(f._template=c),c0e(u,f,a))}}});var TS=G((VAe,wS)=>{"use strict";var bS=Se(),d0e=yt(),_S=px(),h0e=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=d0e.newContainer(t,s,"coloraxis"),l._name=s,h0e(i,l,t,o,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var p0e=Se(),m0e=Wn().hasColorscale,y0e=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?p0e.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var h=y0e(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(),g0e=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=g0e(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((ZAe,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((JAe,qS)=>{"use strict";var SS=Se(),x0e=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)||x0e(r.size))}}});var PS=G(($Ae,DS)=>{"use strict";var b0e=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 b0e(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},M0e=/([astvzqmhlc])([^astvzqmhlc]*)/gi,A0e=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function k0e(e){let r=[];return e.replace(M0e,(t,a,n)=>{let i=a.toLowerCase(),l=a,o=L0e(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 C0e=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=C0e(t),s="",u=0;u{"use strict";var Ca=Er(),ut=Se(),S0e=ut.numberFormat,No=Gr(),a1=Ar(),_a=kr(),q0e=Lx(),dv=ut.strTranslate,n1=ba(),D0e=($s(),Fe(Js)),P0e=(Xa(),Fe(Va)),E0e=P0e.LINE_SPACING,jS=(k0(),Fe(A0)).DESELECTDIM,R0e=Jn(),z0e=PS(),F0e=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(I0e(f))),s&&e.style("text-shadow",s==="auto"?n1.makeTextShadow(_a.contrast(i)):Ex(s)),u&&e.style("text-decoration-line",Ex(B0e(u)))};function Ex(e){return e==="none"?void 0:e}var N0e={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function I0e(e){return N0e[e]}function B0e(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 H0e=er.symbolNames.length,O0e="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>=H0e||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?O0e:"")}var US=S0e("~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),H=b.fgopacity,N=M(b.size,e.i,8),B=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,N,B,e.mcc,b.fillmode,F,R,H)}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=R0e.isBubble(e)?z0e(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={};F0e(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(D0e.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,U0e=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>=U0e&&(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 V0e=/\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(V0e,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var X0e=/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(X0e);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((rke,vq)=>{"use strict";var Z0=Er(),W0e=Gr(),Z0e=Jt(),Ox=Ar(),tu=Se(),uq=tu.strTranslate,i1=$r(),l1=kr(),J0=ba(),fq=(k0(),Fe(A0)),J0e=(Xa(),Fe(Va)).OPPOSITE_SIDE,cq=/ [XY][0-9]* /,Yx=1.6,Gx=1.6;function $0e(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,H=(n.title||{}).subtitle||{text:"",font:{}},N=(H.text||"").trim(),B=!1,Y=1,O=H.font,U=O.family,X=O.size,W=O.color,V=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&&(N===""?Y=0:Me(N,F)&&(ie||(N=""),Y=.2,B=!0)),t._meta?p=tu.templateString(p,t._meta):a._meta&&(p=tu.templateString(p,a._meta));var ue=p||N||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=N||ie;if(R&&(Ne=c.selectAll("text."+ge).data(qe?[0]:[]),Ne.enter().append("text"),Ne.text(N).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:U,weight:V,style:$,variant:re,textcase:se,shadow:K,lineposition:oe}).attr(mr).call(J0.convertToTspans,e)}return Z0e.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=J0e[s.side],tr=s.side==="left"||s.side==="top"?-1:1,te=W0e(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)}N?Ne.on(".opacity",null):(ze(Ne,F),B=!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",B),c}vq.exports={draw:$0e,SUBTITLE_PADDING_EM:Gx,SUBTITLE_PADDING_MATHJAX_EM:Yx}});var h1=G((tke,yq)=>{"use strict";var K0e=Er(),j0e=c0().utcFormat,gt=Se(),Q0e=gt.numberFormat,bl=Gr(),Io=gt.cleanNumber,efe=gt.ms2DateTime,dq=gt.dateTime2ms,_l=gt.ensureNumber,hq=gt.isArrayOrTypedArray,Bo=(Rt(),Fe(Nt)),o1=Bo.FP_SAFE,Zi=Bo.BADNUM,rfe=Bo.LOG_CLIP,tfe=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}var afe=2;function nfe(e,r){if(e<=0)return 0;let t=Math.max(0,r-afe);return e>t?t/e:1}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*rfe*Math.abs(A-k))}else return Zi}function l(b,M,A,k){if((k||{}).msUTC&&bl(b))return+b;var S=dq(b,A||r.calendar);if(S===Zi)if(bl(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 efe(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 H=r._B[D]||0;return isFinite(H)?p(b,r._m2,H):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:_l,r.l2c=r.type==="log"?pv:_l,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=_l,r.d2p=r.r2p=function(b){return r.l2p(Io(b))},r.p2d=r.p2r=x,r.cleanPos=_l):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=_l,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=_l):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=_l,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:_l(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=_l,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:_l(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(!bl(A[k]))if(!(D||P)&&bl(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,r.domainpad=A.domainpad}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";let F=(R?M.h:M.w)*(r.domain[1]-r.domain[0]),H=r.domainpad,N=0,B=0;if(H){N=(R?H.top:H.left)||0,B=(R?H.bottom:H.right)||0;let W=nfe(N+B,F);N*=W,B*=W}if(r._length=F-N-B,r._padStart=N,r._padEnd=B,R?(r._offset=M.t+(1-r.domain[1])*M.h+N,r._m=r._length/(D-P),r._b=-r._m*P):(r._offset=M.l+r.domain[0]*M.w+N,r._m=r._length/(P-D),r._b=-r._m*D),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var Y,O;if(r._rangebreaks=r.locateBreaks(Math.min(D,P),Math.max(D,P)),r._rangebreaks.length){for(Y=0;YP&&(U=!U),U&&r._rangebreaks.reverse();var X=U?-1:1;for(r._m2=X*r._length/(Math.abs(P-D)-r._lBreaks),r._B.push(-r._m2*(R?P:D)),Y=0;YS&&(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(),ife=(Rt(),Fe(Nt)).BADNUM,p1=Vx.isArrayOrTypedArray,lfe=Vx.isDateTime,ofe=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&&vfe(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 cfe(e,r){for(var t=e.length,a=bq(t),n=0,i=0,l={},o=0;on*2}function vfe(e){return p1(e[0])&&p1(e[1])}});var mv=G((nke,Sq)=>{"use strict";var dfe=Er(),Aq=Gr(),Ho=Se(),m1=(Rt(),Fe(Nt)).FP_SAFE,hfe=Ar(),pfe=$r(),kq=va(),mfe=kq.getFromId,yfe=kq.isLinked;Sq.exports={applyAutorangeOptions:Cq,getAutoRange:Wx,makePadFn:Zx,doAutoRange:xfe,findExtremes:bfe,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,U){return Math.max(O,o(U))}if(c===v){var H=c-1,N=c+1;if(x)if(c===0)n=[0,1];else{var B=(c>0?f:u).reduce(F,0),Y=c/(1-Math.min(.5,B/w));n=c>0?[0,Y]:[Y,0]}else _?n=[Math.max(0,H),Math.max(1,N)]:n=[H,N]}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,_fe)}function $x(e,r,t,a){Lq(e,r,t,a,wfe)}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 Tfe(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 Mfe(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=Tfe(t,r),a=Mfe(a,r),[t,a]}});var Qr=G((lke,Kq)=>{"use strict";var yi=Er(),la=Gr(),$0=Jt(),gv=Ar(),Lr=Se(),K0=Lr.strTranslate,au=ba(),Afe=hv(),xv=kr(),$n=$r(),kfe=Zn(),qq=xx(),ike=(La(),Fe(ka)),Za=(Rt(),Fe(Nt)),Lfe=Za.ONEMAXYEAR,b1=Za.ONEAVGYEAR,_1=Za.ONEMINYEAR,Cfe=Za.ONEMAXQUARTER,rb=Za.ONEAVGQUARTER,w1=Za.ONEMINQUARTER,Sfe=Za.ONEMAXMONTH,j0=Za.ONEAVGMONTH,T1=Za.ONEMINMONTH,Kn=Za.ONEWEEK,hn=Za.ONEDAY,Oo=hn/2,Tl=Za.ONEHOUR,bv=Za.ONEMIN,M1=Za.ONESEC,qfe=Za.ONEMILLI,Dfe=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,Pfe=L1.OPPOSITE_SIDE,A1=3,Ye=Kq.exports={};Ye.setConvert=h1();var Efe=Xx(),Ml=va(),Rfe=Ml.idSort,zfe=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 Yq=mv();Ye.getAutoRange=Yq.getAutoRange;Ye.findExtremes=Yq.findExtremes;var Ffe=1e-4;function sb(e){var r=(e[1]-e[0])*Ffe;return[e[0]-r,e[1]+r]}function Nfe(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<=Lfe?c=u:c=b1:t===rb&&f>=w1?u>=w1&&u<=Cfe?c=u:c=rb:f>=T1?u>=T1&&u<=Sfe?c=u:c=j0:t===Kn&&f>=Kn?c=Kn:f>=hn?c=hn:t===Oo&&f>=Oo?c=Oo:t===Tl&&f>=Tl&&(c=Tl);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=Gfe(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"),H=Ye.tickFirst(k,t);if(M){if(r._tmin=H,H=P:B<=P;B=Ye.tickIncrement(B,U,f,n)){if(M&&Y++,k.rangebreaks&&!f){if(B=v)break}if(y.length>h||B===N)break;N=B;var W={value:Nfe(B,X,U)};M?(B===H&&(W.first=!0),F&&B!==(B|0)&&(W.simpleLabel=!0),i>1&&Y%i&&(W.skipLabel=!0),y.push(W)):(W.minor=!0,x.push(W))}}function V(ke,Le){let Ce=Le.find(Ae=>Ae.value===ke.value);if(Ce!=null)return Ce;let ze=1e7;for(let Ae=0;AeV(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*wl(r,a,g1);else if(i>j0)r/=j0,e.dtick="M"+wl(r,1,Nq);else if(i>hn){if(e.dtick=wl(r,hn,e._hasDayOfWeekBreaks?[1,2,7,14]:Ufe),!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>Tl?e.dtick=wl(r,Tl,Nq):i>bv?e.dtick=wl(r,bv,Iq):i>M1?e.dtick=wl(r,M1,Iq):(a=n(10),e.dtick=wl(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"+wl(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=wl(r,a,Vfe)):(e.tick0=0,a=n(10),e.dtick=wl(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>=Tl)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 Wfe(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 Zfe(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Jfe(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 $fe(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 Kfe(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"],Qfe=["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 ece(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"?Qfe[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=dce(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 rce(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 ice(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(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"),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(H){return H.dx+_+A*H.fontSize},x.yFn=function(H){return H.dy+w+H.fontSize*b},x.anchorFn=function(H,N){if(f){if(o)return"end";if(s)return"start"}return!la(N)||N===0||N===180?"middle":N*M<0!==c?"end":"start"},x.heightFn=function(H,N,B){return N<-60||N>60?-.5*B:e.side==="top"!==c?-B: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(H){return H.dx+r-(_+H.fontSize*b)*M+A*H.fontSize},x.yFn=function(H){return H.dy+w+H.fontSize*yv},x.anchorFn=function(H,N){return la(N)&&Math.abs(N)===90?"middle":P?"end":"start"},x.heightFn=function(H,N,B){return e.side==="right"&&(N*=-1),N<-30?-B:N<30?-.5*B: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 Rfe(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),V=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[V]?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(V){var $=yi.select(this),re=$.select(".text-math-group"),se=s.anchorFn(V,W),oe=t.transFn.call($.node(),V)+(la(W)&&+W!=0?" rotate("+W+","+s.xFn(V)+","+(s.yFn(V)-V.fontSize/2)+")":""),K=au.lineCount($),me=_v*V.fontSize,ie=s.heightFn(V,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,V=r._id.charAt(0)==="x",$=0,re=V?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;V?(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=[],V,$=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*B&&(F=B,D[S]=P[S]=H[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 U=Lr.syncOrAsync(x);return U&&U.then&&e._promises.push(U),U};function lce(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 oce(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,Afe.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)||!sce(e,r,t,a)||uce(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=Dfe:/%L/.test(r)?e>=qfe:/%[SX]/.test(r)?e>=M1:/%M/.test(r)?e>=bv:/%[HI]/.test(r)?e>=Tl:/%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((oke,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((ske,eD)=>{"use strict";var pce=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&&(pce(a,f,o),(l==="linear"||l==="-")&&a("rangemode")),t.cleanRange()}});var tD=G((uke,rD)=>{var mce={left:0,top:0};rD.exports=yce;function yce(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=gce(r);return t[0]=a-i.left,t[1]=n-i.top,t}function gce(e){return e===window||e===document||e===document.body?mce:e.getBoundingClientRect()}});var pb=G((fke,aD)=>{"use strict";var xce=G5();function bce(){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=xce&&bce()});var iD=G((cke,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((vke,oD)=>{"use strict";var lD=Se(),_ce=[["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),_ce[t][r]}});var fD=G((dke,uD)=>{"use strict";var wce=nv(),Tce=Ch(),Mce=$c().getGraphDiv,Ace=(qc(),Fe(Sc)),mb=uD.exports={};mb.wrapped=function(e,r,t){var i;e=Mce(e),e._fullLayout&&Tce.clear(e._fullLayout._uid+Ace.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&&wce.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((hke,hD)=>{"use strict";var kce=tD(),yb=V5(),Lce=pb(),Cce=Se().removeElement,Sce=(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,Lce?(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 kce(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Yo=G((pke,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((mke,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;iNce,itemGap:()=>Fce,itemHeightPad:()=>Bce,itemMinHeight:()=>Ice,scrollBarColor:()=>Pce,scrollBarEnterAttrs:()=>Rce,scrollBarMargin:()=>Ece,scrollBarMinHeight:()=>Dce,scrollBarWidth:()=>qce,titlePad:()=>zce});var qce,Dce,Pce,Ece,Rce,zce,Fce,Nce,Ice,Bce,D1=Cr(()=>{"use strict";qce=6,Dce=20,Pce="#808BA4",Ece=4,Rce={rx:20,ry:3,width:0,height:0},zce=2,Fce=5,Nce=6,Ice=16,Bce=3});var bb=G((yke,bD)=>{"use strict";var xb=Ta(),Hce=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:Hce.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((xke,_D)=>{"use strict";var P1=Ar(),jn=Se(),Oce=yt(),Yce=qn(),Gce=bb(),Uce=q0(),_b=kv();function Vce(e,r,t,a,n){var i=r[e]||{},l=Oce.newContainer(t,e);function o(W,V){return jn.coerce(i,l,Gce,W,V)}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,V){var $=f._input,re=f;return jn.coerce($,re,Yce,W,V)},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 V=0;VW.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",H,N,B,Y="left";P?(H=0,P1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?R?(N=1.1,B="bottom"):(N=1,B="top"):R?(N=-.1,B="top"):(N=0,B="bottom")):(N=1,B="auto",F?H=1.02:(H=1,Y="right")),jn.coerce(i,l,{x:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:H}},"x"),jn.coerce(i,l,{y:{valType:"number",editType:"legend",min:R?-2:0,max:R?3:1,dflt:N}},"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",B),o("maxheight"),o("valign"),jn.noneOrAll(i,l,["x","y"]);var U=o("title.text");if(U){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(),Xce=Tb.pushUnique,Wce=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 H(Ce,ze){R[Ce].visible=ze,F=!0}function N(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?H(Ue,$e):P(Ue,$e)}}var B=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 U=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,V,$){if(t.visible!==!1&&!(a&&W!==t._id))if(V===""||!Lb.isGrouped(t)){var re="~~i"+c;s.push(re),o[re]=[$],c++}else s.indexOf(V)===-1?(s.push(V),u=!0,o[V]=[$]):o[V].push($)}for(h=0;hH&&(R=H)}D[h][0]._groupMinRank=R,D[h][0]._preGroupSort=h}var N=function(W,V){return W[0]._groupMinRank-V[0]._groupMinRank||W[0]._preGroupSort-V[0]._preGroupSort},B=function(W,V){var $=kb(W.trace.legendrank)?W.trace.legendrank[W.i]:W.trace.legendrank,re=kb(V.trace.legendrank)?V.trace.legendrank[V.i]:V.trace.legendrank;return $-re||W._preSort-V._preSort};for(D.forEach(function(W,V){W[0]._preGroupSort=V}),D.sort(N),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 Zce=$r(),Jce=kr();LD.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?Zce.pointStyle(r,a,n,t):Jce.fill(r,t.color)}});var ef=G((Mke,DD)=>{"use strict";var SD=kr(),qD=Lv().castOption,$ce=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($ce,t,a,n).style("stroke-width",o).call(SD.stroke,l)}});var Pb=G((Ake,FD)=>{"use strict";var pn=Er(),Cb=Ar(),an=Se(),Sb=an.strTranslate,Qn=$r(),gi=kr(),qb=Wn().extractOpts,z1=Jn(),Kce=ef(),jce=Lv().castOption,PD=(D1(),Fe(q1)),ED=12,RD=5,su=2,Qce=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,H=S[0].lineHeight,N=S[0].height;if(F==="middle"&&R===0||!H||!N)P.attr("transform",null);else{var B={top:1,bottom:-1}[F],Y=B*(.5*(H-N+3))||0,O=a.indentation;P.attr("transform",Sb(O,Y))}var U=P.selectAll("g.legendfill").data([S]);U.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,H=D.showGradientFill,N=D.anyFill,B=D.anyLine,Y=S[0],O=Y.trace,U,X,W=qb(O),V=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($),V,"fill")}},se=function(ce){if(ce.size()){var Te="legendline-"+O.uid;Qn.lineGroupStyle(ce),Qn.gradient(ce,t,Te,Db($),V,"stroke")}},oe=z1.hasMarkers(O)||!N?"M5,0":B?"M5,-2":"M5,-3",K=pn.select(this),me=K.select(".legendfill").selectAll("path").data(P||H?[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||H?(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,Qce,RD);X=an.minExtend(O,{line:{width:Me}}),U=[an.minExtend(Y,{trace:X})]}var ue=K.select(".legendlines").selectAll("path").data(R||F?[U]:[]);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,H=D.showMarker,N=S[0],B=N.trace,Y=!H&&!R&&!P&&z1.hasText(B),O,U;function X(ie,Me,ue,ce){var Te=an.nestedProperty(B,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 N._distinct&&N.index&&ie[N.index]?ie[N.index]:ie[0]}if(H||Y||F){var V={},$={};if(H){V.mc=X("marker.color",W);var re=B.type==="scattermap";V.mx=re?"circle":X("marker.symbol",W),V.mo=X("marker.opacity",an.mean,[.2,1]),V.mlc=X("marker.line.color",W),V.mlw=X("marker.line.width",an.mean,[0,5],su),V.mld=X("marker.line.dash",W),$.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=X("marker.size",an.mean,[2,16],ED);V.ms=se,$.marker.size=se}F&&($.line={width:X("line.width",W,[0,10],RD)}),Y&&(V.tx="Aa",V.tp=X("textposition",W),V.ts=10,V.tc=X("textfont.color",W),V.tf=X("textfont.family",W),V.tw=X("textfont.weight",W),V.ty=X("textfont.style",W),V.tv=X("textfont.variant",W),V.tC=X("textfont.textcase",W),V.tE=X("textfont.lineposition",W),V.tS=X("textfont.shadow",W)),O=[an.minExtend(N,V)],U=an.minExtend(B,$),U.selectedpoints=null,U.texttemplate=null}var oe=pn.select(this).select("g.legendpoints"),K=oe.selectAll("path.scatterpts").data(H?O:[]);K.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),K.exit().remove(),K.call(Qn.pointStyle,U,t),H&&(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,U,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 H=pn.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(F);H.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),H.exit().remove(),H.each(function(N){var B=pn.select(this),Y=D[N[0]].marker,O=f(void 0,Y.line,rf,su);B.attr("d",N[1]).style("stroke-width",O+"px").call(gi.fill,Y.color),O&&B.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||{},H=F.line||{},N=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",B=P?R.visible&&R.type===P:Cb.traceIs(R,"bar"),Y=pn.select(D).select("g.legendpoints").selectAll("path.legend"+P).data(B?[S]:[]);Y.enter().append("path").classed("legend"+P,!0).attr("d",N).attr("transform",u),Y.exit().remove(),Y.each(function(O){var U=pn.select(this),X=O[0],W=f(X.mlw,F.line,rf,su);U.style("stroke-width",W+"px");var V=X.mcc;if(!a._inHover&&"mc"in X){var $=qb(F),re=$.mid;re===void 0&&(re=($.max+$.min)/2),V=Qn.tryColorscale(F,"")(re)}var se=V||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}`;U.call(Qn.pattern,"legend",t,ge,ie,Te,Ne,V,oe.fillmode,ue,ce,Me)}else U.call(gi.fill,se);W&&gi.stroke(U,X.mlc||H.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 H=f(void 0,D.line,rf,su);R.style("stroke-width",H+"px").call(gi.fill,D.fillcolor),H&&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 H=pn.select(this),N=D[F?"increasing":"decreasing"],B=f(void 0,N.line,rf,su);H.style("stroke-width",B+"px").call(gi.fill,N.fillcolor),B&&gi.stroke(H,N.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 H=pn.select(this),N=D[F?"increasing":"decreasing"],B=f(void 0,N.line,rf,su);H.style("fill","none").call(Qn.dashLine,N.line.dash,B),B&&gi.stroke(H,N.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,H=P?F.visible&&F.type===P:Cb.traceIs(F,P),N=pn.select(D).select("g.legendpoints").selectAll("path.legend"+P).data(H?[S]:[]);if(N.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),N.exit().remove(),N.size()){var B=F.marker||{},Y=f(jce(B.line.width,R.pts),B.line,rf,su),O="pieLike",U=an.minExtend(F,{marker:{line:{width:Y}}},O),X=an.minExtend(R,{trace:U},O);Kce(N,X,U,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(H,N){var B=pn.select(this),Y=qb(D),O=Y.colorscale,U=Y.reversescale,X=function(re){if(re.size()){var se="legendfill-"+D.uid;Qn.gradient(re,t,se,Db(U,P==="radial"),O,"fill")}},W;if(O){if(!P){var $=O.length;W=N===0?O[U?$-1:0][1]:N===1?O[U?0:$-1][1]:O[Math.floor(($-1)/2)][1]}}else{var V=D.vertexcolor||D.facecolor||D.color;W=an.isArrayOrTypedArray(V)?V[N]||V[0]:V}B.attr("d",H[0]),W?B.call(gi.fill,W):B.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((kke,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(),eve=Pb(),nf=kv(),tf=1,rve=/^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(rve)&&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)&&ive(_,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(N){return N.showlegend});return e._fullData.concat(F).some(function(N){return N.legendgroup===R&&(N.legend||"legend")===n&&N.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(ave,e,t)}).call(eve,e,t).each(function(S){o||S[0].groupTitle&&t.groupclick==="toggleitem"||mn.select(this).call(nve,e,n)}),oa.syncOrAsync([Rb.previousPromises,function(){return sve(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,H;P?F=S.l+S.w*t.x-af[B1(t)]*t._width:F=a.width*t.x-af[B1(t)]*t._width,R?H=S.t+S.h*(1-t.y)-af[H1(t)]*t._effHeight:H=a.height*(1-t.y)-af[H1(t)]*t._effHeight;var N=uve(e,n,F,H);if(N)return;if(a.margin.autoexpand){var B=F,Y=H;F=P?oa.constrain(F,0,a.width-t._width):B,H=R?oa.constrain(H,0,a.height-t._effHeight):Y,F!==B&&oa.log("Constrain "+n+".x to make legend fit inside graph"),H!==Y&&oa.log("Constrain "+n+".y to make legend fit inside graph")}sa.setTranslate(m,F,H)}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 U=Math.max(It.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),X=t._effHeight-U-2*It.scrollBarMargin,W=t._height-t._effHeight,V=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($,U,V),m.on("wheel",function(){$=oa.constrain(t._scrollY+mn.event.deltaY/W*X,0,W),ue($,U,V),$!==0&&$!==W&&mn.event.preventDefault()});var re,se,oe,K=function(qe,ke,Le){var Ce=(Le-ke)/V+qe;return oa.constrain(Ce,0,W)},me=function(qe,ke,Le){var Ce=(ke-Le)/V+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($,U,V))});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($,U,V))});_.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 ave(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 nve(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 ive(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(){lve(r,t,a,n)})}function lve(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 ove(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 sve(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=ove(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),H=a.x<0||a.x===0&&F==="right",N=a.x>1||a.x===1&&F==="left",B=_||x,Y=i.width/2;a._maxWidth=Math.max(H?B&&F==="left"?o.l+o.w:Y:N?B&&F==="right"?o.r+o.w:Y:o.w,2*p);var O=0,U=0;t.each(function(qe){var ke=F1(qe,a,p);O=Math.max(O,ke),U+=ke}),P=null;var X=0;if(u){var W=0,V=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;V>0&&Le+c+V>a._maxWidth?(X=Math.max(X,V),V=0,$+=W+w,W=ke):W=Math.max(W,ke),sa.setTranslate(this,V,$),V+=Le}),a._width=Math.max(X,V)+c,a._height=$+W+m}else{var re=t.size(),se=U+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()&&tve(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 uve(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(),fve=Bt.pushUnique,Nb=Bt.strTranslate,cve=Bt.strRotate,vve=nv(),zt=ba(),dve=gD(),Al=$r(),da=kr(),O1=Ji(),$i=Qr(),hve=(La(),Fe(ka)).zindexSeparator,fu=Ar(),ei=Wi(),cu=(qc(),Fe(Sc)),pve=wb(),mve=Fb(),rP=cu.YANGLE,Bb=Math.PI*rP/180,yve=1/Math.sin(Bb),gve=Math.cos(Bb),xve=Math.sin(Bb),St=cu.HOVERARROWSIZE,Xr=cu.HOVERTEXTPAD,XD={box:!0,ohlc:!0,violin:!0,candlestick:!0},bve={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(){wve(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=iP(n),l=lP(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=aP(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?U=ei.flat(i,r.yval):U=ei.p2c(D,ke),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!$l(O[0])||!$l(U[0]))return Bt.warn("Fx.hover failed",r,e),O1.unhoverRaw(e,r)}o.clickanywhere&&(e._hoverXVals=O,e._hoverYVals=U,e._hoverXAxes=S,e._hoverYAxes=D);var ze=1/0;function Ae(ir,it){for(W=0;WMe&&(B.splice(0,Me),ze=B[0].distance),fu.traceIs($,"ternary")&&N!==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:N,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<=N&&(!mo||Ra.spikeDistanceht.spikeDistance)&&(ue.vLinePoint=ht))}var vl=lt.filter(function(ca){return ca.ya.showspikes&&ca.ya.spikesnap!=="hovered data"});if(vl.length){var oi=vl[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(),N!==0)for(let ir=0;irPt.trace.subplot===it&&Pt.index!==void 0&&Pt.index!==!1&&Pt.spikeDistance<=N);Jr.drawSpikelines(dt,ce[it],O&&O[ir],U&&U[ir])}}}function $e(ir,it,Jr){for(var dt=null,Pt=1/0,Ea,lt=0;ltir.trace.index===Be.trace.index):B=[Be];var Ze=B.length,Ke=eP("x",Be,o),_r=eP("y",Be,o);Ae(Ke,_r);var br=[],Pe={},Je=0,Ee=function(ir){var it=XD[ir.trace.type]?tP(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(B[je]);B=br,te()}var dr=e._hoverdata,hr=[],pr=iP(e),ae=lP(e);for(let ir of B){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||B.length>1)||h==="closest"&&Te&&B.length>1,Zt=da.combine(o.plot_bgcolor||da.background,o.paper_bgcolor),ra=aP(B,{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);dve(Kl.select(n),en?"pointer":"")}var fa=kve(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,U),xPixel:r.pointerX,yPixel:r.pointerY})}}function tP(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 Tve=/([\s\S]*)<\/extra>/;function Ib(e,r){return Y1(e,zt.getMathOrTextNode(r))}function aP(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 V=a.hoverlabel,$=V.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:V.bgcolor,bordercolor:V.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},me={font:$};pve(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?cve(rP):""))}}),{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=QD(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(Tve,(p,m)=>(l=QD(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],U=Y[i],X=O._id.charAt(0)==="x",W=O.range;f===0&&W&&W[0]>W[1]!==X&&(o=-1);var V=0,$=X?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var re=nP(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&&(U.side==="left"?(V=U._mainLinePosition,$=t.width):$=U._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(me,v)-Math.max(K,c)>1&&(U.side==="top"?(V=U._mainLinePosition,$=t.height):$=U._mainLinePosition)}u[f++]=[{datum:Y,traceIndex:Y.trace.index,dp:0,pos:Y.pos,posref:Y.posref,size:Y.by*(X?yve:1)/2,pmin:V,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],U=Y[Y.length-1];if(_=O.pmin-O.pos-O.dp+O.size,w=U.pos+U.dp+U.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 H=u[b];for(M=H.length-1;M>=0;M--){var N=H[M],B=N.datum;B.offset=N.dp,B.del=N.del}}}function nP(e,r){var t=0,a=e.offset;return r&&(a*=-xve,t=e.offset*gve),{x:t,y:a}}function Mve(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=Mve(l),v=nP(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(Al.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 Ave(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:$i.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:$i.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=$i.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+$i.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=$i.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+$i.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){let a=r._id.charAt(0)==="y",n=1/0,i=-1/0;for(let l of r._counterAxes||[]){let o=$i.getFromId(e,l);if(!o)continue;let s=o._padStart||0,u=o._padEnd||0;a?(n=Math.min(n,t.l+o.domain[0]*t.w+s),i=Math.max(i,t.l+o.domain[1]*t.w-u)):(n=Math.min(n,t.t+(1-o.domain[1])*t.h+s),i=Math.max(i,t.t+(1-o.domain[0])*t.h-u))}if(r.anchor==="free"){let l=a?t.l+r.position*t.w:t.t+(1-r.position)*t.h;n=Math.min(n,l),i=Math.max(i,l)}return[n,i]}function KD(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=$i.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){let U=$D(e,f,i);M=U[0],A=U[1]}a.insert("line",":first-child").attr({x1:M,x2:A,y1:p,y2:p,"stroke-width":_,stroke:w,"stroke-dasharray":Al.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 k=r.vLinePoint,S,D;u=k&&k.xa,f=k&&k.ya;var P=u.spikesnap;P==="cursor"?(S=l.pointerX,D=l.pointerY):(S=u._offset+k.x,D=f._offset+k.y);var R=da.wcagContrast(k.color,c)<1.5?da.contrast(c):k.color,F=u.spikemode,H=u.spikethickness,N=u.spikecolor||R,B=$i.getPxPosition(e,u),Y,O;if(F.indexOf("toaxis")!==-1||F.indexOf("across")!==-1){if(F.indexOf("toaxis")!==-1&&(Y=B,O=D),F.indexOf("across")!==-1){let U=$D(e,u,i);Y=U[0],O=U[1]}a.insert("line",":first-child").attr({x1:S,x2:S,y1:Y,y2:O,"stroke-width":H,stroke:N,"stroke-dasharray":Al.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:S,x2:S,y1:Y,y2:O,"stroke-width":H+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}F.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:S,cy:B-(u.side!=="top"?H:-H),r:H,fill:N}).classed("spikeline",!0)}}}function kve(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 jD(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function QD(e,r){return zt.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Lve(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],l=0;le.offsetTop+e.clientTop,lP=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((Cke,oP)=>{"use strict";var Cve=Se(),Sve=kr(),qve=Wi().isUnifiedHover;oP.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&&qve(t.hovermode)&&(n.font||(n.font={}),l("size"),l("family"),l("color"),l("weight"),l("style"),l("variant"),i?(n.bgcolor||(n.bgcolor=Sve.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),Cve.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var uP=G((Ske,sP)=>{"use strict";var Dve=Se(),Pve=U1(),Eve=p0();sP.exports=function(r,t){function a(n,i){return Dve.coerce(r,t,Eve,n,i)}Pve(r,t,a)}});var vP=G((qke,cP)=>{"use strict";var fP=Se(),Rve=Ec(),zve=U1();cP.exports=function(r,t,a,n){function i(o,s){return fP.coerce(r,t,Rve,o,s)}var l=fP.extendFlat({},n.hoverlabel);t.hovertemplate&&(l.namelength=-1),zve(r,t,i,l)}});var Yb=G((Dke,dP)=>{"use strict";var Fve=Se(),Nve=p0();dP.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Fve.coerce(r,t,Nve,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var mP=G((Pke,pP)=>{"use strict";var hP=Se(),Ive=p0(),Bve=Yb(),Hve=U1();pP.exports=function(r,t){function a(u,f){return hP.coerce(r,t,Ive,u,f)}var n=Bve(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"),Hve(r,t,a),hP.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var xP=G((Eke,gP)=>{"use strict";var Gb=Se(),yP=Ar();gP.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 Yve=Ar(),bP=Wi(),Gve=Ob().hover;_P.exports=function(r,t,a){var n=Yve.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Gve(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&&bP.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=o.yvals)!=null||(o.yvals=r._hoverYVals&&bP.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((zke,AP)=>{"use strict";var Uve=Er(),V1=Se(),Vve=Ji(),Sv=Wi(),TP=p0(),MP=Ob();AP.exports={moduleType:"component",name:"fx",constants:(qc(),Fe(Sc)),schema:{layout:TP},attributes:Ec(),layoutAttributes:TP,supplyLayoutGlobalDefaults:uP(),supplyDefaults:vP(),supplyLayoutDefaults:mP(),calc:xP(),getDistanceFunction:Sv.getDistanceFunction,getClosest:Sv.getClosest,inbox:Sv.inbox,quadrature:Sv.quadrature,appendArrayPointValue:Sv.appendArrayPointValue,castHoverOption:Wve,castHoverinfo:Zve,hover:MP.hover,unhover:Vve.unhover,loneHover:MP.loneHover,loneUnhover:Xve,click:wP()};function Xve(e){var r=V1.isD3Selection(e)?e:Uve.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function Wve(e,r,t){return V1.castOption(e,r,"hoverlabel."+t)}function Zve(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((Nke,kP)=>{"use strict";kP.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((Ike,LP)=>{"use strict";LP.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:()=>Jve,SQRT2:()=>t2e,cos45:()=>e2e,i000:()=>$ve,i090:()=>Kve,i180:()=>jve,i270:()=>Qve,sin45:()=>r2e});var Jve,$ve,Kve,jve,Qve,e2e,r2e,t2e,J1=Cr(()=>{"use strict";Jve=32,$ve=0,Kve=8,jve=16,Qve=24,e2e=Math.cos(Math.PI/4),r2e=Math.sin(Math.PI/4),t2e=Math.sqrt(2)});var $1=G((Bke,SP)=>{"use strict";var a2e=Se().strTranslate;function CP(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 n2e(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 i2e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return CP(e,t[r])}}function l2e(e){return a2e(e.xaxis._offset,e.yaxis._offset)}SP.exports={p2r:CP,r2p:n2e,axValue:i2e,getTransform:l2e}});var Uo=G(Ql=>{"use strict";var o2e=Sx(),PP=(J1(),Fe(Z1)),of=PP.CIRCLE_SIDES,Ub=PP.SQRT2,EP=$1(),qP=EP.p2r,DP=EP.r2p,s2e=[0,3,4,5,6,1,2],u2e=[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 RP=va(),BP=lf(),f2e=BP.drawMode,c2e=BP.openMode,sf=(J1(),Fe(Z1)),zP=sf.i000,FP=sf.i090,NP=sf.i180,IP=sf.i270,v2e=sf.cos45,d2e=sf.sin45,HP=$1(),j1=HP.p2r,Vo=HP.r2p,h2e=Ro(),p2e=h2e.clearOutline,Q1=Uo(),m2e=Q1.readPaths,y2e=Q1.writePaths,g2e=Q1.ellipseOver,x2e=Q1.fixDatesForPaths;function b2e(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(!f2e(i)&&n!==void 0){var o=a._fullLayout._activeShapeIndex;if(o{"use strict";var _2e=lf(),w2e=_2e.selectMode,T2e=Ro(),M2e=T2e.clearOutline,Vb=Uo(),A2e=Vb.readPaths,k2e=Vb.writePaths,L2e=Vb.fixDatesForPaths;GP.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(!w2e(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(hP2e,paramIsX:()=>q2e,paramIsY:()=>D2e,paramRE:()=>S2e,segmentRE:()=>C2e});var C2e,S2e,q2e,D2e,P2e,Pv=Cr(()=>{"use strict";C2e=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,S2e=/[^\s,]+/g,q2e={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:{}},D2e={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:{}},P2e={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)),UP=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,H){var N;if(P)if(R==="domain")H?N=function(B){return P._offset+P._length*(1-B)}:N=function(B){return P._offset+P._length*B};else{let B=Na.shapePositionToRange(P);N=function(Y){return P._offset+P.r2p(B(Y,!0))},F==="path"&&P.type==="date"&&(N=Na.decodeDate(N))}else H?N=function(B){return i.t+i.h*(1-B)}:N=function(B){return i.l+i.w*B};return N}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 E2e(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 E2e(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.*/,""),UP.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((Uke,WP)=>{"use strict";var R2e=Se(),Cl=Qr(),VP=ba(),XP=$r(),z2e=Uo().readPaths,vu=Wo(),F2e=vu.getPathString,Ev=xh(),N2e=(Xa(),Fe(Va)).FROM_TL;WP.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 V=Array.isArray(a.xref),$=Array.isArray(a.yref);for(var u in Ev){var f=typeof Ev[u]=="function",c=!V||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=R2e.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=F2e(r,a),S=z2e(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 B=a.label.textangle;B==="auto"&&(a.type==="line"?B=I2e(w,M,b,A):B=0),_.call(function(V){return V.call(XP.font,m).attr({}),VP.convertToTspans(V,r),V});var Y=XP.bBox(_.node()),O=B2e(w,M,b,A,a,B,Y),U=O.textx,X=O.texty,W=O.xanchor;_.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[W],y:X,x:U,transform:"rotate("+B+","+U+","+X+")"}).call(VP.positionText,U,X)}};function I2e(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 B2e(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 H2e=Se(),O2e=H2e.strTranslate,ZP=Ji(),KP=lf(),Y2e=KP.drawMode,jP=KP.selectMode,QP=Ar(),JP=kr(),tp=(J1(),Fe(Z1)),G2e=tp.i000,U2e=tp.i090,V2e=tp.i180,X2e=tp.i270,W2e=Ro(),eE=W2e.clearOutlineControllers,Jb=Uo(),rp=Jb.pointsOnRectangle,Zb=Jb.pointsOnEllipse,Z2e=Jb.writePaths,J2e=ep().newShapes,$2e=ep().createShapeObj,K2e=Xb(),j2e=Wb();rE.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 U={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,U=J2e(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,U=K2e(t,a),i._fullLayout._reselect=!0),Object.keys(U).length&&QP.call((O||{}).redrawing?"relayout":"_guiRelayout",i,U)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Y2e(f),v=jP(f);(c||v)&&(i._fullLayout._outlining=!0),eE(i),t.attr("d",Z2e(r));var h,p,m,y,x;if(!n&&(a.isActiveShape||a.isActiveSelection)){x=Q2e([],r);var _=u.append("g").attr("class","outline-controllers");P(_),Y()}if(c&&a.hasText){var w=u.select(".label-temp"),b=$2e(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,U){if(r.length){var X=x[m][y][1],W=x[m][y][2],V=r[m],$=V.length;if(rp(V)){var re=O,se=U;if(a.isActiveSelection){var oe=$P(V,y);oe[1]===V[y][1]?se=0:re=0}for(var K=0;K<$;K++)if(K!==y){var me=V[K];me[1]===V[y][1]&&(me[1]=X+re),me[2]===V[y][2]&&(me[2]=W+se)}if(V[y][1]=X+re,V[y][2]=W+se,!rp(V))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,U){if(O===2){m=+U.srcElement.getAttribute("data-i"),y=+U.srcElement.getAttribute("data-j");var X=r[m];!rp(X)&&!Zb(X)&&S()}}function P(O){h=[];for(var U=0;U{"use strict";var rde=Er(),oE=Ar(),Kb=Se(),du=Qr(),tde=Uo().readPaths,ade=ap(),ip=Wb(),sE=Ro().clearOutlineControllers,$b=kr(),lp=$r(),nde=yt().arrayEditor,tE=Ji(),aE=xi(),nE=Yo(),hu=(Pv(),Fe(Dv)),Fn=Wo(),jb=Fn.getPathString;cE.exports={draw:Qb,drawOne:uE,eraseActiveShape:ude,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&&aE.hover(e,l,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let l=n(i);l&&aE.click(e,l,t.id)}})}function fE(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=lde(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 lde(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 ode(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=rde.select(r.node().parentNode),H=du.getFromId(e,t.xref),N=du.getRefType(t.xref),B=du.getFromId(e,t.yref),Y=du.getRefType(t.yref),O=t.x0shift,U=t.x1shift,X=t.y0shift,W=t.y1shift,V=function(ze,Ae){var Ue=Fn.getDataToPixel(e,H,Ae,!1,N);return Ue(ze)},$=function(ze,Ae){var Ue=Fn.getDataToPixel(e,B,Ae,!0,Y);return Ue(ze)},re=Fn.getPixelToData(e,H,!1,N),se=Fn.getPixelToData(e,B,!0,Y),oe=ie(),K={element:oe.node(),gd:e,prepFn:ce,doneFn:Te,clickFn:Ne},me;tE.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?V(t.xanchor)+t.x0:V(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?V(t.xanchor)+t.x1:V(t.x1,U),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?tE.getCursor(Qe/Ue,1-De/$e):"move";nE(r,He),me=He.split("-")[0]}}function ce(ze){np(e)||(s&&(x=V(t.xanchor)),u&&(_=$(t.yanchor)),t.type==="path"?R=t.path:(h=s?t.x0:V(t.x0),p=u?t.y0:$(t.y0),m=s?t.x1:V(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)||(nE(r),Le(n),fE(r,e,t),oE.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(V(He)+ze)},H&&H.type==="date"&&($e=Fn.encodeDate($e))),u?v("yanchor",t.yanchor=se(_+Ae)):(Qe=function(He){return se($(He)+Ae)},B&&B.type==="date"&&(Qe=Fn.encodeDate(Qe))),v("path",t.path=iE(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(V(Ke)+ze)},H&&H.type==="date"&&($e=Fn.encodeDate($e))),u?v("yanchor",t.yanchor=se(_+Ae)):(Qe=function(Ke){return se($(Ke)+Ae)},B&&B.type==="date"&&(Qe=Fn.encodeDate(Qe))),v("path",t.path=iE(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=V(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 iE(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 sde(e,r){if(op(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){lE(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=lE,Qb(e)}}}function lE(e){if(op(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(sE(e),delete e._fullLayout._activeShapeIndex,Qb(e))}}function ude(e){if(op(e)){sE(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var uf=Se()._,fde=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")}};vE.exports=fde});var mE=G((Zke,pE)=>{"use strict";var hE=Er(),{dfltConfig:cde}=wo(),vde=dE(),dde=(e,r,t,a,n)=>{let i=vde(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===cde.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)},hde=(e,r,t)=>{let a=hE.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",()=>{hE.event.target===n.node()&&i()}),dde(e,n,r,()=>{i(),t()},i)};pE.exports=hde});var t4=G((Jke,TE)=>{"use strict";var ri=Ar(),pde=Jt(),gE=va(),rt=W1(),mde=sp().eraseActiveShape,yde=mE(),ff=Se(),Wr=ff._,et={};TE.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}yde(e,r,function(){pde.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:mde};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=gE.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"?yE*v:1/yE*v;M>b?M=b:M{"use strict";var ME=t4(),_de=Object.keys(ME),AE=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],kE=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(AE,["downloadJson"]),cf=[],wde=function(e){if(kE.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)}};_de.forEach(function(e){wde(ME[e])});cf.sort();LE.exports={DRAW_MODES:AE,backButtons:kE,foreButtons:cf}});var i4={};pt(i4,{default:()=>Mde});var n4,Tde,Mde,l4=Cr(()=>{"use strict";n4=N9(a4()),Tde={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(" ")}},Mde=Tde});var SE=G((Kke,CE)=>{"use strict";var Ade=Se(),Rv=kr(),kde=yt(),Lde=(l4(),Fe(i4)).default;CE.exports=function(r,t){var a=r.modebar||{},n=kde.newContainer(t,"modebar");function i(o,s){return Ade.coerce(a,n,Lde,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 EE=G((jke,PE)=>{"use strict";var o4=Er(),Cde=Gr(),cp=Se(),qE=W1(),Sde=Mc().version,qde=new DOMParser;function DE(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Sl=DE.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||qE.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Sl.createIcon=function(e){var r=Cde(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=qde.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 Ede=va(),RE=Jn(),s4=Ar(),Rde=Wi().isUnifiedHover,zde=EE(),vp=t4(),Fde=a4().DRAW_MODES,Nde=Se().extendDeep;zE.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=Gde(i):!a.displayModeBar&&a.watermark?l=[]:l=Ide(r),n?n.update(r,l):t._modeBar=zde(r,l)};function Ide(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(U,X){if(typeof X=="string"){if(X.toLowerCase()===U.toLowerCase())return!0}else{var W=X.name,V=X._cat||X.name;if(W===U||V===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 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"),(Ode(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"]),Hde(t)&&R.push("select2d","lasso2d");var F=[],H=function(U){F.indexOf(U)===-1&&D.indexOf(U)!==-1&&F.push(U)};if(Array.isArray(o)){for(var N=[],B=0;B{"use strict";NE.exports={moduleType:"component",name:"modebar",layoutAttributes:(l4(),Fe(i4)).default,supplyLayoutDefaults:SE(),manage:FE()}});var f4=G((rLe,IE)=>{"use strict";var Ude=(Xa(),Fe(Va)).FROM_BL;IE.exports=function(r,t,a){a===void 0&&(a=Ude[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(),Ki=va().id2name,Vde=Zn(),BE=f4(),Xde=h1(),Wde=(Rt(),Fe(Nt)).ALMOST_EQUAL,Zde=(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 $de(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),l=0;lWde*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=A0){let s=a[1]-a[0],u=s-o;u>0&&(l=s/(u/r+o))}e.domain=e._input.domain=[i+(a[0]-i)/l,i+(a[1]-i)/l],e.setScale()}});var pp=G(Sa=>{"use strict";var hp=Er(),gn=Ar(),ti=Jt(),bi=Se(),h4=ba(),p4=X1(),Fv=kr(),vf=$r(),GE=hv(),ZE=u4(),Nv=Qr(),eo=(Xa(),Fe(Va)),JE=mu(),jde=JE.enforce,Qde=JE.clean,UE=mv().doAutoRange,$E="start",ehe="middle",KE="end",rhe=(La(),Fe(ka)).zindexSeparator;Sa.layoutStyles=function(e){return bi.syncOrAsync([ti.doAutoMargin,ahe],e)};function the(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function ahe(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),ZE.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){ohe(e,i,u,s),o.attr({x:l,y:i,"text-anchor":a,dy:WE(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+GE.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:l,y:m,"text-anchor":a,dy:WE(r.yanchor)}).call(h4.positionText,l,m)}}}};function nhe(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=ihe(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),o>l?o:0}function ohe(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"&&nhe(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 she(e,r){var t=e.title,a=e._size,n=0;return r===$E?n=t.pad.l:r===KE&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function uhe(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 WE(e){return e==="top"?eo.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":eo.MID_SHIFT+"em"}function fhe(e){var r=e.title,t=ehe;return bi.isRightAnchor(r)?t=KE:bi.isLeftAnchor(r)&&(t=$E),t}function che(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 vhe=Uo().readPaths,dhe=ap(),jE=Ro().clearOutlineControllers,m4=kr(),QE=$r(),hhe=yt().arrayEditor,eR=Wo(),phe=eR.getPathString;tR.exports={draw:mp,drawOne:rR,activateLastSelection:ghe};function mp(e){var r=e._fullLayout;jE(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(QE.dashLine,y?"solid":h,y?4+v:v);if(mhe(x,e,a),p){var _=hhe(e.layout,"selections",a);x.style({cursor:"move"});var w={element:x.node(),plotinfo:n,gd:e,editHelpers:_,isActiveSelection:!0},b=vhe(o,e);dhe(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 yhe(e,M)})}}function mhe(e,r,t){var a=t.xref+t.yref;QE.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function yhe(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 ghe(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&&(jE(e),delete e._fullLayout._activeSelectionIndex,mp(e))}}});var nR=G((iLe,aR)=>{function xhe(){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}aR.exports=xhe});var lR=G((lLe,iR)=>{function bhe(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}iR.exports=bhe});var sR=G((oLe,oR)=>{var _he={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}};oR.exports=_he});var fR=G((sLe,uR)=>{var Iv=sR();function whe(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(B,Y){var O=B.seg.start,U=B.seg.end,X=Y.seg.start,W=Y.seg.end;return r.pointsCollinear(O,X,W)?r.pointsCollinear(U,X,W)||r.pointAboveOrOnLine(U,X,W)?1:-1:r.pointAboveOrOnLine(O,X,W)?1:-1}function _(B){return y.findTransition(function(Y){var O=x(B,Y.ev);return O>0})}function w(B,Y){var O=B.seg,U=Y.seg,X=O.start,W=O.end,V=U.start,$=U.end;t&&t.checkIntersection(O,U);var re=r.linesIntersect(X,W,V,$);if(re===!1){if(!r.pointsCollinear(X,W,V)||r.pointsSame(X,$)||r.pointsSame(W,V))return!1;var se=r.pointsSame(X,V),oe=r.pointsSame(W,$);if(se&&oe)return Y;var K=!se&&r.pointBetween(X,V,$),me=!oe&&r.pointBetween(W,V,$);if(se)return me?v(Y,W):v(B,$),Y;K&&(oe||(me?v(Y,W):v(B,$)),v(Y,X))}else re.alongA===0&&(re.alongB===-1?v(B,V):re.alongB===0?v(B,re.pt):re.alongB===1&&v(B,$)),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 B=function(){if(k){var Y=w(M,k);if(Y)return Y}return S?w(M,S):!1};var N=B;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=B();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 H=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=H}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 The(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(N,B,Y){return f.index=N,f.matches_head=B,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 Mhe={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)}};dR.exports=Mhe});var mR=G((cLe,pR)=>{var Ahe={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 khe=nR(),Lhe=lR(),yR=fR(),Che=vR(),Hv=hR(),gR=mR(),_i=!1,Ov=Lhe(),Nn;Nn={buildLog:function(e){return e===!0?_i=khe():e===!1&&(_i=!1),_i===!1?!1:_i.list},epsilon:function(e){return Ov.epsilon(e)},segments:function(e){var r=yR(!0,Ov,_i);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=yR(!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:Che(e.segments,Ov,_i),inverted:e.inverted}},polygonFromGeoJSON:function(e){return gR.toPolygon(Nn,e)},polygonToGeoJSON:function(e){return gR.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);xR.exports=Nn});var wR=G((dLe,_R)=>{_R.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((hLe,TR)=>{"use strict";var x4=mh().dot,gp=(Rt(),Fe(Nt)).BADNUM,xp=TR.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 MR={};pt(MR,{BENDPX:()=>She,MINSELECT:()=>qhe,SELECTDELAY:()=>Dhe,SELECTID:()=>Phe});var She,qhe,Dhe,Phe,AR=Cr(()=>{"use strict";She=1.5,qhe=12,Dhe=100,Phe="-select"});var WR=G((pLe,XR)=>{"use strict";var kR=bR(),Ehe=wR(),Vv=Ar(),Rhe=$r().dashStyle,Gv=kr(),zhe=xi(),Fhe=Wi().makeEventData,$v=lf(),Nhe=$v.freeMode,Ihe=$v.rectMode,Xv=$v.drawMode,M4=$v.openMode,A4=$v.selectMode,LR=Wo(),CR=(Pv(),Fe(Dv)),ER=ap(),RR=Ro().clearOutline,zR=Uo(),_4=zR.handleEllipse,Bhe=zR.readPaths,Hhe=ep().newShapes,Ohe=Xb(),Yhe=g4().activateLastSelection,_p=Se(),Ghe=_p.sorterAsc,FR=b4(),Uv=Ch(),wi=va().getFromId,Uhe=X1(),Vhe=pp().redrawReglTraces,wp=(AR(),Fe(MR)),ql=wp.MINSELECT,Xhe=FR.filter,k4=FR.tester,L4=$1(),SR=L4.p2r,Whe=L4.axValue,Zhe=L4.getTransform;function C4(e){return e.subplot!==void 0}function Jhe(e,r,t,a,n){var i=!C4(a),l=Nhe(n),o=Ihe(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=Zhe(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,H=a.xaxes[0],N=a.yaxes[0],B=H._length,Y=N._length,O=e.altKey&&!(Xv(n)&&s),U,X,W,V,$,re,se;IR(e,p,a),l&&(U=Xhe([[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":Rhe(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=H._id,ke=N._id;GR(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&&NR(ke,p,a.xaxes,a.yaxes,a.subplot,a,oe),Le==="event"&&Jv(p,void 0);zhe.click(p,ke,w.id)}).catch(_p.error)}},a.doneFn=function(){Me.remove(),Uv.done(ce).then(function(){Uv.clear(ce),!y&&V&&a.selectionDefs&&(V.subtract=O,a.selectionDefs.push(V),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 NR(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(e1e(o)){IR(e,r,i),v=Tp(r,t,a,n);var A=r1e(o,v),k=A.pointNumbers.length>0;if(k?t1e(v,A):a1e(v)&&(_=DR(A))){for(l&&l.remove(),M=0;M=0}function Qhe(e){return e._fullLayout._activeSelectionIndex>=0}function Wv(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;jhe(n)&&n._fullLayout._deactivateShape(n),Qhe(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=Hhe(u,e)),f&&Vv.call("_guiRelayout",n,{shapes:f});var c;s&&!C4(e)&&(c=Ohe(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,Vv.call("_guiRelayout",n,{selections:c}).then(function(){r&&Yhe(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function qR(e){return e._id}function Tp(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(qR),l=t.map(qR),o,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function t1e(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=PR(e,!0);if(qe.length){var ke=qe[0].xref,Le=qe[0].yref;if(ke&&Le){var Ce=UR(qe),ze=VR([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,l1e(o,s,f)||GR(e,o,s,a),ge&&(Te.points.length?Jv(e,Te):D4(e)),v._deselect=!1}return{eventData:Te,selectionTesters:t}}function i1e(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";ZR.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:()=>c1e});function c1e(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((gLe,KR)=>{"use strict";var JR=P4(),$R=Ta(),Mp=(La(),Fe(ka)),v1e=yt().templatedArray,yLe=(jv(),Fe(Kv));KR.exports=v1e("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:$R({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:JR.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:JR.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:$R({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ap={};pt(Ap,{PTS_LINESONLY:()=>d1e,eventDataKeys:()=>y1e,maxScreensAway:()=>m1e,minTolerance:()=>h1e,toleranceGrowth:()=>p1e});var d1e,h1e,p1e,m1e,y1e,kp=Cr(()=>{"use strict";d1e=20,h1e=.2,p1e=10,m1e=20,y1e=[]});var E4=G((xLe,jR)=>{"use strict";jR.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var ji=G((bLe,lz)=>{"use strict";var QR=Xi().axisHoverFormat,{hovertemplateAttrs:g1e,texttemplateAttrs:x1e,templatefallbackAttrs:ez}=Vn(),rz=uv(),b1e=Ta(),tz=Yi().dash,_1e=Yi().pattern,w1e=$r(),T1e=(kp(),Fe(Ap)),Qv=At().extendFlat,M1e=E4();function az(e){return{valType:"any",dflt:0,editType:"calc"}}function nz(e){return{valType:"any",editType:"calc"}}function iz(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}lz.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:az("x"),yperiod:az("y"),xperiod0:nz("x0"),yperiod0:nz("y0"),xperiodalignment:iz("x"),yperiodalignment:iz("y"),xhoverformat:QR("x"),yhoverformat:QR("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:x1e(),texttemplatefallback:ez({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:g1e({},{keys:T1e.eventDataKeys}),hovertemplatefallback:ez(),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({},tz,{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:M1e(!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:_1e,marker:Qv({symbol:{valType:"enumerated",values:w1e.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({},tz,{arrayOk:!0}),editType:"calc"},rz("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"},rz("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:b1e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var R4=G((wLe,uz)=>{"use strict";var oz=df(),sz=ji().line,A1e=Yi().dash,Lp=At().extendFlat,k1e=Oi().overrideAll,L1e=yt().templatedArray,_Le=(jv(),Fe(Kv));uz.exports=k1e(L1e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Lp({},oz.xref,{}),yref:Lp({},oz.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:sz.color,width:Lp({},sz.width,{min:1,dflt:1}),dash:Lp({},A1e,{dflt:"dot"})}}),"arraydraw","from-root")});var dz=G((TLe,vz)=>{"use strict";var fz=Se(),Cp=Qr(),C1e=mi(),S1e=R4(),cz=Wo();vz.exports=function(r,t){C1e(r,t,{name:"selections",handleItemDefaults:q1e});for(var a=t.selections,n=0;n{"use strict";hz.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((ALe,gz)=>{"use strict";var D1e=Ar(),mz=Se(),yz=va();gz.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var l=D1e.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 xz=g4(),r2=WR();bz.exports={moduleType:"component",name:"selections",layoutAttributes:R4(),supplyLayoutDefaults:dz(),supplyDrawNewSelectionDefaults:pz(),includeBasePlot:e2()("selections"),draw:xz.draw,drawOne:xz.drawOne,reselect:r2.reselect,prepSelect:r2.prepSelect,clearOutline:r2.clearOutline,clearSelectionsCache:r2.clearSelectionsCache,selectOnClick:r2.selectOnClick}});var Hz=G((LLe,Bz)=>{"use strict";var H4=Er(),Ti=Se(),_z=Ti.numberFormat,P1e=pb(),Sp=Ar(),Sz=Ti.strTranslate,E1e=ba(),F4=kr(),Jo=$r(),R1e=xi(),wz=Qr(),z1e=Yo(),F1e=Ji(),qz=lf(),qp=qz.selectingOrDrawing,N1e=qz.freeMode,I1e=(Xa(),Fe(Va)).FROM_TL,B1e=X1(),H1e=pp().redrawReglTraces,O1e=Jt(),N4=va().getFromId,Y1e=hf().prepSelect,G1e=hf().clearOutline,U1e=hf().selectOnClick,z4=f4(),O4=(La(),Fe(ka)),Tz=O4.MINDRAG,Mn=O4.MINZOOM,Mz=!0;function V1e(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,H,N,B,Y,O;t+=r.yaxis._shift;function U(){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&&U1e(ye,Ie,m,y,r.id,V),Xe.indexOf("event")>-1&&R1e.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=X1e(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(E1e.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)})}}F1e.init(V);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=Ez(s,me,x,_,ie),Te=Rz(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)*I1e[Ie||le.constraintoward||"middle"]}return W}function Dz(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(z1e,a),n.node()}function Pz(e,r,t,a,n,i,l){var o=Dz(e,"rect",r,t);return H4.select(o).call(Jo.setRect,a,n,i,l),o}function Az(e,r){for(var t=0;t=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 Ez(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",Sz(t,a)).attr("d",n+"Z")}function Rz(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",Sz(r,t)).attr("d","M0,0Z")}function zz(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"),Fz(e,r,n,i)}function Fz(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 Nz(e){Mz&&e.data&&e._context.showTips&&(Ti.notifier(Ti._(e,"Double-click to zoom back out"),"long",e),Mz=!1)}function J1e(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 $1e(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 Lz(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 K1e=Er(),Pp=xi(),j1e=Ji(),Q1e=Yo(),Qi=Hz().makeDragBox,qa=(La(),Fe(ka)).DRAGGERSIZE;Ep.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){K1e.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=Qi(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,j1e.unhover(r,v))},r._context.showAxisDragHandles&&(Qi(r,l,o._offset-qa,s._offset-qa,qa,qa,"n","w"),Qi(r,l,o._offset+o._length,s._offset-qa,qa,qa,"n","e"),Qi(r,l,o._offset-qa,s._offset+s._length,qa,qa,"s","w"),Qi(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),Qi(r,l,o._offset+o._length*.1,f,o._length*.8,qa,"","ew"),Qi(r,l,o._offset,f,o._length*.1,qa,"","w"),Qi(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),Qi(r,l,c,s._offset+s._length*.1,qa,s._length*.8,"ns",""),Qi(r,l,c,s._offset+s._length*.9,qa,s._length*.1,"s",""),Qi(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";Q1e(r._draggers,t)}});var Gz=G((SLe,Yz)=>{"use strict";var Oz=Ar();Yz.exports=function(r){for(var t=Oz.layoutArrayContainers,a=Oz.layoutArrayRegexes,n=r.split("[")[0],i,l,o=0;o{"use strict";var epe=qs(),G4=ph(),t2=To(),rpe=q5().sorterAsc,U4=Ar();a2.containerArrayMatch=Gz();var tpe=a2.isAddVal=function(r){return r==="add"||epe(r)},Uz=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(Uz(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(rpe),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),Uz(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 H;if(w===-1)H=p;else{for(b=Math.max(y.length,b),H=[],M=0;M=w));M++)H.push(k);for(M=w;M{"use strict";var Jz=Gr(),$z=Ar(),xn=Se(),n2=Jt(),Kz=va(),i2=Kz.cleanId,ape=Kz.getFromTrace,V4=$z.traceIs,npe=["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=Zz(r);t;){if(t in e)return!0;t=Zz(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(),ope=Gr(),spe=V5(),nr=Se(),bt=nr.nestedProperty,Z4=nv(),An=YL(),Ai=Ar(),Vp=H0(),qr=Jt(),bn=Qr(),upe=hb(),fpe=Zn(),Fp=$r(),cpe=kr(),vpe=Y4().initInteractions,dpe=($s(),Fe(Js)),hpe=hf().clearOutline,aF=wo().dfltConfig,zp=Vz(),ua=jz(),ft=pp(),$o=Oi(),ppe=(La(),Fe(ka)).AX_NAME_PATTERN,W4=0,Qz=5;function mpe(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)}iF(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)&&(Hpe(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,H=e.offsetHeight,N=Math.abs(F-D)>1||Math.abs(H-P)>1;D=F,P=H,N&&F&&H&&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 gpe(e){return nr.extendFlat(aF,e)}function nF(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){nr.error(t)}}function xpe(e,r){var t=cpe.combine(r,"white");nF(e,t)}function iF(e,r){if(!e._context){e._context=nr.extendDeep({},aF);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 lF(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 wpe(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],H=S.parts[R-1]+"."+F,N=S.parts.slice(0,R).join("."),B=bt(e.layout,N).get(),Y=bt(a,N).get(),O=S.get();if(D!==void 0){x[k]=D,_[k]=F==="reverse"?D:ro(O);var U=Vp.getLayoutValObject(a,S.parts);if(U&&U.impliedEdits&&D!==null)for(var X in U.impliedEdits)w(nr.relativeAttr(k,X),U.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(H.match(pF))A(H),bt(a,N+"._inputRange").set(null);else if(H.match(mF)){A(H),bt(a,N+"._inputRange").set(null);var V=bt(a,N).get();V._inputDomain&&(V._input.domain=V._inputDomain.slice())}else H.match(kpe)&&bt(a,N+"._inputDomain").set(null);if(F==="type"){M=B;var $=Y.type==="linear"&&D==="log",re=Y.type==="log"&&D==="linear";if($||re){if(!M||!M.range)w(N+".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(N+".autorange",!0),se<=0?se=oe/1e6:oe<=0&&(oe=se/1e6),w(N+".range[0]",Math.log(se)/Math.LN10),w(N+".range[1]",Math.log(oe)/Math.LN10)):(w(N+".range[0]",Math.pow(10,se)),w(N+".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(N+".autorange",!0),w(N+".range",null);bt(a,N+"._inputRange").set(null)}else if(F.match(ppe)){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),!N&&K&&D&&(D.range!==void 0||D.autorange!==void 0)&&(A(`${F}.range`),K._inputRange=null)}var ie=zp.containerArrayMatch(k);if(ie){f=ie.array,c=ie.index;var Me=ie.property,ue=U||{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"?(B.range?B.range.reverse():(w(N+".autorange",!0),B.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:U?$o.update(y,U):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)}}(gF(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 Spe(e,r){for(var t=0;t[N,e._ev.listeners(N)]);i=Kr.newPlot(e,r,t,a).then(()=>{for(let[N,B]of H)B.forEach(Y=>e.on(N,Y));return Kr.react(e,r,t,a)})}else{e.data=r||[],ua.cleanData(e.data),e.layout=t||{},ua.cleanLayout(e.layout),Dpe(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=Rpe(e,s,v,h,p),y=m.newDataRevision,x=Epe(e,o,c,h,p,y);if(gF(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 Epe(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 H=0;Ha._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 Fpe(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 Ipe(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 Bpe(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 Hpe(e){var r=Ip.select(e),t=e._fullLayout;if(t._calcInverseTransform=Bpe,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(dpe.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=zpe;Kr.addFrames=Fpe;Kr.deleteFrames=Npe;Kr.addTraces=cF;Kr.deleteTraces=vF;Kr.extendTraces=uF;Kr.moveTraces=J4;Kr.prependTraces=fF;Kr.newPlot=_pe;Kr._doPlot=mpe;Kr.purge=Ipe;Kr.react=Ppe;Kr.redraw=bpe;Kr.relayout=l2;Kr.restyle=Op;Kr.setPlotConfig=gpe;Kr.update=Gp;Kr._guiRelayout=$4(l2);Kr._guiRestyle=$4(Op);Kr._guiUpdate=$4(Gp);Kr._storeDirectGUIEdit=Ape});var yu=G(ki=>{"use strict";var Ope=Ar();ki.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};ki.getRedrawFunc=function(e){return function(){Ope.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 xF=window.URL||window.webkitURL;ki.createObjectURL=function(e){return xF.createObjectURL(e)};ki.revokeObjectURL=function(e){return xF.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=Ype(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 Ype(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Q4=Er(),zLe=Se(),Gpe=$r(),Upe=kr(),FLe=($s(),Fe(Js)),j4=/"/g,gu="TOBESTRIPPED",Vpe=new RegExp(`("${gu})|(${gu}")|("${gu})|(${gu}")`,"g"),Xpe=["&","&","&",""",""",""","'","'","'"],Wpe=["<","<","<"],Zpe=[">",">",">"];function Jpe(e){let r=Q4.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return Xpe.includes(n)?a:Wpe.includes(n)?"<":Zpe.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function $pe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}bF.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(Gpe.setRect,0,0,o,s).call(Upe.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Kpe=Se(),jpe=Fh().EventEmitter,s2=yu();function Qpe(e){var r=e.emitter||new jpe,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"||Kpe.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}_F.exports=Qpe});var r6=G((BLe,MF)=>{"use strict";var wF=Gr(),TF=K4(),eme=Jt(),Dl=Se(),u2=yu(),rme=Wp(),tme=Zp(),ame=Mc().version,e6=(o5(),Fe(l5)).default;function nme(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&&wF(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&wF(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=rme(m,u,v),D=m._fullLayout.width,P=m._fullLayout.height;function R(){TF.purge(m),document.body.removeChild(m)}if(u==="full-json"){var F=eme.graphJson(m,!1,"object",!0,!0);return F.version=ame,F=JSON.stringify(F),R(),A(p?F:u2.encodeJSON(F))}if(R(),u==="svg")return A(p?S:u2.encodeSVG(S));var H=document.createElement("canvas");H.id=Dl.randstr(),tme({format:u,width:D,height:P,scale:v,canvas:H,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){TF.newPlot(m,t,y,x).then(_).then(w).then(b).then(function(S){A(M(S))}).catch(function(S){k(S)})})}MF.exports=nme});var LF=G((HLe,kF)=>{"use strict";var Li=Se(),ime=Jt(),lme=H0(),ome=wo().dfltConfig,el=Li.isPlainObject,bu=Array.isArray,t6=Li.isArrayOrTypedArray;kF.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=lme.get(),n=[],i={_context:Li.extendFlat({},ome)},l,o;bu(r)?(i.data=Li.extendDeep([],r),l=r):(i.data=[],l=[],n.push(Da("array","data"))),el(t)?(i.layout=Li.extendDeep({},t),o=t):(i.layout={},o={},arguments.length>1&&n.push(Da("object","layout"))),ime.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 hme=Se(),$p=yu();function pme(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(hme.isSafari()){var f=t==="svg"?",":";base64,";return $p.octetStream(f+encodeURIComponent(e)),l(r)}o(new Error("download error"))});return i}CF.exports=pme});var a6=G((YLe,EF)=>{"use strict";var Kp=Se(),qF=ba(),mme=r6(),yme=SF(),DF=yu(),PF=40;function gme(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=mme(e,r),l=r.filename||e.fn;if(!l){let s=DF.getPlotTitle(e);if(s&&!qF.matchTex(s))l=Kp.slugify(s,PF);else{let u=DF.getPlotSubtitle(e);u&&!qF.matchTex(u)&&(l=Kp.slugify(u,PF))}}var o=l||"plot-image";o+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),yme(s,o,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}EF.exports=gme});var IF=G(n6=>{"use strict";var In=Se(),Bn=In.isPlainObject,RF=H0(),zF=Jt(),xme=qn(),FF=yt(),NF=wo().dfltConfig;n6.makeTemplate=function(e){e=In.isPlainObject(e)?e:In.getGraphDiv(e),e=In.extendDeep({_context:NF},{data:e.data,layout:e.layout}),zF.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,_me.bind(null,h));var m=In.coerce(h,{},xme,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),f2(t,a.layout,bme.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)&&wme(A)&&_(A,k)}}if(_({data:s,layout:o},""),l.length)return l.map(Tme)};function wme(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 Mme=$c().getGraphDiv,Ame=sp().eraseActiveShape;qt.deleteActiveShape=function(e){return Ame(Mme(e))};qt.toImage=r6();qt.validate=LF();qt.downloadImage=a6();var BF=IF();qt.makeTemplate=BF.makeTemplate;qt.validateTemplate=BF.validateTemplate});var c2=G((VLe,OF)=>{"use strict";var i6=Se(),kme=Ar();OF.exports=function(r,t,a,n){var i=n("x"),l=n("y"),o,s=kme.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((XLe,UF)=>{"use strict";var YF=Se().dateTick0,Lme=(Rt(),Fe(Nt)),Cme=Lme.ONEWEEK;function GF(e,r){return e%Cme===0?YF(r,1):YF(r,0)}UF.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var l=n("xperiod");l&&(n("xperiod0",GF(l,t.xcalendar)),n("xperiodalignment"))}if(i.y){var o=n("yperiod");o&&(n("yperiod0",GF(o,t.ycalendar)),n("yperiodalignment"))}}});var WF=G((WLe,XF)=>{"use strict";var VF=["orientation","groupnorm","stackgaps"];XF.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 ZF=kr(),JF=Wn().hasColorscale,$F=U0(),Sme=Jn();KF.exports=function(r,t,a,n,i,l={}){var o=Sme.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),JF(r,"marker")&&$F(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=ZF.background:u=ZF.defaultLine,i("marker.line.color",u),JF(r,"marker.line")&&$F(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 eN=G((JLe,QF)=>{"use strict";var qme=Se().isArrayOrTypedArray,Dme=Wn().hasColorscale,Pme=U0();QF.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),Dme(r,"line"))Pme(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(qme(o)?!1:o)||a;i("line.color",s)}i("line.width"),l.noDash||i("line.dash"),l.backoff&&i("line.backoff")}});var tN=G(($Le,rN)=>{"use strict";rN.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var nN=G((KLe,aN)=>{"use strict";var Eme=Se();aN.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Eme.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var oN=G((jLe,lN)=>{"use strict";var em=kr(),iN=Se().isArrayOrTypedArray;function Rme(e){for(var r=em.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var sN=Se(),zme=Ar(),Fme=ji(),Nme=(kp(),Fe(Ap)),mf=Jn(),Ime=c2(),Bme=_u(),Hme=WF(),Ome=jF(),Yme=eN(),uN=tN(),Gme=nN(),Ume=oN(),Vme=Se().coercePattern;fN.exports=function(r,t,a,n){function i(h,p){return sN.coerce(r,t,Fme,h,p)}var l=Ime(r,t,n,i);if(l||(t.visible=!1),!!t.visible){Bme(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var o=Hme(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!o&&l{"use strict";var Xme=mu().getAxisGroup;vN.exports=function(r,t,a,n,i){var l=t.orientation,o=t[{v:"x",h:"y"}[l]+"axis"],s=Xme(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 hN=G((rCe,dN)=>{"use strict";var Wme=Se(),Zme=yf(),Jme=ji();dN.exports=function(r,t){var a,n,i,l=t.scattermode;function o(v){return Wme.coerce(n._input,n,Jme,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 mN=G((tCe,pN)=>{"use strict";var $me=Se(),Kme=Oh();pN.exports=function(e,r){function t(n,i){return $me.coerce(e,r,Kme,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var wu=G((aCe,gN)=>{"use strict";var jme=Gr(),yN=Se(),Qme=yN.dateTime2ms,rm=yN.incrementMonth,eye=(Rt(),Fe(Nt)),rye=eye.ONEAVGMONTH;gN.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(jme(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=Qme(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 _N=G((nCe,bN)=>{"use strict";var l6=Wn().hasColorscale,o6=fv(),xN=Jn();bN.exports=function(r,t){xN.hasLines(t)&&l6(t,"line")&&o6(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),xN.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((iCe,wN)=>{"use strict";var Ut=Se();wN.exports=function(r,t){for(var a=0;a{"use strict";var TN=Se();MN.exports=function(r,t){TN.isArrayOrTypedArray(t.selectedpoints)&&TN.tagSelected(r,t)}});var d6=G((oCe,DN)=>{"use strict";var AN=Gr(),f6=Se(),d2=Qr(),kN=wu(),u6=(Rt(),Fe(Nt)).BADNUM,c6=Jn(),tye=_N(),aye=s6(),nye=v2();function iye(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=kN(r,a,"x",i),s=kN(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;SN(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=CN(r,c);LN(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";PN.exports=tm;var lye=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;ioye,eventDataKeys:()=>sye});var oye,sye,p2=Cr(()=>{"use strict";oye=3,sye=["value","label"]});var bf=G((uCe,NN)=>{"use strict";var Si=Gr(),{isArrayOrTypedArray:to}=Se(),{BADNUM:gf}=(Rt(),Fe(Nt)),uye=Ar(),m2=Qr(),{getAxisGroup:fye}=mu(),am=EN(),{TEXTPAD:cye}=(p2(),Fe(h2)),{LINE_SPACING:vye}=(Xa(),Fe(Va)),{BR_TAG_ALL:dye}=ba();function hye(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*vye*t+cye;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 Mye(e,r,t,a){for(var n=xf(a),i=0;i{"use strict";var IN=d6(),BN=bf().setGroupPositions;function kye(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 Cye=$r(),VN=(Rt(),Fe(Nt)),y2=VN.BADNUM,XN=VN.LOG_CLIP,YN=XN+.5,GN=XN-.5,nm=Se(),Sye=nm.segmentsIntersect,UN=nm.constrain,b6=(kp(),Fe(Ap));WN.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,H,N,B,Y,O,U,X,W,V;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?YN:GN)/(i._m*s*(i._m>0?YN:GN)))),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[UN(Pe[0],Me,ue),UN(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,U=N[0]*H[0]+N[1]*H[1],U>Y?(Y=U,D=R,F=!1):U=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 JN={tonextx:1,tonexty:1,tonext:1};$N.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 rl=Er(),qye=Ar(),g2=Se(),_f=g2.ensureSingle,QN=g2.identity,Kt=$r(),wf=Jn(),Dye=ZN(),Pye=KN(),im=b4().tester;eI.exports=function(r,t,a,n,i,l){var o,s,u=!i,f=!!i&&i.duration>0,c=Pye(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(),Eye(r,o,t),f){l&&(s=l());var v=rl.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){jN(r,p,t,h,c,this,i)})})}else o.each(function(h,p){jN(r,p,t,h,c,this,i)});u&&o.exit().remove(),n.selectAll("path:not([d])").remove()};function Eye(e,r,t){r.each(function(a){var n=_f(rl.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,QN);o.enter().append("g"),o.exit().remove(),o.order().each(function(s){i[s]=_f(rl.select(this),"path","js-fill")})})}function jN(e,r,t,a,n,i,l){var o=e._context.staticPlot,s;Rye(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=rl.select(i),y=_f(m,"g","errorbars"),x=_f(m,"g","lines"),_=_f(m,"g","points"),w=_f(m,"g","text");if(qye.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,H=null;R&&(D=R._prevRevpath||"",M=R._nextFill,P=R._ownPolygons,F=R._fillsegments,H=R._fillElement);var N,B,Y="",O="",U,X,W,V,$,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?(U=Kt.steps(p.shape),X=Kt.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?U=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)}:U=X=function(De){return"M"+De.join("L")},W=function(De){return X(De.reverse())},K=Dye(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";tI.exports={container:"marker",min:"cmin",max:"cmax"}});var nI=G((pCe,aI)=>{"use strict";var om=Qr();aI.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((mCe,iI)=>{"use strict";var _6=Er(),Tf=$r(),zye=Ar();function Fye(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),zye.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 Nye(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))}iI.exports={style:Fye,stylePoints:w6,styleText:T6,styleOnSelect:Nye}});var oI=G((yCe,lI)=>{"use strict";var Mf=kr(),Iye=Jn();lI.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)&&Iye.hasLines(r)&&r.line.width?a:r.fillcolor)}});var fI=G((gCe,uI)=>{"use strict";var sm=Se(),sI=xi(),Bye=Ar(),Hye=oI(),A6=kr(),Oye=sm.fillText;uI.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 U=o.c2p(O.xStart),X=o.c2p(O.xEnd);return u>=Math.min(U,X)&&u<=Math.max(U,X)?0:1/0}var W=Math.max(3,O.mrc||0),V=1-1/W,$=Math.abs(o.c2p(O.x)-u);return $=Math.min(U,X)&&f<=Math.max(U,X)?0:1/0}var W=Math.max(3,O.mrc||0),V=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),V=Math.max(V,ie)));return W=Math.max(W,0),V=Math.min(V,o._length),{x0:W,x1:V,y0:se,y1:se}}if(v.indexOf("fills")!==-1&&l._fillElement){var N=F(l._fillElement)&&!F(l._fillExclusionElement);if(N){var B=H(l._polygons);B===null&&(B={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:B.x0,x1:B.x1,y0:B.y0,y1:B.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 dI=G((xCe,vI)=>{"use strict";var cI=Jn();vI.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&&!cI.hasMarkers(o)&&!cI.hasText(o);if(v)return[];if(t===!1)for(s=0;s{"use strict";hI.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var xI=G((_Ce,gI)=>{"use strict";var um=Ar().traceIs,k6=Xx();gI.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Yye(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Yye(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Gye(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,yI(i,a)){var u=mI(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(yI(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function mI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function yI(e,r){var t=mI(e),a=um(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var _I=G((wCe,bI)=>{"use strict";var Uye=Sn().isTypedArraySpec;function Vye(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||Uye(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=Vye(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var MI=G((TCe,TI)=>{"use strict";var wI=kr(),Xye=vi(),Wye=Se();TI.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function l(S,D){return Wye.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=wI.mix(i,n.bgColor,n.blend||Xye.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=wI.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((MCe,qI)=>{"use strict";var AI=Gr(),Zye=Ar(),x2=Se(),Jye=yt(),$ye=mi(),L6=Zn(),kI=$h(),LI=Kh(),Kye=Qh(),jye=e1(),Qye=_I(),ege=MI(),rge=hb(),CI=h1(),fm=(La(),Fe(ka)).WEEKDAY_PATTERN,tge=(La(),Fe(ka)).HOUR_PATTERN;qI.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=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"),CI(t,i),rge(r,t,a,n),Qye(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(jye(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}}),kI(r,t,a,c);var _=n.hasMinor;if(_&&(Jye.newContainer(t,"minor"),kI(r,t,a,c,{isMinor:!0})),Kye(r,t,a,c,n),LI(r,t,a,n),_){var w=n.isMinor;n.isMinor=!0,LI(r,t,a,n),n.isMinor=w}ege(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($ye(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:age}),!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=SI(i[o]),s){l=fm;break}}var u=a("pattern",l);if(u===fm)for(o=0;o<2;o++)s=SI(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(!AI(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 tge:if(!AI(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 ige=Gr(),vm=Se();DI.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||(ige(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),o==="x"?(a("domainpad.left"),a("domainpad.right")):(a("domainpad.top"),a("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var HI=G((kCe,BI)=>{"use strict";var Tu=Se(),PI=kr(),lge=Wi().isUnifiedHover,oge=Yb(),EI=yt(),sge=q0(),RI=Zn(),uge=xI(),zI=cm(),fge=mu(),FI=dm(),S6=va(),Pl=S6.id2name,NI=S6.name2id,cge=(La(),Fe(ka)).AX_ID_PATTERN,II=Ar(),hm=II.traceIs,C6=II.getComponentMethod;function pm(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}BI.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 vge=Er(),OI=Ar(),mm=Se(),ai=$r(),ym=Qr();YI.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],H=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*H/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 N=mm.simpleMap(y.yr0,b.r2l),B=mm.simpleMap(y.yr1,b.r2l),Y=N[1]-N[0],O=B[1]-B[0];D[1]=(N[1]*(1-x)+x*B[1]-N[1])/(N[0]-N[1])*A,D[3]=A*(1-x+x*O/Y),b.range[0]=w.l2r(N[0]*(1-x)+x*B[0]),b.range[1]=b.l2r(N[1]*(1-x)+x*B[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 U=k?M/D[2]:1,X=S?A/D[3]:1,W=k?D[0]:0,V=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,V).call(ai.setScale,1/U,1/X),_.plot.call(ai.setTranslate,se,oe).call(ai.setScale,U,X),ai.setPointGroupScale(_.zoomScalePts,1/U,1/X),ai.setTextPointsScale(_.zoomScaleTxt,1/U,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(),UI=Ar(),Mu=Se(),dge=Jt(),hge=$r(),VI=ex().getModuleCalcData,Ko=va(),tl=(La(),Fe(ka)),pge=($s(),Fe(Js)),tt=Mu.ensureSingle;function gm(e,r,t){return Mu.ensureSingle(e,r,t,function(a){a.datum(t)})}var Au=tl.zindexSeparator;nn.name="cartesian";nn.attr=["xaxis","yaxis"];nn.idRoot=["x","y"];nn.idRegex=tl.idRegex;nn.attrRegex=tl.attrRegex;nn.attributes=pI();nn.layoutAttributes=Zn();nn.supplyLayoutDefaults=HI();nn.transitionAxes=GI();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 ZI(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=xm.select(this);f.remove(),JI(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();$I.exports={hasLines:bm.hasLines,hasMarkers:bm.hasMarkers,hasText:bm.hasText,isBubble:bm.isBubble,attributes:ji(),layoutAttributes:Oh(),supplyDefaults:cN(),crossTraceDefaults:hN(),supplyLayoutDefaults:mN(),calc:d6().calc,crossTraceCalc:ON(),arraysToCalcdata:s6(),plot:rI(),colorbar:lm(),formatLabels:nI(),style:M6().style,styleOnSelect:M6().styleOnSelect,hoverPoints:fI(),selectPoints:dI(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:ao(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var eB=G((qCe,QI)=>{"use strict";var yge=Er(),gge=kr(),jI=P4(),q6=Se(),xge=q6.strScale,bge=q6.strRotate,_ge=q6.strTranslate;QI.exports=function(r,t,a){var n=r.node(),i=jI[a.arrowhead||0],l=jI[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+_*_)){N();return}if(c){if(c*c>x*x+_*_){N();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+_*_){N();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 rB=Er(),D6=Ar(),wge=Jt(),Qo=Se(),P6=Qo.strTranslate,_2=Qr(),ku=kr(),no=$r(),tB=xi(),E6=ba(),R6=Yo(),b2=Ji(),Tge=yt().arrayEditor,Mge=eB();iB.exports={draw:Age,drawOne:aB,drawRaw:nB};function Age(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)),$)V.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)}H.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(Mge(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),vl=zi[0]+ht,oi=zi[1]+ma;k.call(no.setTranslate,vl,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+","+vl+","+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 cB=G((PCe,fB)=>{"use strict";var lB=Se(),kge=Ar(),oB=yt().arrayEditor;fB.exports={hasClickToShow:Lge,onClick:Cge};function Lge(e,r){var t=uB(e,r);return t.on.length>0||t.explicitOff.length>0}function Cge(e,r){var t=uB(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();vB.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 hB=G((RCe,dB)=>{"use strict";var N6=Se(),Lu=Qr(),Sge=mi(),qge=F6(),Dge=df();dB.exports=function(r,t){Sge(r,t,{name:"annotations",handleItemDefaults:Pge})};function Pge(e,r,t){function a(w,b){return N6.coerce(e,r,Dge,w,b)}var n=a("visible"),i=a("clicktoshow");if(n||i){qge(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 yB=G((zCe,mB)=>{"use strict";var I6=Se(),Cu=Qr(),Ege=_m().draw;mB.exports=function(r){var t=r._fullLayout,a=I6.filterVisible(t.annotations);if(a.length&&r._fullData.length)return I6.syncOrAsync([Ege,Rge],r)};function Rge(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"&&pB(t,a),l==="range"&&pB(t,n)})}function pB(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 xB=G((FCe,gB)=>{"use strict";var zge=Gr(),Fge=Hd();gB.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=Fge(p,t.range):m=Math.pow(10,p),zge(m)||(m=null),n(f+h,m)}for(var v=0;v{"use strict";var B6=_m(),bB=cB();_B.exports={moduleType:"component",name:"annotations",layoutAttributes:df(),supplyLayoutDefaults:hB(),includeBasePlot:e2()("annotations"),calcAutorange:yB(),draw:B6.draw,drawOne:B6.drawOne,drawRaw:B6.drawRaw,hasClickToShow:bB.hasClickToShow,onClick:bB.onClick,convertCoords:xB()}});var wm=G((ICe,TB)=>{"use strict";var _t=df(),Nge=Oi().overrideAll,Ige=yt().templatedArray;TB.exports=Nge(Ige("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 AB=G((BCe,MB)=>{"use strict";var H6=Se(),Bge=Qr(),Hge=mi(),Oge=F6(),Yge=wm();MB.exports=function(r,t,a){Hge(r,t,{name:"annotations",handleItemDefaults:Gge,fullLayout:a.fullLayout})};function Gge(e,r,t,a){function n(o,s){return H6.coerce(e,r,Yge,o,s)}function i(o){var s=o+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],Bge.coercePosition(r,u,n,o,o,.5)}var l=n("visible");l&&(Oge(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 SB=G((HCe,CB)=>{"use strict";var kB=Se(),LB=Qr();CB.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 Vge(e,r){var t=O6(e.projection,O6(e.view,O6(e.model,[r[0],r[1],r[2],1])));return t}qB.exports=Vge});var EB=G((YCe,PB)=>{"use strict";var Xge=_m().drawRaw,Wge=DB(),Zge=["x","y","z"];PB.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=Wge(r.glplot.cameraParams,[t.xaxis.r2l(l.x)*a[0],t.yaxis.r2l(l.y)*a[1],t.zaxis.r2l(l.z)*a[2]]),Xge(r.graphDiv,l,i,r.id,l._xa,l._ya))}}});var FB=G((GCe,zB)=>{"use strict";var Jge=Ar(),RB=Se();zB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:wm()}}},layoutAttributes:wm(),handleDefaults:AB(),includeBasePlot:$ge,convert:SB(),draw:EB()};function $ge(e,r){var t=Jge.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var UCe=(La(),Fe(ka)),NB=Ta(),IB=ji().line,Kge=Yi().dash,al=At().extendFlat,jge=yt().templatedArray,VCe=(jv(),Fe(Kv)),kf=qn(),BB=df(),{shapeTexttemplateAttrs:Qge,templatefallbackAttrs:e3e}=Vn(),r3e=xh();HB.exports=jge("shape",{visible:al({},kf.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:al({},kf.legend,{editType:"calc+arraydraw"}),legendgroup:al({},kf.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:al({},kf.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:NB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:al({},kf.legendrank,{editType:"calc+arraydraw"}),legendwidth:al({},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:al({},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:al({},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:al({},IB.color,{editType:"arraydraw"}),width:al({},IB.width,{editType:"calc+arraydraw"}),dash:al({},Kge,{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:Qge({},{keys:Object.keys(r3e)}),texttemplatefallback:e3e({editType:"arraydraw"}),font:NB({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 YB=G((WCe,OB)=>{"use strict";var Lf=Se(),ni=Qr(),t3e=mi(),a3e=Y6(),w2=Wo();OB.exports=function(r,t){t3e(r,t,{name:"shapes",handleItemDefaults:i3e})};function n3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function i3e(e,r,t){function a(w,b){return Lf.coerce(e,r,a3e,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 H=w2.countDefiningCoords(s,l,w);P=ni.coerceRefArray(e,r,A,w,void 0,"paper",H),r["_"+w+"refArray"]=!0}else P=ni.coerceRef(e,r,A,w,void 0,"paper");if(Array.isArray(P))P.forEach(function(H){ni.getRefType(H)==="range"&&(k=ni.getFromId(A,H),k&&k._shapeIndices.indexOf(r._index)===-1&&k._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let N=P[H];ni.getRefType(N)==="range"?(k=ni.getFromId(A,N),S=w2.shapePositionToRange(k),D=w2.rangeToShapePosition(k),(k.type==="category"||k.type==="multicategory")&&a(w+H+"shift")):S=D=Lf.identity;let Y=w+H,O=e[Y];if(e[Y]=S(e[Y],!0),M==="pixel"?a(Y,p[H]):ni.coercePosition(r,A,a,N,Y,h[H]),r[Y]=D(r[Y]),e[Y]=O,H===0&&M==="pixel"){let U=e[b];e[b]=S(e[b],!0),ni.coercePosition(r,A,a,N,b,.25),r[b]=D(r[b]),e[b]=U}});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 N=w+"0",B=w+"1",Y=e[N],O=e[B];e[N]=S(e[N],!0),e[B]=S(e[B],!0),M==="pixel"?(a(N,p[0]),a(B,p[1])):(ni.coercePosition(r,A,a,P,N,h[0]),ni.coercePosition(r,A,a,P,B,h[1])),r[N]=D(r[N]),r[B]=D(r[B]),e[N]=Y,e[B]=O}if(M==="pixel"){let N=e[b];e[b]=S(e[b],!0),ni.coercePosition(r,A,a,P,b,.25),r[b]=D(r[b]),e[b]=N}}}),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",n3e(m,_)),a("label.padding"),Lf.coerceFont(a,"label.font",t.font)}}});var VB=G((ZCe,UB)=>{"use strict";var l3e=kr(),GB=Se();function o3e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}UB.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"),GB.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",l3e.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",o3e(l,u)),a("newshape.label.padding"),GB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var jB=G((JCe,KB)=>{"use strict";var G6=Se(),qi=Qr(),El=(Pv(),Fe(Dv)),U6=Wo();KB.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,WB(i))})}else i.xref!=="paper"&&s!=="domain"&&(l=qi.getFromId(r,i.xref),o=JB(l,i,El.paramIsX),o&&(i._extremes[l._id]=qi.findExtremes(l,o,WB(i))));if(u==="array"){let f=XB(r,i,"y");Object.entries(f).forEach(([c,v])=>{l=qi.getFromId(r,c),i._extremes[l._id]=qi.findExtremes(l,v,ZB(i))})}else i.yref!=="paper"&&u!=="domain"&&(l=qi.getFromId(r,i.yref),o=JB(l,i,El.paramIsY),o&&(i._extremes[l._id]=qi.findExtremes(l,o,ZB(i))))}};function XB(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 WB(e){return $B(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function ZB(e){return $B(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function $B(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 JB(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 rH=G(($Ce,eH)=>{"use strict";var QB=sp();eH.exports={moduleType:"component",name:"shapes",layoutAttributes:Y6(),supplyLayoutDefaults:YB(),supplyDrawNewShapeDefaults:VB(),includeBasePlot:e2()("shapes"),calcAutorange:jB(),draw:QB.draw,drawOne:QB.drawOne}});var V6=G((jCe,aH)=>{"use strict";var tH=(La(),Fe(ka)),s3e=yt().templatedArray,KCe=(jv(),Fe(Kv));aH.exports=s3e("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",tH.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",tH.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var iH=G((QCe,nH)=>{"use strict";var u3e=Se(),X6=Qr(),f3e=mi(),c3e=V6(),v3e="images";nH.exports=function(r,t){var a={name:v3e,handleItemDefaults:d3e};f3e(r,t,a)};function d3e(e,r,t){function a(v,h){return u3e.coerce(e,r,c3e,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 uH=G((eSe,sH)=>{"use strict";var lH=Er(),h3e=$r(),Cf=Qr(),oH=va(),p3e=($s(),Fe(Js));sH.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],l,o;for(o=0;o{"use strict";var fH=Gr(),m3e=Hd();cH.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";dH.exports={moduleType:"component",name:"images",layoutAttributes:V6(),supplyLayoutDefaults:iH(),includeBasePlot:e2()("images"),draw:uH(),convertCoords:vH()}});var Tm={};pt(Tm,{activeColor:()=>O3e,arrowOffsetX:()=>I3e,arrowPadX:()=>E3e,arrowSymbol:()=>G3e,autoMarginIdRoot:()=>C3e,blankHeaderOpts:()=>S3e,buttonClassName:()=>M3e,containerClassName:()=>g3e,dropdownButtonClassName:()=>T3e,dropdownButtonGroupClassName:()=>w3e,gapButton:()=>H3e,gapButtonHeader:()=>B3e,headerArrowClassName:()=>_3e,headerClassName:()=>b3e,headerGroupClassName:()=>x3e,hoverColor:()=>Y3e,itemRectClassName:()=>A3e,itemTextClassName:()=>k3e,menuIndexAttrName:()=>L3e,minHeight:()=>D3e,minWidth:()=>q3e,name:()=>y3e,rx:()=>R3e,ry:()=>z3e,textOffsetX:()=>F3e,textOffsetY:()=>N3e,textPadX:()=>P3e});var y3e,g3e,x3e,b3e,_3e,w3e,T3e,M3e,A3e,k3e,L3e,C3e,S3e,q3e,D3e,P3e,E3e,R3e,z3e,F3e,N3e,I3e,B3e,H3e,O3e,Y3e,G3e,Mm=Cr(()=>{"use strict";y3e="updatemenus",g3e="updatemenu-container",x3e="updatemenu-header-group",b3e="updatemenu-header",_3e="updatemenu-header-arrow",w3e="updatemenu-dropdown-button-group",T3e="updatemenu-dropdown-button",M3e="updatemenu-button",A3e="updatemenu-item-rect",k3e="updatemenu-item-text",L3e="updatemenu-active-index",C3e="updatemenu-",S3e={label:" "},q3e=30,D3e=30,P3e=24,E3e=16,R3e=2,z3e=2,F3e=12,N3e=3,I3e=4,B3e=5,H3e=2,O3e="#F4FAFF",Y3e="#F4FAFF",G3e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var W6=G((aSe,mH)=>{"use strict";var U3e=Ta(),V3e=vi(),X3e=At().extendFlat,W3e=Oi().overrideAll,Z3e=bh(),pH=yt().templatedArray,J3e=pH("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}});mH.exports=W3e(pH("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:J3e,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:X3e(Z3e({editType:"arraydraw"}),{}),font:U3e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:V3e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var bH=G((nSe,xH)=>{"use strict";var Am=Se(),yH=mi(),gH=W6(),$3e=(Mm(),Fe(Tm)),K3e=$3e.name,j3e=gH.buttons;xH.exports=function(r,t){var a={name:K3e,handleItemDefaults:Q3e};yH(r,t,a)};function Q3e(e,r,t){function a(l,o){return Am.coerce(e,r,gH,l,o)}var n=yH(e,r,{name:"buttons",handleItemDefaults:e5e}),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 e5e(e,r){function t(n,i){return Am.coerce(e,r,j3e,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 TH=G((iSe,wH)=>{"use strict";wH.exports=Ht;var nl=Er(),_H=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(_H.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 H=f>x,N=Ht.barWidth+2*Ht.barPad,B=Ht.barLength+2*Ht.barPad,Y=o+s,O=u;Y+N>i&&(Y=i-N);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(_H.fill,Ht.barColor),H?(this.vbar=U.attr({rx:Ht.barRadius,ry:Ht.barRadius,x:Y,y:O,width:N,height:B}),this._vbarYMin=O+B/2,this._vbarTranslateMax=x-B):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var X=this.id,W=_-.5,V=H?w+N+.5:w+.5,$=b-.5,re=k?M+D+.5:M+.5,se=n._topdefs.selectAll("#"+X).data(k||H?[0]:[]);if(se.exit().remove(),se.enter().append("clipPath").attr("id",X).append("rect"),k||H?(this._clipRect=se.select("rect").attr({x:Math.floor(W),y:Math.floor($),width:Math.ceil(V)-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||H){var oe=nl.behavior.drag().on("dragstart",function(){nl.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=nl.behavior.drag().on("dragstart",function(){nl.event.sourceEvent.preventDefault(),nl.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(K),H&&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-=nl.event.dx),this.vbar&&(t-=nl.event.dy),this.setTranslate(r,t)};Ht.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=nl.event.deltaY),this.vbar&&(t+=nl.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(nl.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(nl.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 EH=G((lSe,PH)=>{"use strict";var qf=Er(),T2=Jt(),M2=kr(),Df=$r(),ii=Se(),Lm=ba(),r5e=yt().arrayEditor,AH=(Xa(),Fe(Va)).LINE_SPACING,Sr=(Mm(),Fe(Tm)),t5e=TH();PH.exports=function(r){var t=r._fullLayout,a=ii.filterVisible(t[Sr.name]);function n(v){T2.autoMargin(r,qH(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,a5e);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 f5e=(Mm(),Fe(Tm));RH.exports={moduleType:"component",name:f5e.name,layoutAttributes:W6(),supplyLayoutDefaults:bH(),draw:EH()}});var k2={};pt(k2,{arrowOffsetX:()=>q5e,autoMarginIdRoot:()=>k5e,containerClassName:()=>v5e,currentValueClass:()=>T5e,currentValueInset:()=>axe,currentValuePadding:()=>txe,gripBgActiveColor:()=>X5e,gripBgColor:()=>V5e,gripBorder:()=>Y5e,gripBorderColor:()=>U5e,gripBorderWidth:()=>G5e,gripHeight:()=>O5e,gripRadius:()=>B5e,gripRectClass:()=>y5e,gripWidth:()=>H5e,groupClassName:()=>d5e,inputAreaClass:()=>h5e,inputProxyClass:()=>x5e,labelClass:()=>w5e,labelGroupClass:()=>_5e,labelOffset:()=>Z5e,labelPadding:()=>W5e,labelsClass:()=>b5e,menuIndexAttrName:()=>A5e,minHeight:()=>C5e,minWidth:()=>L5e,minorTickColor:()=>exe,minorTickLength:()=>rxe,minorTickOffset:()=>Q5e,name:()=>c5e,railBgColor:()=>F5e,railBorder:()=>E5e,railBorderColor:()=>z5e,railBorderWidth:()=>R5e,railHeight:()=>M5e,railInset:()=>N5e,railRadius:()=>D5e,railRectClass:()=>p5e,railTouchRectClass:()=>m5e,railWidth:()=>P5e,stepInset:()=>I5e,textPadX:()=>S5e,tickColor:()=>$5e,tickLength:()=>j5e,tickOffset:()=>K5e,tickRectClass:()=>g5e,tickWidth:()=>J5e});var 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,exe,rxe,txe,axe,L2=Cr(()=>{"use strict";c5e="sliders",v5e="slider-container",d5e="slider-group",h5e="slider-input-area",p5e="slider-rail-rect",m5e="slider-rail-touch-rect",y5e="slider-grip-rect",g5e="slider-tick-rect",x5e="slider-input-proxy",b5e="slider-labels",_5e="slider-label-group",w5e="slider-label",T5e="slider-current-value",M5e=5,A5e="slider-active-index",k5e="slider-",L5e=30,C5e=30,S5e=40,q5e=4,D5e=2,P5e=5,E5e=4,R5e=1,z5e="#bec8d9",F5e="#f8fafc",N5e=8,I5e=10,B5e=10,H5e=20,O5e=20,Y5e=20,G5e=1,U5e="#bec8d9",V5e="#f6f8fa",X5e="#dbdde0",W5e=8,Z5e=0,J5e=1,$5e="#333",K5e=25,j5e=7,Q5e=25,exe="#333",rxe=4,txe=8,axe=0});var K6=G((sSe,IH)=>{"use strict";var FH=Ta(),nxe=bh(),ixe=At().extendDeepAll,lxe=Oi().overrideAll,oxe=Kc(),NH=yt().templatedArray,Su=(L2(),Fe(k2)),sxe=NH("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}});IH.exports=lxe(NH("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:sxe,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:ixe(nxe({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:oxe.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:FH({})},font:FH({}),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 YH=G((uSe,OH)=>{"use strict";var Pf=Se(),BH=mi(),HH=K6(),uxe=(L2(),Fe(k2)),fxe=uxe.name,cxe=HH.steps;OH.exports=function(r,t){BH(r,t,{name:fxe,handleItemDefaults:vxe})};function vxe(e,r,t){function a(c,v){return Pf.coerce(e,r,HH,c,v)}for(var n=BH(e,r,{name:"steps",handleItemDefaults:dxe}),i=0,l=0;l{"use strict";var il=Er(),Cm=Jt(),es=kr(),ll=$r(),li=Se(),hxe=li.strTranslate,C2=ba(),pxe=yt().arrayEditor,Hr=(L2(),Fe(k2)),e_=(Xa(),Fe(Va)),VH=e_.LINE_SPACING,j6=e_.FROM_TL,Q6=e_.FROM_BR;KH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=mxe(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,XH(f))}if(i.exit().each(function(){il.select(this).selectAll("g."+Hr.groupClassName).each(l)}).remove(),n.length!==0){var o=i.selectAll("g."+Hr.groupClassName).data(n,yxe);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",hxe(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 UH(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 Mxe(e,r,t){var a=t._dims,n=li.ensureSingle(e,"rect",Hr.railTouchRectClass,function(i){i.call(JH,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),ll.setTranslate(n,0,a.currentValueTotalHeight)}function Axe(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"),ll.setTranslate(n,Hr.railInset,(t.inputAreaWidth-Hr.railWidth)*.5+t.currentValueTotalHeight)}});var eO=G((cSe,QH)=>{"use strict";var kxe=(L2(),Fe(k2));QH.exports={moduleType:"component",name:kxe.name,layoutAttributes:K6(),supplyLayoutDefaults:YH(),draw:jH()}});var qm=G((vSe,tO)=>{"use strict";var rO=vi();tO.exports={bgcolor:{valType:"color",dflt:rO.background,editType:"plot"},bordercolor:{valType:"color",dflt:rO.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((dSe,aO)=>{"use strict";aO.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:()=>Sxe,containerClassName:()=>Cxe,extraPad:()=>jxe,grabAreaCursor:()=>Wxe,grabAreaFill:()=>Xxe,grabAreaMaxClassName:()=>Ixe,grabAreaMinClassName:()=>zxe,grabAreaWidth:()=>Zxe,grabberMaxClassName:()=>Nxe,grabberMinClassName:()=>Rxe,handleMaxClassName:()=>Bxe,handleMinClassName:()=>Fxe,handleRadius:()=>$xe,handleStrokeWidth:()=>Kxe,handleWidth:()=>Jxe,maskColor:()=>Yxe,maskMaxClassName:()=>Pxe,maskMaxOppAxisClassName:()=>Oxe,maskMinClassName:()=>Dxe,maskMinOppAxisClassName:()=>Hxe,maskOppAxisColor:()=>Gxe,name:()=>Lxe,rangePlotClassName:()=>qxe,slideBoxClassName:()=>Exe,slideBoxCursor:()=>Vxe,slideBoxFill:()=>Uxe});var Lxe,Cxe,Sxe,qxe,Dxe,Pxe,Exe,Rxe,zxe,Fxe,Nxe,Ixe,Bxe,Hxe,Oxe,Yxe,Gxe,Uxe,Vxe,Xxe,Wxe,Zxe,Jxe,$xe,Kxe,jxe,Pm=Cr(()=>{"use strict";Lxe="rangeslider",Cxe="rangeslider-container",Sxe="rangeslider-bg",qxe="rangeslider-rangeplot",Dxe="rangeslider-mask-min",Pxe="rangeslider-mask-max",Exe="rangeslider-slidebox",Rxe="rangeslider-grabber-min",zxe="rangeslider-grabarea-min",Fxe="rangeslider-handle-min",Nxe="rangeslider-grabber-max",Ixe="rangeslider-grabarea-max",Bxe="rangeslider-handle-max",Hxe="rangeslider-mask-min-opp-axis",Oxe="rangeslider-mask-max-opp-axis",Yxe="rgba(0,0,0,0.4)",Gxe="rgba(0,0,0,0.2)",Uxe="transparent",Vxe="ew-resize",Xxe="transparent",Wxe="col-resize",Zxe=10,Jxe=4,$xe=1,Kxe=1,jxe=15});var lO=G(Rm=>{"use strict";var Qxe=va(),ebe=ba(),nO=(Pm(),Fe(Dm)),rbe=(Xa(),Fe(Va)).LINE_SPACING,Em=nO.name;function iO(e){var r=e&&e[Em];return r&&r.visible}Rm.isVisible=iO;Rm.makeData=function(e){for(var r=Qxe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var zm=Se(),oO=yt(),sO=va(),tbe=qm(),abe=t_();uO.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=oO.newContainer(i,"rangeslider");function s(M,A){return zm.coerce(l,o,tbe,M,A)}var u,f;function c(M,A){return zm.coerce(u,f,abe,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")))===sO.name2id(a)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),m=zm.simpleMap(p,sO.id2name),y=0;y{"use strict";var nbe=va().list,ibe=mv().getAutoRange,lbe=(Pm(),Fe(Dm));cO.exports=function(r){for(var t=nbe(r,"x",!0),a=0;a{"use strict";var Fm=Er(),obe=Ar(),sbe=Jt(),jt=Se(),Nm=jt.strTranslate,hO=$r(),rs=kr(),ube=hv(),fbe=ao(),a_=va(),cbe=Ji(),vbe=Yo(),Vr=(Pm(),Fe(Dm));pO.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=O.max)B=P[Y+1];else if(N=O.pmax)B=P[Y+1];else if(N0?e.touches[0].clientX:0}function dbe(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=dO(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=cbe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(x){var _=dO(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 Tbe=Se(),Mbe=qm(),Abe=t_(),n_=lO();yO.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Tbe.extendFlat({},Mbe,{yaxis:Abe})}}},layoutAttributes:qm(),handleDefaults:fO(),calcAutorange:vO(),draw:mO(),isVisible:n_.isVisible,makeData:n_.makeData,autoMarginOpts:n_.autoMarginOpts}});var Im=G((xSe,bO)=>{"use strict";var kbe=Ta(),xO=vi(),Lbe=yt().templatedArray,Cbe=Lbe("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"});bO.exports={visible:{valType:"boolean",editType:"plot"},buttons:Cbe,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:kbe({editType:"plot"}),bgcolor:{valType:"color",dflt:xO.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:xO.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var i_={};pt(i_,{darkAmount:()=>Rbe,lightAmount:()=>Ebe,minButtonWidth:()=>qbe,rx:()=>Dbe,ry:()=>Pbe,yPad:()=>Sbe});var Sbe,qbe,Dbe,Pbe,Ebe,Rbe,l_=Cr(()=>{"use strict";Sbe=.02,qbe=30,Dbe=3,Pbe=3,Ebe=25,Rbe=10});var TO=G((bSe,wO)=>{"use strict";var Bm=Se(),zbe=kr(),Fbe=yt(),Nbe=mi(),_O=Im(),o_=(l_(),Fe(i_));wO.exports=function(r,t,a,n,i){var l=r.rangeselector||{},o=Fbe.newContainer(t,"rangeselector");function s(h,p){return Bm.coerce(l,o,_O,h,p)}var u=Nbe(l,o,{name:"buttons",handleItemDefaults:Ibe,calendar:i}),f=s("visible",u.length>0);if(f){var c=Bbe(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",zbe.contrast(v,o_.lightAmount,o_.darkAmount)),s("bordercolor"),s("borderwidth")}};function Ibe(e,r,t,a){var n=a.calendar;function i(s,u){return Bm.coerce(e,r,_O.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 Bbe(e,r,t){for(var a=t.filter(function(o){return r[o].anchor===e._id}),n=0,i=0;i{"use strict";var Hbe=Sg(),Obe=Se().titleCase;MO.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=Ybe(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function Ybe(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Hbe["utc"+Obe(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 EO=G((wSe,PO)=>{"use strict";var Om=Er(),Gbe=Ar(),Ube=Jt(),kO=kr(),DO=$r(),io=Se(),LO=io.strTranslate,Hm=ba(),Vbe=va(),f_=(Xa(),Fe(Va)),CO=f_.LINE_SPACING,SO=f_.FROM_TL,qO=f_.FROM_BR,u_=(l_(),Fe(i_)),Xbe=AO();PO.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(Wbe(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=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=Xbe(l,u);u._isActive=Jbe(l,u,c),f.call(s_,o,u),f.call(Kbe,o,u,r),f.on("click",function(){r._dragged||Gbe.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)})}),Qbe(r,s,o,l._name,i)})};function Wbe(e){for(var r=Vbe.list(e,"x",!0),t=[],a=0;a{"use strict";RO.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Im()}}},layoutAttributes:Im(),handleDefaults:TO(),draw:EO()}});var ts=G(c_=>{"use strict";var FO=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:FO({},t,{}),y:FO({},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 e4e=Se(),r4e=(L0(),Fe(Jc)).counter,t4e=ts().attributes,NO=(La(),Fe(ka)).idRegex,a4e=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:[r4e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[NO.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[NO.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:t4e({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 n4e(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=a4e.newContainer(r,"grid");function v(A,k){return e4e.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:IO("x",v,_,b,p),y:IO("y",v,w,M,h,x)}}function IO(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";YO.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 VO=G((LSe,UO)=>{"use strict";var GO=Gr(),l4e=Ar(),o4e=Se(),s4e=yt(),u4e=d_();UO.exports=function(e,r,t,a){var n="error_"+a.axis,i=s4e.newContainer(r,n),l=e[n]||{};function o(p,m){return o4e.coerce(l,i,u4e,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||GO(l.thickness)||GO(l.width)))}(!a.inherit||!i[v])&&(o("color",t),o("thickness"),o("width",l4e.traceIs(r,"gl3d")?0:4))}}});var h_=G((CSe,WO)=>{"use strict";WO.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=XO(t,r.value),o=XO(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 XO(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 $O=G((SSe,JO)=>{"use strict";var p_=Gr(),f4e=Ar(),m_=Qr(),c4e=Se(),v4e=h_();JO.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var KO=Er(),as=Gr(),d4e=$r(),h4e=Jn();jO.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=h4e.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!v.visible&&(f=[]);var y=KO.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),d4e.setClipUrl(y,a.layerClipId,r),y.each(function(_){var w=KO.select(this),b=p4e(_,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 p4e(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 tY=G((DSe,rY)=>{"use strict";var m4e=Er(),eY=kr();rY.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},l=m4e.select(this);l.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(eY.stroke,n.color),i.copy_ystyle&&(i=n),l.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(eY.stroke,i.color)})}});var iY=G((PSe,nY)=>{"use strict";var S2=Se(),aY=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;nY.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:qu,bar:qu,histogram:qu,scatter3d:aY(D2,"calc","nested"),scattergl:aY(qu,"calc","nested")}},supplyDefaults:VO(),calc:$O(),makeComputeError:h_(),plot:QO(),style:tY(),hoverInfo:y4e};function y4e(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 lY={};pt(lY,{cn:()=>g4e});var g4e,oY=Cr(()=>{"use strict";g4e={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 pY=G((ESe,hY)=>{"use strict";var ns=Er(),Um=Jt(),sY=Ar(),lo=Qr(),Gm=Ji(),Di=Se(),sl=Di.strTranslate,dY=At().extendFlat,y_=Yo(),ol=$r(),Ef=kr(),x4e=hv(),b4e=ba(),_4e=Wn().flipScale,w4e=cm(),T4e=dm(),M4e=Zn(),x_=(Xa(),Fe(Va)),uY=x_.LINE_SPACING,fY=x_.FROM_TL,cY=x_.FROM_BR,Ft=(oY(),Fe(lY)).cn;function A4e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Ft.colorbar).data(k4e(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=L4e(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&C4e(n,a,e)}),t.exit().each(function(a){Um.autoMargin(e,a._id)}).remove(),t.order()}function k4e(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,l,o;function s(w){return dY(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?_4e(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]],vY=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function L4e(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,H=S4e(t,r,D),N=H.fill,B=H.line,Y=Math.round(l*(o==="fraction"?a?b.w:b.h:1)),O=Y/(a?b.w:b.h),U=Math.round(n*(i==="fraction"?a?b.h:b.w:1)),X=U/(a?b.h:b.w),W=_?b.w:t._fullLayout.width,V=x?b.h:t._fullLayout.height,$=Math.round(a?m*W+h:y*V+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?V*(1-K):W*K);r._lenFrac=X,r._thickFrac=O,r._uFrac=oe,r._vFrac=K;var ie=r._axis=q4e(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(U/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=vY(g_([K,K+X],ge),ge),ie.setScale(),e.attr("transform",sl(Math.round(b.l),Math.round(b.t)));var qe=e.select("."+Ft.cbtitleunshift).attr("transform",sl(-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(),x4e.draw(t,te,dY(Ve,xe||{}))}function Qe(){if(a&&Me||!a&&!Me){var te,xe;S==="top"&&(te=h+b.l+W*m,xe=p+b.t+V*(1-K-X)+3+Le*.75),S==="bottom"&&(te=h+b.l+W*m,xe=p+b.t+V*(1-K)-3-Le*.25),S==="right"&&(xe=p+b.t+V*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+V*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+V*te+10-Y-uY*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)*uY);var le;if(cr?(le=ol.bBox(cr),Ue=le.width,Ae=le.height,Ae>mr&&(Ve[1]-=(Ae-mr)/2)):xe.node()&&!xe.classed(Ft.jsPlaceholder)&&(le=ol.bBox(xe.node()),Ue=le.width,Ae=le.height),a){if(Ae){if(Ae+=5,S==="top")ie.domain=vY(ie.domain,Ae/b.h),Ve[1]*=-1;else{ie.domain=g_(ie.domain,Ae/b.h);var ye=b4e.lineCount(xe);Ve[1]+=(1-ye)*mr}te.attr("transform",sl(Ve[0],Ve[1])),ie.setScale()}}else Ue&&(S==="right"&&(ie.domain=g_(ie.domain,(Ue+Le/2)/b.w)),te.attr("transform",sl(Ve[0],Ve[1])),ie.setScale())}e.selectAll("."+Ft.cbfills+",."+Ft.cblines).attr("transform",a?sl(0,Math.round(b.h*(1-ie.domain[1]))):sl(Math.round(b.w*ie.domain[0]),0)),Ce.attr("transform",a?sl(0,Math.round(-b.t)):sl(Math.round(-b.l),0));var Ie=e.select("."+Ft.cbfills).selectAll("rect."+Ft.cbfill).attr("style","").data(N);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]:(N[Pe]+N[Pe-1])/2,Pe===N.length-1?D[1]:(N[Pe]+N[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)ol.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?B:[]);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(ol.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=ol.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=ol.bBox(Ie),Ve=te.width,ye=te.height):(te=ol.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",sl(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?U: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(U+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-U:$)+(cr?Ae:0)).attr(a?"width":"height",Math.max(Y,2)).attr(a?"height":"width",Math.max(U-(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",sl(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=ol.bBox(dr),pr=ol.getTranslate(e),ae=2;Ee.each(function(Qa,wt){var Zt=0,ra=je-1;if(wt===Zt||wt===ra){var ha=ol.bBox(this),en=ol.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=fY[c],Oe=cY[c],Zr=fY[v],vt=cY[v],Dt=Xe-Y;a?(i==="pixels"?(pe.y=y,pe.t=U*Zr,pe.b=U*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=U*Re,pe.r=U*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 C4e(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+sl(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?sY.call("_guiRestyle",t,u,r._traceIndex):sY.call("_guiRelayout",t,u)}}})}function S4e(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";mY.exports={moduleType:"component",name:"colorbar",attributes:Zh(),supplyDefaults:Tx(),draw:pY().draw,hasColorbar:mx()}});var xY=G((zSe,gY)=>{"use strict";gY.exports={moduleType:"component",name:"legend",layoutAttributes:bb(),supplyLayoutDefaults:wb(),draw:Fb(),style:Pb()}});var _Y=G((FSe,bY)=>{"use strict";bY.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 TY=G((NSe,wY)=>{"use strict";wY.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var __=G((ISe,LY)=>{"use strict";var D4e=Ar(),kY=Se(),b_=kY.extendFlat,MY=kY.extendDeep;function AY(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 P4e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}LY.exports=function(r,t){var a,n=r.data,i=r.layout,l=MY([],n),o=MY({},i,AY(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 E4e=Fh().EventEmitter,R4e=Ar(),z4e=Se(),CY=yu(),F4e=__(),N4e=Wp(),I4e=Zp();function B4e(e,r){var t=new E4e,a=F4e(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var o=CY.getDelay(n._fullLayout);setTimeout(function(){var s=N4e(n),u=document.createElement("canvas");u.id=z4e.randstr(),t=I4e({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=CY.getRedrawFunc(n);return R4e.call("_doPlot",n,a.data,a.layout,a.config).then(l).then(i).catch(function(o){t.emit("error",o)}),t}SY.exports=B4e});var EY=G((HSe,PY)=>{"use strict";var DY=yu(),H4e={getDelay:DY.getDelay,getRedrawFunc:DY.getRedrawFunc,clone:__(),toSVG:Wp(),svgToImg:Zp(),toImage:qY(),downloadImage:a6()};PY.exports=H4e});var zY=G(oo=>{"use strict";oo.version=Mc().version;O9();kL();var O4e=Ar(),P2=oo.register=O4e.register,T_=HF(),RY=Object.keys(T_);for(Vm=0;Vm{"use strict";FY.exports=zY()});var so=G((GSe,YY)=>{"use strict";var Vt=ji(),IY=Xi().axisHoverFormat,{hovertemplateAttrs:Y4e,texttemplateAttrs:G4e,templatefallbackAttrs:BY}=Vn(),OY=uv(),U4e=Ta(),HY=(p2(),Fe(h2)),V4e=Yi().pattern,Du=At().extendFlat,M_=U4e({editType:"calc",arrayOk:!0,colorEditType:"style"}),X4e=Vt.marker,W4e=X4e.line,Z4e=Du({},W4e.width,{dflt:0}),J4e=Du({width:Z4e,editType:"calc"},OY("marker.line")),$4e=Du({line:J4e,editType:"calc"},OY("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:V4e,cornerradius:{valType:"any",editType:"calc"}});YY.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:IY("x"),yhoverformat:IY("y"),text:Vt.text,texttemplate:G4e({editType:"plot"},{keys:HY.eventDataKeys}),texttemplatefallback:BY({editType:"plot"}),hovertext:Vt.hovertext,hovertemplate:Y4e({},{keys:HY.eventDataKeys}),hovertemplatefallback:BY(),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:$4e,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((USe,GY)=>{"use strict";GY.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((VSe,XY)=>{"use strict";var K4e=kr(),UY=Wn().hasColorscale,VY=U0(),j4e=Se().coercePattern;XY.exports=function(r,t,a,n,i){var l=a("marker.color",n),o=UY(r,"marker");o&&VY(r,t,i,a,{prefix:"marker.",cLetter:"c"}),a("marker.line.color",K4e.defaultLine),UY(r,"marker.line")&&VY(r,t,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width"),a("marker.opacity"),j4e(a,"marker.pattern",l,o),a("selected.marker.color"),a("unselected.marker.color")}});var Rl=G((XSe,jY)=>{"use strict";var WY=Gr(),zf=Se(),ZY=kr(),Q4e=Ar(),e6e=c2(),r6e=_u(),t6e=A_(),a6e=yf(),JY=so(),Zm=zf.coerceFont;function n6e(e,r,t,a){function n(u,f){return zf.coerce(e,r,JY,u,f)}var i=e6e(e,r,a,n);if(!i){r.visible=!1;return}r6e(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");KY(e,r,a,n,l,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t6e(e,r,n,t,a);var o=(r.marker.line||{}).color,s=Q4e.getComponentMethod("errorbars","supplyDefaults");s(e,r,o||ZY.defaultLine,{axis:"y"}),s(e,r,o||ZY.defaultLine,{axis:"x",inherit:"y"}),zf.coerceSelectionMarkerOpacity(r,n)}function i6e(e,r){var t,a;function n(o,s){return zf.coerce(a._input,a,JY,o,s)}for(var i=0;i=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&WY(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function KY(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")}jY.exports={supplyDefaults:n6e,crossTraceDefaults:i6e,handleText:KY,validateCornerradius:$Y}});var k_=G((WSe,QY)=>{"use strict";var l6e=Ar(),o6e=Qr(),s6e=Se(),u6e=Wm(),f6e=Rl().validateCornerradius;QY.exports=function(e,r,t){function a(m,y){return s6e.coerce(e,r,u6e,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=o6e.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=f6e(p)}});var Jm=G((ZSe,eG)=>{"use strict";var Ff=Se();eG.exports=function(r,t){for(var a=0;a{"use strict";var rG=Qr(),tG=wu(),aG=Wn().hasColorscale,nG=fv(),c6e=Jm(),v6e=v2();iG.exports=function(r,t){var a=rG.getFromId(r,t.xaxis||"x"),n=rG.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=tG(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y",c),o=a.makeCalcdata(t,"x"),s=tG(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 d6e=Er(),h6e=Se();function p6e(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=d6e.select(this).select("text");h6e.setTransormAndDisplay(u,s)}})}}function m6e(e,r,t){if(t.uniformtext.mode){var a=oG(e),n=t.uniformtext.minsize,i=r.scale*r.fontSize;r.hide=i{"use strict";var g6e=kr(),x6e=Gr(),uG=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(x6e(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 g6e.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 uG(e)?r{"use strict";var E2=Er(),b6e=kr(),R2=$r(),fG=Se(),cG=Ar(),vG=ul().resizeText,L_=so(),_6e=L_.textfont,w6e=L_.insidetextfont,T6e=L_.outsidetextfont,Ja=$m();function M6e(e){var r=E2.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");vG(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;dG(i,l,e)}),cG.getComponentMethod("errorbars","style")(r)}function dG(e,r,t){R2.pointStyle(e.selectAll("path"),r,t),hG(e,r,t)}function hG(e,r,t){e.selectAll("text").each(function(a){var n=E2.select(this),i=fG.ensureUniformFontSize(t,pG(n,a,r,t));R2.font(n,i)})}function A6e(e,r,t){var a=r[0].trace;a.selectedpoints?k6e(t,a,e):(dG(t,a,e),cG.getComponentMethod("errorbars","style")(t))}function k6e(e,r,t){R2.selectedPointStyle(e.selectAll("path"),r),L6e(e.selectAll("text"),r,t)}function L6e(e,r,t){e.each(function(a){var n=E2.select(this),i;if(a.selected){i=fG.ensureUniformFontSize(t,pG(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 pG(e,r,t,a){var n=a._fullLayout.font,i=t.textfont;if(e.classed("bartext-inside")){var l=xG(r,t);i=yG(t,r.i,n,l)}else e.classed("bartext-outside")&&(i=gG(t,r.i,n));return i}function mG(e,r,t){return C_(_6e,e.textfont,r,t)}function yG(e,r,t,a){var n=mG(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:b6e.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_(w6e,e.insidetextfont,r,n)}function gG(e,r,t){var a=mG(e,r,t);return C_(T6e,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 xG(e,r){return r.type==="waterfall"?r[e.dir].marker.color:e.mcc||e.mc||r.marker.color}bG.exports={style:M6e,styleTextPoints:hG,styleOnSelect:A6e,getInsideTextFont:yG,getOutsideTextFont:gG,getBarColor:xG,resizeText:vG}});var If=G((QSe,CG)=>{"use strict";var Km=Er(),jm=Gr(),Ia=Se(),C6e=ba(),S6e=kr(),ls=$r(),q6e=Ar(),Qm=Qr().tickText,_G=ul(),D6e=_G.recordMinTextSize,P6e=_G.clearMinTextSize,S_=is(),Nf=$m(),E6e=(p2(),Fe(h2)),wG=so(),R6e=wG.text,z6e=wG.textposition,F6e=Wi().appendArrayPointValue,_n=E6e.TEXTPAD;function N6e(e){return e.id}function I6e(e){if(e.ids)return N6e}function q_(e){return(e>0)-(e<0)}function fl(e,r){return e0}function H6e(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},P6e("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=MG(n),k=Ia.ensureSingle(v,"g","points"),S=I6e(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 H=Km.select(this),N=B6e(R,l,o,M),B=N[0][0],Y=N[0][1],O=N[1][0],U=N[1][1],X=(M?Y-B:U-O)===0;X&&w&&Nf.getLineWidth(h,R)&&(X=!1),X||(X=!jm(B)||!jm(Y)||!jm(O)||!jm(U)),R.isBlank=X,X&&(M?Y=B:U=O),b&&!X&&(M?(B-=fl(B,Y)*b,Y+=fl(B,Y)*b):(O-=fl(O,U)*b,U+=fl(O,U)*b));var W,V;if(h.type==="waterfall"){if(!X){var $=h[R.dir].marker;W=$.line.width,V=$.color}}else W=Nf.getLineWidth(h,R),V=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=S6e.opacity(V),K=oe<1||W>.01?re:se;e._context.staticPlot||(B=K(B,Y,M),Y=K(Y,B,M),O=K(O,U,!M),U=K(U,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?U-O:Y-B),cr=Math.abs(M?Y-B:U-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"+B+","+O+"V"+U+"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"+B+","+O+"V"+(U-ze*Le)+"H"+Ue(Y-(ue-ge)*ke,B)+"A "+ue+","+ue+" 0 0 "+Ce+" "+Y+","+(U-ue*Le-Ae)+"V"+(O+ue*Le+Ae)+"A "+ue+","+ue+" 0 0 "+Ce+" "+Ue(Y-(ue-ge)*ke,B)+","+(O+ze*Le)+"Z"}else if(R.hasB)ce="M"+(B+ue*ke)+","+O+"A "+ue+","+ue+" 0 0 "+Ce+" "+B+","+(O+ue*Le)+"V"+(U-ue*Le)+"A "+ue+","+ue+" 0 0 "+Ce+" "+(B+ue*ke)+","+U+"H"+(Y-ue*ke)+"A "+ue+","+ue+" 0 0 "+Ce+" "+Y+","+(U-ue*Le)+"V"+(O+ue*Le)+"A "+ue+","+ue+" 0 0 "+Ce+" "+(Y-ue*ke)+","+O+"Z";else{Te=Math.abs(U-O)+ge;var $e=Te0?Math.sqrt(ge*(2*ue-ge)):0,De=Le>0?Math.max:Math.min;ce="M"+(B+$e*ke)+","+O+"V"+De(U-(ue-ge)*Le,O)+"A "+ue+","+ue+" 0 0 "+Ce+" "+(B+ue*ke-Qe)+","+U+"H"+(Y-ue*ke+Qe)+"A "+ue+","+ue+" 0 0 "+Ce+" "+(Y-$e*ke)+","+De(U-(ue-ge)*Le,O)+"V"+O+"Z"}}else ce=Ne}else ce=Ne;var He=TG(Ia.ensureSingle(H,"path"),s,n,i);if(He.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Y-B)*(U-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)}O6e(e,r,H,c,F,B,Y,O,U,ue,ge,n,i),r.layerClipId&&ls.hideOutsideRangePoint(R,H.select("text"),l,o,h.xcalendar,h.ycalendar)});var P=h.cliponaxis===!1;ls.setClipUrl(v,P?null:r.layerClipId,e)});q6e.getComponentMethod("errorbars","plot")(e,f,r,n)}function O6e(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(C6e.convertToTspans,e);return ke}var _=a[0].trace,w=_.orientation==="h",b=X6e(a,w,h,p),M=U6e(m,a,n,h,p);y=V6e(_,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],_),H=S_.getInsideTextFont(_,n,R,F),N=S_.getOutsideTextFont(_,n,R),B=_.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",V.remove(),V=null)}else y="inside";if(!V){oe=Ia.ensureUniformFontSize(e,y==="outside"?N:H),V=x(t,M,oe);var ie=V.attr("transform");if(V.attr("transform",""),$=ls.bBox(V.node()),re=$.width,se=$.height,V.attr("transform",ie),re<=0||se<=0){V.remove();return}}var Me=_.textangle,ue,ce;y==="outside"?(ce=_.constraintext==="both"||_.constraintext==="outside",ue=G6e(i,l,o,s,$,{isHorizontal:w,constrained:ce,angle:Me,zeroBarDir:b})):(ce=_.constraintext==="both"||_.constraintext==="inside",ue=LG(i,l,o,s,$,{isHorizontal:w,constrained:ce,angle:Me,anchor:B,hasB:D,r:u,overhead:f})),ue.fontSize=oe.size,D6e(_.type==="histogram"?"bar":_.type,ue,m),k.transform=ue;var Te=TG(V,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 AG(e){return e==="auto"?0:e}function kG(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 LG(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=AG(s);s==="auto"&&!(_<=b&&w<=M)&&(_>b||w>M)&&(!(_>M||w>b)||__n){var R=Y6e(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,H=(n.top+n.bottom)/2,N=(e+_n)*p+(r-_n)*h,B=(t+a)/2,Y=0,O=0;if(c||f){var U=(l?S.x:S.y)/2;y&&(f||m)&&(A+=P);var X=l?fl(e,r):fl(t,a);l?c?(N=e+X*A,Y=-X*U):(N=r-X*A,Y=X*U):c?(B=t+X*A,O=-X*U):(B=a-X*A,O=X*U)}return{textX:F,textY:H,targetX:N,targetY:B,anchorX:Y,anchorY:O,scale:D,rotate:k}}function Y6e(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 G6e(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=AG(s),y=kG(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?fl(r,e):fl(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 U6e(e,r,t,a,n){var i=r[0].trace,l=i.texttemplate,o;return l?o=W6e(e,r,t,a,n):i.textinfo?o=Z6e(r,t,a,n):o=Nf.getValue(i.text,t),Nf.coerceString(R6e,o)}function V6e(e,r){var t=Nf.getValue(e.textposition,r);return Nf.coerceEnumerated(z6e,t)}function X6e(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=-fl(s.range[0],s.range[1]);return i?n?0:-u:u}function W6e(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={};F6e(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 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 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("
")}CG.exports={plot:H6e,toMoveInsideBar:LG}});var F2=G((eqe,PG)=>{"use strict";var z2=xi(),J6e=Ar(),SG=kr(),$6e=Se().fillText,K6e=$m().getLineWidth,D_=Qr().hoverLabelText,j6e=(Rt(),Fe(Nt)).BADNUM;function Q6e(e,r,t,a,n){var i=qG(e,r,t,a,n);if(i){var l=i.cd,o=l[0].trace,s=l[i.index];return i.color=DG(o,s),J6e.getComponentMethod("errorbars","hoverInfo")(s,o,i),[i]}}function qG(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=B,x=F):(v=r,h=t,p="x",m="y",x=B,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 H(K){return R(M(K),A(K),c)}function N(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 B(K){var me=h,ie=K.b,Me=N(K);return z2.inbox(ie-me,Me-me,f+(Me-me)/(Me-ie)-1)}function Y(K){var me=h,ie=K.b,Me=N(K);return z2.inbox(ie-me,Me-me,c+(Me-me)/(Me-ie)-1)}var O=e[p+"a"],U=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!==j6e){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 V=e.index,$=i[V],re=l.base?$.b+$.s:$.s;e[m+"0"]=e[m+"1"]=U.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_(U,e[m+"LabelVal"],l[m+"hoverformat"]),e.baseLabel=D_(U,$.b,l[m+"hoverformat"]),e.spikeDistance=(Y($)+H($))/2,e[p+"Spike"]=O.c2p($.p,!0),$6e($,l,e),e.hovertemplate=l.hovertemplate,e}}function DG(e,r){var t=r.mcc||e.marker.color,a=r.mlcc||e.marker.line.color,n=K6e(e,r);if(SG.opacity(t))return t;if(SG.opacity(a)&&n)return a}PG.exports={hoverPoints:Q6e,hoverOnBars:qG,getTraceColor:DG}});var RG=G((rqe,EG)=>{"use strict";EG.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((tqe,zG)=>{"use strict";zG.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";FG.exports={attributes:so(),layoutAttributes:Wm(),supplyDefaults:Rl().supplyDefaults,crossTraceDefaults:Rl().crossTraceDefaults,supplyLayoutDefaults:k_(),calc:lG(),crossTraceCalc:bf().crossTraceCalc,colorbar:lm(),arraysToCalcdata:Jm(),plot:If().plot,style:is().style,styleOnSelect:is().styleOnSelect,hoverPoints:F2().hoverPoints,eventData:RG(),selectPoints:N2(),moduleType:"trace",name:"bar",basePlotModule:ao(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var BG=G((nqe,IG)=>{"use strict";IG.exports=NG()});var OG=G((iqe,HG)=>{"use strict";HG.exports=function(r,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var YG={};pt(YG,{eventDataKeys:()=>r_e});var r_e,GG=Cr(()=>{"use strict";r_e=["binNumber"]});var R_=G((lqe,WG)=>{"use strict";var Hn=so(),UG=Xi().axisHoverFormat,{hovertemplateAttrs:t_e,texttemplateAttrs:a_e,templatefallbackAttrs:VG}=Vn(),P_=Ta(),XG=OG(),n_e=(GG(),Fe(YG)),E_=At().extendFlat;WG.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:UG("x"),yhoverformat:UG("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:XG("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:XG("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:t_e({},{keys:n_e.eventDataKeys}),hovertemplatefallback:VG(),texttemplate:a_e({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:VG({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 KG=G((oqe,$G)=>{"use strict";var ZG=Ar(),I2=Se(),JG=kr(),i_e=Rl().handleText,l_e=A_(),o_e=R_();$G.exports=function(r,t,a,n){function i(_,w){return I2.coerce(r,t,o_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");i_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=ZG.getComponentMethod("calendars","handleTraceDefaults");p(r,t,["x","y"],n);var m=t[v];m&&i("histfunc"),i("histnorm"),i("autobin"+c),l_e(r,t,i,a,n),I2.coerceSelectionMarkerOpacity(t,i);var y=(t.marker.line||{}).color,x=ZG.getComponentMethod("errorbars","supplyDefaults");x(r,t,y||JG.defaultLine,{axis:"y"}),x(r,t,y||JG.defaultLine,{axis:"x",inherit:"y"}),i("zorder")}});var rU=G((sqe,eU)=>{"use strict";var B2=Se(),s_e=va(),ey=Ar().traceIs,u_e=yf(),f_e=Rl().validateCornerradius,jG=B2.nestedProperty,z_=mu().getAxisGroup,QG=[{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"}],c_e=["x","y"];eU.exports=function(r,t){var a=t._histogramBinOpts={},n=[],i={},l=[],o,s,u,f,c,v,h;function p(B,Y){return B2.coerce(o._input,o,o._module.attributes,B,Y)}function m(B){return B.orientation==="v"?"x":"y"}function y(B,Y){var O=s_e.getFromTrace({_fullLayout:t},B,Y);return O.type}function x(B,Y,O){var U=B.uid+"__"+O;Y||(Y=U);var X=y(B,O),W=B[O+"calendar"]||"",V=a[Y],$=!0;V&&(X===V.axType&&W===V.calendar?($=!1,V.traces.push(B),V.dirs.push(O)):(Y=U,X!==V.axType&&B2.warn(["Attempted to group the bins of trace",B.index,"set on a","type:"+X,"axis","with bins on","type:"+V.axType,"axis."].join(" ")),W!==V.calendar&&B2.warn(["Attempted to group the bins of trace",B.index,"set with a",W,"calendar","with bins",V.calendar?"on a "+V.calendar+" calendar":"w/o a set calendar"].join(" ")))),$&&(a[Y]={traces:[B],dirs:[O],axType:X,calendar:B[O+"calendar"]||""}),B["_"+O+"bingroup"]=Y}for(c=0;c{"use strict";var Bf=Gr();tU.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";nU.exports={percent:function(e,r){for(var t=e.length,a=100/r,n=0;n{"use strict";lU.exports=function(r,t){for(var a=r.length,n=0,i=0;i{"use strict";var Hf=(Rt(),Fe(Nt)),Ru=Hf.ONEAVGYEAR,sU=Hf.ONEAVGMONTH,ty=Hf.ONEDAY,uU=Hf.ONEHOUR,fU=Hf.ONEMIN,cU=Hf.ONESEC,vU=Qr().tickIncrement;pU.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(McU?e>ty?e>Ru*1.1?Ru:e>sU*1.1?sU:ty:e>uU?uU:e>fU?fU:cU:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function v_e(e,r,t,a,n,i){if(a&&e>ty){var l=hU(r,n,i),o=hU(t,n,i),s=e===Ru?0:1;return l[s]!==o[s]}return Math.floor(t/e)-Math.floor(r/e)>.1}function hU(e,r,t){var a=r.c2d(e,Ru,t).split("-");return a[0]===""&&(a.unshift(),a[0]="-"+a[0]),a}});var wU=G((dqe,_U)=>{"use strict";var F_=Gr(),wn=Se(),yU=Ar(),Pi=Qr(),{hasColorscale:gU}=Wn(),xU=fv(),d_e=Jm(),bU=aU(),h_e=iU(),p_e=oU(),m_e=mU();function y_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,H=bU.count,N=h_e[M],B=!1,Y=function(Te){return i.r2c(Te,0,s)},O;for(wn.isArrayOrTypedArray(r[o])&&A!=="count"&&(O=r[o],B=A==="avg",H=bU[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],V?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),gU(r,"marker")&&xU(e,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),gU(r,"marker.line")&&xU(e,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),d_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)),H.start=t.l2r(X),Y||wn.nestedProperty(r,i+".start").set(H.start)}var W=s.end,V=t.r2l(F.end),$=V!==void 0;if((s.endFound||$)&&V!==t.r2l(W)){var re=$?V:wn.aggNums(Math.max,null,p);H.end=t.l2r(re),$||wn.nestedProperty(r,i+".start").set(H.end)}var se="autobin"+a;return r._input[se]===!1&&(r._input[i]=wn.extendFlat({},r[i]||{}),delete r._input[se],delete r[se]),[H,p]}function g_e(e,r,t,a,n){var i=e._fullLayout,l=x_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())}}_U.exports={calc:y_e,calcAllAutoBins:N_}});var MU=G((hqe,TU)=>{"use strict";var __e=F2().hoverPoints,w_e=Qr().hoverLabelText;TU.exports=function(r,t,a,n,i){var l=__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"]=w_e(r[u+"a"],[o.ph0,o.ph1],s[u+"hoverformat"])}return l}}});var kU=G((pqe,AU)=>{"use strict";AU.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 CU=G((mqe,LU)=>{"use strict";LU.exports={attributes:R_(),layoutAttributes:Wm(),supplyDefaults:KG(),crossTraceDefaults:rU(),supplyLayoutDefaults:k_(),calc:wU().calc,crossTraceCalc:bf().crossTraceCalc,plot:If().plot,layerName:"barlayer",style:is().style,styleOnSelect:is().styleOnSelect,colorbar:lm(),hoverPoints:MU(),selectPoints:N2(),eventData:kU(),moduleType:"trace",name:"histogram",basePlotModule:ao(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var qU=G((yqe,SU)=>{"use strict";SU.exports=CU()});var DU={};pt(DU,{eventDataKeys:()=>T_e});var T_e,PU=Cr(()=>{"use strict";T_e=["percentInitial","percentPrevious","percentTotal"]});var B_=G((gqe,FU)=>{"use strict";var Tt=so(),I_=ji().line,M_e=qn(),EU=Xi().axisHoverFormat,{hovertemplateAttrs:A_e,texttemplateAttrs:k_e,templatefallbackAttrs:RU}=Vn(),zU=(PU(),Fe(DU)),uo=At().extendFlat,L_e=kr();FU.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:EU("x"),yhoverformat:EU("y"),hovertext:Tt.hovertext,hovertemplate:A_e({},{keys:zU.eventDataKeys}),hovertemplatefallback:RU(),hoverinfo:uo({},M_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:k_e({editType:"plot"},{keys:zU.eventDataKeys.concat(["label","value"])}),texttemplatefallback:RU({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:C_e(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:uo({},I_.color,{dflt:L_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 C_e(){var e=uo({},Tt.marker);return delete e.pattern,delete e.cornerradius,e}});var H_=G((xqe,NU)=>{"use strict";NU.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((bqe,BU)=>{"use strict";var ay=Se(),S_e=yf(),q_e=Rl().handleText,D_e=c2(),P_e=_u(),IU=B_(),O_=kr();function E_e(e,r,t,a){function n(c,v){return ay.coerce(e,r,IU,c,v)}var i=D_e(e,r,a,n);if(!i){r.visible=!1;return}P_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");q_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",R_e(s));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function R_e(e){var r=ay.isArrayOrTypedArray(e)?"#000":e;return O_.addOpacity(r,.5*O_.opacity(r))}function z_e(e,r){var t,a;function n(l){return ay.coerce(a._input,a,IU,l)}for(var i=0;i{"use strict";var F_e=Se(),N_e=H_();HU.exports=function(e,r,t){var a=!1;function n(o,s){return F_e.coerce(e,r,N_e,o,s)}for(var i=0;i{"use strict";var Of=Se();YU.exports=function(r,t){for(var a=0;a{"use strict";var UU=Qr(),VU=wu(),I_e=GU(),B_e=v2(),H2=(Rt(),Fe(Nt)).BADNUM;XU.exports=function(r,t){var a=UU.getFromId(r,t.xaxis||"x"),n=UU.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=VU(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=VU(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 ZU=bf().setGroupPositions;JU.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(),KU=$r(),os=(Rt(),Fe(Nt)).BADNUM,H_e=If(),O_e=ul().clearMinTextSize;QU.exports=function(r,t,a,n){var i=r._fullLayout;O_e("funnel",i),Y_e(r,t,a,n),G_e(r,t,a,n),H_e.plot(r,t,a,n,{mode:i.funnelmode,norm:i.funnelmode,gap:i.funnelgap,groupgap:i.funnelgroupgap})};function Y_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=jU(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(KU.setClipUrl,r.layerClipId,e)}})})}function G_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=jU(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(KU.setClipUrl,r.layerClipId,e)}})})}function jU(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 aV=G((kqe,tV)=>{"use strict";var O2=Er(),rV=$r(),U_=kr(),U_e=(k0(),Fe(A0)).DESELECTDIM,V_e=is(),X_e=ul().resizeText,W_e=V_e.styleTextPoints;function Z_e(e,r,t){var a=t||O2.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");X_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(rV.dashLine,s.line.dash,o.mlw||s.line.width).style("opacity",l.selectedpoints&&!o.selected?U_e:1)}}),W_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;rV.lineGroupStyle(O2.select(this).selectAll("path"),o.width,o.color,o.dash)})})}tV.exports={style:Z_e}});var lV=G((Lqe,iV)=>{"use strict";var nV=kr().opacity,J_e=F2().hoverOnBars,V_=Se().formatPercent;iV.exports=function(r,t,a,n,i){var l=J_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=$_e(s,c),[l]}};function $_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(nV(a))return a;if(nV(n)&&i)return n}});var sV=G((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,"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 fV=G((Sqe,uV)=>{"use strict";uV.exports={attributes:B_(),layoutAttributes:H_(),supplyDefaults:Y_().supplyDefaults,crossTraceDefaults:Y_().crossTraceDefaults,supplyLayoutDefaults:OU(),calc:WU(),crossTraceCalc:$U(),plot:eV(),style:aV().style,hoverPoints:lV(),eventData:sV(),selectPoints:N2(),moduleType:"trace",name:"funnel",basePlotModule:ao(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var vV=G((qqe,cV)=>{"use strict";cV.exports=fV()});var dV={};pt(dV,{eventDataKeys:()=>K_e});var K_e,hV=Cr(()=>{"use strict";K_e=["initial","delta","final"]});var Z_=G((Dqe,gV)=>{"use strict";var xt=so(),X_=ji().line,j_e=qn(),pV=Xi().axisHoverFormat,{hovertemplateAttrs:Q_e,texttemplateAttrs:e7e,templatefallbackAttrs:mV}=Vn(),yV=(hV(),Fe(dV)),Yf=At().extendFlat,r7e=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"}}gV.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:pV("x"),yhoverformat:pV("y"),hovertext:xt.hovertext,hovertemplate:Q_e({},{keys:yV.eventDataKeys}),hovertemplatefallback:mV(),hoverinfo:Yf({},j_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:e7e({editType:"plot"},{keys:yV.eventDataKeys.concat(["label"])}),texttemplatefallback:mV({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:r7e.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((Pqe,xV)=>{"use strict";xV.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:()=>a7e,INCREASING:()=>t7e});var t7e,a7e,Uf=Cr(()=>{"use strict";t7e={COLOR:"#3D9970",SYMBOL:"\u25B2"},a7e={COLOR:"#FF4136",SYMBOL:"\u25BC"}});var K_=G((Eqe,TV)=>{"use strict";var bV=Se(),n7e=yf(),i7e=Rl().handleText,l7e=c2(),o7e=_u(),_V=Z_(),s7e=kr(),wV=(Uf(),Fe(Gf)),u7e=wV.INCREASING.COLOR,f7e=wV.DECREASING.COLOR,c7e="#4499FF";function $_(e,r,t){e(r+".marker.color",t),e(r+".marker.line.color",s7e.defaultLine),e(r+".marker.line.width")}function v7e(e,r,t,a){function n(u,f){return bV.coerce(e,r,_V,u,f)}var i=l7e(e,r,a,n);if(!i){r.visible=!1;return}o7e(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");i7e(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",u7e),$_(n,"decreasing",f7e),$_(n,"totals",c7e);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 d7e(e,r){var t,a;function n(l){return bV.coerce(a._input,a,_V,l)}if(r.waterfallmode==="group")for(var i=0;i{"use strict";var h7e=Se(),p7e=J_();MV.exports=function(e,r,t){var a=!1;function n(o,s){return h7e.coerce(e,r,p7e,o,s)}for(var i=0;i{"use strict";var kV=Qr(),LV=wu(),CV=Se().mergeArray,m7e=v2(),SV=(Rt(),Fe(Nt)).BADNUM;function j_(e){return e==="a"||e==="absolute"}function Q_(e){return e==="t"||e==="total"}qV.exports=function(r,t){var a=kV.getFromId(r,t.xaxis||"x"),n=kV.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=LV(t,n,"y",o),u=!!t.yperiodalignment,f="y"):(i=n.makeCalcdata(t,"y"),o=a.makeCalcdata(t,"x"),s=LV(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 PV=bf().setGroupPositions;EV.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 zV=Er(),iy=Se(),y7e=$r(),Vf=(Rt(),Fe(Nt)).BADNUM,g7e=If(),x7e=ul().clearMinTextSize;FV.exports=function(r,t,a,n){var i=r._fullLayout;x7e("waterfall",i),g7e.plot(r,t,a,n,{mode:i.waterfallmode,norm:i.waterfallmode,gap:i.waterfallgap,groupgap:i.waterfallgroupgap}),b7e(r,t,a,n)};function b7e(e,r,t,a){var n=r.xaxis,i=r.yaxis;iy.makeTraceGroups(a,t,"trace bars").each(function(l){var o=zV.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=_7e(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(),IV=$r(),BV=kr(),w7e=(k0(),Fe(A0)).DESELECTDIM,T7e=is(),M7e=ul().resizeText,A7e=T7e.styleTextPoints;function k7e(e,r,t){var a=t||ly.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");M7e(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(BV.fill,s.color).call(BV.stroke,s.line.color).call(IV.dashLine,s.line.dash,s.line.width).style("opacity",l.selectedpoints&&!o.selected?w7e:1)}}),A7e(i,l,e),i.selectAll(".lines").each(function(){var o=l.connector.line;IV.lineGroupStyle(ly.select(this).selectAll("path"),o.width,o.color,o.dash)})})}HV.exports={style:k7e}});var XV=G((Bqe,VV)=>{"use strict";var L7e=Qr().hoverLabelText,YV=kr().opacity,C7e=F2().hoverOnBars,GV=(Uf(),Fe(Gf)),UV={increasing:GV.INCREASING.SYMBOL,decreasing:GV.DECREASING.SYMBOL};VV.exports=function(r,t,a,n,i){var l=C7e(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 L7e(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+" "+UV.decreasing):_.push(l.deltaLabel+" "+UV.increasing)),M("initial")&&_.push("Initial: "+l.initialLabel))}return _.length&&(l.extraText=_.join("
")),l.color=S7e(s,p),[l]};function S7e(e,r){var t=e[r.dir].marker,a=t.color,n=t.line.color,i=t.line.width;if(YV(a))return a;if(YV(n)&&i)return n}});var ZV=G((Hqe,WV)=>{"use strict";WV.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 $V=G((Oqe,JV)=>{"use strict";JV.exports={attributes:Z_(),layoutAttributes:J_(),supplyDefaults:K_().supplyDefaults,crossTraceDefaults:K_().crossTraceDefaults,supplyLayoutDefaults:AV(),calc:DV(),crossTraceCalc:RV(),plot:NV(),style:OV().style,hoverPoints:XV(),eventData:ZV(),selectPoints:N2(),moduleType:"trace",name:"waterfall",basePlotModule:ao(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var jV=G((Yqe,KV)=>{"use strict";KV.exports=$V()});var uy=G((Gqe,eX)=>{"use strict";var oy=qn(),q7e=ts().attributes,D7e=Ta(),P7e=vi(),{hovertemplateAttrs:E7e,texttemplateAttrs:R7e,templatefallbackAttrs:QV}=Vn(),us=At().extendFlat,z7e=Yi().pattern,sy=D7e({editType:"plot",arrayOk:!0,colorEditType:"plot"});eX.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:P7e.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:z7e,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:E7e({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:QV(),texttemplate:R7e({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:QV({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:q7e({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((Uqe,aX)=>{"use strict";var F7e=Gr(),Y2=Se(),N7e=uy(),I7e=ts().defaults,B7e=Rl().handleText,H7e=Se().coercePattern;function rX(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 tX(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");H7e(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 O7e(e,r,t,a){function n(_,w){return Y2.coerce(e,r,N7e,_,w)}var i=n("labels"),l=n("values"),o=rX(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,tX(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");B7e(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");I7e(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")}aX.exports={handleLabelsAndValues:rX,handleMarkerDefaults:tX,supplyDefaults:O7e}});var cy=G((Vqe,nX)=>{"use strict";nX.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var lX=G((Xqe,iX)=>{"use strict";var Y7e=Se(),G7e=cy();iX.exports=function(r,t){function a(n,i){return Y7e.coerce(r,t,G7e,n,i)}a("hiddenlabels"),a("piecolorway",t.colorway),a("extendpiecolors")}});var vy=G((Wqe,uX)=>{"use strict";var U7e=Gr(),Xf=kr(),V7e={};function X7e(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 oX(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 W7e(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=sX(i,V7e));for(var o=0,s=0;s{"use strict";var Z7e=Wi().appendArrayMultiPointValues;fX.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 t7=G((Jqe,PX)=>{"use strict";var On=Er(),J7e=Jt(),dy=xi(),yX=kr(),fo=$r(),$a=Se(),$7e=$a.strScale,vX=$a.strTranslate,e7=ba(),gX=ul(),K7e=gX.recordMinTextSize,j7e=gX.clearMinTextSize,xX=(p2(),Fe(h2)).TEXTPAD,Dr=Lv(),hy=cX(),dX=Se().isValidTextValue;function Q7e(e,r){var t=e._context.staticPlot,a=e._fullLayout,n=a._size;j7e("pie",a),wX(r,e),SX(r,n);var i=$a.makeTraceGroups(a._pielayer,r,"trace").each(function(l){var o=On.select(this),s=l[0],u=s.trace;s8e(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(bX,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(U,X,W,V){var $=V*(X[0]-U[0]),re=V*(X[1]-U[1]);return"a"+V*s.r+","+V*s.r+" 0 "+b.largeArc+(W?" 1 ":" 0 ")+$+","+re}var F=u.hole;if(b.v===s.vTotal){var H="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"+H):D.attr("d",H)}else{var N=R(b.px0,b.px1,!0,1);if(F){var B=1-F;D.attr("d","M"+(A+F*b.px1[0])+","+(k+F*b.px1[1])+R(b.px1,b.px0,!1,F)+"l"+B*b.px0[0]+","+B*b.px0[1]+N+"Z")}else D.attr("d","M"+A+","+k+"l"+b.px0[0]+","+b.px0[1]+N+"Z")}qX(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 U=$a.ensureSingle(On.select(this),"text","",function(K){K.attr("data-notex",1)}),X=$a.ensureUniformFontSize(e,Y==="outside"?r8e(u,b,a.font):_X(u,b,a.font));U.text(b.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(fo.font,X).call(e7.convertToTspans,e);var W=fo.bBox(U.node()),V;if(Y==="outside")V=mX(W,b);else if(V=TX(W,b,s),Y==="auto"&&V.scale<1){var $=$a.ensureUniformFontSize(e,u.outsidetextfont);U.call(fo.font,$),W=fo.bBox(U.node()),V=mX(W,b)}var re=V.textPosAngle,se=re===void 0?b.pxmid:py(s.r,re);if(V.targetX=A+se[0]*V.rCenter+(V.x||0),V.targetY=k+se[1]*V.rCenter+(V.y||0),DX(V,W),V.outside){var oe=V.targetY;b.yLabelMin=oe-W.height/2,b.yLabelMid=oe,b.yLabelMax=oe+W.height/2,b.labelExtraX=0,b.labelExtraY=0,v=!0}V.fontSize=X.size,K7e(u.type,V,a),l[M].transform=V,$a.setTransormAndDisplay(U,V)})});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=n8e(s):A=LX(s,n),b.attr("transform",vX(A.x,A.y)+$7e(Math.min(1,A.scale))+vX(A.tx,A.ty))}),v&&l8e(c,u),e8e(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;J7e.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 e8e(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(yX.stroke,r.outsidetextfont.color).attr({"stroke-width":Math.min(2,r.outsidetextfont.size/8),d:o,fill:"none"})})}function bX(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 r8e(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 _X(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||yX.contrast(r.color),family:n,size:i,weight:l,style:o,variant:s,textcase:u,lineposition:f,shadow:c}}function wX(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=hX(e,a,l,s,u),y.textPosAngle=(r.startangle+r.stopangle)/2,m.push(y)),(p||v)&&(y=pX(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 t8e(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 n8e(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 LX(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=CX(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=i8e(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 i8e(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 CX(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 l8e(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,H,N,B;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?(H=F.cyFinal+l(F.px0[1],F.px1[1]),D=H-A-w.labelExtraY,D*s>0&&(w.labelExtraY+=D)):(k+w.labelExtraY-S)*s>0&&(P=3*o*Math.abs(R-c.indexOf(w)),N=F.cxFinal+i(F.px0[0],F.px1[0]),B=N+P-(w.cxFinal+w.pxmid[0])-w.labelExtraX,B*o>0&&(w.labelExtraX+=B)))}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=a8e(u,r))}function py(e,r){return[e*Math.sin(r),-e*Math.cos(r)]}function qX(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);dX(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);(dX(w)||w==="")&&(_.text=w),r.text=$a.texttemplateString({data:[_,n._meta],fallback:n.texttemplatefallback,labels:_,locale:e._fullLayout._d3locale,template:x})}}}function DX(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}PX.exports={plot:Q7e,formatSliceLabel:qX,transformInsideText:TX,determineInsideTextFont:_X,positionTitleOutside:LX,prerenderTitles:wX,layoutAreas:SX,attachFxHandlers:bX,computeTransform:DX}});var zX=G(($qe,RX)=>{"use strict";var EX=Er(),u8e=ef(),f8e=ul().resizeText;RX.exports=function(r){var t=r._fullLayout._pielayer.selectAll(".trace");f8e(r,t,"pie"),t.each(function(a){var n=a[0],i=n.trace,l=EX.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){EX.select(this).call(u8e,o,i,r)})})}});var NX=G(Wf=>{"use strict";var FX=Jt();Wf.name="pie";Wf.plot=function(e,r,t,a){FX.plotBasePlot(Wf.name,e,r,t,a)};Wf.clean=function(e,r,t,a){FX.cleanBasePlot(Wf.name,e,r,t,a)}});var BX=G((jqe,IX)=>{"use strict";IX.exports={attributes:uy(),supplyDefaults:fy().supplyDefaults,supplyLayoutDefaults:lX(),layoutAttributes:cy(),calc:vy().calc,crossTraceCalc:vy().crossTraceCalc,plot:t7().plot,style:zX(),styleOne:ef(),moduleType:"trace",name:"pie",basePlotModule:NX(),categories:["pie-like","pie","showLegend"],meta:{}}});var OX=G((Qqe,HX)=>{"use strict";HX.exports=BX()});var GX=G(Zf=>{"use strict";var YX=Jt();Zf.name="funnelarea";Zf.plot=function(e,r,t,a){YX.plotBasePlot(Zf.name,e,r,t,a)};Zf.clean=function(e,r,t,a){YX.cleanBasePlot(Zf.name,e,r,t,a)}});var a7=G((rDe,VX)=>{"use strict";var Ka=uy(),c8e=qn(),v8e=ts().attributes,{hovertemplateAttrs:d8e,texttemplateAttrs:h8e,templatefallbackAttrs:UX}=Vn(),zu=At().extendFlat;VX.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:h8e({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:UX({editType:"plot"}),hoverinfo:zu({},c8e.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:d8e({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:UX(),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:v8e({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((tDe,XX)=>{"use strict";var p8e=cy().hiddenlabels;XX.exports={hiddenlabels:p8e,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var JX=G((aDe,ZX)=>{"use strict";var WX=Se(),m8e=a7(),y8e=ts().defaults,g8e=Rl().handleText,x8e=fy().handleLabelsAndValues,b8e=fy().handleMarkerDefaults;ZX.exports=function(r,t,a,n){function i(m,y){return WX.coerce(r,t,m8e,m,y)}var l=i("labels"),o=i("values"),s=x8e(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,b8e(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");g8e(r,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else v==="none"&&i("textposition","none");y8e(t,n,i);var p=i("title.text");p&&(i("title.position"),WX.coerceFont(i,"title.font",n.font)),i("aspectratio"),i("baseratio")}});var KX=G((nDe,$X)=>{"use strict";var _8e=Se(),w8e=n7();$X.exports=function(r,t){function a(n,i){return _8e.coerce(r,t,w8e,n,i)}a("hiddenlabels"),a("funnelareacolorway",t.colorway),a("extendfunnelareacolors")}});var i7=G((iDe,QX)=>{"use strict";var jX=vy();function T8e(e,r){return jX.calc(e,r)}function M8e(e){jX.crossTraceCalc(e,{type:"funnelarea"})}QX.exports={calc:T8e,crossTraceCalc:M8e}});var nW=G((lDe,aW)=>{"use strict";var Fu=Er(),l7=$r(),fs=Se(),A8e=fs.strScale,eW=fs.strTranslate,rW=ba(),k8e=If(),L8e=k8e.toMoveInsideBar,tW=ul(),C8e=tW.recordMinTextSize,S8e=tW.clearMinTextSize,q8e=Lv(),Jf=t7(),D8e=Jf.attachFxHandlers,P8e=Jf.determineInsideTextFont,E8e=Jf.layoutAreas,R8e=Jf.prerenderTitles,z8e=Jf.positionTitleOutside,F8e=Jf.formatSliceLabel;aW.exports=function(r,t){var a=r._context.staticPlot,n=r._fullLayout;S8e("funnelarea",n),R8e(t,r),E8e(t,n._size),fs.makeTraceGroups(n._funnelarealayer,t,"trace").each(function(i){var l=Fu.select(this),o=i[0],s=o.trace;I8e(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(D8e,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),F8e(r,c,o);var _=q8e.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,P8e(s,c,n.font));b.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l7.font,M).call(rW.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=L8e(S,D,P,R,A,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=M.size,C8e(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(rW.convertToTspans,r);var h=z8e(o,n._size);c.attr("transform",eW(h.x,h.y)+A8e(Math.min(1,h.scale))+eW(h.tx,h.ty))})})})};function o7(e,r){var t=r[0]-e[0],a=r[1]-e[1];return"l"+t+","+a}function N8e(e,r){return[.5*(e[0]+r[0]),.5*(e[1]+r[1])]}function I8e(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 H=Math.sqrt(u);return{x:H,y:-H}}function c(){var H=f();return[H.x,H.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=N8e(m.TR,m.BR),S=m.TL,D=m.TR}}});var oW=G((oDe,lW)=>{"use strict";var iW=Er(),B8e=ef(),H8e=ul().resizeText;lW.exports=function(r){var t=r._fullLayout._funnelarealayer.selectAll(".trace");H8e(r,t,"funnelarea"),t.each(function(a){var n=a[0],i=n.trace,l=iW.select(this);l.style({opacity:i.opacity}),l.selectAll("path.surface").each(function(o){iW.select(this).call(B8e,o,i,r)})})}});var uW=G((sDe,sW)=>{"use strict";sW.exports={moduleType:"trace",name:"funnelarea",basePlotModule:GX(),categories:["pie-like","funnelarea","showLegend"],attributes:a7(),layoutAttributes:n7(),supplyDefaults:JX(),supplyLayoutDefaults:KX(),calc:i7().calc,crossTraceCalc:i7().crossTraceCalc,plot:nW(),style:oW(),styleOne:ef(),meta:{}}});var cW=G((uDe,fW)=>{"use strict";fW.exports=uW()});var dW=G($f=>{"use strict";var vW=Jt();$f.name="indicator";$f.plot=function(e,r,t,a){vW.plotBasePlot($f.name,e,r,t,a)};$f.clean=function(e,r,t,a){vW.cleanBasePlot($f.name,e,r,t,a)}});var u7=G((cDe,xW)=>{"use strict";var cs=At().extendFlat,pW=At().extendDeep,O8e=Oi().overrideAll,mW=Ta(),yW=vi(),Y8e=ts().attributes,Xt=Zn(),G8e=yt().templatedArray,my=(Uf(),Fe(Gf)),hW=Xi().descriptionOnlyNumbers,s7=mW({editType:"plot",colorEditType:"plot"}),G2={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:yW.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"},gW={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},U8e=G8e("step",pW({},G2,{range:gW}));xW.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:Y8e({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:hW("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:hW("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:pW({},G2,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:yW.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:O8e({range:gW,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:mW({}),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:U8e,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:()=>X8e,bulletPadding:()=>W8e,defaultNumberFontSize:()=>V8e,horizontalPadding:()=>K8e,innerRadius:()=>Z8e,titlePadding:()=>$8e,valueThickness:()=>J8e});var V8e,X8e,W8e,Z8e,J8e,$8e,K8e,c7=Cr(()=>{"use strict";V8e=80,X8e=.25,W8e=.025,Z8e=.75,J8e=.5,$8e=5,K8e=10});var wW=G((vDe,_W)=>{"use strict";var zl=Se(),gy=u7(),j8e=ts().defaults,bW=yt(),Q8e=mi(),yy=(c7(),Fe(f7)),e9e=$h(),r9e=Kh(),t9e=Qh(),a9e=e1();function n9e(e,r,t,a){function n(A,k){return zl.coerce(e,r,gy,A,k)}j8e(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=bW.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),Q8e(v,h,{name:"steps",handleItemDefaults:i9e}),y("threshold.value"),y("threshold.thickness"),y("threshold.line.width"),y("threshold.line.color"),p={},v&&(p=v.axis||{}),m=bW.newContainer(h,"axis"),x("visible"),r._range=x("range",r._range);var M={font:a.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};e9e(p,m,x,"linear"),a9e(p,m,x,"linear",M),t9e(p,m,x,"linear",M),r9e(p,m,x,M)}else n("title.align","center"),n("align","center"),r._isAngular=r._isBullet=!1;r._length=null}function i9e(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")}_W.exports={supplyDefaults:n9e}});var MW=G((dDe,TW)=>{"use strict";function l9e(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}TW.exports={calc:l9e}});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 kW(){return this.rgb().formatHex()}function h9e(){return this.rgb().formatHex8()}function p9e(){return EW(this).formatHsl()}function LW(){return this.rgb().formatRgb()}function hs(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=o9e.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?CW(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=s9e.exec(e))?new Pa(r[1],r[2],r[3],1):(r=u9e.exec(e))?new Pa(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=f9e.exec(e))?by(r[1],r[2],r[3],r[4]):(r=c9e.exec(e))?by(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=v9e.exec(e))?DW(r[1],r[2]/100,r[3]/100,1):(r=d9e.exec(e))?DW(r[1],r[2]/100,r[3]/100,r[4]):AW.hasOwnProperty(e)?CW(AW[e]):e==="transparent"?new Pa(NaN,NaN,NaN,0):null}function CW(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 SW(){return`#${Nu(this.r)}${Nu(this.g)}${Nu(this.b)}`}function m9e(){return`#${Nu(this.r)}${Nu(this.g)}${Nu(this.b)}${Nu((isNaN(this.opacity)?1:this.opacity)*255)}`}function qW(){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 DW(e,r,t,a){return a<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new cl(e,r,t,a)}function EW(e){if(e instanceof cl)return new cl(e.h,e.s,e.l,e.opacity);if(e instanceof Nl||(e=hs(e)),!e)return new cl;if(e instanceof cl)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 cl(l,o,s,e.opacity)}function X2(e,r,t,a){return arguments.length===1?EW(e):new cl(e,r,t,a==null?1:a)}function cl(e,r,t,a){this.h=+e,this.s=+r,this.l=+t,this.opacity=+a}function PW(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,o9e,s9e,u9e,f9e,c9e,v9e,d9e,AW,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*",o9e=/^#([0-9a-f]{3,8})$/,s9e=new RegExp(`^rgb\\(${Kf},${Kf},${Kf}\\)$`),u9e=new RegExp(`^rgb\\(${Fl},${Fl},${Fl}\\)$`),f9e=new RegExp(`^rgba\\(${Kf},${Kf},${Kf},${U2}\\)$`),c9e=new RegExp(`^rgba\\(${Fl},${Fl},${Fl},${U2}\\)$`),v9e=new RegExp(`^hsl\\(${U2},${Fl},${Fl}\\)$`),d9e=new RegExp(`^hsla\\(${U2},${Fl},${Fl},${U2}\\)$`),AW={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:kW,formatHex:kW,formatHex8:h9e,formatHsl:p9e,formatRgb:LW,toString:LW});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:SW,formatHex:SW,formatHex8:m9e,formatRgb:qW,toString:qW}));co(cl,X2,vs(Nl,{brighter(e){return e=e==null?Bu:Math.pow(Bu,e),new cl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ds:Math.pow(ds,e),new cl(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 cl(PW(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("}${PW(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 BW(e){if(e instanceof Il)return new Il(e.l,e.a,e.b,e.opacity);if(e instanceof vo)return HW(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)/zW),i,l;return r===t&&t===a?i=l=n:(i=h7((.4360747*r+.3850649*t+.1430804*a)/RW),l=h7((.0139322*r+.0971045*t+.7141733*a)/FW)),new Il(116*n-16,500*(i-n),200*(n-l),e.opacity)}function ec(e,r,t,a){return arguments.length===1?BW(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>y9e?Math.pow(e,1/3):e/IW+NW}function p7(e){return e>Qf?e*e*e:IW*(e-NW)}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 g9e(e){if(e instanceof vo)return new vo(e.h,e.c,e.l,e.opacity);if(e instanceof Il||(e=BW(e)),e.a===0&&e.b===0)return new vo(NaN,0{xy();Ty();d7();ky=18,RW=.96422,zW=1,FW=.82521,NW=4/29,Qf=6/29,IW=3*Qf*Qf,y9e=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=RW*p7(r),e=zW*p7(e),t=FW*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 HW(this).rgb()}}))});function x9e(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=(UW*a+YW*r-GW*t)/(UW+YW-GW),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?x9e(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 VW,g7,x7,Ly,Z2,YW,GW,UW,XW=Cr(()=>{xy();Ty();d7();VW=-.14861,g7=1.78277,x7=-.29227,Ly=-.90649,Z2=1.97294,YW=Z2*Ly,GW=Z2*g7,UW=g7*x7-Ly*VW;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*(VW*a+g7*n)),255*(r+t*(x7*a+Ly*n)),255*(r+t*(Z2*a)),this.opacity)}}))});var Ou=Cr(()=>{Ty();OW();XW()});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 WW(e,r){return function(t){return e+t*r}}function b9e(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?WW(e,t>180||t<-180?t-360*Math.round(t/360):t):tc(isNaN(e)?r:e)}function ZW(e){return(e=+e)==1?Qt:function(r,t){return t-r?b9e(r,t,e):tc(isNaN(r)?t:r)}}function Qt(e,r){var t=r-e;return t?WW(e,t):tc(isNaN(e)?r:e)}var Yu=Cr(()=>{w7()});function JW(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=ZW(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);$W=JW(Cy),KW=JW(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 jW(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 _9e(e){return function(){return e}}function w9e(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 QW(e){var r=e.length;return function(t){return e[Math.max(0,Math.min(r-1,Math.floor(t*r)))]}}var eZ=Cr(()=>{});function rZ(e,r){var t=ps(+e,+r);return function(a){var n=t(a);return n-360*Math.floor(n/360)}}var tZ=Cr(()=>{Yu()});function aZ(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}var nZ=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{iZ=180/Math.PI,Fy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function oZ(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 sZ(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,uZ=Cr(()=>{lZ()});function fZ(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();uZ();cZ=fZ(oZ,"px, ","px)","deg)"),vZ=fZ(sZ,", ",")",")")});function hZ(e){return((e=Math.exp(e))+1/e)/2}function M9e(e){return((e=Math.exp(e))-1/e)/2}function A9e(e){return((e=Math.exp(2*e))-1)/(e+1)}var T9e,pZ,mZ=Cr(()=>{T9e=1e-12;pZ=(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();gZ=yZ(ps),xZ=yZ(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 _Z=Cr(()=>{Ou();Yu()});function wZ(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 TZ,MZ,AZ=Cr(()=>{Ou();Yu();TZ=wZ(ps),MZ=wZ(Qt)});function kZ(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 LZ,CZ,SZ=Cr(()=>{Ou();Yu();LZ=kZ(ps),CZ=kZ(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 DZ(e,r){for(var t=new Array(r),a=0;a{});var R7={};pt(R7,{interpolate:()=>ms,interpolateArray:()=>jW,interpolateBasis:()=>Cy,interpolateBasisClosed:()=>qy,interpolateCubehelix:()=>LZ,interpolateCubehelixLong:()=>CZ,interpolateDate:()=>Ey,interpolateDiscrete:()=>QW,interpolateHcl:()=>TZ,interpolateHclLong:()=>MZ,interpolateHsl:()=>gZ,interpolateHslLong:()=>xZ,interpolateHue:()=>rZ,interpolateLab:()=>P7,interpolateNumber:()=>Yn,interpolateNumberArray:()=>ac,interpolateObject:()=>Ry,interpolateRgb:()=>J2,interpolateRgbBasis:()=>$W,interpolateRgbBasisClosed:()=>KW,interpolateRound:()=>aZ,interpolateString:()=>zy,interpolateTransformCss:()=>cZ,interpolateTransformSvg:()=>vZ,interpolateZoom:()=>pZ,piecewise:()=>E7,quantize:()=>DZ});var z7=Cr(()=>{$2();A7();Sy();_7();k7();eZ();tZ();K2();Py();L7();nZ();q7();dZ();mZ();T7();bZ();_Z();AZ();SZ();qZ();PZ()});var IZ=G((tEe,NZ)=>{"use strict";var Wu=Er(),k9e=(z7(),Fe(R7)).interpolate,EZ=(z7(),Fe(R7)).interpolateNumber,ys=Se(),L9e=ys.strScale,Q2=ys.strTranslate,C9e=ys.rad2deg,S9e=(Xa(),Fe(Va)).MID_SHIFT,Xu=$r(),Gu=(c7(),Fe(f7)),By=ba(),ja=Qr(),q9e=cm(),D9e=dm(),P9e=Zn(),nc=kr(),F7={left:"start",center:"middle",right:"end"},Uu={left:0,center:.5,right:1},RZ=/[yzafpnµmkMGTPEZY]/;function ed(e){return e&&e.duration>0}NZ.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 zZ(O,m.w,m.h)};else if(v&&(b=y,M=x+_/2,A=function(O){return N9e(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 zZ(O,(Gu.bulletNumberDomainSize-S)*m.w,m.h)}}z9e(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 H=f.selectAll("g.angularaxis").data(v?o:[]);H.exit().remove(),v&&R9e(r,f,o,{radius:_,innerRadius:w,gauge:F,layer:H,size:m,gaugeBg:P,gaugeOutline:R,transitionOpts:a,onComplete:l});var N=f.selectAll("g.bullet").data(h?o:[]);N.exit().remove();var B=f.selectAll("g.bulletaxis").data(h?o:[]);B.exit().remove(),h&&E9e(r,f,o,{gauge:N,layer:B,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],U,X=Gu.titlePadding,W=Xu.bBox(Y.node());if(c){if(v)if(u.gauge.axis.visible){var V=Xu.bBox(H.node());U=V.top-X-W.bottom}else U=m.t+m.h/2-_/2-W.bottom-X;h&&(U=M-(W.top+W.bottom)/2,O=m.l-Gu.bulletPadding*m.w)}else U=u._numbersTop-X-W.bottom;return Q2(O,U)})})};function E9e(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(H){H.attr("width",function(N){return Math.max(0,h.c2p(N.range[1])-h.c2p(N.range[0]))}).attr("x",function(N){return h.c2p(N.range[0])}).attr("y",function(N){return .5*(1-N.thickness)*_}).attr("height",function(N){return N.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 R9e(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*S9e)},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("+-C9e(re)+")"};if(b=ja.calcTicks(w),A=ja.getTickSigns(w)[2],w.visible){A=w.ticks==="inside"?-1:1;var H=(w.linewidth||1)/2;ja.drawTicks(e,w,{vals:b,layer:v,path:"M"+A*H+",0h"+A*w.ticklen,transFn:F}),ja.drawLabels(e,w,{vals:b,layer:v,transFn:M,labelFns:S})}var N=[s].concat(n.gauge.steps),B=c.selectAll("g.bg-arc").data(N);B.enter().append("g").classed("bg-arc",!0).append("path"),B.select("path").call(_).call(Vu),B.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 U=O.select("path");ed(h)?(U.transition().duration(h.duration).ease(h.easing).each("end",function(){p&&p()}).each("interrupt",function(){p&&p()}).attrTween("d",F9e(Y,y(t[0].lastY),y(t[0].y))),n._lastValue=t[0].y):U.attr("d",typeof t[0].y=="number"?Y.endAngle(y(t[0].y)):"M0,0Z"),U.call(Vu),O.exit().remove(),N=[];var X=n.gauge.threshold.value;(X||X===0)&&N.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(N);W.enter().append("g").classed("threshold-arc",!0).append("path"),W.select("path").call(_).call(Vu),W.exit().remove();var V=c.selectAll("g.gauge-outline").data([u]);V.enter().append("g").classed("gauge-outline",!0).append("path"),V.select("path").call(_).call(Vu),V.exit().remove()}function z9e(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,H,N){if(R.match("s")&&H>=0!=N>=0&&!F(H).slice(-1).match(RZ)&&!F(N).slice(-1).match(RZ)){var B=R.slice().replace("s","f").replace(/\d+/,function(O){return parseInt(O)-1}),Y=j2(e,{tickformat:B});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},H=n.number.suffix,N=n.number.prefix,B=c.select("text.number");function Y(){var O=typeof t[0].y=="number"?N+F(t[0].y)+H:"-";B.text(O).call(Xu.font,n.number.font).call(By.convertToTspans,e)}return ed(u)?B.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),U=EZ(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(N+X(U(W))+H)}}):Y(),v=FZ(N+F(t[0].y)+H,n.number.font,s,e),B}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},H=n.delta.suffix,N=n.delta.prefix,B=function(W){var V=n.delta.relative?W.relativeDelta:W.delta;return V},Y=function(W,V){return W===0||typeof W!="number"||isNaN(W)?"-":(W>0?n.delta.increasing.symbol:n.delta.decreasing.symbol)+N+V(W)+H},O=function(W){return W.delta>=0?n.delta.increasing.color:n.delta.decreasing.color};n._deltaLastValue===void 0&&(n._deltaLastValue=B(t[0]));var U=c.select("text.delta");U.call(Xu.font,n.delta.font).call(nc.fill,O({delta:n._deltaLastValue}));function X(){U.text(Y(B(t[0]),F)).call(nc.fill,O(t[0])).call(By.convertToTspans,e)}return ed(u)?U.transition().duration(u.duration).ease(u.easing).tween("text",function(){var W=Wu.select(this),V=B(t[0]),$=n._deltaLastValue,re=x(n.delta.valueformat,F,$,V),se=EZ($,V);return n._deltaLastValue=V,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=FZ(Y(B(t[0]),F),n.delta.font,s,e),U}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),H;n._scaleNumbers||(F=1),n._isAngular?H=l-F*p.bottom:H=l-F*(p.top+p.bottom)/2,n._numbersTop=F*p.top+H;var N=p[o];o==="center"&&(N=(p.left+p.right)/2);var B=i-F*N;return B=Iy(n,"numbersTranslate",0,B,b,Math.max),Q2(B,H)+L9e(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 F9e(e,r,t){return function(){var a=k9e(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,P9e,s,u)}return q9e(n,i,o,l,a),D9e(n,i,o,l),i}function zZ(e,r,t){var a=Math.min(r/e.width,t/e.height);return[a,e,r+"x"+t]}function N9e(e,r){var t=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),a=r/t;return[a,e,r]}function FZ(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 HZ=G((aEe,BZ)=>{"use strict";BZ.exports={moduleType:"trace",name:"indicator",basePlotModule:dW(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:u7(),supplyDefaults:wW().supplyDefaults,calc:MW().calc,plot:IZ(),meta:{}}});var YZ=G((nEe,OZ)=>{"use strict";OZ.exports=HZ()});var Oy=G((iEe,WZ)=>{"use strict";var Hy=Se().extendFlat,rd=ji(),GZ=Xi().axisHoverFormat,{hovertemplateAttrs:I9e,templatefallbackAttrs:B9e}=Vn(),VZ=Yi().dash,H9e=Ec(),XZ=(Uf(),Fe(Gf)),O9e=XZ.INCREASING.COLOR,Y9e=XZ.DECREASING.COLOR,N7=rd.line;function UZ(e){return{line:{color:Hy({},N7.color,{dflt:e}),width:N7.width,dash:VZ,editType:"style"},editType:"style"}}WZ.exports={xperiod:rd.xperiod,xperiod0:rd.xperiod0,xperiodalignment:rd.xperiodalignment,xhoverformat:GZ("x"),yhoverformat:GZ("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({},VZ,{}),editType:"style"},increasing:UZ(O9e),decreasing:UZ(Y9e),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:I9e({},{keys:["open","high","low","close"]}),hovertemplatefallback:B9e(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:Hy({},H9e.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:rd.zorder}});var I7=G((lEe,ZZ)=>{"use strict";var G9e=Ar(),U9e=Se();ZZ.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=G9e.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,U9e.minRowLength(i))),t._length=c,c}}});var KZ=G((oEe,$Z)=>{"use strict";var V9e=Se(),X9e=I7(),W9e=_u(),Z9e=Oy();$Z.exports=function(r,t,a,n){function i(o,s){return V9e.coerce(r,t,Z9e,o,s)}var l=X9e(r,t,i,n);if(!l){t.visible=!1;return}W9e(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),i("line.dash"),JZ(r,t,i,"increasing"),JZ(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("tickwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function JZ(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((sEe,QZ)=>{"use strict";var ic=Se(),Yy=ic._,Gy=Qr(),J9e=wu(),td=(Rt(),Fe(Nt)).BADNUM;function $9e(e,r){var t=Gy.getFromId(e,r.xaxis),a=Gy.getFromId(e,r.yaxis),n=j9e(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=jZ(e,r,l,o,a,K9e);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 K9e(e,r,t,a){return{o:e,h:r,l:t,c:a}}function jZ(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 j9e(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 Q9e=Er(),eJ=Se();rJ.exports=function(r,t,a,n){var i=t.yaxis,l=t.xaxis,o=!!l.rangebreaks;eJ.makeTraceGroups(n,a,"trace ohlc").each(function(s){var u=Q9e.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(eJ.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 nJ=G((fEe,aJ)=>{"use strict";var H7=Er(),ewe=$r(),rwe=kr();aJ.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(rwe.stroke,s.color).call(ewe.dashLine,s.dash,s.width).style("opacity",l.selectedpoints&&!o.selected?.3:1)}})})}});var Y7=G((cEe,uJ)=>{"use strict";var O7=Qr(),twe=Se(),Uy=xi(),awe=kr(),nwe=Se().fillText,iJ=(Uf(),Fe(Gf)),iwe={increasing:iJ.INCREASING.SYMBOL,decreasing:iJ.DECREASING.SYMBOL};function lwe(e,r,t,a){var n=e.cd,i=n[0].trace;return i.hoverlabel.split?oJ(e,r,t,a):sJ(e,r,t,a)}function lJ(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 awe.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 oJ(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=[],u=lJ(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)):(_=twe.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 sJ(e,r,t,a){var n=e.cd,i=e.ya,l=n[0].trace,o=n[0].t,s=lJ(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")+" "+iwe[v]]:[];return _&&nwe(f,l,w),s.extraText=w.join("
"),s.y0=s.y1=i.c2p(f.yc,!0),[s]}uJ.exports={hoverPoints:lwe,hoverSplit:oJ,hoverOnPoints:sJ}});var G7=G((vEe,fJ)=>{"use strict";fJ.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";cJ.exports={moduleType:"trace",name:"ohlc",basePlotModule:ao(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Oy(),supplyDefaults:KZ(),calc:B7().calc,plot:tJ(),style:nJ(),hoverPoints:Y7().hoverPoints,selectPoints:G7()}});var hJ=G((hEe,dJ)=>{"use strict";dJ.exports=vJ()});var xJ=G((pEe,gJ)=>{"use strict";var owe=E4(),Ei=ji(),pJ=so(),swe=vi(),mJ=Xi().axisHoverFormat,{hovertemplateAttrs:uwe,templatefallbackAttrs:fwe}=Vn(),ho=At().extendFlat,lc=Ei.marker,yJ=lc.line;gJ.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:mJ("x"),yhoverformat:mJ("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({},yJ.color,{arrayOk:!1,dflt:swe.defaultLine,editType:"style"}),width:ho({},yJ.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:owe(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:pJ.offsetgroup,alignmentgroup:pJ.alignmentgroup,selected:{marker:Ei.selected.marker,editType:"style"},unselected:{marker:Ei.unselected.marker,editType:"style"},text:ho({},Ei.text,{}),hovertext:ho({},Ei.hovertext,{}),hovertemplate:uwe({}),hovertemplatefallback:fwe(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Ei.zorder}});var V7=G((mEe,wJ)=>{"use strict";var U7=Se().extendFlat,bJ=Xi().axisHoverFormat,kn=Oy(),oc=xJ();function _J(e){return{line:{color:U7({},oc.line.color,{dflt:e}),width:oc.line.width,editType:"style"},fillcolor:oc.fillcolor,editType:"style"}}wJ.exports={xperiod:kn.xperiod,xperiod0:kn.xperiod0,xperiodalignment:kn.xperiodalignment,xhoverformat:bJ("x"),yhoverformat:bJ("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:_J(kn.increasing.line.color.dflt),decreasing:_J(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((yEe,TJ)=>{"use strict";TJ.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 kJ=G((gEe,AJ)=>{"use strict";var cwe=Ar(),vwe=Se(),dwe=X7();function MJ(e,r,t,a,n){for(var i=n+"Layout",l=!1,o=0;o{"use strict";var LJ=Qr(),pwe=Se(),mwe=mu().getAxisGroup,CJ=["v","h"];function ywe(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"?(U=S*(A?1:.5),V=W,X=V=P):k==="negative"?(U=V=P,X=S*(A?1:.5),$=W):(U=X=S,V=$=W),ie){var Me=b.pointpos,ue=b.jitter,ce=b.marker.size/2,Te=0;Me+ue>=0&&(Te=W*(Me+ue),Te>U?(me=!0,oe=ce,re=Te):Te>V&&(oe=ce,re=U)),Te<=U&&(re=U);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=U,se=X;var ge=new Array(f.length);for(u=0;u{"use strict";var gwe=Se(),xwe=kr(),bwe=I7(),_we=_u(),wwe=V7();EJ.exports=function(r,t,a,n){function i(o,s){return gwe.coerce(r,t,wwe,o,s)}var l=bwe(r,t,i,n);if(!l){t.visible=!1;return}_we(r,t,n,i,{x:!0}),i("xhoverformat"),i("yhoverformat"),i("line.width"),PJ(r,t,i,"increasing"),PJ(r,t,i,"decreasing"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("whiskerwidth"),n._requestRangeslider[t.xaxis]=!0,i("zorder")};function PJ(e,r,t,a){var n=t(a+".line.color");t(a+".line.width",r.line.width),t(a+".fillcolor",xwe.addOpacity(n,.5))}});var IJ=G((_Ee,NJ)=>{"use strict";var zJ=Se(),FJ=Qr(),Twe=wu(),Mwe=B7().calcCommon;NJ.exports=function(e,r){var t=e._fullLayout,a=FJ.getFromId(e,r.xaxis),n=FJ.getFromId(e,r.yaxis),i=a.makeCalcdata(r,"x"),l=Twe(r,a,"x",i).vals,o=Mwe(e,r,i,l,n,Awe);return o.length?(zJ.extendFlat(o[0].t,{num:t._numBoxes,dPos:zJ.distinctVals(l).minDiff/2,posLetter:"x",valLetter:"y"}),t._numBoxes++,o):[{t:{empty:!0}}]};function Awe(e,r,t,a){return{min:t,q1:Math.min(e,a),med:a,q3:Math.max(e,a),max:r}}});var UJ=G((wEe,GJ)=>{"use strict";var sc=Er(),Zu=Se(),kwe=$r(),BJ=5,Lwe=.01;function Cwe(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),HJ(s,{pos:v,val:h},c,f,n),OJ(s,{x:i,y:l},c,f),YJ(s,{pos:v,val:h},c,f)})}function HJ(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,H=t.sizemode==="sd",N=l.c2p(H?w.mean-w.sd:w.q1,!0),B=H?l.c2p(w.mean+w.sd,!0):l.c2p(w.q3,!0),Y=Zu.constrain(H?l.c2p(w.mean,!0):l.c2p(w.med,!0),Math.min(N,B)+1,Math.max(N,B)-1),O=w.lf===void 0||t.boxpoints===!1||H,U=l.c2p(O?w.min:w.lf,!0),X=l.c2p(O?w.max:w.uf,!0),W=l.c2p(w.ln,!0),V=l.c2p(w.un,!0);i?sc.select(this).attr("d","M"+Y+","+R+"V"+F+"M"+N+","+M+"V"+A+(p?"H"+W+"L"+Y+","+F+"L"+V+","+A:"")+"H"+B+"V"+M+(p?"H"+V+"L"+Y+","+R+"L"+W+","+M:"")+"Z"+(h?"M"+N+","+k+"H"+U+"M"+B+","+k+"H"+X+(v===0?"":"M"+U+","+D+"V"+P+"M"+X+","+D+"V"+P):"")):sc.select(this).attr("d","M"+R+","+Y+"H"+F+"M"+M+","+N+"H"+A+(p?"V"+W+"L"+F+","+Y+"L"+A+","+V:"")+"V"+B+"H"+M+(p?"V"+V+"L"+R+","+Y+"L"+M+","+W:"")+"Z"+(h?"M"+k+","+N+"V"+U+"M"+k+","+B+"V"+X+(v===0?"":"M"+D+","+U+"H"+P+"M"+D+","+X+"H"+P):""))})}function OJ(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*Lwe,_=[],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(kwe.translatePoints,n,i)}function YJ(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":""))})}GJ.exports={plot:Cwe,plotBoxAndWhiskers:HJ,plotPoints:OJ,plotBoxMean:YJ}});var XJ=G((TEe,VJ)=>{"use strict";var W7=Er(),Z7=kr(),J7=$r();function Swe(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 qwe(e,r,t){var a=r[0].trace,n=t.selectAll("path.point");a.selectedpoints?J7.selectedPointStyle(n,a):J7.pointStyle(n,a,e)}VJ.exports={style:Swe,styleOnSelect:qwe}});var ZJ=G((MEe,WJ)=>{"use strict";WJ.exports={moduleType:"trace",name:"candlestick",basePlotModule:ao(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:V7(),layoutAttributes:X7(),supplyLayoutDefaults:kJ().supplyLayoutDefaults,crossTraceCalc:DJ().crossTraceCalc,supplyDefaults:RJ(),calc:IJ(),plot:UJ().plot,layerName:"boxlayer",style:XJ().style,hoverPoints:Y7().hoverPoints,selectPoints:G7()}});var $J=G((AEe,JJ)=>{"use strict";JJ.exports=ZJ()});var ln=G((kEe,jJ)=>{"use strict";var KJ=Object.getOwnPropertySymbols,Dwe=Object.prototype.hasOwnProperty,Pwe=Object.prototype.propertyIsEnumerable;function Ewe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Rwe(){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}}jJ.exports=Rwe()?Object.assign:function(e,r){for(var t,a=Ewe(e),n,i=1;i{var Xy=ln();function QJ(){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(QJ.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=e$.exports=new QJ;Yr.cdate=$7;Yr.baseCalendar=K7;Yr.calendars.gregorian=j7});var r$=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,H){var N=x(F,H),B=[2,3,N?4:2,N?4:2,10,11,20]["oyYJ@!".indexOf(F)+1],Y=new RegExp("^-?\\d{1,"+B+"}"),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,H,N,B){for(var Y=x(F,B)?N:H,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 t$=G(()=>{var gs=on(),zwe=ln(),e8=gs.instance();function Wy(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Wy.prototype=new gs.baseCalendar;zwe(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(Nwe);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(Iwe);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(Bwe);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=Owe(e,i,t,n);return e8.toJD(l.year,l.month,l.day)},fromJD:function(e){var r=e8.fromJD(e),t=Hwe(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(Fwe),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 Fwe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Nwe=/^\d?\d[iI]?/m,Iwe=/^闰?十?[一二三四五六七八九]?月/m,Bwe=/^闰?十?[一二三四五六七八九]?/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 Hwe(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 a$=G(()=>{var Ju=on(),Ywe=ln();function r8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}r8.prototype=new Ju.baseCalendar;Ywe(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 n$=G(()=>{var po=on(),Gwe=ln();function t8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}t8.prototype=new po.baseCalendar;Gwe(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:Uwe[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 Uwe={20:"Fruitbat",21:"Anchovy"};po.calendars.discworld=t8});var i$=G(()=>{var $u=on(),Vwe=ln();function a8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}a8.prototype=new $u.baseCalendar;Vwe(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 l$=G(()=>{var _s=on(),Xwe=ln();function n8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}n8.prototype=new _s.baseCalendar;Xwe(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 o$=G(()=>{var ad=on(),Wwe=ln();function i8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i8.prototype=new ad.baseCalendar;Wwe(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 s$=G(()=>{var nd=on(),Zwe=ln();function l8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}l8.prototype=new nd.baseCalendar;Zwe(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 f$=G(()=>{var Ri=on(),Jwe=ln();function s8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}s8.prototype=new Ri.baseCalendar;Jwe(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,[u$(e+20,20),u$(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 u$(e,r){return o8(e-1,r)+1}Ri.calendars.mayan=s8});var v$=G(()=>{var Ku=on(),$we=ln();function u8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}u8.prototype=new Ku.baseCalendar;var c$=Ku.instance("gregorian");$we(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 c$.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 d$=G(()=>{var ju=on(),Kwe=ln();function f8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}f8.prototype=new ju.baseCalendar;Kwe(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(),jwe=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;jwe($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 p$=G(()=>{var Qu=on(),Qwe=ln(),Ky=Qu.instance();function c8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}c8.prototype=new Qu.baseCalendar;Qwe(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 m$=G(()=>{var e0=on(),eTe=ln(),jy=e0.instance();function v8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}v8.prototype=new e0.baseCalendar;eTe(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 y$=G(()=>{var r0=on(),rTe=ln();function d8(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}d8.prototype=new r0.baseCalendar;rTe(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 x$=G((nRe,g$)=>{"use strict";g$.exports=on();r$();t$();a$();n$();i$();l$();o$();s$();f$();v$();d$();h$();p$();m$();y$()});var k$=G((iRe,A$)=>{"use strict";var _$=x$(),id=Se(),w$=(Rt(),Fe(Nt)),tTe=w$.EPOCHJD,aTe=w$.ONEDAY,m8={valType:"enumerated",values:id.sortObjectKeys(_$.calendars),editType:"calc",dflt:"gregorian"},T$=function(e,r,t,a){var n={};return n[t]=m8,id.coerce(e,r,n,t,a)},nTe=function(e,r,t,a){for(var n=0;n{"use strict";L$.exports=k$()});var fTe=G((oRe,q$)=>{var S$=NY();S$.register([BG(),qU(),vV(),jV(),OX(),cW(),YZ(),hJ(),$J(),C$()]);q$.exports=S$});return fTe();})(); /*! 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 73b371027fa..f7a47354a8c 100644 --- a/dist/plotly-geo-assets.js +++ b/dist/plotly-geo-assets.js @@ -1,5 +1,5 @@ /** -* plotly.js v4.2.0 +* plotly.js v4.3.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.2.0"; + exports.version = "4.3.0"; } }); diff --git a/dist/plotly-geo.js b/dist/plotly-geo.js index a3b1b226887..4440ac25aba 100644 --- a/dist/plotly-geo.js +++ b/dist/plotly-geo.js @@ -1,5 +1,5 @@ /** -* plotly.js (geo) v4.2.0 +* plotly.js (geo) v4.3.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.2.0"; + exports.version = "4.3.0"; } }); @@ -9261,7 +9261,7 @@ var Plotly = (() => { for (var i = 1; i < length; i++) { input = inputs[i]; for (key in input) { - src = target[key]; + src = Object.prototype.hasOwnProperty.call(target, key) ? target[key] : void 0; copy = input[key]; if (noArrayCopies && isArray(copy)) { target[key] = copy; @@ -19641,8 +19641,8 @@ var Plotly = (() => { }; var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/; var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/; - function notValid(prop) { - return prop.slice(0, 2) === "__"; + function notValid(obj, prop) { + return prop in obj && !Object.prototype.hasOwnProperty.call(obj, prop); } lib.expandObjectPaths = function(data) { var match, key, prop, datum, idx, dest, trailingPath; @@ -19652,7 +19652,7 @@ var Plotly = (() => { if (match = key.match(dottedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; delete data[key]; data[prop] = lib.extendDeepNoArrays( data[prop] || {}, @@ -19661,7 +19661,7 @@ var Plotly = (() => { } else if (match = key.match(indexedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; idx = parseInt(match[2]); delete data[key]; data[prop] = data[prop] || []; @@ -19670,11 +19670,11 @@ var Plotly = (() => { dest = data[prop][idx] = data[prop][idx] || {}; lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum))); } else { - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; data[prop][idx] = lib.expandObjectPaths(datum); } } else { - if (notValid(key)) continue; + if (notValid(data, key)) continue; data[key] = lib.expandObjectPaths(data[key]); } } @@ -22229,7 +22229,7 @@ var Plotly = (() => { ax._counterAxes.sort(axisIDs.idSort); ax._subplotsWith.sort(Lib.subplotSort); ax._mainSubplot = findMainSubplot(ax, newFullLayout); - if (ax._counterAxes.length && (ax.spikemode && ax.spikemode.indexOf("across") !== -1 || ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { + if (ax._counterAxes.length && (ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { var min = 1; var max = 0; for (j = 0; j < ax._counterAxes.length; j++) { @@ -25421,6 +25421,33 @@ var Plotly = (() => { dflt: [0, 1], editType: "plot" }, + domainpad: { + left: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + right: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + top: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + bottom: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + editType: "plot" + }, position: { valType: "number", min: 0, @@ -29097,6 +29124,12 @@ var Plotly = (() => { function isValidCategory(v) { return v !== null && v !== void 0; } + var MIN_PADDED_LENGTH = 2; + function padFactor(wanted, bandLength) { + if (wanted <= 0) return 0; + const room = Math.max(0, bandLength - MIN_PADDED_LENGTH); + return wanted > room ? room / wanted : 1; + } module.exports = function setConvert(ax, fullLayout) { fullLayout = fullLayout || {}; var axId = ax._id || "x"; @@ -29467,6 +29500,7 @@ var Plotly = (() => { if (ax.overlaying) { var ax2 = axisIds.getFromId({ _fullLayout: fullLayout }, ax.overlaying); ax.domain = ax2.domain; + ax.domainpad = ax2.domainpad; } var rangeAttr = usePrivateRange && ax._r ? "_r" : "range"; var calendar = ax.calendar; @@ -29474,14 +29508,26 @@ var Plotly = (() => { var rl0 = ax.r2l(ax[rangeAttr][0], calendar); var rl1 = ax.r2l(ax[rangeAttr][1], calendar); var isY2 = axLetter === "y"; + const bandLength = (isY2 ? gs.h : gs.w) * (ax.domain[1] - ax.domain[0]); + const pad = ax.domainpad; + let padStart = 0; + let padEnd = 0; + if (pad) { + padStart = (isY2 ? pad.top : pad.left) || 0; + padEnd = (isY2 ? pad.bottom : pad.right) || 0; + const fits = padFactor(padStart + padEnd, bandLength); + padStart *= fits; + padEnd *= fits; + } + ax._length = bandLength - padStart - padEnd; + ax._padStart = padStart; + ax._padEnd = padEnd; if (isY2) { - ax._offset = gs.t + (1 - ax.domain[1]) * gs.h; - ax._length = gs.h * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.t + (1 - ax.domain[1]) * gs.h + padStart; ax._m = ax._length / (rl0 - rl1); ax._b = -ax._m * rl1; } else { - ax._offset = gs.l + ax.domain[0] * gs.w; - ax._length = gs.w * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.l + ax.domain[0] * gs.w + padStart; ax._m = ax._length / (rl1 - rl0); ax._b = -ax._m * rl0; } @@ -31338,7 +31384,7 @@ var Plotly = (() => { for (var i = 0; i < vals.length; i++) { var vali = tickVal2l(vals[i]); if (vali > tickMin && vali < tickMax) { - var obj = axes.tickText(ax, vali, false, String(text[i]), { + const obj = axes.tickText(ax, vali, false, text[i] !== void 0, { first: i === firstIdx, last: i === lastIdx }); @@ -33427,6 +33473,7 @@ var Plotly = (() => { var noSwapAttrs = [ "anchor", "domain", + "domainpad", "overlaying", "position", "side", @@ -38012,6 +38059,30 @@ var Plotly = (() => { } return d; } + function getAcrossSpikeSpan(gd, ax, gs) { + const isY = ax._id.charAt(0) === "y"; + let start = Infinity; + let end = -Infinity; + for (const counterId of ax._counterAxes || []) { + const counterAx = Axes.getFromId(gd, counterId); + if (!counterAx) continue; + const padStart = counterAx._padStart || 0; + const padEnd = counterAx._padEnd || 0; + if (isY) { + start = Math.min(start, gs.l + counterAx.domain[0] * gs.w + padStart); + end = Math.max(end, gs.l + counterAx.domain[1] * gs.w - padEnd); + } else { + start = Math.min(start, gs.t + (1 - counterAx.domain[1]) * gs.h + padStart); + end = Math.max(end, gs.t + (1 - counterAx.domain[0]) * gs.h - padEnd); + } + } + if (ax.anchor === "free") { + const position = isY ? gs.l + ax.position * gs.w : gs.t + (1 - ax.position) * gs.h; + start = Math.min(start, position); + end = Math.max(end, position); + } + return [start, end]; + } function createSpikelines(gd, closestPoints, opts) { var container = opts.container; var fullLayout = opts.fullLayout; @@ -38048,14 +38119,9 @@ var Plotly = (() => { xEndSpike = hLinePointX; } if (yMode.indexOf("across") !== -1) { - var xAcross0 = ya._counterDomainMin; - var xAcross1 = ya._counterDomainMax; - if (ya.anchor === "free") { - xAcross0 = Math.min(xAcross0, ya.position); - xAcross1 = Math.max(xAcross1, ya.position); - } - xBase = gs.l + xAcross0 * gs.w; - xEndSpike = gs.l + xAcross1 * gs.w; + const xSpan = getAcrossSpikeSpan(gd, ya, gs); + xBase = xSpan[0]; + xEndSpike = xSpan[1]; } container.insert("line", ":first-child").attr({ x1: xBase, @@ -38109,14 +38175,9 @@ var Plotly = (() => { yEndSpike = vLinePointY; } if (xMode.indexOf("across") !== -1) { - var yAcross0 = xa._counterDomainMin; - var yAcross1 = xa._counterDomainMax; - if (xa.anchor === "free") { - yAcross0 = Math.min(yAcross0, xa.position); - yAcross1 = Math.max(yAcross1, xa.position); - } - yBase = gs.t + (1 - yAcross1) * gs.h; - yEndSpike = gs.t + (1 - yAcross0) * gs.h; + const ySpan = getAcrossSpikeSpan(gd, xa, gs); + yBase = ySpan[0]; + yEndSpike = ySpan[1]; } container.insert("line", ":first-child").attr({ x1: vLinePointX, @@ -42772,7 +42833,7 @@ var Plotly = (() => { var outerMax = rangeCenter + halfRange * factor * 1.0001; var getPadMin = autorange.makePadFn(fullLayout, ax, 0); var getPadMax = autorange.makePadFn(fullLayout, ax, 1); - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); var m = Math.abs(ax._m); var extremes = autorange.concatExtremes(gd, ax); var minArray = extremes.min; @@ -42797,7 +42858,7 @@ var Plotly = (() => { rangeMax = ax.l2r(rangeMax); ax.range = ax._input.range = rl0 < rl1 ? [rangeMin, rangeMax] : [rangeMax, rangeMin]; } - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); } } } @@ -42828,13 +42889,26 @@ var Plotly = (() => { } } }; - function updateDomain(ax, factor) { + function domainPadFraction(ax, fullLayout) { + const pad = ax.domainpad; + if (!pad) return 0; + const gs = fullLayout._size; + return ax._id.charAt(0) === "y" ? ((pad.top || 0) + (pad.bottom || 0)) / gs.h : ((pad.left || 0) + (pad.right || 0)) / gs.w; + } + function updateDomain(ax, factor, fullLayout) { var inputDomain = ax._inputDomain; var centerFraction = FROM_BL2[ax.constraintoward]; var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction; + let divisor = factor; + const padFraction = domainPadFraction(ax, fullLayout); + if (padFraction > 0) { + const inputSpan = inputDomain[1] - inputDomain[0]; + const drawnSpan = inputSpan - padFraction; + if (drawnSpan > 0) divisor = inputSpan / (drawnSpan / factor + padFraction); + } ax.domain = ax._input.domain = [ - center + (inputDomain[0] - center) / factor, - center + (inputDomain[1] - center) / factor + center + (inputDomain[0] - center) / divisor, + center + (inputDomain[1] - center) / divisor ]; ax.setScale(); } @@ -50063,6 +50137,10 @@ var Plotly = (() => { if (!newType || newType === "-") newType = "linear"; Registry.getComponentMethod("annotations", "convertCoords")(gd, fullProp, newType, doextra); Registry.getComponentMethod("images", "convertCoords")(gd, fullProp, newType, doextra); + if (!ptrunk && fullProp && vi && (vi.range !== void 0 || vi.autorange !== void 0)) { + recordAlteredAxis(`${pleaf}.range`); + fullProp._inputRange = null; + } } var containerArrayMatch = manageArrays.containerArrayMatch(ai); if (containerArrayMatch) { @@ -50576,6 +50654,14 @@ var Plotly = (() => { newFullLayout[key]._inputDomain = null; } } + const newRange = newFullLayout[key].range; + const oldRange = oldFullLayout[key].range; + const oldInputRange = oldFullLayout[key]._inputRange; + if (oldInputRange && newRange && oldRange) { + const isInputRange = newRange[0] === oldInputRange[0] && newRange[1] === oldInputRange[1]; + const isOldRange = newRange[0] === oldRange[0] && newRange[1] === oldRange[1]; + if (!isInputRange && !isOldRange) newFullLayout[key]._inputRange = null; + } } var diffOpts = { getValObject: getLayoutValObject, @@ -55824,6 +55910,13 @@ var Plotly = (() => { var domain = coerce("domain", dfltDomain); if (domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain; Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain); + if (letter === "x") { + coerce("domainpad.left"); + coerce("domainpad.right"); + } else { + coerce("domainpad.top"); + coerce("domainpad.bottom"); + } if (containerOut.tickmode === "sync") { containerOut.tickmode = "auto"; } @@ -61200,9 +61293,8 @@ var Plotly = (() => { } axisOpts.cleanRange("rangeslider.range"); var gs = fullLayout._size; - var domain = axisOpts.domain; - opts2._width = gs.w * (domain[1] - domain[0]); - var x = Math.round(gs.l + gs.w * domain[0]); + opts2._width = axisOpts._length; + const x = Math.round(axisOpts._offset); var y = Math.round( gs.t + gs.h * (1 - axisOpts._counterDomainMin) + (axisOpts.side === "bottom" ? axisOpts._depth : 0) + opts2._offsetShift + constants2.extraPad ); diff --git a/dist/plotly-geo.min.js b/dist/plotly-geo.min.js index 5f84010f4f1..b6713bbc7e6 100644 --- a/dist/plotly-geo.min.js +++ b/dist/plotly-geo.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (geo - minified) v4.2.0 +* plotly.js (geo - minified) v4.3.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 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++{var NY=Object.create;var J2=Object.defineProperty,BY=Object.defineProperties,IY=Object.getOwnPropertyDescriptor,HY=Object.getOwnPropertyDescriptors,OY=Object.getOwnPropertyNames,Mh=Object.getOwnPropertySymbols,UY=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(Mh)for(var t of Mh(r))N_.call(r,t)&&z_(e,t,r[t]);return e},Ha=(e,r)=>BY(e,HY(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&&Mh)for(var a of Mh(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 OY(r))!Sy.call(e,n)&&n!==t&&J2(e,n,{get:()=>r[n],enumerable:!(a=IY(r,n))||a.enumerable});return e};var H_=(e,r,t)=>(t=e!=null?NY(UY(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.3.0"});var Y_=oe((G_,Th)=>{(function(r,t,a){t[r]=t[r]||a(),typeof Th!="undefined"&&Th.exports&&(Th.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(T,M){this.fn=T,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 h(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 d(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 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 ue(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,zY),Hi.push(zl);for(var ti=e.event.changedTouches,Xo=0,ks=ti.length;Xo1){var qf=jo[0],v0=jo[1],Ah=qf[0]-v0[0],R_=qf[1]-v0[1];oa=Ah*Ah+R_*R_}}function Lf(){var zl=e.touches(Hr),ti,Xo,ks,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):ls(""+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 ss(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=us(v),g=us(g),w=us(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 us(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(;Ft24?(isFinite(g)&&(clearTimeout(yl),yl=setTimeout(Xi,g)),Vn=0):(Vn=1,fs(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=ps(S.site,Z.site),Ho(S),Ho(F);return}if(!F){Z.edge=ps(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=ps(te,v,null,Pe),F.edge=ps(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=ds._;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)?ys:w==="object"&&isNaN(g)?oi:Tn)(v,g)}],e.interpolateArray=ys;function ys(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)||df,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 hf(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 du(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=hu(g),F=bs(g,w),L=hu(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=cs(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=ws,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 ws(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],hn(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&&!As(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 As(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=he(Se),_e.y=$(Se)):(_e.x=te?ne+=g(_e,te):0,_e.y=0,te=_e)});var ge=se(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 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 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 mh(v){var g=vs,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 gh(v){return v.join("L")+"Z"}function yh(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=mh(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/dt),w=g*dt/2;return"M0,"+w+"L"+g+","+-w+" "+-g+","+-w+"Z"},"triangle-up":function(v){var g=Math.sqrt(v/dt),w=g*dt/2;return"M0,"+-w+"L"+g+","+w+" "+-g+","+w+"Z"}});e.svg.symbolTypes=ct.keys();var dt=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=cs(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 Ts[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=ys(S,Le.x),Pe=ys(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 Ch=="object"&&typeof V_!="undefined"?r(Ch):(e=e||self,r(e.d3=e.d3||{}))})(Ch,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()}),d=c.range,h=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=h.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),T=x(2),M=x(3),E=x(4),P=x(5),z=x(6),I=_.range,X=A.range,H=T.range,V=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 ue=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 le=W(0),de=W(1),K=W(2),J=W(3),fe=W(4),be=W(5),Ne=W(6),Ze=le.range,er=de.range,Je=K.range,tr=J.range,ze=fe.range,lr=be.range,dr=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=h,e.timeMinutes=p,e.timeMonday=A,e.timeMondays=X,e.timeMonth=re,e.timeMonths=ae,e.timeSaturday=z,e.timeSaturdays=ee,e.timeSecond=c,e.timeSeconds=d,e.timeSunday=_,e.timeSundays=I,e.timeThursday=E,e.timeThursdays=N,e.timeTuesday=T,e.timeTuesdays=H,e.timeWednesday=M,e.timeWednesdays=V,e.timeWeek=_,e.timeWeeks=I,e.timeYear=ie,e.timeYears=ue,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=de,e.utcMondays=er,e.utcMonth=Ar,e.utcMonths=Qe,e.utcSaturday=Ne,e.utcSaturdays=dr,e.utcSecond=c,e.utcSeconds=d,e.utcSunday=le,e.utcSundays=Ze,e.utcThursday=fe,e.utcThursdays=ze,e.utcTuesday=K,e.utcTuesdays=Je,e.utcWednesday=J,e.utcWednesdays=tr,e.utcWeek=le,e.utcWeeks=Ze,e.utcYear=mr,e.utcYears=qr,Object.defineProperty(e,"__esModule",{value:!0})})});var d1=oe((Sh,X_)=>{(function(e,r){typeof Sh=="object"&&typeof X_!="undefined"?r(Sh,Dy()):(e=e||self,r(e.d3=e.d3||{},e.d3))})(Sh,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,hr=Ae.time,Dt=Ae.periods,Wt=Ae.days,ba=Ae.shortDays,_a=Ae.months,Xt=Ae.shortMonths,Ht=d(Dt),la=h(Dt),Pt=d(Wt),Ta=h(Wt),pa=d(ba),Xa=h(ba),dn=d(_a),ja=h(_a),Fa=d(Xt),Rr=h(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:ue,L:xe,m:Ye,M:Ee,p:gl,q:Vi,Q:jr,s:et,S:ke,u:je,U:W,V:de,w:K,W:J,x:null,X:null,y:fe,Y:Ne,Z:er,"%":Er},Et={a:Ri,A:ls,b:ss,B:Ks,c:null,d:Je,e:Je,f:Ar,g:cr,G:vr,H:tr,I:ze,j:lr,L:dr,m:Qe,M:mr,p:us,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:V,g:_,G:x,H:z,I:z,j:P,L:H,m:M,M:I,p:$t,q:T,Q,s:ee,S:X,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(hr,Vt),Vt.c=ma(Be,Vt),Et.x=ma(or,Et),Et.X=ma(hr,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=dn.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,hr,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 ls(ot){return Wt[ot.getUTCDay()]}function ss(ot){return Xt[ot.getUTCMonth()]}function Ks(ot){return _a[ot.getUTCMonth()]}function us(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 hr=Ae<0?"-":"",Dt=(hr?-Ae:Ae)+"",Wt=Dt.length;return hr+(Wt68?1900:2e3),or+hr[0].length):-1}function A(Ae,Be,or){var hr=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Be.slice(or,or+6));return hr?(Ae.Z=hr[1]?0:-(hr[2]+(hr[3]||"00")),or+hr[0].length):-1}function T(Ae,Be,or){var hr=l.exec(Be.slice(or,or+1));return hr?(Ae.q=hr[0]*3-3,or+hr[0].length):-1}function M(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.m=hr[0]-1,or+hr[0].length):-1}function E(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.d=+hr[0],or+hr[0].length):-1}function P(Ae,Be,or){var hr=l.exec(Be.slice(or,or+3));return hr?(Ae.m=0,Ae.d=+hr[0],or+hr[0].length):-1}function z(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.H=+hr[0],or+hr[0].length):-1}function I(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.M=+hr[0],or+hr[0].length):-1}function X(Ae,Be,or){var hr=l.exec(Be.slice(or,or+2));return hr?(Ae.S=+hr[0],or+hr[0].length):-1}function H(Ae,Be,or){var hr=l.exec(Be.slice(or,or+3));return hr?(Ae.L=+hr[0],or+hr[0].length):-1}function V(Ae,Be,or){var hr=l.exec(Be.slice(or,or+6));return hr?(Ae.L=Math.floor(hr[0]/1e3),or+hr[0].length):-1}function N(Ae,Be,or){var hr=s.exec(Be.slice(or,or+1));return hr?or+hr[0].length:-1}function Q(Ae,Be,or){var hr=l.exec(Be.slice(or));return hr?(Ae.Q=+hr[0],or+hr[0].length):-1}function ee(Ae,Be,or){var hr=l.exec(Be.slice(or));return hr?(Ae.s=+hr[0],or+hr[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 ue(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 le(Ae){var Be=Ae.getDay();return Be>=4||Be===0?r.timeThursday(Ae):r.timeThursday.ceil(Ae)}function de(Ae,Be){return Ae=le(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=le(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 dr(Ae,Be){return f(Ae.getUTCMilliseconds(),Be,3)}function Ar(Ae,Be){return dr(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((Dh,j_)=>{(function(e,r){typeof Dh=="object"&&typeof j_!="undefined"?r(Dh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e.d3=e.d3||{}))})(Dh,(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,X=[],H=0,V=M[0],N=0;I>0&&V>0&&(N+V+1>z&&(V=Math.max(1,z-N)),X.push(P.substring(I-=V,I+V)),!((N+=V+1)>z));)V=M[H=(H+1)%M.length];return X.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],X=I-(f=Math.max(-8,Math.min(8,Math.floor(I/3)))*3)+1,H=z.length;return X===H?z:X>H?z+new Array(X-H+1).join("0"):X>0?z.slice(0,X)+"."+z.slice(X):"0."+new Array(1-X).join("0")+t(M,Math.max(0,E+X-1))[0]}function d(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 h={"%":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 d(M*100,E)},r:d,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+"",X=M.numerals===void 0?p:i(m.call(M.numerals,String)),H=M.percent===void 0?"%":M.percent+"",V=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,ue=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"):h[W]||(ke===void 0&&(ke=12),je=!0,W="g"),(De||ae==="0"&&ie==="=")&&(De=!0,ae="0",ie="=");var le=xe==="$"?P:xe==="#"&&/[boxX]/.test(W)?"0"+W.toLowerCase():"",de=xe==="$"?z:/[%p]/.test(W)?H:"",K=h[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=le,Ze=de,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&&ue!=="+"&&(ze=!1),Ne=(ze?ue==="("?ue:V:ue==="-"||ue==="("?"":ue)+Ne,Ze=(W==="s"?b[8+f/3]:"")+Ze+(ze&&ue==="("?")":""),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,dr=lr>1)+Ne+be+Ze+dr.slice(lr);break;default:be=dr+Ne+be+Ze;break}return X(be)}return fe.toString=function(){return re+""},fe}function ee(re,ae){var ie=Q((re=l(re),re.type="f",re)),ue=Math.max(-8,Math.min(8,Math.floor(a(ae)/3)))*3,xe=Math.pow(10,-ue),De=b[8+ue/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 T(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=T,Object.defineProperty(e,"__esModule",{value:!0})}))});var Z_=oe((v4e,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((d4e,$_)=>{"use strict";var GY=Z_();$_.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&GY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var nn={};Ua(nn,{ALMOST_EQUAL:()=>sV,BADNUM:()=>Ey,EPOCHJD:()=>lV,FP_SAFE:()=>YY,LOG_CLIP:()=>uV,MINUS_SIGN:()=>fV,ONEAVGMONTH:()=>KY,ONEAVGQUARTER:()=>ZY,ONEAVGYEAR:()=>XY,ONEDAY:()=>rV,ONEHOUR:()=>tV,ONEMAXMONTH:()=>JY,ONEMAXQUARTER:()=>WY,ONEMAXYEAR:()=>VY,ONEMICROSEC:()=>oV,ONEMILLI:()=>iV,ONEMIN:()=>aV,ONEMINMONTH:()=>QY,ONEMINQUARTER:()=>$Y,ONEMINYEAR:()=>jY,ONESEC:()=>nV,ONEWEEK:()=>eV});var Ey,YY,VY,XY,jY,WY,ZY,$Y,JY,KY,QY,eV,rV,tV,aV,nV,iV,oV,lV,sV,uV,fV,Za=Oa(()=>{"use strict";Ey=void 0,YY=Number.MAX_VALUE*1e-4,VY=316224e5,XY=315576e5,jY=31536e6,WY=79488e5,ZY=78894e5,$Y=76896e5,JY=26784e5,KY=26298e5,QY=24192e5,eV=6048e5,rV=864e5,tV=36e5,aV=6e4,nV=1e3,iV=1,oV=.001,lV=24405875e-1,sV=1-1e-6,uV=10,fV="\u2212"});var Ly=oe((Fh,J_)=>{(function(e,r){typeof Fh=="object"&&typeof J_!="undefined"?r(Fh):(e=typeof globalThis!="undefined"?globalThis:e||self,r(e["base64-arraybuffer"]={}))})(Fh,(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,d,h,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++]=(d&15)<<4|h>>2,b[f++]=(h&3)<<6|p&63;return m};e.decode=i,e.encode=n,Object.defineProperty(e,"__esModule",{value:!0})}))});var d0=oe((h4e,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 cV=Ly().decode,vV=d0(),qy=Array.isArray,dV=ArrayBuffer,hV=DataView;function Q_(e){return dV.isView(e)&&!(e instanceof hV)}Nl.isTypedArray=Q_;function Eh(e){return qy(e)||Q_(e)}Nl.isArrayOrTypedArray=Eh;function pV(e){return!Eh(e[0])}Nl.isArray1D=pV;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=mV(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=cV(o));var l=t.shape===void 0?[o.byteLength/i]:(""+t.shape).split(",");l.reverse();var s=l.length,u,f,c=+l[0],d=i*c,h=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 h1=Q2(),xV=/^\w*$/,wV=0,ox=1,Lh=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=h1(r,t),o=l.get()):o=r,t=t||"";var u={};if(o)for(i=0;i2)return s[h]=s[h]|Lh,c.set(d,null);if(f){for(i=h;i{"use strict";var AV=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,MV=/^[^\.\[\]]+$/;fx.exports=function(e,r){for(;r;){var t=e.match(AV);if(t)e=t[1];else if(e.match(MV))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 qh=oe((b4e,vx)=>{"use strict";var TV=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 TV(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var px=oe((_4e,hx)=>{"use strict";var dx=ro().isArrayOrTypedArray,ev=d0();hx.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(dx(n)&&dx(i)&&ev(n[0])){if(a==="customdata"||a==="ids")continue;for(var o=Math.min(n.length,i.length),l=0;lkV,modHalf:()=>CV});function kV(e,r){let t=e%r;return t<0?t+r:t}function CV(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=d0(),rv=Array.isArray;function SV(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:()=>FV,HOVERFONT:()=>qV,HOVERFONTSIZE:()=>LV,HOVERID:()=>RV,HOVERMINTIME:()=>PV,HOVERTEXTPAD:()=>EV,YANGLE:()=>DV});var DV,FV,EV,LV,qV,PV,RV,iv=Oa(()=>{"use strict";DV=60,FV=6,EV=3,LV=13,qV="Arial, sans-serif",PV=50,RV="-hover"});var g1=oe((A4e,_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 Ph=oe((M4e,xx)=>{"use strict";var zV=xi(),ov=g1().hoverlabel,lv=Dn().extendFlat;xx.exports={hoverlabel:{bgcolor:lv({},ov.bgcolor,{arrayOk:!0}),bordercolor:lv({},ov.bordercolor,{arrayOk:!0}),font:zV({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((T4e,wx)=>{"use strict";var NV=xi(),BV=Ph();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:NV({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:BV.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var hA=oe((L4e,dA)=>{var D4=Object.defineProperty,IV=Object.getOwnPropertyDescriptor,HV=Object.getOwnPropertyNames,OV=Object.prototype.hasOwnProperty,UV=(e,r)=>{for(var t in r)D4(e,t,{get:r[t],enumerable:!0})},GV=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of HV(r))!OV.call(e,n)&&n!==t&&D4(e,n,{get:()=>r[n],enumerable:!(a=IV(r,n))||a.enumerable});return e},YV=e=>GV(D4({},"__esModule",{value:!0}),e),Lx={};UV(Lx,{a98:()=>RZ,average:()=>HX,averageAngle:()=>Ds,averageNumber:()=>Zx,blend:()=>IW,blerp:()=>u4,clampChroma:()=>iZ,clampGamut:()=>t5,clampRgb:()=>nZ,colorsNamed:()=>Px,convertA98ToXyz65:()=>f4,convertCubehelixToRgb:()=>jx,convertDlchToLab65:()=>Gh,convertHsiToRgb:()=>aw,convertHslToRgb:()=>ow,convertHsvToRgb:()=>R4,convertHwbToRgb:()=>fw,convertItpToXyz65:()=>v4,convertJabToJch:()=>h4,convertJabToRgb:()=>O4,convertJabToXyz65:()=>I4,convertJchToJab:()=>p4,convertLab65ToDlch:()=>Yh,convertLab65ToRgb:()=>pv,convertLab65ToXyz65:()=>L4,convertLabToLch:()=>Tu,convertLabToRgb:()=>G4,convertLabToXyz50:()=>ep,convertLchToLab:()=>ku,convertLchuvToLuv:()=>X4,convertLrgbToOklab:()=>j4,convertLrgbToRgb:()=>Of,convertLuvToLchuv:()=>V4,convertLuvToXyz50:()=>Xh,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:()=>h0,convertRgbToYiq:()=>Xw,convertXybToRgb:()=>Hw,convertXyz50ToLab:()=>rp,convertXyz50ToLuv:()=>Vh,convertXyz50ToProphoto:()=>A4,convertXyz50ToRgb:()=>A1,convertXyz50ToXyz65:()=>Yw,convertXyz65ToA98:()=>c4,convertXyz65ToItp:()=>d4,convertXyz65ToJab:()=>B4,convertXyz65ToLab65:()=>q4,convertXyz65ToP3:()=>w4,convertXyz65ToRec2020:()=>T4,convertXyz65ToRgb:()=>p0,convertXyz65ToXyz50:()=>Gw,convertYiqToRgb:()=>jw,converter:()=>La,cubehelix:()=>zZ,differenceCie76:()=>qX,differenceCie94:()=>PX,differenceCiede2000:()=>RX,differenceCmc:()=>zX,differenceEuclidean:()=>w1,differenceHueChroma:()=>hv,differenceHueNaive:()=>Wx,differenceHueSaturation:()=>dv,differenceHyab:()=>NX,differenceItp:()=>IX,differenceKotsarenkoRamos:()=>BX,displayable:()=>r5,dlab:()=>NZ,dlch:()=>BZ,easingGamma:()=>sA,easingInOutSine:()=>qZ,easingMidpoint:()=>rA,easingSmootherstep:()=>EZ,easingSmoothstep:()=>SZ,easingSmoothstepInverse:()=>DZ,filterBrightness:()=>hZ,filterContrast:()=>pZ,filterDeficiencyDeuter:()=>kZ,filterDeficiencyProt:()=>TZ,filterDeficiencyTrit:()=>CZ,filterGrayscale:()=>yZ,filterHueRotate:()=>_Z,filterInvert:()=>bZ,filterSaturate:()=>gZ,filterSepia:()=>mZ,fixupAlpha:()=>Bn,fixupHueDecreasing:()=>SX,fixupHueIncreasing:()=>CX,fixupHueLonger:()=>kX,fixupHueShorter:()=>Ss,formatCss:()=>LW,formatHex:()=>qW,formatHex8:()=>PW,formatHsl:()=>zW,formatRgb:()=>RW,getMode:()=>wi,hsi:()=>IZ,hsl:()=>HZ,hsv:()=>OZ,hwb:()=>UZ,inGamut:()=>np,interpolate:()=>WW,interpolateWith:()=>aA,interpolateWithPremultipliedAlpha:()=>ZW,interpolatorLinear:()=>nt,interpolatorPiecewise:()=>Yx,interpolatorSplineBasis:()=>iA,interpolatorSplineBasisClosed:()=>oA,interpolatorSplineMonotone:()=>KW,interpolatorSplineMonotone2:()=>QW,interpolatorSplineMonotoneClosed:()=>eZ,interpolatorSplineNatural:()=>$W,interpolatorSplineNaturalClosed:()=>JW,itp:()=>GZ,jab:()=>YZ,jch:()=>VZ,lab:()=>XZ,lab65:()=>jZ,lch:()=>WZ,lch65:()=>ZZ,lchuv:()=>$Z,lerp:()=>zf,lrgb:()=>JZ,luv:()=>KZ,mapAlphaDivide:()=>eA,mapAlphaMultiply:()=>Qw,mapTransferGamma:()=>YW,mapTransferLinear:()=>K4,mapper:()=>bv,modeA98:()=>Vx,modeCubehelix:()=>$x,modeDlab:()=>rw,modeDlch:()=>tw,modeHsi:()=>iw,modeHsl:()=>P4,modeHsv:()=>N4,modeHwb:()=>dw,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:()=>sZ,okhsl:()=>QZ,okhsv:()=>e$,oklab:()=>r$,oklch:()=>t$,p3:()=>a$,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:()=>n$,random:()=>GW,rec2020:()=>i$,removeParser:()=>nX,rgb:()=>o$,round:()=>Zw,samples:()=>aZ,serializeHex:()=>J4,serializeHex8:()=>$w,serializeHsl:()=>Kw,serializeRgb:()=>Jw,toGamut:()=>oZ,trilerp:()=>pX,unlerp:()=>hX,useMode:()=>Aa,useParser:()=>Ix,wcagContrast:()=>PZ,wcagLuminance:()=>S4,xyb:()=>l$,xyz50:()=>s$,xyz65:()=>u$,yiq:()=>f$});dA.exports=YV(Lx);var VV=(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=VV,XV={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=XV,jV=e=>qx(Px[e.toLowerCase()],6),Rx=jV,WV=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,ZV=e=>{let r;return(r=e.match(WV))?qx(parseInt(r[1],16),r[1].length):void 0},zx=ZV,to="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",k4e=`(?:${to}|none)`,fv=`${to}%`,C4e=`(?:${to}%|none)`,F4=`(?:${to}%|${to})`,$V=`(?:${to}%|${to}|none)`,JV=`(?:${to}(deg|grad|rad|turn)|${to})`,S4e=`(?:${to}(deg|grad|rad|turn)|${to}|none)`,_1="\\s*,\\s*",D4e=new RegExp("^"+$V+"$"),KV=new RegExp(`^rgba?\\(\\s*${to}${_1}${to}${_1}${to}\\s*(?:,\\s*${F4}\\s*)?\\)$`),QV=new RegExp(`^rgba?\\(\\s*${fv}${_1}${fv}${_1}${fv}\\s*(?:,\\s*${F4}\\s*)?\\)$`),eX=e=>{let r={mode:"rgb"},t;if(t=e.match(KV))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(QV))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=eX,rX=(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=rX,tX=(e="rgb")=>r=>(r=Bl(r,e))!==void 0?r.mode===e?r:Cs[r.mode][e]?Cs[r.mode][e](r):e==="rgb"?Cs[r.mode].rgb(r):Cs.rgb[e](Cs[r.mode].rgb(r)):void 0,La=tX,Cs={},Bx={},x1=[],E4={},aX=e=>e,Aa=e=>(Cs[e.mode]=ga(ga({},Cs[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{Cs[r]||(Cs[r]={}),Cs[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=aX)}),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)},nX=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_]/,iX=/[^\x00-\x7F]|[-\w]/,Jr={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},Ft=0;function Rh(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 oX={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+=zh(e),e[Ft]==="."&&/\d/.test(e[Ft+1])&&(r+=e[Ft++]+zh(e)),(e[Ft]==="e"||e[Ft]==="E")&&((e[Ft+1]==="-"||e[Ft+1]==="+")&&/\d/.test(e[Ft+2])?r+=e[Ft++]+e[Ft++]+zh(e):/\d/.test(e[Ft+1])&&(r+=e[Ft++]+zh(e))),s4(e)){let t=Ih(e);return t==="deg"||t==="rad"||t==="turn"||t==="grad"?{type:Jr.Hue,value:r*oX[t]}:void 0}return e[Ft]==="%"?(Ft++,{type:Jr.Percentage,value:+r}):{type:Jr.Number,value:+r}}function zh(e){let r="";for(;/\d/.test(e[Ft]);)r+=e[Ft++];return r}function Ih(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();})(); +`||r[Ft]===" "||r[Ft]===" ");)Ft++;continue}if(a===",")return;if(a===")"){t.push({type:Jr.ParenClose});continue}if(a==="+"){if(Ft--,Rh(r)){t.push(sv(r));continue}return}if(a==="-"){if(Ft--,Rh(r)){t.push(sv(r));continue}if(s4(r)){t.push({type:Jr.Ident,value:Ih(r)});continue}return}if(a==="."){if(Ft--,Rh(r)){t.push(sv(r));continue}return}if(a==="/"){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 fX(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 cX=e=>{if(typeof e!="string")return;let r=sX(e),t=r?fX(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=dX,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),pX=(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),mX=e=>{let r=[];for(let t=0;tr=>{let t=mX(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},gX={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=gX,By=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),yX=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=yX,Iy=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),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={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=bX,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)},_X=({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=_X,xX=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},h0=xX,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},wX=({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=wX,AX=({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=AX,MX=Ha(ga({},If),{mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>c4(h0(e)),xyz65:c4},toMode:{rgb:e=>p0(f4(e)),xyz65:f4}}),Vx=MX,TX=e=>(e=e%360)<0?e+360:e,ui=TX,Wh=(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),[]),Ss=e=>Wh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),kX=e=>Wh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),CX=e=>Wh(e,r=>r>=0?r:r+360),SX=e=>Wh(e,r=>r<=0?r:r-360),ai=[-.14861,1.78277,-.29227,-.90649,1.97294,0],DX=Math.PI/180,FX=180/Math.PI,Ax=ai[3]*ai[4],Mx=ai[1]*ai[4],Tx=ai[1]*ai[2]-ai[0]*ai[3],EX=({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)*FX-120),a!==void 0&&(l.alpha=a),l},Xx=EX,LX=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*DX,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=LX,dv=(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},hv=(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,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))}},qX=()=>w1("lab65"),PX=(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),d=l.l,h=l.a,p=l.b,m=Math.sqrt(h*h+p*p),b=Math.pow(s-d,2),y=Math.pow(c-m,2),C=Math.pow(u-h,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))}},RX=(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),d=l.l,h=l.a,p=l.b,m=Math.sqrt(h*h+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=h*(1+y),_=Math.sqrt(C*C+f*f),A=Math.sqrt(x*x+p*p),T=Math.abs(C)+Math.abs(f)===0?0:Math.atan2(f,C);T+=(T<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=d-s,P=A-_,z=_*A===0?0:M-T;z-=(z>Math.PI)*2*Math.PI,z+=(z<-Math.PI)*2*Math.PI;let I=2*Math.sqrt(_*A)*Math.sin(z/2),X=(s+d)/2,H=(_+A)/2,V;_*A===0?V=T+M:(V=(T+M)/2,V-=(Math.abs(T-M)>Math.PI)*Math.PI,V+=(V<0)*2*Math.PI);let N=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),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*V-275)/25,2)),ue=2*Math.sqrt(Math.pow(H,7)/(Math.pow(H,7)+Math.pow(25,7))),xe=-1*Math.sin(2*ie)*ue;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))}},zX=(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),d=c.l,h=c.a,p=c.b,m=Math.sqrt(h*h+p*p),b=Math.pow(o-d,2),y=Math.pow(u-m,2),C=Math.pow(l-h,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),T=.0638*u/(1+.0131*u)+.638,M=T*(x*_+1-x);return Math.sqrt(b/Math.pow(e*A,2)+y/Math.pow(r*T,2)+C/Math.pow(M,2))}},NX=()=>{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)}},BX=()=>w1("yiq",[.5053,.299,.1957]),IX=()=>w1("itp",[518400,129600,518400]),Ds=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 HX(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 OX={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:Ss},s:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:dv},average:{h:Ds}},$x=OX,UX=({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=UX,GX=({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=GX,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},F4e=Math.pow(29,3)/Math.pow(3,3),E4e=Math.pow(6,3)/Math.pow(29,3),Gy=e=>Math.pow(e,3)>Kx?Math.pow(e,3):(116*e-16)/Jx,YX=({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=YX,VX=e=>p0(L4(e)),pv=VX,Yy=e=>e>Kx?Math.cbrt(e):(Jx*e+16)/116,XX=({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=XX,jX=e=>{let r=q4(h0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},mv=jX,Hh=1,Qx=1,vv=26/180*Math.PI,Oh=Math.cos(vv),Uh=Math.sin(vv),ew=100/Math.log(139/100),WX=({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*Hh/ew)-1)/.0039},i=(Math.exp(.0435*r*Qx*Hh)-1)/.075,o=i*Math.cos(t/180*Math.PI-vv),l=i*Math.sin(t/180*Math.PI-vv);return n.a=o*Oh-l/.83*Uh,n.b=o*Uh+l/.83*Oh,a!==void 0&&(n.alpha=a),n},Gh=WX,ZX=({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*Oh+t*Uh,i=.83*(t*Oh-r*Uh),o=Math.sqrt(n*n+i*i),l={mode:"dlch",l:ew/Hh*Math.log(1+.0039*e),c:Math.log(1+.075*o)/(.0435*Qx*Hh)};return l.c&&(l.h=ui((Math.atan2(i,n)+vv)/Math.PI*180)),a!==void 0&&(l.alpha=a),l},Yh=ZX,kx=e=>Gh(Tu(e,"dlch")),Cx=e=>ku(Yh(e),"dlab"),$X={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=$X,JX={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:Gh,dlab:e=>ku(e,"dlab"),rgb:e=>pv(Gh(e))},fromMode:{lab65:Yh,dlab:e=>Tu(e,"dlch"),rgb:e=>Yh(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:Ss},alpha:{use:nt,fixup:Bn}},difference:{h:hv},average:{h:Ds}},tw=JX;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}},ej=QX,rj=new RegExp(`^hsla?\\(\\s*${JV}${_1}${fv}${_1}${fv}\\s*(?:,\\s*${F4}\\s*)?\\)$`),tj=e=>{let r=e.match(rj);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=ej(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=tj;function aj(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=aj,nj={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:Ss},s:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:dv},average:{h:Ds}},P4=nj;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 oj(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=oj,lj={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:Ss},w:nt,b:nt,alpha:{use:nt,fixup:Bn}},difference:{h:Wx},average:{h:Ds}},dw=lj,hw=203,Zh=.1593017578125,pw=78.84375,$h=.8359375,Jh=18.8515625,Kh=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-$h)/(Jh-Kh*r),1/Zh)}function Xy(e){if(e<0)return 0;let r=Math.pow(e/1e4,Zh);return Math.pow(($h+Jh*r)/(1+Kh*r),pw)}var jy=e=>Math.max(e/hw,0),sj=({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=sj,Wy=(e=0)=>Math.max(e*hw,0),uj=({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,d=4.378173828125*l-4.24560546875*s-.132568359375*u,h={mode:"itp",i:f,t:c,p:d};return a!==void 0&&(h.alpha=a),h},d4=uj,fj={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:v4,rgb:e=>p0(v4(e))},fromMode:{xyz65:d4,rgb:e=>d4(h0(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:nt,t:nt,p:nt,alpha:{use:nt,fixup:Bn}}},mw=fj,cj=134.03437499999998,vj=16295499532821565e-27,Zy=e=>{if(e<0)return 0;let r=Math.pow(e/1e4,Zh);return Math.pow(($h+Jh*r)/(1+Kh*r),cj)},$y=(e=0)=>Math.max(e*203,0),dj=({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)-vj,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=dj,hj=134.03437499999998,Sx=16295499532821565e-27,Jy=e=>{if(e<0)return 0;let r=Math.pow(e,1/hj);return 1e4*Math.pow(($h-r)/(Kh*r-Jh),1/Zh)},Ky=e=>e/203,pj=({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=pj,mj=e=>{let r=B4(h0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},H4=mj,gj=e=>p0(I4(e)),O4=gj,yj={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=yj,bj=({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},h4=bj,_j=({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=_j,xj={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:p4,rgb:e=>O4(p4(e))},fromMode:{rgb:e=>h4(H4(e)),jab:h4},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:nt,fixup:Ss},c:nt,j:nt,alpha:{use:nt,fixup:Bn}},difference:{h:hv},average:{h:Ds}},yw=xj,Qh=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)/Qh,wj=({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=wj,Aj=({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=Aj,Mj=e=>A1(ep(e)),G4=Mj,Tj=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=Tj,e4=e=>e>U4?Math.cbrt(e):(Qh*e+16)/116,kj=({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=kj,Cj=e=>{let r=rp(M1(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Y4=Cj;function Sj(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=Sj,Dj={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=Dj,Fj=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=Fj;function Ej(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=Ej,Lj={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:Ss},c:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:hv},average:{h:Ds}},ap=Lj,qj=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=qj,Pj=({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=Pj,Rj=({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=Rj,Aw=(e,r,t)=>4*e/(e+15*r+3*t),Mw=(e,r,t)=>9*r/(e+15*r+3*t),zj=Aw(Nn.X,Nn.Y,Nn.Z),Nj=Mw(Nn.X,Nn.Y,Nn.Z),Bj=e=>e<=U4?Qh*e:116*Math.cbrt(e)-16,Ij=({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=Bj(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-zj),o=13*n*(o-Nj));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},Vh=Ij,Hj=(e,r,t)=>4*e/(e+15*r+3*t),Oj=(e,r,t)=>9*r/(e+15*r+3*t),Uj=Hj(Nn.X,Nn.Y,Nn.Z),Gj=Oj(Nn.X,Nn.Y,Nn.Z),Yj=({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)+Uj,i=t/(13*e)+Gj,o=Nn.Y*(e<=8?e/Qh: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},Xh=Yj,Vj=e=>V4(Vh(M1(e))),Xj=e=>A1(Xh(X4(e))),jj={mode:"lchuv",toMode:{luv:X4,rgb:Xj},fromMode:{rgb:Vj,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:Ss},c:nt,l:nt,alpha:{use:nt,fixup:Bn}},difference:{h:hv},average:{h:Ds}},Tw=jj,Wj=Ha(ga({},If),{mode:"lrgb",toMode:{rgb:Of},fromMode:{rgb:Hf},parse:["srgb-linear"],serialize:"srgb-linear"}),kw=Wj,Zj={mode:"luv",toMode:{xyz50:Xh,rgb:e=>A1(Xh(e))},fromMode:{xyz50:Vh,rgb:e=>Vh(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=Zj,$j=({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=$j,Jj=e=>{let r=j4(Hf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},gv=Jj,Kj=({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=Kj,Qj=e=>Of(T1(e)),yv=Qj;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 jh(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function eW(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,d=-.1055613458*e-.0638541728*r,h=-.0894841775*e-1.291485548*r;{let p=1+f*c,m=1+f*d,b=1+f*h,y=p*p*p,C=m*m*m,x=b*b*b,_=3*c*p*p,A=3*d*m*m,T=3*h*b*b,M=6*c*c*p,E=6*d*d*m,P=6*h*h*b,z=l*y+s*C+u*x,I=l*_+s*A+u*T,X=l*M+s*E+u*P;f=f-z*I/(I*I-.5*z*X)}return f}function W4(e,r){let t=eW(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 rW(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,d=l+s*u,h=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,T=x*x*x,M=3*d*y*y,E=3*h*C*C,P=3*p*x*x,z=6*d*d*y,I=6*h*h*C,X=6*p*p*x,H=4.0767416621*_-3.3077115913*A+.2309699292*T-1,V=4.0767416621*M-3.3077115913*E+.2309699292*P,N=4.0767416621*z-3.3077115913*I+.2309699292*X,Q=V/(V*V-.5*H*N),ee=-H*Q,re=-1.2684380046*_+2.6097574011*A-.3413193965*T-1,ae=-1.2684380046*M+2.6097574011*E-.3413193965*P,ie=-1.2684380046*z+2.6097574011*I-.3413193965*X,ue=ae/(ae*ae-.5*re*ie),xe=-re*ue,De=-.0041960863*_-.7034186147*A+1.707614701*T-1,Ye=-.0041960863*M-.7034186147*E+1.707614701*P,Ee=-.0041960863*z-.7034186147*I+1.707614701*X,ke=Ye/(Ye*Ye-.5*De*Ee),je=-De*ke;ee=Q>=0?ee:1e6,xe=ue>=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=rW(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=tW;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),d=c*r,h=c*n,p=jh(d),m=h*p/d,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)*h/(s*u+s*f*h):0,v:r?r/d: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),d=a*s*u/(u+s-s*f*a),h=jh(c),p=d*h/c,m=T1({l:h,a:i*p,b:o*p}),b=Math.cbrt(1/Math.max(m.r,m.g,m.b,0)),y=jh(n*c),C=d*y/c;return r.l=y*b,r.a=C*i*b,r.b=C*o*b,r}var aW=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=aW;function nW(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=nW,iW=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=iW;function oW(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=oW,lW=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=lW,sW=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=sW,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=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=uW,fW=Ha(ga({},If),{mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>w4(h0(e)),xyz65:w4},toMode:{rgb:e=>p0(x4(e)),xyz65:x4}}),Rw=fW,r4=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},cW=({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=cW,t4=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},vW=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=vW,dW=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=dW,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},pW=({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=pW,Fx=1.09929682680944,mW=.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=gW,yW=Ha(ga({},If),{mode:"rec2020",fromMode:{xyz65:T4,rgb:e=>T4(h0(e))},toMode:{xyz65:k4,rgb:e=>p0(k4(e))},parse:["rec2020"],serialize:"rec2020"}),Nw=yW,Nf=.0037930732552754493,Bw=Math.cbrt(Nf),i4=e=>Math.cbrt(e)-Bw,bW=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=bW,o4=e=>Math.pow(e+Bw,3),_W=({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=_W,xW={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=xW,wW={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=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:"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=AW,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:"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=MW,TW={mode:"xyz65",toMode:{rgb:p0,xyz50:Gw},fromMode:{rgb:h0,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=TW,kW=({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=kW,CW=({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=CW,SW={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=SW,DW=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,FW=(e=4)=>r=>typeof r=="number"?DW(r,e):r,Zw=FW,uv=Zw(2),cv=e=>Math.max(0,Math.min(1,e||0)),Bf=e=>Math.round(cv(e)*255),$4=La("rgb"),EW=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))})`},LW=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)},qW=e=>J4($4(e)),PW=e=>$w($4(e)),RW=e=>Jw($4(e)),zW=e=>Kw(EW(e)),NW={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},BW=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:NW[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})})},IW=BW,HW=([e,r])=>e+Math.random()*(r-e),OW=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),UW=(e="rgb",r={})=>{let t=wi(e),a=OW(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=HW(a[i]||t.ranges[i])),n),{mode:e})},GW=UW,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,YW=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,VW=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=jW,Nh=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(d=>{Array.isArray(d)?(o.push(i(d[0])),l.push(d[1])):Ex(d)||Nh(d)?s[l.length]=d:(o.push(i(d)),l.push(void 0))}),XW(l);let u=n.channels.reduce((d,h)=>{let p;return Rf(t)&&Rf(t[h])&&t[h].fixup?p=t[h].fixup:Rf(n.interpolate[h])&&n.interpolate[h].fixup?p=n.interpolate[h].fixup:p=m=>m,d[h]=p(o.map(m=>m[h])),d},{});if(a){let d=o.map((h,p)=>n.channels.reduce((m,b)=>(m[b]=u[b][p],m),{mode:r}));u=n.channels.reduce((h,p)=>(h[p]=d.map(m=>{let b=a(m[p],p,m,r);return isNaN(b)?void 0:b}),h),{})}let f=n.channels.reduce((d,h)=>{let p;return Nh(t)?p=t:Rf(t)&&Nh(t[h])?p=t[h]:Rf(t)&&Rf(t[h])&&t[h].use?p=t[h].use:Nh(n.interpolate[h])?p=n.interpolate[h]:Rf(n.interpolate[h])&&(p=n.interpolate[h].use),d[h]=p(u[h]),d},{}),c=o.length-1;return d=>{if(d=Math.min(Math.max(0,d),1),d<=l[0])return o[0];if(d>l[c])return o[c];let h=0;for(;l[h]{let A=f[_](C);return A!==void 0&&(x[_]=A),x},{mode:r})}},WW=(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},ZW=aA(Qw,eA),Bh=(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[Bh(a-1,e.length)],e[Bh(a,e.length)],e[Bh(a+1,e.length)],e[Bh(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},$W=e=>iA(lA(e)),JW=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]}},KW=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)},QW=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)},eZ=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)},rZ=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),sA=rZ,tZ=(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 nZ(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 iZ(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 oZ(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 d=0,h=c.c,p=(u.c[1]-u.c[0])/4e3,m=l(c);for(;h-d>p;)c.c=(d+h)*.5,m=l(c),o(c)||t&&a>0&&t(c,m)<=a?d=c.c:h=c.c;return n(o(c)?c:m)}}var lZ=(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]))},sZ=lZ,a5=e=>Math.max(e,0),n5=e=>Math.max(Math.min(e,1),0),uZ=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),fZ=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]},cZ=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]},vZ=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]},dZ=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)},pZ=(e=1,r="rgb")=>{let t=a5(e);return bv(K4(t,(1-t)/2),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")=>ip(vZ(e),r,!0),bZ=(e=1,r="rgb")=>{let t=n5(e);return bv((a,n)=>n==="alpha"?a:uZ(t,1-t,a),r,!0)},_Z=(e=0,r="rgb")=>ip(dZ(e),r,!0),xZ=La("rgb"),wZ=[[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]],AZ=[[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]],MZ=[[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}=xZ(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)}},TZ=(e=1)=>i5(wZ,e),kZ=(e=1)=>i5(AZ,e),CZ=(e=1)=>i5(MZ,e),SZ=e=>e*e*(3-2*e),DZ=e=>.5-Math.sin(Math.asin(1-2*e)/3),FZ=e=>e*e*e*(e*(e*6-15)+10),EZ=FZ,LZ=e=>(1-Math.cos(e*Math.PI))/2,qZ=LZ;function S4(e){let r=La("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function PZ(e,r){let t=S4(e),a=S4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var RZ=Aa(Vx),zZ=Aa($x),NZ=Aa(rw),BZ=Aa(tw),IZ=Aa(iw),HZ=Aa(P4),OZ=Aa(N4),UZ=Aa(dw),GZ=Aa(mw),YZ=Aa(gw),VZ=Aa(yw),XZ=Aa(tp),jZ=Aa(_w),WZ=Aa(ap),ZZ=Aa(ww),$Z=Aa(Tw),JZ=Aa(kw),KZ=Aa(Cw),QZ=Aa(Dw),e$=Aa(Fw),r$=Aa(Lw),t$=Aa(Pw),a$=Aa(Rw),n$=Aa(zw),i$=Aa(Nw),o$=Aa(If),l$=Aa(Ow),s$=Aa(Uw),u$=Aa(Vw),f$=Aa(Ww)});var o5={};Ua(o5,{default:()=>v$});var c$,v$,l5=Oa(()=>{"use strict";c$={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(" ")}},v$=c$});var m0=oe((R4e,bA)=>{"use strict";var{format:d$,width:h$,height:p$,scale:m$}=(l5(),xr(o5)).default,pA=m$,{dflt:P4e}=pA,g$=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:d$,filename:{valType:"string"},width:h$,height:p$,scale:g$},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((N4e,_A)=>{"use strict";var s5=Lt(),y$=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;y$(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),d=0;d{"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((H4e,FA)=>{"use strict";var{converter:wA,formatHex:b$,formatRgb:_$,wcagContrast:x$,wcagLuminance:w$}=hA(),{isArrayOrTypedArray:AA}=ro(),{warn:A$}=Cu(),{background:wv,defaultLine:h5,defaults:M$,lightLine:T$}=Il(),MA=wA("rgb"),k$=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,C$={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=>_$(kA(e)),S$=e=>b$(kA(e)),D$=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&&A$(`Invalid color specifier: ${D$(e)}. Defaulting to "#000"`),C$)},xv=e=>Ao(Ha(ga({},on(e)),{alpha:1})),F$=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]),E$=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}},L$=(e,r)=>{let t=CA(e)?E$(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},q$=(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)})},P$=(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)})},d5=(e,r)=>{let t=on(e),a=k$(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)=>x$(on(e),on(r)),DA=e=>op(e,wv)>op(e,h5),R$=Ao(on(wv)),z$=Ao(on(h5)),N$=(e,r,t)=>(on(e).alpha!==1&&(e=SA(e,wv)),DA(e)?r?d5(e,r):R$:t?d5(e,-t):z$),B$=(e,r)=>{e.style({stroke:xv(r),"stroke-opacity":on(r).alpha})},I$=(e,r)=>{e.style({fill:xv(r),"fill-opacity":on(r).alpha})},H$=(e,r)=>!!(e&&r&&xv(e)===xv(r)),O$=e=>TA(e)!==void 0,U$=(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)}))},G$=(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,d)=>u*c+s*d;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})},Y$=(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},V$=e=>Ao(on(e)),X$=e=>S$(on(e)).toUpperCase(),j$=e=>{let r=on(e);return[Ai(r.r)*255,Ai(r.g)*255,Ai(r.b)*255,Ai(r.alpha)]},W$=([e,r,t,a])=>Ao({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),Z$=e=>{let r=on(e);return w$({mode:"rgb",r:Ai(r.r),g:Ai(r.g),b:Ai(r.b)})};FA.exports={addOpacity:q$,adjustLightness:d5,background:wv,brighten:U$,combine:SA,contrast:N$,defaultLine:h5,defaults:M$,equals:H$,fill:I$,hexString:X$,interpolate:P$,isChannelArray:CA,isDark:DA,isValid:O$,lightLine:T$,luminosity:Z$,mix:G$,mostReadable:Y$,normalize:L$,opacity:F$,parse:on,rgb:xv,rgbaArray:j$,rgbaArrayToString:W$,rgbaString:V$,stroke:B$,wcagContrast:op}});var Gf=oe((U4e,qA)=>{"use strict";var $$=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 J$(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;trJ,HIDE_PLACEHOLDER:()=>eJ,SHOW_PLACEHOLDER:()=>Q$});var Q$,eJ,rJ,up=Oa(()=>{"use strict";Q$=100,eJ=1e3,rJ=.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,tJ=Wo(),aJ=Gf(),g5=Nt(),nJ=(up(),xr(sp)).DESELECTDIM,S1=Q2(),RA=(C1(),xr(Av)).counter,iJ=(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(aJ.get(e,t))}},angle:{coerceFunction:function(e,r,t){g0(e)&&(e=y0(e)),e==="auto"?r.set("auto"):m5(e)?r.set(iJ(+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((V4e,BA)=>{"use strict";BA.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{IA.exports=oJ;function oJ(){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((j4e,OA)=>{OA.exports=lJ;function lJ(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((W4e,GA)=>{GA.exports=sJ;function sJ(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((Z4e,VA)=>{VA.exports=uJ;function uJ(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(($4e,XA)=>{XA.exports=fJ;function fJ(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=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],d=r[10],h=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,T=a*u-i*l,M=n*u-i*s,E=f*m-c*p,P=f*b-d*p,z=f*y-h*p,I=c*b-d*m,X=c*y-h*m,H=d*y-h*b,V=C*H-x*X+_*I+A*z-T*P+M*E;return V?(V=1/V,e[0]=(l*H-s*X+u*I)*V,e[1]=(n*X-a*H-i*I)*V,e[2]=(m*M-b*T+y*A)*V,e[3]=(d*T-c*M-h*A)*V,e[4]=(s*z-o*H-u*P)*V,e[5]=(t*H-n*z+i*P)*V,e[6]=(b*_-p*M-y*x)*V,e[7]=(f*M-d*_+h*x)*V,e[8]=(o*X-l*z+u*E)*V,e[9]=(a*z-t*X-i*E)*V,e[10]=(p*T-m*_+y*C)*V,e[11]=(c*_-f*T-h*C)*V,e[12]=(l*P-o*I-s*E)*V,e[13]=(t*I-a*P+n*E)*V,e[14]=(m*x-p*A-b*C)*V,e[15]=(f*A-c*x+d*C)*V,e):null}});var JA=oe((K4e,$A)=>{$A.exports=vJ;function vJ(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],d=r[10],h=r[11],p=r[12],m=r[13],b=r[14],y=r[15];return e[0]=l*(d*y-h*b)-c*(s*y-u*b)+m*(s*h-u*d),e[1]=-(a*(d*y-h*b)-c*(n*y-i*b)+m*(n*h-i*d)),e[2]=a*(s*y-u*b)-l*(n*y-i*b)+m*(n*u-i*s),e[3]=-(a*(s*h-u*d)-l*(n*h-i*d)+c*(n*u-i*s)),e[4]=-(o*(d*y-h*b)-f*(s*y-u*b)+p*(s*h-u*d)),e[5]=t*(d*y-h*b)-f*(n*y-i*b)+p*(n*h-i*d),e[6]=-(t*(s*y-u*b)-o*(n*y-i*b)+p*(n*u-i*s)),e[7]=t*(s*h-u*d)-o*(n*h-i*d)+f*(n*u-i*s),e[8]=o*(c*y-h*m)-f*(l*y-u*m)+p*(l*h-u*c),e[9]=-(t*(c*y-h*m)-f*(a*y-i*m)+p*(a*h-i*c)),e[10]=t*(l*y-u*m)-o*(a*y-i*m)+p*(a*u-i*l),e[11]=-(t*(l*h-u*c)-o*(a*h-i*c)+f*(a*u-i*l)),e[12]=-(o*(c*b-d*m)-f*(l*b-s*m)+p*(l*d-s*c)),e[13]=t*(c*b-d*m)-f*(a*b-n*m)+p*(a*d-n*c),e[14]=-(t*(l*b-s*m)-o*(a*b-n*m)+p*(a*s-n*l)),e[15]=t*(l*d-s*c)-o*(a*d-n*c)+f*(a*s-n*l),e}});var QA=oe((Q4e,KA)=>{KA.exports=dJ;function dJ(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],d=e[11],h=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,T=a*s-n*l,M=u*p-f*h,E=u*m-c*h,P=u*b-d*h,z=f*m-c*p,I=f*b-d*p,X=c*b-d*m;return y*X-C*I+x*z+_*P-A*E+T*M}});var rM=oe((e5e,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],d=r[9],h=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],T=t[3];return e[0]=x*a+_*l+A*c+T*m,e[1]=x*n+_*s+A*d+T*b,e[2]=x*i+_*u+A*h+T*y,e[3]=x*o+_*f+A*p+T*C,x=t[4],_=t[5],A=t[6],T=t[7],e[4]=x*a+_*l+A*c+T*m,e[5]=x*n+_*s+A*d+T*b,e[6]=x*i+_*u+A*h+T*y,e[7]=x*o+_*f+A*p+T*C,x=t[8],_=t[9],A=t[10],T=t[11],e[8]=x*a+_*l+A*c+T*m,e[9]=x*n+_*s+A*d+T*b,e[10]=x*i+_*u+A*h+T*y,e[11]=x*o+_*f+A*p+T*C,x=t[12],_=t[13],A=t[14],T=t[15],e[12]=x*a+_*l+A*c+T*m,e[13]=x*n+_*s+A*d+T*b,e[14]=x*i+_*u+A*h+T*y,e[15]=x*o+_*f+A*p+T*C,e}});var aM=oe((r5e,tM)=>{tM.exports=pJ;function pJ(e,r,t){var a=t[0],n=t[1],i=t[2],o,l,s,u,f,c,d,h,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],d=r[6],h=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]=d,e[7]=h,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+d*n+b*i+r[14],e[15]=u*a+h*n+y*i+r[15]),e}});var iM=oe((t5e,nM)=>{nM.exports=mJ;function mJ(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((a5e,oM)=>{oM.exports=gJ;function gJ(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,d,h,p,m,b,y,C,x,_,A,T,M,E,P,z,I,X,H,V,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],d=r[1],h=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],T=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,X=o*i*f+n*s,H=n*o*f+i*s,V=i*o*f-n*s,N=o*o*f+u,e[0]=c*M+m*E+x*P,e[1]=d*M+b*E+_*P,e[2]=h*M+y*E+A*P,e[3]=p*M+C*E+T*P,e[4]=c*z+m*I+x*X,e[5]=d*z+b*I+_*X,e[6]=h*z+y*I+A*X,e[7]=p*z+C*I+T*X,e[8]=c*H+m*V+x*N,e[9]=d*H+b*V+_*N,e[10]=h*H+y*V+A*N,e[11]=p*H+C*V+T*N,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var uM=oe((n5e,sM)=>{sM.exports=yJ;function yJ(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],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]=o*n+f*a,e[6]=l*n+c*a,e[7]=s*n+d*a,e[8]=u*n-i*a,e[9]=f*n-o*a,e[10]=c*n-l*a,e[11]=d*n-s*a,e}});var cM=oe((i5e,fM)=>{fM.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[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]=o*n-f*a,e[2]=l*n-c*a,e[3]=s*n-d*a,e[8]=i*a+u*n,e[9]=o*a+f*n,e[10]=l*a+c*n,e[11]=s*a+d*n,e}});var dM=oe((o5e,vM)=>{vM.exports=_J;function _J(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],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]=o*n+f*a,e[2]=l*n+c*a,e[3]=s*n+d*a,e[4]=u*n-i*a,e[5]=f*n-o*a,e[6]=c*n-l*a,e[7]=d*n-s*a,e}});var pM=oe((l5e,hM)=>{hM.exports=xJ;function xJ(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((s5e,mM)=>{mM.exports=wJ;function wJ(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,d=a*u,h=n*s,p=n*u,m=i*u,b=o*l,y=o*s,C=o*u;return e[0]=1-(h+m),e[1]=c+C,e[2]=d-y,e[3]=0,e[4]=c-C,e[5]=1-(f+m),e[6]=p+b,e[7]=0,e[8]=d+y,e[9]=p-b,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 bM=oe((u5e,yM)=>{yM.exports=AJ;function AJ(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((f5e,_M)=>{_M.exports=MJ;function MJ(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((c5e,wM)=>{wM.exports=TJ;function TJ(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((v5e,MM)=>{MM.exports=kJ;function kJ(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((d5e,kM)=>{kM.exports=CJ;function CJ(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((h5e,SM)=>{SM.exports=SJ;function SJ(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,d=n*o,h=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]=d-b,e[3]=0,e[4]=f-y,e[5]=1-u-p,e[6]=h+m,e[7]=0,e[8]=d+b,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 EM=oe((p5e,FM)=>{FM.exports=DJ;function DJ(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((m5e,LM)=>{LM.exports=FJ;function FJ(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((g5e,PM)=>{PM.exports=EJ;function EJ(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((y5e,zM)=>{zM.exports=LJ;function LJ(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((b5e,BM)=>{var qJ=b5();BM.exports=PJ;function PJ(e,r,t,a){var n,i,o,l,s,u,f,c,d,h,p=r[0],m=r[1],b=r[2],y=a[0],C=a[1],x=a[2],_=t[0],A=t[1],T=t[2];return Math.abs(p-_)<1e-6&&Math.abs(m-A)<1e-6&&Math.abs(b-T)<1e-6?qJ(e):(f=p-_,c=m-A,d=b-T,h=1/Math.sqrt(f*f+c*c+d*d),f*=h,c*=h,d*=h,n=C*d-x*c,i=x*f-y*d,o=y*c-C*f,h=Math.sqrt(n*n+i*i+o*o),h?(h=1/h,n*=h,i*=h,o*=h):(n=0,i=0,o=0),l=c*o-d*i,s=d*n-f*o,u=f*i-c*n,h=Math.sqrt(l*l+s*s+u*u),h?(h=1/h,l*=h,s*=h,u*=h):(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]=d,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+d*b),e[15]=1,e)}});var OM=oe((_5e,HM)=>{HM.exports=RJ;function RJ(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((x5e,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:dM(),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 zJ=_5();mn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var NJ=Lt(),GM=Cu(),BJ=vp(),IJ=_5();function HJ(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 OJ(e){var r=NJ.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 UJ(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 GJ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&YM(t)}function YJ(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 VJ(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=BJ.convertCssMatrix(n);t=IJ.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=[];XJ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function XJ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function jJ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}WM.exports={getGraphDiv:HJ,isPlotDiv:OJ,removeElement:YM,addStyleRule:UJ,addRelatedStyleRule:VM,deleteRelatedStyleRule:GJ,setStyleOnHover:YJ,getFullTransformMatrix:VJ,getElementTransformMatrix:XM,getElementAndAncestors:jM,equalDomRects:jJ}});var Tv=oe((M5e,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((T5e,tT)=>{"use strict";var JM=Dn().extendFlat,WJ=d0(),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"]},ZJ=KM.flags.slice().concat(["fullReplot"]),$J=QM.flags.slice().concat("layoutReplot");tT.exports={traces:KM,layout:QM,traceFlags:function(){return $M(ZJ)},layoutFlags:function(){return $M($J)},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:()=>KJ,FORMAT_LINK:()=>JJ});var JJ,KJ,A5=Oa(()=>{"use strict";JJ="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",KJ="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Vf=oe(D1=>{"use strict";var{DATE_FORMAT_LINK:QJ,FORMAT_LINK:eK}=(A5(),xr(w5)),rK=["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 tK({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}".`,eK,"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}".`,QJ,"for details on the date formatting syntax.",rK].join(" ")}D1.templateFormatStringDescription=tK;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((D5e,sT)=>{"use strict";function b0(e,r){return r?r.d2l(e):e}function aT(e,r){return r?r.l2d(e):e}function aK(e){return e.x0}function nK(e){return e.x1}function iK(e){return e.y0}function oK(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 dp(e,r){return b0(e.x1,r)+iT(e)-b0(e.x0,r)-nT(e)}function hp(e,r,t){return b0(e.y1,t)+lT(e)-b0(e.y0,t)-oT(e)}function lK(e,r){return Math.abs(dp(e,r))}function sK(e,r,t){return Math.abs(hp(e,r,t))}function uK(e,r,t){return e.type!=="line"?void 0:Math.sqrt(Math.pow(dp(e,r),2)+Math.pow(hp(e,r,t),2))}function fK(e,r){return aT((b0(e.x1,r)+iT(e)+b0(e.x0,r)+nT(e))/2,r)}function cK(e,r,t){return aT((b0(e.y1,t)+lT(e)+b0(e.y0,t)+oT(e))/2,t)}function vK(e,r,t){return e.type!=="line"?void 0:hp(e,r,t)/dp(e,r)}var dK=["x0","x1","y0","y1","dy","height","ycenter"],hK=["x0","x1","y0","y1","dx","width","xcenter"];sT.exports={x0:aK,x1:nK,y0:iK,y1:oK,slope:vK,dx:dp,dy:hp,width:lK,height:sK,length:uK,xcenter:fK,ycenter:cK,simpleXVariables:dK,simpleYVariables:hK}});var cT=oe((F5e,fT)=>{"use strict";var pK=Zo().overrideAll,Xf=Wo(),uT=xi(),mK=Fs().dash,_0=Dn().extendFlat,{shapeTexttemplateAttrs:gK,templatefallbackAttrs:yK}=Vf(),bK=pp();fT.exports=pK({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({},mK,{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:gK({newshape:!0},{keys:Object.keys(bK)}),texttemplatefallback:yK({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 dT=oe((E5e,vT)=>{"use strict";var _K=Fs().dash,xK=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:xK({},_K,{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((L5e,hT)=>{"use strict";hT.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((q5e,yT)=>{"use strict";var M5=xi(),wK=Tv(),gp=Il(),pT=cT(),mT=dT(),AK=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(AK({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({},wK.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(),z5e=Mv().addStyleRule,wT=Dn(),MK=Wo(),TK=F1(),kK=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 EK=d1().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=d1().utcFormat,LK=/^\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,qK=/^\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=PK(e,!!r);if(r<2)return t;var a=gn.dateTime2ms(t,e);return a+=no*(r-1),gn.ms2DateTime(a,0,e)};function PK(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?qK:LK);if(!s)return $o;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 $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+d*kv+h*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,d,h));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,d=Math.floor(w0(e,no));try{i=Su.getComponentMethod("calendars","getCal")(t).fromJD(c).formatDate("yyyy-mm-dd")}catch(h){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=EK("%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 RK=/%\d?f/g,zK=/%h/g,NK={1:"1",2:"1",3:"2",4:"2"};function ET(e,r,t,a){e=e.replace(RK,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(zK,function(){return NK[t("%q")(n)]}),Du(a))try{e=Su.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var BK=[59,59.9,59.99,59.999,59.9999];function IK(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),BK[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 IK(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 HK=Qt(),OK=Cu(),UK=wp(),GK=(Za(),xr(nn)).BADNUM,S5=1e-9;Fu.findBin=function(e,r,t){if(HK(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?YK:VK:s=t?jK:XK,e+=o*S5*(t?-1:1)*(o>=0?1:-1);a90&&OK.log("Long binary search..."),a-1};function YK(e,r){return er}function jK(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]===GK;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||UK;for(var t=1/0,a,n=0;nZK});function WK(e){return Object.keys(e).sort()}var ZK,Mp=Oa(()=>{"use strict";ZK=WK});var NT=oe(yn=>{"use strict";var Sv=Qt(),$K=ro().isArrayOrTypedArray;yn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),Sv(r)||(r=!1),$K(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((U5e,OT)=>{"use strict";var BT=(m1(),xr(p1)),F5=BT.mod,JK=BT.modHalf,Dv=Math.PI,A0=2*Dv;function KK(e){return e/180*Dv}function QK(e){return e/Dv*180}function E5(e){return Math.abs(e[1]-e[0])>A0-1e-14}function IT(e,r){return JK(r-e,A0)}function eQ(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 rQ(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,d;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,d=i-r,h=l-i,p=s*h-f*c;if(p===0)return null;var m=(u*h-f*d)/p,b=(u*c-s*d)/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,d=s-o,h=u*u+f*f,p=c*c+d*d,m=Math.min(Tp(u,f,h,i-r,o-t),Tp(u,f,h,l-r,s-t),Tp(c,d,p,r-i,t-o),Tp(c,d,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,d;function h(m){var b=r.getPointAtLength(m);m===0?c=b:m===u&&(d=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=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}};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,d,h,p;u0?c=d:f=d,u++}return h}});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((X5e,WT)=>{"use strict";WT.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var $T=oe((j5e,Sp)=>{"use strict";Sp.exports=R5;Sp.exports.isMobile=R5;Sp.exports.default=R5;var iQ=/(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,oQ=/CrOS/,lQ=/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=iQ.test(r)&&!oQ.test(r)||!!e.tablet&&lQ.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((W5e,JT)=>{"use strict";var sQ=Qt(),uQ=$T();JT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=fQ(),typeof t!="string")return!0;var a=uQ({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(sQ(u)&&(u=+u),u>=13)return!0}}}return a};function fQ(){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((Z5e,QT)=>{"use strict";var cQ=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]=cQ.select(this)}),n}});var tk=oe(($5e,rk)=>{"use strict";var vQ=_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=vQ.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=pQ(r)?hQ:dQ,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:()=>yQ});function gQ(e){return typeof e=="string"&&(e=e.replace(mQ,"")),(0,uk.default)(e)?Number(e):void 0}var uk,mQ,yQ,ck=Oa(()=>{"use strict";uk=H_(Qt());Za();mQ=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;yQ=gQ});var hk=oe((r6e,dk)=>{"use strict";var bQ=/<[^>]*>/g,_Q=/[\p{S}\p{P}]/gu,xQ=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,wQ=/�/g,AQ=/\s+/g,Dp="-",vk=Dp.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),MQ=new RegExp(vk+"{3,}","g"),TQ=new RegExp(vk+"$","g"),kQ=60;function CQ(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}dk.exports=function(r,t=kQ){var a=CQ(r!=null?r:"").replace(wQ,"").replace(bQ," ").replace(_Q,n=>n===Dp?n:"").toLowerCase().trim().replace(AQ,Dp).replace(xQ,"").replace(MQ,Dp);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(TQ,"")}});var pr=oe((t6e,kk)=>{"use strict";var Ev=Lt(),SQ=d1().utcFormat,DQ=Fy().format,_k=Qt(),xk=(Za(),xr(nn)),wk=xk.FP_SAFE,FQ=-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=DQ(qe.adjustFormat(e))}catch(t){return qe.warnBadFormat(e),qe.noFormat}return r};qe.nestedProperty=Q2();qe.keyedContainer=ux();qe.relativeAttr=cx();qe.isPlainObject=d0();qe.toLogRange=qh();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 Es=UT();qe.deg2rad=Es.deg2rad;qe.rad2deg=Es.rad2deg;qe.angleDelta=Es.angleDelta;qe.angleDist=Es.angleDist;qe.isFullCircle=Es.isFullCircle;qe.isAngleInsideSector=Es.isAngleInsideSector;qe.isPtInsideSector=Es.isPtInsideSector;qe.pathArc=Es.pathArc;qe.pathSector=Es.pathSector;qe.pathAnnulus=Es.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 EQ=(C1(),xr(Av));qe.counterRegex=EQ.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=hk();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;nPQ.test(window.navigator.userAgent);var RQ=/Firefox\/(\d+)\.\d+/;qe.getFirefoxVersion=function(){var e=RQ.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 BQ={max:10,count:0,name:"hovertemplate"};qe.hovertemplateString=e=>B5(Ha(ga({},e),{opts:BQ}));var IQ={max:10,count:0,name:"texttemplate"};qe.texttemplateString=e=>B5(Ha(ga({},e),{opts:IQ}));var HQ=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function OQ(e){var r=e.match(HQ);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var UQ={max:10,count:0,name:"texttemplate",parseMultDiv:!0};qe.texttemplateStringForShapes=e=>B5(Ha(ga({},e),{opts:UQ}));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),d=["xother_","yother_"].includes(l),h=u||f||d||c;(f||c)&&(l=l.substring(1)),(d||c)&&(l=l.substring(0,l.length-1));let p=null,m=null;if(n.parseMultDiv){var b=OQ(l);l=b.key,p=b.op,m=b.number}let y;if(h){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:T,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(),GQ=bk!==null&&bk<86;qe.getPositionFromD3Event=function(){return GQ?[Ev.event.layerX,Ev.event.layerY]:[Ev.event.offsetX,Ev.event.offsetY]}});var Dk=oe(()=>{"use strict";var YQ=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"),YQ.addStyleRule(Sk,Ck[I5]);var Sk,I5});var H5=oe((o6e,Fk)=>{Fk.exports=!0});var U5=oe((l6e,Ek)=>{"use strict";var VQ=H5(),O5;typeof window.matchMedia=="function"?O5=!window.matchMedia("(hover: none)").matches:O5=VQ;Ek.exports=O5});var Rp=oe((s6e,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 XQ(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=$Q;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,XQ(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 jQ(){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=jQ.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():WQ(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?ZQ(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,KQ={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(),QQ=m0().dfltConfig;function eee(e,r){for(var t=[],a,n=0;nQQ.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(),ree=V5(),tee=Tv(),aee=m0().configAttributes,jk=Zo(),Gl=qv.extendDeepAll,B1=qv.isPlainObject,nee=qv.isArrayOrTypedArray,Bp=qv.nestedProperty,iee=qv.valObjectMeta,j5="_isSubplotObj",Ip="_isLinkedToArray",oee="_arrayAttrRegexps",Zk="_deprecated",W5=[j5,Ip,oee,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]=see(r)}),{defs:{valObjects:iee,metaKeys:W5.concat(["description","role","editType","impliedEdits"]),editType:{traces:jk.traces,layout:jk.layout},impliedEdits:{}},traces:e,layout:uee(),frames:fee(),animation:I1(tee),config:I1(aee)}};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 d=s&&(s.valType==="data_array"||s.arrayOk===!0)&&!(t[c-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));d&&l(n,0,"")}function l(s,u,f){var c=s[t[u]],d=f+t[u];if(u===t.length-1)nee(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 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 see(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,d){Bp(n,d).set(void 0),s===void 0&&Bp(i,d).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 uee(){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(),pee=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,{},pee,"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 d=0;d=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(h,p){l[h]=p}function f(h,p){i?O1.nestedProperty(l[o],h).set(p):l[o+"."+h]=p}function c(){var h=l;return s(),h}function d(h,p){h&&f(h,p);var m=c();for(var b in m)O1.nestedProperty(e,b).set(m[b])}return{modifyBase:u,modifyItem:f,getUpdateObj:c,applyUpdate:d}}});var In={};Ua(In,{AX_ID_PATTERN:()=>_ee,AX_NAME_PATTERN:()=>xee,DFLTRANGEX:()=>Dee,DFLTRANGEY:()=>Fee,DRAGGERSIZE:()=>Cee,HOUR_PATTERN:()=>Aee,MINDRAG:()=>Tee,MINZOOM:()=>kee,REDRAWDELAY:()=>See,SUBPLOT_PATTERN:()=>wee,WEEKDAY_PATTERN:()=>Mee,attrRegex:()=>gee,clipOnAxisFalseQuery:()=>Lee,idRegex:()=>mee,layerValue2layerClass:()=>qee,traceLayerClasses:()=>Eee,xAxisMatch:()=>yee,yAxisMatch:()=>bee,zindexSeparator:()=>Pee});var mee,gee,yee,bee,_ee,xee,wee,Aee,Mee,Tee,kee,Cee,See,Dee,Fee,Eee,Lee,qee,Pee,Hn=Oa(()=>{"use strict";C1();mee={x:Yf("x","( domain)?"),y:Yf("y","( domain)?")},gee=Yf("[xy]axis"),yee=Yf("xaxis"),bee=Yf("yaxis"),_ee=/^[xyz][0-9]*( domain)?$/,xee=/^[xyz]axis[0-9]*$/,wee=/^x([0-9]*)y([0-9]*)$/,Aee="hour",Mee="day of week",Tee=8,kee=20,Cee=20,See=50,Dee=[-1,6],Fee=[-1,4],Eee=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Lee=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],qee={"above traces":"above","below traces":"below"},Pee="z"});var En=oe(io=>{"use strict";var Ree=_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 zee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Nee(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}eC.exports={clearOutlineControllers:zee,clearOutline:Nee}});var Hp=oe((g6e,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(),y6e=(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 Bee=_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((w6e,pC)=>{"use strict";var x6e=Lt(),Hee=d1().timeFormatLocale,Oee=Fy().formatLocale,Rv=Qt(),Uee=Ly(),Gee=K2().version,ra=_t(),Yee=H1(),Vee=ka(),Qr=pr(),Xee=Nt(),oC=(Za(),xr(nn)).BADNUM,oo=En(),jee=C0().clearOutline,Wee=Hp(),K5=Tv(),Zee=V5(),$ee=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=Gee;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 Jee=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Kee=["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 d=sC(e,Jee);if(a._initialAutoSizeIsDone){var h=a.width,p=a.height;Ir.supplyLayoutGlobalDefaults(i,n,d),i.width||(n.width=h),i.height||(n.height=p),Ir.sanitizeMargins(n)}else{Ir.supplyLayoutGlobalDefaults(i,n,d);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=rre(d,n.separators),n._extraFormat=sC(e,Kee),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var x=n._subplots=ere(),_=n._splomAxes={x:{},y:{}},A=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Qee(o,s),Ir.supplyDataDefaults(s,l,i,n);var T=Object.keys(_.x),M=Object.keys(_.y);if(T.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 X=!!(a._has&&a._has("cartesian")),H=!!(n._has&&n._has("cartesian")),V=X,N=H;V&&!N?a._bgLayer.remove():N&&!V&&(n._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&jee({_fullLayout:a}),tre(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,d=Ir.layoutAttributes.height.min;o1,p=!t.height&&Math.abs(a.height-l)>1;(p||h)&&(h&&(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(d){var y=(t.t+t.b)/d;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;h[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 nre(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,d=r._pushmargin,h=r._pushmarginIds,p=r.minreducedwidth,m=r.minreducedheight;if(i.autoexpand!==!1){for(var b in d)h[b]||delete d[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],_)}d.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 T=0;for(var M in d)M!=="base"&&Rv(d[M][A].size)&&(T=d[M][A].size>T?d[M][A].size:T);var E=Math.max(0,i[A]-T);o[A]=Math.max(0,o[A]-E)}for(var P in d){var z=d[P].l||{},I=d[P].b||{},X=z.val,H=z.size,V=I.val,N=I.size,Q=t-o.r-o.l,ee=a-o.t-o.b;for(var re in d){if(Rv(H)&&d[re].r){var ae=d[re].r.val,ie=d[re].r.size;if(ae>X){var ue=(H*ae+(ie-Q)*X)/(ae-X),xe=(ie*(1-X)+(H-Q)*(1-ae))/(ae-X);ue+xe>s+u&&(s=ue,u=xe)}}if(Rv(N)&&d[re].t){var De=d[re].t.val,Ye=d[re].t.size;if(De>V){var Ee=(N*De+(Ye-ee)*V)/(De-V),ke=(Ye*(1-V)+(N-ee)*(1-De))/(De-V);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,dC,m),le=Math.max(0,t-je),de=Math.max(0,a-W);if(le){var K=(s+u)/le;K>1&&(s/=K,u/=K)}if(de){var J=(c+f)/de;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)||nre(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var fe=3*(1+Object.keys(h).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,d){if(typeof c=="function")return d?"_function_":null;if(Qr.isPlainObject(c)){var h={};return Object.keys(c).sort().forEach(function(y){if(["_","["].indexOf(y.charAt(0))===-1){if(typeof c[y]=="function"){d&&(h[y]="_function");return}h[y]=s(c[y],d)}}),h}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)?Uee.encode(b):b},d)}return p?c.map(function(y){return s(y,d)}):m?Qr.simpleMap(c,Qr.identity):Qr.isJSDate(c)?Qr.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(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 d=0,h=0;function p(){return d++,function(){h++,!a&&h===d&&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:()=>fre,xlink:()=>gC,xmlns:()=>ure});var ure,mC,gC,fre,ec=Oa(()=>{"use strict";ure="http://www.w3.org/2000/xmlns/",mC="http://www.w3.org/2000/svg",gC="http://www.w3.org/1999/xlink",fre={xmlns:mC,"xmlns:xlink":gC}});var fi={};Ua(fi,{CAP_SHIFT:()=>pre,FROM_BL:()=>cre,FROM_BR:()=>dre,FROM_TL:()=>vre,LINE_SPACING:()=>hre,MID_SHIFT:()=>mre,OPPOSITE_SIDE:()=>gre});var cre,vre,dre,hre,pre,mre,gre,ci=Oa(()=>{"use strict";cre={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},vre={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},dre={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},hre=1.3,pre=.7,mre=.35,gre={left:"right",right:"left",top:"bottom",bottom:"top"}});var vi=oe(Mi=>{"use strict";var fn=Lt(),Ko=pr(),yre=Ko.strTranslate,Q5=(ec(),xr(Qf)),bre=(ci(),xr(fi)).LINE_SPACING,_re=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,t6=e=>e?e.match(_re):null;Mi.matchTex=t6;var xre=e=>{var r=t6(e);return!!r&&!r[1]&&!r[3]};Mi.isPureTex=xre;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,d=o===void 0?f:o,h=l===void 0?c:l;(f>d||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"),b=i||e.node().getBoundingClientRect().height,y=-b/4;r[0]==="y"?t.attr({transform:"rotate("+[-90,p,m]+")"+yre(-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 wre(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&&!kre()&&(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=zre(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");Cre(n[2],f,function(d,h,p){i.selectAll("svg."+o).remove(),i.selectAll("g."+o+"-group").remove();var m=d&&d.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()),wre(m),h&&h.node()&&m.node().insertBefore(h.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 Are=/(<|<|<)/g,Mre=/(>|>|>)/g;function Tre(e){return e.replace(Are,"\\lt ").replace(Mre,"\\gt ")}var e6=null,MC=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,yC=!1,bC=!1;function kre(){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 Cre(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=Tre(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"},Sre={sub:"0.3em",sup:"-0.6em"},Dre={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,Fre=//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,Ere=/(^|[\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 Lre=/(^|;)\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 qre={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Pre=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Vp(e){return e.replace(Pre,function(r,t){var a;return t.charAt(0)==="#"?a=Rre(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=qre[t],a||r})}Mi.convertEntities=Vp;function Rre(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 zre(e,r){r=r.replace(kC," ");var t=!1,a=[],n,i=-1;function o(){i++;var T=document.createElementNS(Q5.svg,"tspan");fn.select(T).attr({class:"line",dy:i*bre+"em"}),e.appendChild(T),n=T;var M=a;if(a=[{node:T}],M.length>1)for(var E=1;E.",r);return}var M=a.pop();T!==M.type&&Ko.log("Start tag <"+M.type+"> doesnt match end tag <"+T+">. Pretending it did match.",r),n=a[a.length-1].node}var f=Fre.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(a6),d=0;d{"use strict";var Nre=Lt(),Nv=Qt(),Xp=pr(),tc=Nt(),Bre=Gf().isValid;function Ire(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)),Ore=zC.FORMAT_LINK,Ure=zC.DATE_FORMAT_LINK;function Gre(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: "+Ore+"."].join(" ")}function NC(e,r){return o6(e,r)+[" And for dates see: "+Ure+".","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:Gre,descriptionOnlyNumbers:o6,descriptionWithDates:NC}});var Yl=oe((C6e,rS)=>{"use strict";var IC=xi(),G1=Il(),eS=Fs().dash,u6=Dn().extendFlat,HC=ka().templatedArray,k6e=Vf().templateFormatStringDescription,OC=l6().descriptionWithDates,Yre=(Za(),xr(nn)).ONEDAY,qs=(Hn(),xr(In)),Vre=qs.HOUR_PATTERN,Xre=qs.WEEKDAY_PATTERN,s6={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},jre=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:[qs.idRegex.x.toString(),qs.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:[qs.idRegex.x.toString(),qs.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:[Xre,Vre,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Yre},editType:"calc"}),tickmode:jre,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",qs.idRegex.x.toString(),qs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",qs.idRegex.x.toString(),qs.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"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},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((S6e,aS)=>{"use strict";var Pa=Yl(),tS=xi(),f6=Dn().extendFlat,Wre=Zo().overrideAll;aS.exports=Wre({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((F6e,iS)=>{"use strict";var Zre=jp(),$re=(C1(),xr(Av)).counter,Jre=(Mp(),xr(Ap)).default,nS=Gf().scales,D6e=Jre(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 d=n?" Has an effect only if "+c+" is set to a numerical array.":"",h=a+"auto",p=a+"min",m=a+"max",b=a+"mid",y=Wp(u+h),C=Wp(u+p),x=Wp(u+m),_=C+" and "+x,A={};A[p]=A[m]=void 0;var T={};T[h]=!1;var M={};return f==="color"&&(M.color={valType:"color",arrayOk:!0,editType:s||"style"},t.anim&&(M.color.anim=!0)),M[h]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:A},M[p]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:T},M[m]={valType:"number",dflt:null,editType:s||"plot",impliedEdits:T},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=Zre),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:$re("coloraxis"),dflt:null,editType:"calc"}),M}});var v6=oe((E6e,oS)=>{"use strict";var Kre=Dn().extendFlat,Qre=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:Kre({_isSubplotObj:!0,editType:"calc"},Qre("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var d6=oe((L6e,lS)=>{"use strict";var ete=pr();lS.exports=function(r){return ete.isPlainObject(r.colorbar)}});var m6=oe(p6=>{"use strict";var h6=Qt(),sS=pr(),uS=(Za(),xr(nn)),rte=uS.ONEDAY,tte=uS.ONEWEEK;p6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?rte:1;if(!e)return i;if(h6(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=h6(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%tte===0?1:0));if(!(a==="D1"||a==="D2"))return h6(e)?Number(e):0}});var g6=oe((P6e,cS)=>{"use strict";var fS=m6(),ate=pr().isArrayOrTypedArray,nte=ro().isTypedArraySpec,ite=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 nte(A)&&(A=ite(A)),A!==void 0?A:(s._template||{})[_]}var c=f("tick0"),d=f("dtick"),h=f("tickvals"),p=f("overlaying"),m=n==="category"||n==="multicategory",b;ate(h)?b="array":d?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(d,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((R6e,dS)=>{"use strict";var y6=pr(),vS=Yl();dS.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),d=y6.coerce2(o,l,s,"tickcolor",(i?t.tickcolor:void 0)||l.color),h=a(u+"ticks",!i&&n.outerTicks||f||c||d?"outside":"");h||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var _6=oe((z6e,hS)=>{"use strict";hS.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((N6e,pS)=>{"use strict";var Zp=pr(),ote=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=ote.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var x6=pr(),lte=Nt().contrast,mS=Yl(),ste=_6(),ute=Vl();gS.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");x6.isPlainObject(o)||delete t.labelalias;var l=ste(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?lte(i.bgColor):f&&f!==mS.color.dflt?f:u.color;if(x6.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");ute(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:fte}),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 fte(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((I6e,yS)=>{"use strict";var cte=_6();yS.exports=function(r,t,a,n,i){i||(i={});var o=i.tickSuffixDflt,l=cte(r),s=a("tickprefix");s&&a("showtickprefix",l);var u=a("ticksuffix",o);u&&a("showticksuffix",l)}});var M6=oe((H6e,bS)=>{"use strict";var S0=pr(),vte=ka(),dte=g6(),hte=b6(),pte=w6(),mte=A6(),gte=jp();bS.exports=function(r,t,a){var n=vte.newContainer(t,"colorbar"),i=r.colorbar||{};function o(I,X){return S0.coerce(i,n,gte,I,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",d=o("thicknessmode");o("thickness",d==="fraction"?30/(c?s:u):30);var h=o("lenmode");o("len",h==="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 T=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",T.indexOf("inside")!==-1?"hide past domain":"hide past div"),dte(i,n,o,"linear");var M=a.font,E={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:M};T.indexOf("inside")!==-1&&(E.bgColor="black"),mte(i,n,o,"linear",E),pte(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((O6e,wS)=>{"use strict";var _S=Qt(),k6=pr(),yte=d6(),bte=M6(),xS=Gf().isValid,_te=_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)||{},d=function(){return delete r.coloraxis,delete t.coloraxis,e(r,t,a,n,i)};if(s){var h=a._colorAxes||{},p=n(o+"coloraxis");if(p){var m=_te(t,"contour")&&k6.nestedProperty(t,"contours.coloring").get()||"heatmap",b=h[p];b?(b[2].push(d),b[0]!==m&&(b[0]=!1,k6.warn(["Ignoring coloraxis:",p,"setting","as it is linked to incompatible colorscales."].join(" ")))):h[p]=[m,t,[d]];return}}var y=u[l+"min"],C=u[l+"max"],x=_S(y)&&_S(C)&&y{"use strict";var AS=pr(),xte=ka(),MS=v6(),wte=V1();TS.exports=function(r,t){function a(c,d){return AS.coerce(r,t,MS,c,d)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var n=t._colorAxes,i,o;function l(c,d){return AS.coerce(i,o,MS.coloraxis,c,d)}for(var s in n){var u=n[s];if(u[0])i=r[s]||{},o=xte.newContainer(t,s,"coloraxis"),o._name=s,wte(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Ate=pr(),Mte=Ls().hasColorscale,Tte=Ls().extractOpts;CS.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?Ate.nestedProperty(f,c.container).get():f;if(d)if(d.coloraxis)d._colorAx=t[d.coloraxis];else{var h=Tte(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 DS=Qt(),C6=pr(),kte=Ls().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=kte(l),u=s.auto!==!1,f=s.min,c=s.max,d=s.mid,h=function(){return C6.aggNums(Math.min,null,i)},p=function(){return C6.aggNums(Math.max,null,i)};if(f===void 0?f=h():u&&(l._colorAx&&DS(f)?f=Math.min(f,h()):f=h()),c===void 0?c=p():u&&(l._colorAx&&DS(c)?c=Math.max(c,p()):c=p()),u&&d!==void 0&&(c-d>d-f?f=d-(c-d):c-d=0?m=n.colorscale.sequential:m=n.colorscale.sequentialminus,s._sync("colorscale",m)}}});var Kp=oe((V6e,ES)=>{"use strict";var Jp=Gf(),X1=Ls();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((X6e,qS)=>{"use strict";var LS=pr(),Cte=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)||Cte(r.size))}}});var RS=oe((j6e,PS)=>{"use strict";var Ste=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 Ste(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},Lte=/([astvzqmhlc])([^astvzqmhlc]*)/gi,qte=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Pte(e){let r=[];return e.replace(Lte,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=Rte(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 zte=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),d=Sr(a*.382,2);return Mt(r,t,"M"+n+","+u+"H"+i+"L"+o+","+f+"L"+l+","+c+"L0,"+d+"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=zte(t),s="",u=0;u{"use strict";var On=Lt(),va=pr(),Nte=va.numberFormat,F0=Qt(),em=_t(),qn=Nt(),Bte=Kp(),Hv=va.strTranslate,rm=vi(),Ite=(ec(),xr(Qf)),Hte=(ci(),xr(fi)),Ote=Hte.LINE_SPACING,rD=(up(),xr(sp)).DESELECTDIM,Ute=Ti(),Gte=RS(),Yte=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(Xte(f))),s&&e.style("text-shadow",s==="auto"?rm.makeTextShadow(qn.contrast(i)):q6(s)),u&&e.style("text-decoration-line",q6(jte(u)))};function q6(e){return e==="none"?void 0:e}var Vte={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Xte(e){return Vte[e]}function jte(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),d=o(n.solidity,0,.3),h=r.uid;zr.pattern(e,"point",t,h,l,c,d,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 Wte=zr.symbolNames.length,Zte="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>=Wte||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?Zte:"")}var jS=Nte("~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 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?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 d=!1,h,p,m;if(e.so)m=l.outlierwidth,p=l.outliercolor,h=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)&&(h=qn.defaultLine,d=!0),"mc"in e?h=e.mcc=a.markerScale(e.mc):h=o.color||o.colors||"rgba(0,0,0,0)",a.selectedColorFn&&(h=a.selectedColorFn(e))}let y=e.mld||(l||{}).dash;if(y&&zr.dashLine(r,y,m),e.om)r.call(qn.stroke,h).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?d=!0:x=C&&C.type,va.isArrayOrTypedArray(x)&&(x=x[0],nD[x]||(x=0));var _=o.pattern,A=zr.getPatternAttr,T=_&&(A(_.shape,e.i,"")||A(_.path,e.i,""));if(x&&x!=="none"){var M=e.mgc;M?d=!0:M=C.color;var E=t.uid;d&&(E+="-"+e.i),zr.gradient(r,n,E,x,[[0,M],[1,h]],"fill")}else if(T){var P=!1,z=_.fgcolor;!z&&i&&i.color&&(z=i.color,P=!0);var I=A(z,e.i,i&&i.color||null),X=A(_.bgcolor,e.i,null),H=_.fgopacity,V=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,T,V,N,e.mcc,_.fillmode,X,I,H)}else va.isArrayOrTypedArray(h)?qn.fill(r,h[e.i]):qn.fill(r,h);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=Ute.isBubble(e)?Gte(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 d=n.color,h=i.color,p=o.color;(h||p)&&(r.selectedColorFn=function(_){var A=_.mcc||d;return _.selected?h||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):{},d={};Yte(d,r,l.i),u=va.texttemplateString({data:[d,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:o._d3locale,template:u})}var h=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,h,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(Ite.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,Kte=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(),d=zr.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 R6>=Kte&&(zr.savedBBoxes={},R6=0),t&&(zr.savedBBoxes[t]=h),R6++,va.extendFlat({},h)};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 Qte=/\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(Qte,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var eae=/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(eae);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]),d=r._geo.project([u+1e-5,f]),h=Iv(d[1]-n,d[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(_),T=W1(x)*ac(y)-ac(x)*W1(y)*ac(_);m=-Iv(A,T)-Math.PI,JS=u,KS=f}var M=$S(h,[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||"",X=I.slice(I.length-1);X==="h"&&(z=0),X==="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((K6e,pD)=>{"use strict";var Z1=Lt(),rae=Qt(),tae=Ln(),O6=_t(),oc=pr(),vD=oc.strTranslate,tm=da(),am=Nt(),$1=vi(),dD=(up(),xr(sp)),aae=(ci(),xr(fi)).OPPOSITE_SIDE,hD=/ [XY][0-9]* /,U6=1.6,G6=1.6;function nae(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,d=1,h=n.title,p=(h&&h.text?h.text:"").trim(),m=!1,b=h&&h.font?h.font:{},y=b.family,C=b.size,x=b.color,_=b.weight,A=b.style,T=b.variant,M=b.textcase,E=b.lineposition,P=b.shadow,z=t.subtitlePropName,I=!!z,X=t.subtitlePlaceholder,H=(n.title||{}).subtitle||{text:"",font:{}},V=(H.text||"").trim(),N=!1,Q=1,ee=H.font,re=ee.family,ae=ee.size,ie=ee.color,ue=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 le(dr,Ar){return dr===void 0||Ar===void 0?!1:dr.replace(hD," % ")===Ar.replace(hD," % ")}p===""?d=0:le(p,o)&&(W||(p=""),d=.2,m=!0),I&&(V===""?Q=0:le(V,X)&&(W||(V=""),Q=.2,N=!0)),t._meta?p=oc.templateString(p,t._meta):a._meta&&(p=oc.templateString(p,a._meta));var de=p||V||W,K;c||(c=oc.ensureSingle(a._infolayer,"g","g-"+r),K=a._hColorbarMoveTitle);var J=c.selectAll("text."+r).data(de?[0]:[]);J.enter().append("text"),J.text(p).attr("class",r),J.exit().remove();var fe=null,be=r+"-subtitle",Ne=V||W;if(I&&(fe=c.selectAll("text."+be).data(Ne?[0]:[]),fe.enter().append("text"),fe.text(V).attr("class",be),fe.exit().remove()),!de)return c;function Ze(dr,Ar){oc.syncOrAsync([er,Je],{title:dr,subtitle:Ar})}function er(dr){var Ar=dr.title,Qe=dr.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",d*am.opacity(x)).call(tm.font,{color:am.rgb(x),size:Z1.round(C,2),family:y,weight:_,style:A,variant:T,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:ue,style:xe,variant:De,textcase:Ye,shadow:ke,lineposition:Ee}).attr(Nr).call($1.convertToTspans,e)}return tae.previousPromises(e)}function Je(dr){var Ar=dr.title,Qe=Z1.select(Ar.node().parentNode);if(s&&s.selection&&s.side&&p){Qe.attr("transform",null);var mr=aae[s.side],qr=s.side==="left"||s.side==="top"?-1:1,Te=rae(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(dr,Ar){dr.text(Ar).on("mouseover.opacity",function(){Z1.select(this).transition().duration(dD.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){Z1.select(this).transition().duration(dD.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(dr){l!==void 0?O6.call("_guiRestyle",e,i,dr,l):O6.call("_guiRelayout",e,i,dr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ze)}).on("input",function(dr){this.text(dr||" ").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)}V?fe.on(".opacity",null):(tr(fe,X),N=!0),fe.call($1.makeEditable,{gd:e}).on("edit",function(dr){O6.call("_guiRelayout",e,"title.subtitle.text",dr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ze)}).on("input",function(dr){this.text(dr||" ").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:nae,SUBTITLE_PADDING_EM:G6,SUBTITLE_PADDING_MATHJAX_EM:U6}});var cm=oe((Q6e,_D)=>{"use strict";var iae=Lt(),oae=d1().utcFormat,Ma=pr(),lae=Ma.numberFormat,Ps=Qt(),E0=Ma.cleanNumber,sae=Ma.ms2DateTime,mD=Ma.dateTime2ms,Rs=Ma.ensureNumber,gD=Ma.isArrayOrTypedArray,L0=(Za(),xr(nn)),nm=L0.FP_SAFE,Xl=L0.BADNUM,uae=L0.LOG_CLIP,fae=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}var cae=2;function vae(e,r){if(e<=0)return 0;let t=Math.max(0,r-cae);return e>t?t/e:1}_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 T=r.range[0],M=r.range[1];return .5*(T+M-2*uae*Math.abs(T-M))}else return Xl}function o(_,A,T,M){if((M||{}).msUTC&&Ps(_))return+_;var E=mD(_,T||r.calendar);if(E===Xl)if(Ps(_)){_=+_;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,T){return sae(_,A,T||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 T=new Array(A),M=0;Mr.range[1]&&(T=!T);for(var M=T?-1:1,E=M*_,P=0,z=0;zX)P=z+1;else{P=E<(I+X)/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 T=0,M=0;Mr._rangebreaks[M].pmax&&(T=M+1);return m(_,r._m2,r._B[T])}}r.c2l=r.type==="log"?i:Rs,r.l2c=r.type==="log"?Uv:Rs,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=Rs,r.d2p=r.r2p=function(_){return r.l2p(E0(_))},r.p2d=r.p2r=y,r.cleanPos=Rs):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=Rs,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=Rs):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,T){return r.l2p(o(_,0,T))},r.p2d=r.p2r=function(_,A,T){return l(y(_),A,T)},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=d,r.r2c=function(_){var A=h(_);return A!==void 0?A:r.fraction2r(.5)},r.l2r=r.c2r=Rs,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 typeof _=="string"&&_!==""?_:Rs(_)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=s,r.d2r=r.d2l_noadd=d,r.r2c=function(_){var A=d(_);return A!==void 0?A:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=Rs,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 Array.isArray(_)||typeof _=="string"&&_!==""?_:Rs(_)},r.setupMultiCategory=function(_){var A=r._traceIndices,T,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,{}]],X=[];for(T=0;Tz[1]&&(M[P?0:1]=T,E[1]=z[1]),E[0]>=E[1])if(A!==void 0){var I=z[0]+1;T!==void 0&&(I=Math.min(I,z[1])),M[P?0:1]=r.l2r(I)}else T!==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 T=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),!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],Xl,r.calendar),T[1]=Ma.cleanDate(T[1],Xl,r.calendar)),M=0;M<2;M++)if(r.type==="date"){if(!Ma.isDateTime(T[M],r.calendar)){r[_]=E;break}if(r.r2l(T[0])===r.r2l(T[1])){var I=Ma.constrain(r.r2l(T[0]),Ma.MIN_MS+1e3,Ma.MAX_MS-1e3);T[0]=r.l2r(I-1e3),T[1]=r.l2r(I+1e3);break}}else{if(!Ps(T[M]))if(!(P||z)&&Ps(T[1-M]))T[M]=T[1-M]*(M?10:.1);else{r[_]=E;break}if(T[M]<-nm?T[M]=-nm:T[M]>nm&&(T[M]=nm),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 A=t._size;if(r.overlaying){var T=lm.getFromId({_fullLayout:t},r.overlaying);r.domain=T.domain,r.domainpad=T.domainpad}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";let X=(I?A.h:A.w)*(r.domain[1]-r.domain[0]),H=r.domainpad,V=0,N=0;if(H){V=(I?H.top:H.left)||0,N=(I?H.bottom:H.right)||0;let ie=vae(V+N,X);V*=ie,N*=ie}if(r._length=X-V-N,r._padStart=V,r._padEnd=N,I?(r._offset=A.t+(1-r.domain[1])*A.h+V,r._m=r._length/(P-z),r._b=-r._m*z):(r._offset=A.l+r.domain[0]*A.w+V,r._m=r._length/(z-P),r._b=-r._m*P),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var Q,ee;if(r._rangebreaks=r.locateBreaks(Math.min(P,z),Math.max(P,z)),r._rangebreaks.length){for(Q=0;Qz&&(re=!re),re&&r._rangebreaks.reverse();var ae=re?-1:1;for(r._m2=ae*r._length/(Math.abs(z-P)-r._lBreaks),r._B.push(-r._m2*(I?z:P)),Q=0;QE&&(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(T=0;T{"use strict";var xD=Qt(),V6=pr(),dae=(Za(),xr(nn)).BADNUM,vm=V6.isArrayOrTypedArray,hae=V6.isDateTime,pae=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&&_ae(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 bae(e,r){for(var t=e.length,a=AD(t),n=0,i=0,o={},l=0;ln*2}function _ae(e){return vm(e[0])&&vm(e[1])}});var P0=oe((rbe,LD)=>{"use strict";var xae=Lt(),SD=Qt(),q0=pr(),dm=(Za(),xr(nn)).FP_SAFE,wae=_t(),Aae=da(),DD=En(),Mae=DD.getFromId,Tae=DD.isLinked;LD.exports={applyAutorangeOptions:ED,getAutoRange:j6,makePadFn:W6,doAutoRange:Cae,findExtremes:Sae,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,d=f[0].val;for(t=1;t0&&(z=x-o(T)-l(M),z>_?I/z>A&&(E=T,P=M,A=I/z):I/x>A&&(E={val:T.val,nopad:1},P={val:M.val,nopad:1},A=I/x));function X(ee,re){return Math.max(ee,l(re))}if(c===d){var H=c-1,V=c+1;if(y)if(c===0)n=[0,1];else{var N=(c>0?f:u).reduce(X,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,V)]:n=[H,V]}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,T.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),T=_((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=d),d>x&&d-dm&&(C=d),d>x&&d=I;c--)z(c);return{min:a,max:n,opts:t}}function Z6(e,r,t,a){FD(e,r,t,a,Dae)}function $6(e,r,t,a){FD(e,r,t,a,Fae)}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 Eae(e,r){var t=r.autorangeoptions;return t&&t.minallowed!==void 0&&hm(r,t.minallowed,t.maxallowed)?t.minallowed:t&&t.clipmin!==void 0&&hm(r,t.clipmin,t.clipmax)?Math.max(e,r.d2l(t.clipmin)):e}function Lae(e,r){var t=r.autorangeoptions;return t&&t.maxallowed!==void 0&&hm(r,t.minallowed,t.maxallowed)?t.maxallowed:t&&t.clipmax!==void 0&&hm(r,t.clipmin,t.clipmax)?Math.min(e,r.d2l(t.clipmax)):e}function hm(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=Eae(t,r),a=Lae(a,r),[t,a]}});var Ga=oe((abe,eF)=>{"use strict";var Qo=Lt(),bn=Qt(),J1=Ln(),Yv=_t(),ht=pr(),K1=ht.strTranslate,lc=vi(),qae=Ov(),Vv=Nt(),To=da(),Pae=Yl(),qD=m6(),tbe=(Hn(),xr(In)),ii=(Za(),xr(nn)),Rae=ii.ONEMAXYEAR,gm=ii.ONEAVGYEAR,ym=ii.ONEMINYEAR,zae=ii.ONEMAXQUARTER,rb=ii.ONEAVGQUARTER,bm=ii.ONEMINQUARTER,Nae=ii.ONEMAXMONTH,Q1=ii.ONEAVGMONTH,_m=ii.ONEMINMONTH,ko=ii.ONEWEEK,ki=ii.ONEDAY,R0=ki/2,Ns=ii.ONEHOUR,Xv=ii.ONEMIN,xm=ii.ONESEC,Bae=ii.ONEMILLI,Iae=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,Hae=Mm.OPPOSITE_SIDE,wm=3,yr=eF.exports={};yr.setConvert=cm();var Oae=X6(),Bs=En(),Uae=Bs.idSort,Gae=Bs.isLinked;yr.id2name=Bs.id2name;yr.name2id=Bs.name2id;yr.cleanId=Bs.cleanId;yr.list=Bs.list;yr.listIds=Bs.listIds;yr.getFromId=Bs.getFromId;yr.getFromTrace=Bs.getFromTrace;var VD=P0();yr.getAutoRange=VD.getAutoRange;yr.findExtremes=VD.findExtremes;var Yae=1e-4;function sb(e){var r=(e[1]-e[0])*Yae;return[e[0]-r,e[1]+r]}function Vae(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)d+" domain")),s=s.concat(i||[]),f.length>o?(ht.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 d=t.dtick/2;e+=e+do){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,d;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=ht.simpleMap(r.range,r.r2l);n=[o[0],.8*o[0]+.2*o[1]]}if(e.range=ht.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}((d=r.minor)==null?void 0:d._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=ht.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?ht.bigFont(e.tickfont.size||12):15,a=e._length/n):(n=e._id.charAt(0)==="y"?40:80,a=ht.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<=Rae?c=u:c=gm:t===rb&&f>=bm?u>=bm&&u<=zae?c=u:c=rb:f>=_m?u>=_m&&u<=Nae?c=u:c=Q1:t===ko&&f>=ko?c=ko:f>=ki?c=ki:t===R0&&f>=R0?c=R0:t===Ns&&f>=Ns&&(c=Ns);var d;c>=u&&(c=u,d=!0);var h=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||ht.isArrayOrTypedArray(r.ticklabelindex)?r.ticklabelindex:[r.ticklabelindex];r._useTicklabelIndex=s!=null&&s!==0;for(var u=ht.simpleMap(r.range,r.r2l,void 0,void 0,t),f=u[1]=(_?0:1);A--){var T=!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:ht.extendFlat({},r,_?r.minor:{minor:{}});if(T?yr.prepMinorTicks(M,r,t):yr.prepTicks(M,t),M.tickmode==="array"){A?(b=[],p=ID(r,!T)):(y=[],m=ID(r,!T));continue}if(M.tickmode==="sync"){b=[],p=Jae(r);continue}var E=sb(u),P=E[0],z=E[1],I=bn(M.dtick),X=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=d)break}if(b.length>h||N===V)break;V=N;var ie={value:Vae(N,ae,re)};A?(N===H&&(ie.first=!0),X&&N!==(N|0)&&(ie.simpleLabel=!0),i>1&&Q%i&&(ie.skipLabel=!0),b.push(ie)):(ie.minor=!0,y.push(ie))}}function ue(Ze,er){let Je=er.find(ze=>ze.value===Ze.value);if(Je!=null)return Je;let tr=1e7;for(let ze=0;zeue(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),dr=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 le=r.c2p(b[Ee].value);(ke?W>le-je:Wd||trd&&(Je.periodX=d),trn&&pn&&bgm)r/=gm,a=n(10),e.dtick="M"+12*zs(r,a,pm);else if(i>Q1)r/=Q1,e.dtick="M"+zs(r,1,HD);else if(i>ki){if(e.dtick=zs(r,ki,e._hasDayOfWeekBreaks?[1,2,7,14]:Kae),!t){var o=yr.getTickFormat(e),l=e.ticklabelmode==="period";l&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=ht.dateTick0(e.calendar,2):e.tick0=ht.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}}else i>Ns?e.dtick=zs(r,Ns,HD):i>Xv?e.dtick=zs(r,Xv,OD):i>xm?e.dtick=zs(r,xm,OD):(a=n(10),e.dtick=zs(r,a,pm))}else if(e.type==="log"){e.tick0=0;var s=ht.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"+zs(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))):db(e)?(e.tick0=0,a=1,e.dtick=zs(r,a,Qae)):(e.tick0=0,a=n(10),e.dtick=zs(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>=Ns)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 ht.increment(e,n*r);var i=r.charAt(0),o=n*Number(r.slice(1));if(i==="M")return ht.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=ht.roundUp(ht.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=ht.simpleMap(e.range,t,void 0,void 0,r),n=a[1]=0&&_<=e._length?x:null};if(s&&ht.isArrayOrTypedArray(e.ticktext)){var p=ht.simpleMap(e.range,e.r2l),m=(Math.abs(p[1]-p[0])-(e._lBreaks||0))/1e4;for(d=0;d"+l;else{var u=Zv(e),f=e._trueSide||e.side;(!u&&f==="top"||u&&f==="bottom")&&(o+="
")}r.text=o}function rne(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"||ht.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(ht.mod(o+.01,1)<.1)&&(u=!0,r.fontSize*=.75);var f=Math.pow(10,o).toExponential(0),c=f.split("e"),d=+c[1],h=Math.abs(d),p=e.exponentformat;p==="power"||e2(p)&&p!=="SI extended"&&fb(d)||e2(p)&&p==="SI extended"&&cb(d)?(r.text=c[0],h>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),d!==0&&d!==1&&(r.text+=""+(d>0?"":sc)+h+""),r.fontSize*=1.25):(p==="e"||p==="E")&&h>2?r.text=c[0]+p+(d>0?"+":sc)+h:(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,ht.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 tne(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function ane(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 nne(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 ine(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=one(i);if(o[1]>=100)r.text=Wv(ht.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 one(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"],lne=["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 sne(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"+d+"":o==="B"&&l===9?e+="B":e2(o)&&(e+=o==="SI extended"?lne[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)),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 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 ht.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=ht.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),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),lb(r,p,a,!0),lb(r,r.shift||0,a,!1)}(t.skipTitle!==!0||r._shift===void 0)&&(r._shift=xne(r,a));var m=d[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-dr:0,Ar))));var Ue=0,_r=0;if(r._shiftPusher&&(Ue=Math.max(Ar,Qe.height>0?ze==="l"?dr-Qe.left:Qe.right-dr: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?dr-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?dr-Qe.left:0,Ar),mr[ze]=r._depth-Nr):(r._depth=Math.max(Qe.height>0?Qe.right-dr: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)}),ht.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 une(e,r){var t=[],a,n=function(i,o){var l=i.xbnd[o];l!==null&&t.push(ht.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(d){return K1(n+e._offset+e.l2p(ib(d))+t,i+a)}:function(d){return K1(i+a,n+e._offset+e.l2p(ib(d))+t)}};function ib(e){return e.periodX!==void 0?e.periodX:e.x}function dne(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,d=wm,h=e.tickfont?e.tickfont.size:12;return(l||n)&&(c+=h*uc,d+=(e.linewidth||0)/2),(i||o)&&(c+=(e.linewidth||0)/2,d+=wm),s&&f==="top"&&(d-=h*(1-uc)),(i||n)&&(c=-c),(f==="bottom"||f==="right")&&(d=-d),[u?c:0,s?d: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"),d=a==="inside"&&e.ticks==="inside"||!c&&e.ticks==="outside"&&n!=="boundaries",h=0,p=0,m=d?e.ticklen:0;if(c?m*=-1:f&&(m=0),d&&(h+=m,t)){var b=ht.deg2rad(t);h=m*Math.cos(b)+1,p=m*Math.sin(b)}e.showticklabels&&(d||e.showline)&&(h+=.2*e.tickfont.size),h+=(e.linewidth||1)/2*(c?-1:1);var y={labelStandoff:h,labelShift:p},C,x,_,A,T=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+h*A,_=z?1:-.2,Math.abs(P)===90&&(c?_+=Gv:P===-90&&M==="bottom"?_=uc:P===90&&M==="top"?_=Gv:_=.5,T=Gv/2*(P/90)),y.xFn=function(H){return H.dx+C+T*H.fontSize},y.yFn=function(H){return H.dy+x+H.fontSize*_},y.anchorFn=function(H,V){if(f){if(l)return"end";if(s)return"start"}return!bn(V)||V===0||V===180?"middle":V*A<0!==c?"end":"start"},y.heightFn=function(H,V,N){return V<-60||V>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=h,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 X=ht.deg2rad(I);T=Math.abs(Math.sin(X))*uc*A,_=0}}y.xFn=function(H){return H.dx+r-(C+H.fontSize*_)*A+T*H.fontSize},y.yFn=function(H){return H.dy+x+H.fontSize*Gv},y.anchorFn=function(H,V){return bn(V)&&Math.abs(V)===90?"middle":z?"end":"start"},y.heightFn=function(H,V,N){return e.side==="right"&&(V*=-1),V<-30?-N:V<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?d:h;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 Uae(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),d=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(ae){var ie=Qo.select(this),ue=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[ue]?d.push(e._promises.pop().then(function(){h(ie,u)})):h(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 h(ae,ie){ae.each(function(ue){var xe=Qo.select(this),De=xe.select(".text-math-group"),Ye=s.anchorFn(ue,ie),Ee=t.transFn.call(xe.node(),ue)+(bn(ie)&&+ie!=0?" rotate("+ie+","+s.xFn(ue)+","+(s.yFn(ue)-ue.fontSize/2)+")":""),ke=lc.lineCount(xe),je=jv*ue.fontSize,W=s.heightFn(ue,bn(ie)?+ie:0,(ke-1)*je);if(W&&(Ee+=K1(0,W)),De.empty()){var le=xe.select("text");le.attr({transform:Ee,"text-anchor":Ye}),le.style("display",null),r._adjustTickLabelsOverflow&&r._adjustTickLabelsOverflow()}else{var de=To.bBox(De.node()).width,K=de*{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,ue=r._id.charAt(0)==="x",xe=0,De=ue?e._fullLayout.width:e._fullLayout.height;if(ae.indexOf("domain")!==-1){var Ye=ht.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,le=-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;ue?(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)})})})})},h(c,f+1?f:u);function p(){return d.length&&Promise.all(d)}var m=null;function b(){if(h(c,u),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){m=r.autotickangles[0];var ae=0,ie=[],ue,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)),le=ke/W,de=r.autotickangles.map(function(mr){return mr*Math.PI/180}),K=de.find(function(mr){return Math.abs(Math.cos(mr))<=le});K===void 0&&(K=de.reduce(function(mr,qr){return Math.abs(Math.cos(mr))Q*N&&(X=N,P[E]=z[E]=H[E])}var ee=Math.abs(X-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])+T*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=ht.syncOrAsync(y);return re&&re.then&&e._promises.push(re),re};function hne(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 pne(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,d,h;n==="x"?(d=r._offset+r._length/2,h=r.side==="top"?f-o:f+o):(h=r._offset+r._length/2,d=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,qae.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"}})}yr.shouldShowZeroLine=function(e,r,t){var a=ht.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)||!mne(e,r,t,a)||gne(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=Iae:/%L/.test(r)?e>=Bae:/%[SX]/.test(r)?e>=xm:/%M/.test(r)?e>=Xv:/%[HI]/.test(r)?e>=Ns:/%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((nbe,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 hb=oe((ibe,aF)=>{"use strict";var Ane=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&&(Ane(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var iF=oe((obe,nF)=>{var Mne={left:0,top:0};nF.exports=Tne;function Tne(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=kne(r);return t[0]=a-i.left,t[1]=n-i.top,t}function kne(e){return e===window||e===document||e===document.body?Mne:e.getBoundingClientRect()}});var pb=oe((lbe,oF)=>{"use strict";var Cne=H5();function Sne(){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=Cne&&Sne()});var sF=oe((sbe,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((ube,fF)=>{"use strict";var uF=pr(),Dne=[["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),Dne[t][r]}});var dF=oe((fbe,vF)=>{"use strict";var Fne=Lv(),Ene=Cp(),Lne=Mv().getGraphDiv,qne=(iv(),xr(nv)),mb=vF.exports={};mb.wrapped=function(e,r,t){var i;e=Lne(e),e._fullLayout&&Ene.clear(e._fullLayout._uid+qne.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&&Fne.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((cbe,gF)=>{"use strict";var Pne=iF(),gb=U5(),Rne=pb(),zne=pr().removeElement,Nne=(Hn(),xr(In)),fc=gF.exports={};fc.align=sF();fc.getCursor=cF();var pF=dF();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,d,h;t._mouseDownTime||(t._mouseDownTime=0),i.style.pointerEvents="all",i.onmousedown=b,Rne?(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===d?_=c:(_={target:d,srcElement:d,toElement:d},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(A=>{var T=c[A];!_[A]&&typeof T!="function"&&(_[A]=T)})),r.clickFn&&r.clickFn(a,_),h||d.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 hF(e){return Pne(e.changedTouches?e.changedTouches[0]:e,document.body)}});var z0=oe((vbe,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((dbe,_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;iVne,itemGap:()=>Yne,itemHeightPad:()=>jne,itemMinHeight:()=>Xne,scrollBarColor:()=>Hne,scrollBarEnterAttrs:()=>Une,scrollBarMargin:()=>One,scrollBarMinHeight:()=>Ine,scrollBarWidth:()=>Bne,titlePad:()=>Gne});var Bne,Ine,Hne,One,Une,Gne,Yne,Vne,Xne,jne,Sm=Oa(()=>{"use strict";Bne=6,Ine=20,Hne="#808BA4",One=4,Une={rx:20,ry:3,width:0,height:0},Gne=2,Yne=5,Vne=6,Xne=16,jne=3});var _b=oe((hbe,AF)=>{"use strict";var bb=xi(),Wne=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:Wne.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((mbe,MF)=>{"use strict";var Dm=_t(),Co=pr(),Zne=ka(),$ne=Wo(),Jne=_b(),Kne=F1(),xb=Kv();function Qne(e,r,t,a,n){var i=r[e]||{},o=Zne.newContainer(t,e);function l(ie,ue){return Co.coerce(i,o,Jne,ie,ue)}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,ue){var xe=f._input,De=f;return Co.coerce(xe,De,$ne,ie,ue)},d=t.font||{},h=Co.coerceFont(l,"grouptitlefont",d,{overrideDflt:{size:Math.round(d.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 ue=0;ueie.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 M=l("orientation"),E=l("yref"),P=l("xref"),z=M==="h",I=E==="paper",X=P==="paper",H,V,N,Q="left";z?(H=0,Dm.getComponentMethod("rangeslider","isVisible")(r.xaxis)?I?(V=1.1,N="bottom"):(V=1,N="top"):I?(V=-.1,N="top"):(V=0,N="bottom")):(V=1,N="auto",X?H=1.02:(H=1,Q="right")),Co.coerce(i,o,{x:{valType:"number",editType:"legend",min:X?-2:0,max:X?3:1,dflt:H}},"x"),Co.coerce(i,o,{y:{valType:"number",editType:"legend",min:I?-2:0,max:I?3:1,dflt:V}},"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(),eie=Ab.pushUnique,rie=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 d=(o.shapes||[]).filter(Je=>Je.showlegend||Je.legendgroup);var h=c.concat(d),p=l.trace;p._isShape&&(p=o.shapes[p.index]);var m=p.legendgroup,b,y,C,x,_,A,T={},M=[],E=[],P=[];function z(Je,tr){var ze=M.indexOf(Je),lr=T.visible;return lr||(lr=T.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}),X=!1;function H(Je,tr){I[Je].visible=tr,X=!0}function V(Je,tr){if(!(l.groupTitle&&!u)){var ze=Je._isShape,lr=Je.index;lr===void 0&&(lr=Je._index);var dr=Je.visible===!1?!1:tr;ze?H(lr,dr):z(lr,dr)}}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 d={visible:[]},h=[],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,d=0,h,p;function m(ie,ue,xe){if(t.visible!==!1&&!(a&&ie!==t._id))if(ue===""||!Cb.isGrouped(t)){var De="~~i"+c;s.push(De),l[De]=[xe],c++}else s.indexOf(ue)===-1?(s.push(ue),u=!0,l[ue]=[xe]):l[ue].push(xe)}for(h=0;hH&&(I=H)}P[h][0]._groupMinRank=I,P[h][0]._preGroupSort=h}var V=function(ie,ue){return ie[0]._groupMinRank-ue[0]._groupMinRank||ie[0]._preGroupSort-ue[0]._preGroupSort},N=function(ie,ue){var xe=kb(ie.trace.legendrank)?ie.trace.legendrank[ie.i]:ie.trace.legendrank,De=kb(ue.trace.legendrank)?ue.trace.legendrank[ue.i]:ue.trace.legendrank;return xe-De||ie._preSort-ue._preSort};for(P.forEach(function(ie,ue){ie[0]._preGroupSort=ue}),P.sort(V),h=0;h{"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 tie=da(),aie=Nt();FF.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?tie.pointStyle(r,a,n,t):aie.fill(r,t.color)}});var RF=oe((xbe,PF)=>{"use strict";var LF=Nt(),qF=Sb().castOption,nie=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(nie,t,a,n).style("stroke-width",l).call(LF.stroke,o)}});var qb=oe((wbe,HF)=>{"use strict";var Ci=Lt(),Db=_t(),di=pr(),Fb=di.strTranslate,So=da(),rl=Nt(),Eb=Ls().extractOpts,Lm=Ti(),iie=RF(),oie=Sb().castOption,zF=(Sm(),xr(Cm)),NF=12,BF=5,vc=2,lie=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 X;if(E+1)X=E;else if(P&&P.width>0)X=P.width;else return 0;return i?I:Math.min(X,z)};r.each(function(E){var P=Ci.select(this),z=di.ensureSingle(P,"g","layers");z.style("opacity",E[0].trace.opacity);var I=a.indentation,X=a.valign,H=E[0].lineHeight,V=E[0].height;if(X==="middle"&&I===0||!H||!V)z.attr("transform",null);else{var N={top:1,bottom:-1}[X],Q=N*(.5*(H-V+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(h).each(m).each(p).each(y).each(A).each(_).each(c).each(d).each(C).each(x);function c(E){var P=IF(E),z=P.showFill,I=P.showLine,X=P.showGradientLine,H=P.showGradientFill,V=P.anyFill,N=P.anyLine,Q=E[0],ee=Q.trace,re,ae,ie=Eb(ee),ue=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),ue,"fill")}},Ye=function(K){if(K.size()){var J="legendline-"+ee.uid;So.lineGroupStyle(K),So.gradient(K,t,J,Lb(xe),ue,"stroke")}},Ee=Lm.hasMarkers(ee)||!V?"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||X){var le=f(void 0,ee.line,lie,BF);ae=di.minExtend(ee,{line:{width:le}}),re=[di.minExtend(Q,{trace:ae})]}var de=ke.select(".legendlines").selectAll("path").data(I||X?[re]:[]);de.enter().append("path").classed("js-line",!0),de.exit().remove(),de.attr("d",Ee+(X?"l"+o+",0.0001":"h"+o)).call(I?So.lineGroupStyle:Ye)}function d(E){var P=IF(E),z=P.anyFill,I=P.anyLine,X=P.showLine,H=P.showMarker,V=E[0],N=V.trace,Q=!H&&!I&&!z&&Lm.hasText(N),ee,re;function ae(W,le,de,K){var J=di.nestedProperty(N,W).get(),fe=di.isArrayOrTypedArray(J)&&le?le(J):J;if(i&&fe&&K!==void 0&&(fe=K),de){if(fede[1])return de[1]}return fe}function ie(W){return V._distinct&&V.index&&W[V.index]?W[V.index]:W[0]}if(H||Q||X){var ue={},xe={};if(H){ue.mc=ae("marker.color",ie);var De=N.type==="scattermap";ue.mx=De?"circle":ae("marker.symbol",ie),ue.mo=ae("marker.opacity",di.mean,[.2,1]),ue.mlc=ae("marker.line.color",ie),ue.mlw=ae("marker.line.width",di.mean,[0,5],vc),ue.mld=ae("marker.line.dash",ie),xe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var Ye=ae("marker.size",di.mean,[2,16],NF);ue.ms=Ye,xe.marker.size=Ye}X&&(xe.line={width:ae("line.width",ie,[0,10],BF)}),Q&&(ue.tx="Aa",ue.tp=ae("textposition",ie),ue.ts=10,ue.tc=ae("textfont.color",ie),ue.tf=ae("textfont.family",ie),ue.tw=ae("textfont.weight",ie),ue.ty=ae("textfont.style",ie),ue.tv=ae("textfont.variant",ie),ue.tC=ae("textfont.textcase",ie),ue.tE=ae("textfont.lineposition",ie),ue.tS=ae("textfont.shadow",ie)),ee=[di.minExtend(V,ue)],re=di.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 h(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 X=[];P.visible&&z&&(X=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(X);H.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),H.exit().remove(),H.each(function(V){var N=Ci.select(this),Q=P[V[0]].marker,ee=f(void 0,Q.line,r2,vc);N.attr("d",V[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,X=I.marker||{},H=X.line||{},V=X.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",V).attr("transform",u),Q.exit().remove(),Q.each(function(ee){var re=Ci.select(this),ae=ee[0],ie=f(ae.mlw,X.line,r2,vc);re.style("stroke-width",ie+"px");var ue=ae.mcc;if(!a._inHover&&"mc"in ae){var xe=Eb(X),De=xe.mid;De===void 0&&(De=(xe.max+xe.min)/2),ue=So.tryColorscale(X,"")(De)}var Ye=ue||ae.mc||X.color,Ee=X.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 de=ke(Ee.bgcolor,je,null),K=ke(Ee.fgcolor,je,null);var le=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,ue,Ee.fillmode,de,K,le)}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 X=di.minExtend(P,{marker:{size:i?NF:di.constrain(P.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});z.call(So.pointStyle,X,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,X){return X?"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,X){var H=Ci.select(this),V=P[X?"increasing":"decreasing"],N=f(void 0,V.line,r2,vc);H.style("stroke-width",N+"px").call(rl.fill,V.fillcolor),N&&rl.stroke(H,V.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,X){return X?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",u).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(I,X){var H=Ci.select(this),V=P[X?"increasing":"decreasing"],N=f(void 0,V.line,r2,vc);H.style("fill","none").call(So.dashLine,V.line.dash,N),N&&rl.stroke(H,V.line.color)})}function _(E){T(E,this,"pie")}function A(E){T(E,this,"funnelarea")}function T(E,P,z){var I=E[0],X=I.trace,H=z?X.visible&&X.type===z:Db.traceIs(X,z),V=Ci.select(P).select("g.legendpoints").selectAll("path.legend"+z).data(H?[E]:[]);if(V.enter().append("path").classed("legend"+z,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),V.exit().remove(),V.size()){var N=X.marker||{},Q=f(oie(N.line.width,I.pts),N.line,r2,vc),ee="pieLike",re=di.minExtend(X,{marker:{line:{width:Q}}},ee),ae=di.minExtend(I,{trace:re},ee);iie(V,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 X=Ci.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(I);X.enter().append("path").classed("legend3dandfriends",!0).attr("transform",u).style("stroke-miterlimit",1),X.exit().remove(),X.each(function(H,V){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=V===0?ee[re?xe-1:0][1]:V===1?ee[re?0:xe-1][1]:ee[Math.floor((xe-1)/2)][1]}}else{var ue=P.vertexcolor||P.facecolor||P.color;ie=di.isArrayOrTypedArray(ue)?ue[V]||ue[0]:ue}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&&di.isArrayOrTypedArray(e)?r:e>t?t:e}});var Nb=oe((Abe,ZF)=>{"use strict";var Si=Lt(),_n=pr(),Rb=Ln(),dc=_t(),Rm=Lv(),Pb=el(),xn=da(),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(),sie=qb(),n2=Kv(),t2=1,uie=/^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(uie)&&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)&&die(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)}),T=C.selectAll("g.groups").data(s);T.enter().append("g").attr("class","groups"),T.exit().remove();var M=T.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,X=(a.shapes||[]).filter(function(V){return V.showlegend});return e._fullData.concat(X).some(function(V){return V.legendgroup===I&&(V.legend||"legend")===n&&V.visible===!0})?1:.5}return dc.traceIs(z,"pie-like")?p.indexOf(E[0].label)!==-1?.5:1:z.visible==="legendonly"?.5:1}).each(function(){Si.select(this).call(cie,e,t)}).call(sie,e,t).each(function(E){l||E[0].groupTitle&&t.groupclick==="toggleitem"||Si.select(this).call(vie,e,n)}),_n.syncOrAsync([Rb.previousPromises,function(){return mie(e,T,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 X,H;z?X=E.l+E.w*t.x-a2[zm(t)]*t._width:X=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 V=gie(e,n,X,H);if(V)return;if(a.margin.autoexpand){var N=X,Q=H;X=z?_n.constrain(X,0,a.width-t._width):N,H=I?_n.constrain(H,0,a.height-t._effHeight):Q,X!==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,X,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,ue=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),de(xe,re,ue),m.on("wheel",function(){xe=_n.constrain(t._scrollY+Si.event.deltaY/ie*ae,0,ie),de(xe,re,ue),xe!==0&&xe!==ie&&Si.event.preventDefault()});var De,Ye,Ee,ke=function(Ne,Ze,er){var Je=(er-Ze)/ue+Ne;return _n.constrain(Je,0,ie)},je=function(Ne,Ze,er){var Je=(Ze-er)/ue+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),de(xe,re,ue))});A.call(W);var le=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),de(xe,re,ue))});C.call(le)}function de(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,dc.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),dc.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 cie(e,r,t){var a=n2.getId(t),n=e.data()[0][0],i=n.trace,o=dc.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 d=t.indentation+t.itemwidth+$a.itemGap*2;Ru.positionText(c,d,0),l?c.call(Ru.makeEditable,{gd:r,text:u}).call(Pm,e,r,t).on("edit",function(h){this.text(XF(h,s)).call(Pm,e,r,t);var p={};return p.name=h,n.trace._isShape?dc.call("_guiRelayout",r,"shapes["+i.index+"].name",p.name):dc.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 vie(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 die(e,r,t,a){if(r._fullData.some(function(u){let f=u.legend||"legend";return(Array.isArray(f)?f.includes(a):f===a)&&dc.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(){hie(r,t,a,n)})}function hie(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,d,h;if(l){var p=xn.bBox(l);d=p.height,h=p.width,a===t2?xn.setTranslate(o,u,u+d*.75):xn.setTranslate(o,0,d*.25)}else{var m="."+s+(a===t2?"title":"")+"text",b=e.select(m),y=Ru.lineCount(b),C=b.node();if(d=c*y,h=C?xn.bBox(C).width:0,a===t2)t.title.side==="left"&&(h+=$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,h-=t.indentation+t.itemwidth),Ru.positionText(b,x,-c*((y-1)/2-.3))}}if(a===t2)t._titleWidth=h,t._titleHeight=d;else{n.lineHeight=c;let _=$a.itemMinHeight+t.itemheight-$a.dfltFillHeight;n.height=Math.max(d,$a.itemMinHeight,_)+$a.itemHeightPad,n.width=h}}function pie(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 mie(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,d=2*c,h=$a.itemGap,p=a.indentation+a.itemwidth+h*2,m=2*(c+h),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:T}=a,{maxheight:M}=a,E=y||C||A!=="v"||T!=="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=pie(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+h),a._height+=Ze,a._width=Math.max(a._width,Ne[0].width)}),z=p+a._width,a._width+=h+p+d,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 X=zm(a),H=a.x<0||a.x===0&&X==="right",V=a.x>1||a.x===1&&X==="left",N=C||y,Q=i.width/2;a._maxWidth=Math.max(H?N&&X==="left"?l.l+l.w:Q:V?N&&X==="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,ue=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+h+ze/2+Ze),Ze+=ze,Ne=Math.max(Ne,tr),_[Je[0].trace.legendgroup]=Ne});var er=Ne+h;ue>0&&er+c+ue>a._maxWidth?(ae=Math.max(ae,ue),ue=0,xe+=ie+x,ie=Ze):ie=Math.max(ie,Ze),xn.setTranslate(this,ue,xe),ue+=er}),a._width=Math.max(ae,ue)+c,a._height=xe+ie+m}else{var De=t.size(),Ye=re+d+(De-1)*h=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+h),W=ke+er+h,ke+=Je,Ee=Math.max(Ee,Ze)}),Ye?(a._width=ke+d,a._height=Ee+m):(a._width=Math.max(ae,W)+d,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 le=e._context.edits,de=le.legendText||le.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=de?p:z||tr;!s&&!f&&(ze+=h/2),xn.setRect(Ze,0,-er/2,ze,er)}),a._inHover){let Ne=a._width-d-h-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()&&fie(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 gie(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",d={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]=d[f]:u||i.orientation==="v"?e._fullLayout._reservedMargin[r][c]=d[c]:e._fullLayout._reservedMargin[r][f]=d[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(),yie=Ja.pushUnique,Bb=Ja.strTranslate,bie=Ja.strRotate,_ie=Lv(),Ya=vi(),xie=xF(),Is=da(),kn=Nt(),Bm=el(),jl=Ga(),wie=(Hn(),xr(In)).zindexSeparator,hc=_t(),Do=Pu(),pc=(iv(),xr(nv)),Aie=wb(),Mie=Nb(),iE=pc.YANGLE,Hb=Math.PI*iE/180,Tie=1/Math.sin(Hb),kie=Math.cos(Hb),Cie=Math.sin(Hb),Ra=pc.HOVERARROWSIZE,Ot=pc.HOVERTEXTPAD,$F={box:!0,ohlc:!0,violin:!0,candlestick:!0},Sie={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(){Fie(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=uE(n),o=fE(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),T=Math.min(y,C),M=Math.max(y,C),E=p.trace;if(hc.traceIs(E,"gl3d")){var P=n._fullLayout[E.scene]._scene.container,z=P.offsetLeft,I=P.offsetTop;_+=z,A+=z,T+=I,M+=I}x.bbox={x0:_+o,x1:A+o,y0:T+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=lE(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;iele&&(N.splice(0,le),tr=N[0].distance),hc.traceIs(xe,"ternary")&&V!==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:V,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<=V&&(!zo||Qa.spikeDistance$t.spikeDistance)&&(de.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),(!de.hLinePoint||de.hLinePoint.spikeDistance>$t.spikeDistance)&&(de.hLinePoint=$t))}}}}}ze();function lr(){if(l._hoverlayer.selectAll(".ternary-spikes").remove(),V!==0)for(let Rr=0;Rrma.trace.subplot===Vt&&ma.index!==void 0&&ma.index!==!1&&ma.spikeDistance<=V);Et.drawSpikelines(Zt,K[Vt],ee&&ee[Rr],re&&re[Rr])}}}function dr(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=nE("x",vr,l),jr=nE("y",vr,l);ze(Er,jr);var et=[],nr={},Cr=0,ar=function(Rr){var Vt=$F[Rr.trace.type]?oE(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=uE(e),Ae=fE(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 hr=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(hr,Dt),Xt=Math.max(hr,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=(hr+Dt)/2,Be.yPixel=(Wt+ba)/2}Rr.eventData=[Be],Br.push(Be)}e._hoverdata=Br;var Pt=h==="y"&&(Q.length>1||N.length>1)||h==="closest"&&J&&N.length>1,Ta=kn.combine(l.plot_bgcolor||kn.background,l.paper_bgcolor),pa=lE(N,{gd:e,hovermode:h,rotateLabels:Pt,bgColor:Ta,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Xa=pa.hoverLabels;if(Do.isUnifiedHover(h)||(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 dn=hc.getComponentMethod("annotations","hasClickToShow")(e,Br);xie(Nu.select(n),dn?"pointer":"")}var ja=Pie(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 oE(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 Eie=/([\s\S]*)<\/extra>/;function Ib(e,r){return Im(e,Ya.getMathOrTextNode(r))}function lE(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,d=r.fontSize||pc.HOVERFONTSIZE,h=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,T=n.charAt(0),M=T+"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,hr;A.side==="right"?(Be="start",or=1,hr="",Fr=_._offset+_._length):(Be="end",or=-1,hr="-",Fr=_._offset),Wr=A._offset+(x.y0+x.y1)/2,cr.attr("text-anchor",Be),He.attr("d","M0,0L"+hr+Ra+","+Ra+"V"+(Ot+ar.height/2)+"h"+hr+(Ot*2+ar.width)+"V-"+(Ot+ar.height/2)+"H"+hr+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 ue=a.hoverlabel,xe=ue.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:ue.bgcolor,bordercolor:ue.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},je={font:xe};Aie(ke,je,t._fullData);var W=je.legend;W.entries=[];for(var le=0;le=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?(hr-=Wt/2,Ce.anchor="end"):pa?(hr+=Wt/2,Ce.anchor="start"):Ce.anchor="middle",Ce.crossPos=hr;else{if(Ce.pos=hr,pa=or+Dt/2+Ta<=X,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 dn=Ta/2,ja=or+dn-X,Fa=or-dn;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,hr)+(i?bie(iE):""))}}),{hoverLabels:Nr,commonLabelBoundingBox:ie,mathjaxPromise:f.length?Promise.all(f):null}}function KF(e,r,t,a,n,i){var c,d;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=aE(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),(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"]),l=Ja.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:h,locale:a._d3locale,template:f}),l=l.replace(Eie,(p,m)=>(o=aE(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,d=a.maxX,h=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 ue=0,xe=ae?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var De=sE(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),le=W+m(Ee*Q.bx);ke=Q.crossPos+Math.min(W,le),je=Q.crossPos+Math.max(W,le)}ae?h!==void 0&&p!==void 0&&Math.min(je,p)-Math.max(ke,h)>1&&(re.side==="left"?(ue=re._mainLinePosition,xe=t.width):xe=re._mainLinePosition):c!==void 0&&d!==void 0&&Math.min(je,d)-Math.max(ke,c)>1&&(re.side==="top"?(ue=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?Tie:1)/2,pmin:ue,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,T,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);_--)T=Q[_],T.pos>ee.pmax-1&&(T.del=!0,ae--);for(_=0;_=0;A--)Q[A].dp-=x;for(_=Q.length-1;_>=0&&!(ae<=0);_--)T=Q[_],T.pos+T.dp+T.size>ee.pmax&&(T.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 V=H[A],N=V.datum;N.offset=V.dp,N.del=V.del}}}function sE(e,r){var t=0,a=e.offset;return r&&(a*=-Cie,t=e.offset*kie),{x:t,y:a}}function Lie(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=Lie(o),d=sE(o,r),h=d.x,p=d.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+h)+","+i(Ra+p)+"v"+i(o.by/2-Ra)+"h"+n(f*o.bx)+"v-"+i(o.by)+"H"+n(f*Ra+h)+"V"+i(p-Ra)+"Z":y="M"+n(f*Ra+h)+","+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=h+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+h),i(p+o.ty0-o.by/2+Ot)),l.select("rect").call(Is.setRect,n(c.text2ShiftX+(c.alignShift-1)*o.tx2width/2+h),i(p-o.by/2-1),n(o.tx2width),i(o.by+2)))})}function qie(e,r){var t=e.index,a=e.trace||{},n=e.cd[0],i=e.cd[t]||{};function o(d){return d||zu(d)&&d===0}var l=Array.isArray(t)?function(d,h){var p=Ja.castOption(n,t,d);return o(p)?p:Ja.extractOption({},a,"",h)}:function(d,h){return Ja.extractOption(i,a,d,h)};function s(d,h,p){var m=l(h,p);o(m)&&(e[d]=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:jl.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:jl.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=jl.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+jl.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=jl.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+jl.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){let a=r._id.charAt(0)==="y",n=1/0,i=-1/0;for(let o of r._counterAxes||[]){let l=jl.getFromId(e,o);if(!l)continue;let s=l._padStart||0,u=l._padEnd||0;a?(n=Math.min(n,t.l+l.domain[0]*t.w+s),i=Math.max(i,t.l+l.domain[1]*t.w-u)):(n=Math.min(n,t.t+(1-l.domain[1])*t.h+s),i=Math.max(i,t.t+(1-l.domain[0])*t.h-u))}if(r.anchor==="free"){let o=a?t.l+r.position*t.w:t.t+(1-r.position)*t.h;n=Math.min(n,o),i=Math.max(i,o)}return[n,i]}function rE(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 d=r.hLinePoint,h,p;u=d&&d.xa,f=d&&d.ya;var m=f.spikesnap;m==="cursor"?(h=o.pointerX,p=o.pointerY):(h=u._offset+d.x,p=f._offset+d.y);var b=kn.wcagContrast(d.color,c)<1.5?kn.contrast(c):d.color,y=f.spikemode,C=f.spikethickness,x=f.spikecolor||b,_=jl.getPxPosition(e,f),A,T;if(y.indexOf("toaxis")!==-1||y.indexOf("across")!==-1){if(y.indexOf("toaxis")!==-1&&(A=_,T=h),y.indexOf("across")!==-1){let re=eE(e,f,i);A=re[0],T=re[1]}a.insert("line",":first-child").attr({x1:A,x2:T,y1:p,y2:p,"stroke-width":C,stroke:x,"stroke-dasharray":Is.dashStyle(f.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:T,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 M=r.vLinePoint,E,P;u=M&&M.xa,f=M&&M.ya;var z=u.spikesnap;z==="cursor"?(E=o.pointerX,P=o.pointerY):(E=u._offset+M.x,P=f._offset+M.y);var I=kn.wcagContrast(M.color,c)<1.5?kn.contrast(c):M.color,X=u.spikemode,H=u.spikethickness,V=u.spikecolor||I,N=jl.getPxPosition(e,u),Q,ee;if(X.indexOf("toaxis")!==-1||X.indexOf("across")!==-1){if(X.indexOf("toaxis")!==-1&&(Q=N,ee=P),X.indexOf("across")!==-1){let re=eE(e,u,i);Q=re[0],ee=re[1]}a.insert("line",":first-child").attr({x1:E,x2:E,y1:Q,y2:ee,"stroke-width":H,stroke:V,"stroke-dasharray":Is.dashStyle(u.spikedash,H)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:E,x2:E,y1:Q,y2:ee,"stroke-width":H+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}X.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:E,cy:N-(u.side!=="top"?H:-H),r:H,fill:V}).classed("spikeline",!0)}}}function Pie(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 tE(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function aE(e,r){return Ya.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Rie(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,fE=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],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 Om=oe((Tbe,cE)=>{"use strict";var zie=pr(),Nie=Nt(),Bie=Pu().isUnifiedHover;cE.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&&Bie(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=Nie.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),zie.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var dE=oe((kbe,vE)=>{"use strict";var Iie=pr(),Hie=Om(),Oie=g1();vE.exports=function(r,t){function a(n,i){return Iie.coerce(r,t,Oie,n,i)}Hie(r,t,a)}});var mE=oe((Cbe,pE)=>{"use strict";var hE=pr(),Uie=Ph(),Gie=Om();pE.exports=function(r,t,a,n){function i(l,s){return hE.coerce(r,t,Uie,l,s)}var o=hE.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),Gie(r,t,i,o)}});var Gb=oe((Sbe,gE)=>{"use strict";var Yie=pr(),Vie=g1();gE.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:Yie.coerce(r,t,Vie,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var _E=oe((Dbe,bE)=>{"use strict";var yE=pr(),Xie=g1(),jie=Gb(),Wie=Om();bE.exports=function(r,t){function a(u,f){return yE.coerce(r,t,Xie,u,f)}var n=jie(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"),Wie(r,t,a),yE.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var AE=oe((Fbe,wE)=>{"use strict";var Yb=pr(),xE=_t();wE.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 $ie=_t(),ME=Pu(),Jie=Ub().hover;TE.exports=function(r,t,a){var n=$ie.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&Jie(r,t,a,!0);function o(){var s,u,f,c,d,h;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&&ME.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&ME.c2dApply(r._hoverYAxes,r._hoverYVals)),(d=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(h=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 Wl=oe((Lbe,DE)=>{"use strict";var Kie=Lt(),Um=pr(),Qie=el(),ed=Pu(),CE=g1(),SE=Ub();DE.exports={moduleType:"component",name:"fx",constants:(iv(),xr(nv)),schema:{layout:CE},attributes:Ph(),layoutAttributes:CE,supplyLayoutGlobalDefaults:dE(),supplyDefaults:mE(),supplyLayoutDefaults:_E(),calc:AE(),getDistanceFunction:ed.getDistanceFunction,getClosest:ed.getClosest,inbox:ed.inbox,quadrature:ed.quadrature,appendArrayPointValue:ed.appendArrayPointValue,castHoverOption:roe,castHoverinfo:toe,hover:SE.hover,unhover:Qie.unhover,loneHover:SE.loneHover,loneUnhover:eoe,click:kE()};function eoe(e){var r=Um.isD3Selection(e)?e:Kie.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function roe(e,r,t){return Um.castOption(e,r,"hoverlabel."+t)}function toe(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((Pbe,FE)=>{"use strict";FE.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((Rbe,EE)=>{"use strict";EE.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:()=>aoe,SQRT2:()=>foe,cos45:()=>soe,i000:()=>noe,i090:()=>ioe,i180:()=>ooe,i270:()=>loe,sin45:()=>uoe});var aoe,noe,ioe,ooe,loe,soe,uoe,foe,Xm=Oa(()=>{"use strict";aoe=32,noe=0,ioe=8,ooe=16,loe=24,soe=Math.cos(Math.PI/4),uoe=Math.sin(Math.PI/4),foe=Math.sqrt(2)});var jm=oe((zbe,qE)=>{"use strict";var coe=pr().strTranslate;function LE(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 voe(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 doe(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return LE(e,t[r])}}function hoe(e){return coe(e.xaxis._offset,e.yaxis._offset)}qE.exports={p2r:LE,r2p:voe,axValue:doe,getTransform:hoe}});var B0=oe(Iu=>{"use strict";var poe=D6(),zE=(Xm(),xr(Vm)),o2=zE.CIRCLE_SIDES,Vb=zE.SQRT2,NE=jm(),PE=NE.p2r,RE=NE.r2p,moe=[0,3,4,5,6,1,2],goe=[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 BE=En(),GE=i2(),yoe=GE.drawMode,boe=GE.openMode,l2=(Xm(),xr(Vm)),IE=l2.i000,HE=l2.i090,OE=l2.i180,UE=l2.i270,_oe=l2.cos45,xoe=l2.sin45,YE=jm(),Zm=YE.p2r,I0=YE.r2p,woe=C0(),Aoe=woe.clearOutline,$m=B0(),Moe=$m.readPaths,Toe=$m.writePaths,koe=$m.ellipseOver,Coe=$m.fixDatesForPaths;function Soe(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(!yoe(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var Doe=i2(),Foe=Doe.selectMode,Eoe=C0(),Loe=Eoe.clearOutline,Xb=B0(),qoe=Xb.readPaths,Poe=Xb.writePaths,Roe=Xb.fixDatesForPaths;jE.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,d=(i.layout||{}).selections||[];if(!Foe(c)&&f!==void 0){var h=i._fullLayout._activeSelectionIndex;if(hHoe,paramIsX:()=>Boe,paramIsY:()=>Ioe,paramRE:()=>Noe,segmentRE:()=>zoe});var zoe,Noe,Boe,Ioe,Hoe,ad=Oa(()=>{"use strict";zoe=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Noe=/[^\s,]+/g,Boe={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:{}},Ioe={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:{}},Hoe={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=(ad(),xr(td)),WE=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,d,h,p,m,b,y;function C(z,I,X,H){var V;if(z)if(I==="domain")H?V=function(N){return z._offset+z._length*(1-N)}:V=function(N){return z._offset+z._length*N};else{let N=Wn.shapePositionToRange(z);V=function(Q){return z._offset+z.r2p(N(Q,!0))},X==="path"&&z.type==="date"&&(V=Wn.decodeDate(V))}else H?V=function(N){return i.t+i.h*(1-N)}:V=function(N){return i.l+i.w*N};return V}if(a==="array"?(d=[],o=r.xref.map(function(z){return H0.getFromId(e,z)}),d=r.xref.map(function(z,I){return C(o[I],H0.getRefType(z),t,!1)})):(o=H0.getFromId(e,r.xref),d=C(o,a,t,!1)),n==="array"?(h=[],l=r.yref.map(function(z){return H0.getFromId(e,z)}),h=r.yref.map(function(z,I){return C(l[I],H0.getRefType(z),t,!0)})):(l=H0.getFromId(e,r.yref),h=C(l,n,t,!0)),t==="path")return Ooe(r,d,h);if(a==="array")s=Hs(o[0],r.x0shift),u=Hs(o[1],r.x1shift),p=d[0](r.x0)+s,m=d[1](r.x1)+u;else if(s=Hs(o,r.x0shift),u=Hs(o,r.x1shift),r.xsizemode==="pixel"){let z=d(r.xanchor);p=z+r.x0+s,m=z+r.x1+u}else p=d(r.x0)+s,m=d(r.x1)+u;if(n==="array")f=Hs(l[0],r.y0shift),c=Hs(l[1],r.y1shift),b=h[0](r.y0)+f,y=h[1](r.y1)+c;else if(f=Hs(l,r.y0shift),c=Hs(l,r.y1shift),r.ysizemode==="pixel"){let z=h(r.yanchor);b=z-r.y0+f,y=z-r.y1+c}else b=h(r.y0)+f,y=h(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),T=Math.abs(_-b),M="A"+A+","+T,E=x+A+","+_,P=x+","+(_-T);return"M"+E+M+" 0 1,1 "+P+M+" 0 0,1 "+E+"Z"};function Ooe(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(d){var h=0,p=d.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 T=d.slice(1).replace(Os.paramRE,function(M){return m[h]?n==="pixel"?M=_(o)+Number(M):M=_(M):b[h]&&(i==="pixel"?M=A(l)-Number(M):M=A(M)),h++,h>y&&(M="X"),M});return h>y&&(T=T.replace(/[\s,]*X.*/,""),WE.log("Ignoring extra params in segment "+d)),C&&f++,x&&c++,p+T})}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((Obe,JE)=>{"use strict";var Uoe=pr(),Us=Ga(),ZE=vi(),$E=da(),Goe=B0().readPaths,mc=O0(),Yoe=mc.getPathString,nd=pp(),Voe=(ci(),xr(fi)).FROM_TL;JE.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 ue=Array.isArray(a.xref),xe=Array.isArray(a.yref);for(var u in nd){var f=typeof nd[u]=="function",c=!ue||nd.simpleXVariables.includes(u),d=!xe||nd.simpleYVariables.includes(u);if(f&&c&&d){var h=nd[u](a,l,s);h!==void 0&&(o[u]=h)}}}i=Uoe.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,T;if(a.path){var M=Yoe(r,a),E=Goe(M,r);x=1/0,A=1/0,_=-1/0,T=-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,le),be=mc.getPixelShift(Ee,a.y0shift),Ne=mc.getPixelShift(Ee,a.y1shift);A=fe-a.y0+be,T=fe-a.y1+Ne}else A=J(a.y0,a.y0shift,Ee,le),T=J(a.y1,a.y1shift,ke,de)}var N=a.label.textangle;N==="auto"&&(a.type==="line"?N=Xoe(x,A,_,T):N=0),C.call(function(ue){return ue.call($E.font,m).attr({}),ZE.convertToTspans(ue,r),ue});var Q=$E.bBox(C.node()),ee=joe(x,A,_,T,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(ZE.positionText,re,ae)}};function Xoe(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 joe(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,d=Math.sin(c),h=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 Woe=pr(),Zoe=Woe.strTranslate,KE=el(),rL=i2(),$oe=rL.drawMode,tL=rL.selectMode,aL=_t(),QE=Nt(),Qm=(Xm(),xr(Vm)),Joe=Qm.i000,Koe=Qm.i090,Qoe=Qm.i180,ele=Qm.i270,rle=C0(),nL=rle.clearOutlineControllers,$b=B0(),Km=$b.pointsOnRectangle,Zb=$b.pointsOnEllipse,tle=$b.writePaths,ale=Jm().newShapes,nle=Jm().createShapeObj,ile=jb(),ole=Wb();iL.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=ale(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,re=ile(t,a),i._fullLayout._reselect=!0),Object.keys(re).length&&aL.call((ee||{}).redrawing?"relayout":"_guiRelayout",i,re)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=$oe(f),d=tL(f);(c||d)&&(i._fullLayout._outlining=!0),nL(i),t.attr("d",tle(r));var h,p,m,b,y;if(!n&&(a.isActiveShape||a.isActiveSelection)){y=lle([],r);var C=u.append("g").attr("class","outline-controllers");z(C),Q()}if(c&&a.hasText){var x=u.select(".label-temp"),_=nle(t,a,a.dragmode);ole(i,"label-temp",_,x)}function A(ee){m=+ee.srcElement.getAttribute("data-i"),b=+ee.srcElement.getAttribute("data-j"),h[m][b].moveFn=T}function T(ee,re){if(r.length){var ae=y[m][b][1],ie=y[m][b][2],ue=r[m],xe=ue.length;if(Km(ue)){var De=ee,Ye=re;if(a.isActiveSelection){var Ee=eL(ue,b);Ee[1]===ue[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){h=[];for(var re=0;re{"use strict";var ule=Lt(),cL=_t(),Kb=pr(),gc=Ga(),fle=B0().readPaths,cle=eg(),tg=Wb(),vL=C0().clearOutlineControllers,Jb=Nt(),ag=da(),vle=ka().arrayEditor,oL=el(),lL=Wl(),sL=z0(),yc=(ad(),xr(td)),lo=O0(),Qb=lo.getPathString;pL.exports={draw:e7,drawOne:dL,eraseActiveShape:gle,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&&lL.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&lL.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=hle(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 hle(e,r,t){let a=e._fullLayout._size;function n(l,s){let u=(Array.isArray(l)?l:[l]).map(d=>gc.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),o=n(t,!0);return{x:i[0],y:o[0],width:i[1]-i[0],height:o[1]-o[0]}}function ple(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",d=i.modifyItem,h,p,m,b,y,C,x,_,A,T,M,E,P,z,I,X=ule.select(r.node().parentNode),H=gc.getFromId(e,t.xref),V=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,ue=function(tr,ze){var lr=lo.getDataToPixel(e,H,ze,!1,V);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,V),Ye=lo.getPixelToData(e,N,!0,Q),Ee=W(),ke={element:Ee.node(),gd:e,prepFn:K,doneFn:J,clickFn:fe},je;oL.init(ke),Ee.node().onmousemove=de;function W(){return f?le():r}function le(){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 dr={"fill-opacity":"0"},Ar=Math.max(ze/2,tr);return lr.append("circle").attr({"data-line-point":"start-point",cx:s?ue(t.xanchor)+t.x0:ue(t.x0,ee),cy:u?xe(t.yanchor)-t.y0:xe(t.y0,ae),r:Ar}).style(dr).classed("cursor-grab",!0),lr.append("circle").attr({"data-line-point":"end-point",cx:s?ue(t.xanchor)+t.x1:ue(t.x1,re),cy:u?xe(t.yanchor)-t.y1:xe(t.y1,ie),r:Ar}).style(dr).classed("cursor-grab",!0),lr}function de(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,dr=ze.bottom-ze.top,Ar=tr.clientX-ze.left,Qe=tr.clientY-ze.top,mr=!c&&lr>o&&dr>l&&!tr.shiftKey?oL.getCursor(Ar/lr,1-Qe/dr):"move";sL(r,mr),je=mr.split("-")[0]}}function K(tr){rg(e)||(s&&(y=ue(t.xanchor)),u&&(C=xe(t.yanchor)),t.type==="path"?I=t.path:(h=s?t.x0:ue(t.x0),p=u?t.y0:xe(t.y0),m=s?t.x1:ue(t.x1),b=u?t.y1:xe(t.y1)),hb?(x=p,M="y0",_=b,E="y1"):(x=b,M="y1",_=p,E="y0"),de(tr),Ze(n,t),Je(r,t,e),ke.moveFn=je==="move"?be:Ne,ke.altKey=tr.altKey)}function J(){rg(e)||(sL(r),er(n),hL(r,e,t),cL.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},dr=lr,Ar=lr;s?d("xanchor",t.xanchor=De(y+tr)):(dr=function(mr){return De(ue(mr)+tr)},H&&H.type==="date"&&(dr=lo.encodeDate(dr))),u?d("yanchor",t.yanchor=Ye(C+ze)):(Ar=function(mr){return Ye(xe(mr)+ze)},N&&N.type==="date"&&(Ar=lo.encodeDate(Ar))),d("path",t.path=uL(I,dr,Ar))}else s?d("xanchor",t.xanchor=De(y+tr)):(d("x0",t.x0=De(h+tr)),d("x1",t.x1=De(m+tr))),u?d("yanchor",t.yanchor=Ye(C+ze)):(d("y0",t.y0=Ye(p+ze)),d("y1",t.y1=Ye(b+ze)));r.attr("d",Qb(e,t)),Ze(n,t),tg(e,a,t,X)}function Ne(tr,ze){if(c){var lr=function(kr){return kr},dr=lr,Ar=lr;s?d("xanchor",t.xanchor=De(y+tr)):(dr=function(Er){return De(ue(Er)+tr)},H&&H.type==="date"&&(dr=lo.encodeDate(dr))),u?d("yanchor",t.yanchor=Ye(C+ze)):(Ar=function(Er){return Ye(xe(Er)+ze)},N&&N.type==="date"&&(Ar=lo.encodeDate(Ar))),d("path",t.path=uL(I,dr,Ar))}else if(f){if(je==="resize-over-start-point"){var Qe=h+tr,mr=u?p-ze:p+ze;d("x0",t.x0=s?Qe:De(Qe)),d("y0",t.y0=u?mr:Ye(mr))}else if(je==="resize-over-end-point"){var qr=m+tr,Te=u?b-ze:b+ze;d("x1",t.x1=s?qr:De(qr)),d("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?T+tr:T;u&&(_r&&(He=x-ze),Pr&&(cr=_-ze)),(!u&&cr-He>l||u&&He-cr>l)&&(d(M,t[M]=u?He:Ye(He)),d(E,t[E]=u?cr:Ye(cr))),vr-Mr>o&&(d(P,t[P]=s?Mr:De(Mr)),d(z,t[z]=s?vr:De(vr)))}r.attr("d",Qb(e,t)),Ze(n,t),tg(e,a,t,X)}function Ze(tr,ze){(s||u)&&lr();function lr(){var dr=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=ue(s?ze.xanchor:Kb.midRange(dr?[ze.x0,ze.x1]:lo.extractPathCoords(ze.path,yc.paramIsX))),qr=xe(u?ze.yanchor:Kb.midRange(dr?[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 dr=ze.xref,Ar=ze.yref,Qe=gc.getFromId(lr,dr),mr=gc.getFromId(lr,Ar),qr="";dr!=="paper"&&!Qe.autorange&&(qr+=dr),Ar!=="paper"&&!mr.autorange&&(qr+=Ar),ag.setClipUrl(tr,qr?"clip"+lr._fullLayout._uid+qr:null,lr)}}function uL(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 mle(e,r){if(ng(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){fL(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=fL,e7(e)}}}function fL(e){if(ng(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(vL(e),delete e._fullLayout._activeShapeIndex,e7(e))}}function gle(e){if(ng(e)){vL(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var s2=pr()._,yle=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")}};mL.exports=yle});var _L=oe((Vbe,bL)=>{"use strict";var yL=Lt(),{dfltConfig:ble}=m0(),_le=gL(),xle=(e,r,t,a,n)=>{let i=_le(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===ble.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],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=o.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 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)},wle=(e,r,t)=>{let a=yL.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",()=>{yL.event.target===n.node()&&i()}),xle(e,n,r,()=>{i(),t()},i)};bL.exports=wle});var a7=oe((Xbe,CL)=>{"use strict";var Fo=_t(),Ale=Ln(),wL=En(),aa=Ym(),Mle=ig().eraseActiveShape,Tle=_L(),u2=pr(),Ut=u2._,ta={};CL.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}Tle(e,r,function(){Ale.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:Mle};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=wL.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,m;for(f=0;f-T),[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"?xL*d:1/xL*d;A>_?A=_:A{"use strict";var SL=a7(),Dle=Object.keys(SL),DL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],FL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(DL,["downloadJson"]),f2=[],Fle=function(e){if(FL.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)}};Dle.forEach(function(e){Fle(SL[e])});f2.sort();EL.exports={DRAW_MODES:DL,backButtons:FL,foreButtons:f2}});var o7={};Ua(o7,{default:()=>Lle});var i7,Ele,Lle,l7=Oa(()=>{"use strict";i7=H_(n7()),Ele={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(" ")}},Lle=Ele});var qL=oe((Wbe,LL)=>{"use strict";var qle=pr(),id=Nt(),Ple=ka(),Rle=(l7(),xr(o7)).default;LL.exports=function(r,t){var a=r.modebar||{},n=Ple.newContainer(t,"modebar");function i(l,s){return qle.coerce(a,n,Rle,l,s)}i("orientation"),i("bgcolor",id.addOpacity(t.paper_bgcolor,.5));var o=id.contrast(id.rgb(t.modebar.bgcolor));i("color",id.addOpacity(o,.3)),i("activecolor",id.addOpacity(o,.7)),i("uirevision",t.uirevision),i("add"),i("remove")}});var NL=oe((Zbe,zL)=>{"use strict";var s7=Lt(),zle=Qt(),sg=pr(),PL=Ym(),Nle=K2().version,Ble=new DOMParser;function RL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Gs=RL.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||PL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Gs.createIcon=function(e){var r=zle(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=Ble.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,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(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 Ole=En(),BL=Ti(),u7=_t(),Ule=Pu().isUnifiedHover,Gle=NL(),ug=a7(),Yle=n7().DRAW_MODES,Vle=pr().extendDeep;IL.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=Jle(i):!a.displayModeBar&&a.watermark?o=[]:o=Xle(r),n?n.update(r,o):t._modeBar=Gle(r,o)};function Xle(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,ue=ae._cat||ae.name;if(ie===re||ue===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"]):d?P=["hoverClosestPie"]:C?(P=["hoverClosestCartesian","hoverCompareCartesian"],z=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Zle(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"]),Wle(t)&&I.push("select2d","lasso2d");var X=[],H=function(re){X.indexOf(re)===-1&&P.indexOf(re)!==-1&&X.push(re)};if(Array.isArray(l)){for(var V=[],N=0;N{"use strict";OL.exports={moduleType:"component",name:"modebar",layoutAttributes:(l7(),xr(o7)).default,supplyLayoutDefaults:qL(),manage:HL()}});var c7=oe((Kbe,UL)=>{"use strict";var Kle=(ci(),xr(fi)).FROM_BL;UL.exports=function(r,t,a){a===void 0&&(a=Kle[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 ld=oe(od=>{"use strict";var bc=pr(),v7=P0(),Zl=En().id2name,Qle=Yl(),GL=c7(),ese=cm(),rse=(Za(),xr(nn)).ALMOST_EQUAL,tse=(ci(),xr(fi)).FROM_BL;od.handleDefaults=function(e,r,t){var a=t.axIds,n=t.axHasImage,i=r._axisConstraintGroups=[],o=r._axisMatchGroups=[],l,s,u,f,c,d,h,p;for(l=0;li?t.slice(i):a.slice(n))+o}function nse(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;orse*p&&!C)){for(i=0;iX&&iez&&(z=ie);var xe=(z-P)/(2*I);c/=xe,P=s.l2r(P),z=s.l2r(z),s.range=s._input.range=T0){let s=a[1]-a[0],u=s-l;u>0&&(o=s/(u/r+l))}e.domain=e._input.domain=[i+(a[0]-i)/o,i+(a[1]-i)/o],e.setScale()}});var vg=oe(Un=>{"use strict";var cg=Lt(),Fi=_t(),Eo=Ln(),tl=pr(),p7=vi(),m7=Gm(),sd=Nt(),c2=da(),jL=Ov(),KL=f7(),ud=Ga(),Hu=(ci(),xr(fi)),QL=ld(),ose=QL.enforce,lse=QL.clean,WL=P0().doAutoRange,eq="start",sse="middle",rq="end",use=(Hn(),xr(In)).zindexSeparator;Un.layoutStyles=function(e){return tl.syncOrAsync([Eo.doAutoMargin,cse],e)};function fse(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function cse(e){var r=e._fullLayout,t=r._size,a=t.p,n=ud.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),KL.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){pse(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:JL(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 d=cg.select(e).selectAll(".gtitle-subtitle");if(d.node()){var h=l.node().getBBox(),p=h.y+h.height,m=p+jL.SUBTITLE_PADDING_EM*r.subtitle.font.size;d.attr({x:o,y:m,"text-anchor":a,dy:JL(r.yanchor)}).call(p7.positionText,o,m)}}}};function vse(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=dse(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function pse(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"&&vse(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 mse(e,r){var t=e.title,a=e._size,n=0;return r===eq?n=t.pad.l:r===rq&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function gse(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 JL(e){return e==="top"?Hu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Hu.MID_SHIFT+"em"}function yse(e){var r=e.title,t=sse;return tl.isRightAnchor(r)?t=rq:tl.isLeftAnchor(r)&&(t=eq),t}function bse(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 _se=B0().readPaths,xse=eg(),tq=C0().clearOutlineControllers,g7=Nt(),aq=da(),wse=ka().arrayEditor,nq=O0(),Ase=nq.getPathString;oq.exports={draw:dg,drawOne:iq,activateLastSelection:kse};function dg(e){var r=e._fullLayout;tq(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(aq.dashLine,b?"solid":h,b?4+d:d);if(Mse(y,e,a),p){var C=wse(e.layout,"selections",a);y.style({cursor:"move"});var x={element:y.node(),plotinfo:n,gd:e,editHelpers:C,isActiveSelection:!0},_=_se(l,e);xse(_,y,x)}else y.style("pointer-events",b?"all":"none");m[b]=y}var A=m[0],T=m[1];T.node().addEventListener("click",function(){return Tse(e,A)})}}function Mse(e,r,t){var a=t.xref+t.yref;aq.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function Tse(e,r){if(hg(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,dg(e)}}}function kse(e){if(hg(e)){var r=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=r,e._fullLayout._deactivateSelection=y7,dg(e)}}function y7(e){if(hg(e)){var r=e._fullLayout._activeSelectionIndex;r>=0&&(tq(e),delete e._fullLayout._activeSelectionIndex,dg(e))}}});var sq=oe((t7e,lq)=>{function Cse(){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}lq.exports=Cse});var fq=oe((a7e,uq)=>{function Sse(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}uq.exports=Sse});var vq=oe((n7e,cq)=>{var Dse={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}};cq.exports=Dse});var hq=oe((i7e,dq)=>{var fd=vq();function Fse(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=fd.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=fd.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=fd.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 d(p,m){var b=n(m,p.seg.end,p.seg);return c(p,m),f(b,p.primary)}function h(p,m){var b=fd.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,ue=re.start,xe=re.end;t&&t.checkIntersection(ee,re);var De=r.linesIntersect(ae,ie,ue,xe);if(De===!1){if(!r.pointsCollinear(ae,ie,ue)||r.pointsSame(ae,xe)||r.pointsSame(ie,ue))return!1;var Ye=r.pointsSame(ae,ue),Ee=r.pointsSame(ie,xe);if(Ye&&Ee)return Q;var ke=!Ye&&r.pointBetween(ae,ue,xe),je=!Ee&&r.pointBetween(ie,ue,xe);if(Ye)return je?d(Q,ie):d(N,xe),Q;ke&&(Ee||(je?d(Q,ie):d(N,xe)),d(Q,ae))}else De.alongA===0&&(De.alongB===-1?d(N,ue):De.alongB===0?d(N,De.pt):De.alongB===1&&d(N,xe)),De.alongB===0&&(De.alongA===-1?d(Q,ae):De.alongA===0?d(Q,De.pt):De.alongA===1&&d(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 V=N;t&&t.segmentNew(A.seg,A.primary);var T=C(A),M=T.before?T.before.ev:null,E=T.after?T.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=T.insert(fd.node({ev:A}))}else{var X=A.status;if(X===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(X.prev)&&b.exists(X.next)&&x(X.prev.ev,X.next.ev),t&&t.statusRemove(X.ev.seg),X.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 Ese(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,N,Q){return f.index=V,f.matches_head=N,f.matches_pt1=Q,f===s?(f=u,!1):(f=null,!0)}for(var d=0;d{function cd(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 Lse={union:function(e,r){return cd(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],r)},intersect:function(e,r){return cd(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],r)},difference:function(e,r){return cd(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],r)},differenceRev:function(e,r){return cd(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],r)},xor:function(e,r){return cd(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],r)}};gq.exports=Lse});var _q=oe((s7e,bq)=>{var qse={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 Pse=sq(),Rse=fq(),xq=hq(),zse=mq(),vd=yq(),wq=_q(),al=!1,dd=Rse(),so;so={buildLog:function(e){return e===!0?al=Pse():e===!1&&(al=!1),al===!1?!1:al.list},epsilon:function(e){return dd.epsilon(e)},segments:function(e){var r=xq(!0,dd,al);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=xq(!1,dd,al);return{combined:t.calculate(e.segments,e.inverted,r.segments,r.inverted),inverted1:e.inverted,inverted2:r.inverted}},selectUnion:function(e){return{segments:vd.union(e.combined,al),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:vd.intersect(e.combined,al),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:vd.difference(e.combined,al),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:vd.differenceRev(e.combined,al),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:vd.xor(e.combined,al),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:zse(e.segments,dd,al),inverted:e.inverted}},polygonFromGeoJSON:function(e){return wq.toPolygon(so,e)},polygonToGeoJSON:function(e){return wq.fromPolygon(so,dd,e)},union:function(e,r){return hd(e,r,so.selectUnion)},intersect:function(e,r){return hd(e,r,so.selectIntersect)},difference:function(e,r){return hd(e,r,so.selectDifference)},differenceRev:function(e,r){return hd(e,r,so.selectDifferenceRev)},xor:function(e,r){return hd(e,r,so.selectXor)}};function hd(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);Aq.exports=so});var kq=oe((f7e,Tq)=>{Tq.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<(h-c)*(o-d)/(p-d)+c;m&&(l=!l)}return l}});var gg=oe((c7e,Cq)=>{"use strict";var _7=vp().dot,pg=(Za(),xr(nn)).BADNUM,mg=Cq.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,T,M,E,P,z;for(T=1;TMath.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 Sq={};Ua(Sq,{BENDPX:()=>Nse,MINSELECT:()=>Bse,SELECTDELAY:()=>Ise,SELECTID:()=>Hse});var Nse,Bse,Ise,Hse,Dq=Oa(()=>{"use strict";Nse=1.5,Bse=12,Ise=100,Hse="-select"});var Jq=oe((v7e,$q)=>{"use strict";var Fq=Mq(),Ose=kq(),gd=_t(),Use=da().dashStyle,pd=Nt(),Gse=Wl(),Yse=Pu().makeEventData,wd=i2(),Vse=wd.freeMode,Xse=wd.rectMode,yd=wd.drawMode,M7=wd.openMode,T7=wd.selectMode,Eq=O0(),Lq=(ad(),xr(td)),Nq=eg(),Bq=C0().clearOutline,Iq=B0(),x7=Iq.handleEllipse,jse=Iq.readPaths,Wse=Jm().newShapes,Zse=jb(),$se=b7().activateLastSelection,bg=pr(),Jse=bg.sorterAsc,Hq=gg(),md=Cp(),nl=En().getFromId,Kse=Gm(),Qse=vg().redrawReglTraces,_g=(Dq(),xr(Sq)),Ys=_g.MINSELECT,eue=Hq.filter,k7=Hq.tester,C7=jm(),qq=C7.p2r,rue=C7.axValue,tue=C7.getTransform;function S7(e){return e.subplot!==void 0}function aue(e,r,t,a,n){var i=!S7(a),o=Vse(n),l=Xse(n),s=M7(n),u=yd(n),f=T7(n),c=n==="drawline",d=n==="drawcircle",h=c||d,p=a.gd,m=p._fullLayout,b=f&&m.newselection.mode==="immediate"&&i,y=m._zoomlayer,C=a.element.getBoundingClientRect(),x=a.plotinfo,_=tue(x),A=r-C.left,T=t-C.top;m._calcInverseTransform(p);var M=bg.apply3DTransform(m._invTransform)(A,T);A=M[0],T=M[1];var E=m._invScaleX,P=m._invScaleY,z=A,I=T,X="M"+A+","+T,H=a.xaxes[0],V=a.yaxes[0],N=H._length,Q=V._length,ee=e.altKey&&!(yd(n)&&s),re,ae,ie,ue,xe,De,Ye;Uq(e,p,a),o&&(re=eue([[A,T]],_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?pd.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":Use(ke.line.dash,ke.line.width),"stroke-width":ke.line.width+"px","shape-rendering":"crispEdges"}).call(pd.stroke,W).call(pd.fill,je).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",_).attr("d",X+"Z");var le=y.append("path").attr("class","zoombox-corners").style({fill:pd.background,stroke:pd.defaultLine,"stroke-width":1}).attr("transform",_).attr("d","M0,0Z");if(u&&a.hasText){var de=y.select(".label-temp");de.empty()&&(de=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=V._id;jq(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;md.done(K).then(function(){if(md.clear(K),Ne===2){for(Ee.remove(),xe=0;xe-1&&Oq(Ze,p,a.xaxes,a.yaxes,a.subplot,a,Ee),er==="event"&&xd(p,void 0);Gse.click(p,Ze,x.id)}).catch(bg.error)}},a.doneFn=function(){le.remove(),md.done(K).then(function(){md.clear(K),!b&&ue&&a.selectionDefs&&(ue.subtract=ee,a.selectionDefs.push(ue),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,ie)),(b||u)&&bd(a,b),a.doneFnCompleted&&a.doneFnCompleted(J),f&&xd(p,Ye)}).catch(bg.error)}}function Oq(e,r,t,a,n,i,o){var l=r._hoverdata,s=r._fullLayout,u=s.clickmode,f=u.indexOf("event")>-1,c=[],d,h,p,m,b,y,C,x,_,A;if(sue(l)){Uq(e,r,i),d=xg(r,t,a,n);var T=uue(l,d),M=T.pointNumbers.length>0;if(M?fue(d,T):cue(d)&&(C=Rq(T))){for(o&&o.remove(),A=0;A=0}function lue(e){return e._fullLayout._activeSelectionIndex>=0}function bd(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;oue(n)&&n._fullLayout._deactivateShape(n),lue(n)&&n._fullLayout._deactivateSelection(n);var i=n._fullLayout,o=i._zoomlayer,l=yd(t),s=T7(t);if(l||s){var u=o.selectAll(".select-outline-"+a.id);if(u&&n._fullLayout._outlining){var f;l&&(f=Wse(u,e)),f&&gd.call("_guiRelayout",n,{shapes:f});var c;s&&!S7(e)&&(c=Zse(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,gd.call("_guiRelayout",n,{selections:c}).then(function(){r&&$se(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function Pq(e){return e._id}function xg(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(Pq),o=t.map(Pq),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function fue(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 _d(e,r,t){var a,n;for(a=0;a-1&&r;if(!o&&r){var Ne=zq(e,!0);if(Ne.length){var Ze=Ne[0].xref,er=Ne[0].yref;if(Ze&&er){var Je=Wq(Ne),tr=Zq([nl(e,Ze,"x"),nl(e,er,"y")]);tr(J,Je)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:be&&xd(e,J),d._reselect=!1}if(!o&&d._deselect){var ze=d._deselect;l=ze.xref,s=ze.yref,hue(l,s,f)||jq(e,l,s,a),be&&(J.points.length?xd(e,J):E7(e)),d._deselect=!1}return{eventData:J,selectionTesters:t}}function due(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";Kq.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 Ad={};Ua(Ad,{axisRefDescription:()=>bue});function bue(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 Md=Oa(()=>{"use strict"});var v2=oe((p7e,rP)=>{"use strict";var Qq=L7(),eP=xi(),wg=(Hn(),xr(In)),_ue=ka().templatedArray,h7e=(Md(),xr(Ad));rP.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:eP({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:Qq.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Qq.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:eP({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Ag={};Ua(Ag,{PTS_LINESONLY:()=>xue,eventDataKeys:()=>Tue,maxScreensAway:()=>Mue,minTolerance:()=>wue,toleranceGrowth:()=>Aue});var xue,wue,Aue,Mue,Tue,Mg=Oa(()=>{"use strict";xue=20,wue=.2,Aue=10,Mue=20,Tue=[]});var q7=oe((m7e,tP)=>{"use strict";tP.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var _c=oe((g7e,fP)=>{"use strict";var aP=l6().axisHoverFormat,{hovertemplateAttrs:kue,texttemplateAttrs:Cue,templatefallbackAttrs:nP}=Vf(),iP=Y1(),Sue=xi(),oP=Fs().dash,Due=Fs().pattern,Fue=da(),Eue=(Mg(),xr(Ag)),Td=Dn().extendFlat,Lue=q7();function lP(e){return{valType:"any",dflt:0,editType:"calc"}}function sP(e){return{valType:"any",editType:"calc"}}function uP(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}fP.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:lP("x"),yperiod:lP("y"),xperiod0:sP("x0"),yperiod0:sP("y0"),xperiodalignment:uP("x"),yperiodalignment:uP("y"),xhoverformat:aP("x"),yhoverformat:aP("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:nP({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:kue({},{keys:Eue.eventDataKeys}),hovertemplatefallback:nP(),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({},oP,{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:Lue(!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:Due,marker:Td({symbol:{valType:"enumerated",values:Fue.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({},oP,{arrayOk:!0}),editType:"calc"},iP("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"},iP("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:Sue({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var P7=oe((b7e,dP)=>{"use strict";var cP=v2(),vP=_c().line,que=Fs().dash,Tg=Dn().extendFlat,Pue=Zo().overrideAll,Rue=ka().templatedArray,y7e=(Md(),xr(Ad));dP.exports=Pue(Rue("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:Tg({},cP.xref,{}),yref:Tg({},cP.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:vP.color,width:Tg({},vP.width,{min:1,dflt:1}),dash:Tg({},que,{dflt:"dot"})}}),"arraydraw","from-root")});var gP=oe((_7e,mP)=>{"use strict";var hP=pr(),kg=Ga(),zue=Vl(),Nue=P7(),pP=O0();mP.exports=function(r,t){zue(r,t,{name:"selections",handleItemDefaults:Bue});for(var a=t.selections,n=0;n{"use strict";yP.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 kd=oe((w7e,wP)=>{"use strict";var Iue=_t(),_P=pr(),xP=En();wP.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Iue.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,u=s.xaxis,f=s.yaxis,c=s.cartesian,d=n._has("cartesian"),h=0;h{"use strict";var AP=b7(),Cd=Jq();MP.exports={moduleType:"component",name:"selections",layoutAttributes:P7(),supplyLayoutDefaults:gP(),supplyDrawNewSelectionDefaults:bP(),includeBasePlot:kd()("selections"),draw:AP.draw,drawOne:AP.drawOne,reselect:Cd.reselect,prepSelect:Cd.prepSelect,clearOutline:Cd.clearOutline,clearSelectionsCache:Cd.clearSelectionsCache,selectOnClick:Cd.selectOnClick}});var YP=oe((M7e,GP)=>{"use strict";var H7=Lt(),il=pr(),TP=il.numberFormat,Hue=pb(),Cg=_t(),qP=il.strTranslate,Oue=vi(),z7=Nt(),G0=da(),Uue=Wl(),kP=Ga(),Gue=z0(),Yue=el(),PP=i2(),Sg=PP.selectingOrDrawing,Vue=PP.freeMode,Xue=(ci(),xr(fi)).FROM_TL,jue=Gm(),Wue=vg().redrawReglTraces,Zue=Ln(),N7=En().getFromId,$ue=Ou().prepSelect,Jue=Ou().clearOutline,Kue=Ou().selectOnClick,R7=c7(),O7=(Hn(),xr(In)),CP=O7.MINDRAG,Oi=O7.MINZOOM,SP=!0;function Que(e,r,t,a,n,i,o,l){var s=e._fullLayout._zoomlayer,u=o+l==="nsew",f=(o+l).length===1,c,d,h,p,m,b,y,C,x,_,A,T,M,E,P,z,I,X,H,V,N,Q,ee;t+=r.yaxis._shift;function re(){if(c=r.xaxis,d=r.yaxis,x=c._length,_=d._length,y=c._offset,C=d._offset,h={},h[c._id]=c,p={},p[d._id]=d,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&&Kue(He,cr,m,b,r.id,ue),Mr.indexOf("event")>-1&&Uue.click(cr,He,r.id);else if(Ce===1&&f){var vr=o?d:c,kr=o==="s"||l==="w"?0:1,Er=vr._name+".range["+kr+"]",jr=e0e(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(Oue.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)})}}Yue.init(ue);var Ye,Ee,ke,je,W,le,de,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",le=!1,de="xy",fe=!1,K=NP(s,je,y,C,W),J=BP(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(){de="",ke.r=ke.l,ke.t=ke.b,J.attr("d","M0,0Z")}if(A.isSubplotConstrained)vr>Oi||kr>Oi?(de="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(T.isSubplotConstrained)if(vr>Oi||kr>Oi){de="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(T.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 t0e(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function NP(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",qP(t,a)).attr("d",n+"Z")}function BP(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",qP(r,t)).attr("d","M0,0Z")}function IP(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"),HP(e,r,n,i)}function HP(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 OP(e){SP&&e.data&&e._context.showTips&&(il.notifier(il._(e,"Double-click to zoom back out"),"long",e),SP=!1)}function a0e(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 n0e(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 EP(e,r,t,a,n){for(var i=!1,o={},l={},s,u,f,c,d=(n||{}).xaHash,h=(n||{}).yaHash,p=0;p{"use strict";var i0e=Lt(),Fg=Wl(),o0e=el(),l0e=z0(),$l=YP().makeDragBox,Gn=(Hn(),xr(In)).DRAGGERSIZE;Eg.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){i0e.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=$l(r,o,l._offset,s._offset,l._length,s._length,"ns","ew");u.onmousemove=function(d){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===i&&r._fullLayout._plots[i]&&Fg.hover(r,d,i)},Fg.hover(r,d,i),r._fullLayout._lasthover=u,r._fullLayout._hoversubplot=i},u.onmouseout=function(d){r._dragging||(r._fullLayout._hoversubplot=null,o0e.unhover(r,d))},r._context.showAxisDragHandles&&($l(r,o,l._offset-Gn,s._offset-Gn,Gn,Gn,"n","w"),$l(r,o,l._offset+l._length,s._offset-Gn,Gn,Gn,"n","e"),$l(r,o,l._offset-Gn,s._offset+s._length,Gn,Gn,"s","w"),$l(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),$l(r,o,l._offset+l._length*.1,f,l._length*.8,Gn,"","ew"),$l(r,o,l._offset,f,l._length*.1,Gn,"","w"),$l(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),$l(r,o,c,s._offset+s._length*.1,Gn,s._length*.8,"ns",""),$l(r,o,c,s._offset+s._length*.9,Gn,s._length*.1,"s",""),$l(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";l0e(r._draggers,t)}});var jP=oe((k7e,XP)=>{"use strict";var VP=_t();XP.exports=function(r){for(var t=VP.layoutArrayContainers,a=VP.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var s0e=d0(),G7=cp(),Sd=Cu(),u0e=D5().sorterAsc,Y7=_t();Dd.containerArrayMatch=jP();var f0e=Dd.isAddVal=function(r){return r==="add"||s0e(r)},WP=Dd.isRemoveVal=function(r){return r===null||r==="remove"};Dd.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,d=r._fullLayout;if(a[""]){Object.keys(a).length>1&&Sd.warn("Full array edits are incompatible with other edits",o);var h=a[""][""];if(WP(h))t.set(null);else if(Array.isArray(h))t.set(h);else return Sd.warn("Unrecognized full array edit value",o,h),!0;return f?!1:(l(c,d),s(r),!0)}var p=Object.keys(a).map(Number).sort(u0e),m=t.get(),b=m||[],y=i(d,o).get(),C=[],x=-1,_=b.length,A,T,M,E,P,z,I,X;for(A=0;Ab.length-(I?0:1)){Sd.warn("index out of range",o,M);continue}if(z!==void 0)P.length>1&&Sd.warn("Insertion & removal are incompatible with edits to the same index.",o,M),WP(z)?C.push(M):I?(z==="add"&&(z={}),b.splice(M,0,z),y&&y.splice(M,0,{})):Sd.warn("Unrecognized full object edit value",o,M,z),x===-1&&(x=M);else for(T=0;T=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,d),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 QP=Qt(),eR=_t(),Ei=pr(),Fd=Ln(),rR=En(),Ed=rR.cleanId,c0e=rR.getFromTrace,V7=eR.traceIs,v0e=["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=(Fd.subplotsRegistry.cartesian||{}).attrRegex,n=(Fd.subplotsRegistry.polar||{}).attrRegex,i=(Fd.subplotsRegistry.ternary||{}).attrRegex,o=(Fd.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 d2(e,r,t=!1){var a=e[r],n=r.charAt(0);t&&Array.isArray(a)||a&&a!=="paper"&&(e[r]=Ed(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=KP(r);t;){if(t in e)return!0;t=KP(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(),p0e=Qt(),m0e=U5(),Gr=pr(),Ca=Gr.nestedProperty,W7=Lv(),Ui=Vk(),ll=_t(),Gg=H1(),gt=Ln(),Li=Ga(),g0e=hb(),y0e=Yl(),Pg=da(),b0e=Nt(),_0e=U7().initInteractions,x0e=(ec(),xr(Qf)),w0e=Ou().clearOutline,lR=m0().dfltConfig,qg=ZP(),wn=tR(),ha=vg(),Y0=Zo(),A0e=(Hn(),xr(In)).AX_NAME_PATTERN,j7=0,aR=5;function M0e(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)}uR(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)&&(W0e(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 d=0;d{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 X=e.offsetWidth,H=e.offsetHeight,V=Math.abs(X-P)>1||Math.abs(H-z)>1;P=X,z=H,V&&X&&H&&E()});I.observe(e),e._clearResponsive=()=>I.disconnect()}}}else Gr.clearResponsive(e);let h=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 qd(e){var r=e._fullLayout;r._redrawFromAutoMarginCount?r._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function k0e(e){return Gr.extendFlat(lR,e)}function sR(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Gr.error(t)}}function C0e(e,r){var t=b0e.combine(r,"white");sR(e,t)}function uR(e,r){if(!e._context){e._context=Gr.extendDeep({},lR);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 fR(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 F0e(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 X=E.parts[I],H=E.parts[I-1]+"."+X,V=E.parts.slice(0,I).join("."),N=Ca(e.layout,V).get(),Q=Ca(a,V).get(),ee=E.get();if(P!==void 0){y[M]=P,C[M]=X==="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(bR))T(H),Ca(a,V+"._inputRange").set(null);else if(H.match(_R)){T(H),Ca(a,V+"._inputRange").set(null);var ue=Ca(a,V).get();ue._inputDomain&&(ue._input.domain=ue._inputDomain.slice())}else H.match(P0e)&&Ca(a,V+"._inputDomain").set(null);if(X==="type"){A=N;var xe=Q.type==="linear"&&P==="log",De=Q.type==="log"&&P==="linear";if(xe||De){if(!A||!A.range)x(V+".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(V+".autorange",!0),Ye<=0?Ye=Ee/1e6:Ee<=0&&(Ee=Ye/1e6),x(V+".range[0]",Math.log(Ye)/Math.LN10),x(V+".range[1]",Math.log(Ee)/Math.LN10)):(x(V+".range[0]",Math.pow(10,Ye)),x(V+".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(V+".autorange",!0),x(V+".range",null);Ca(a,V+"._inputRange").set(null)}else if(X.match(A0e)){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),!V&&ke&&P&&(P.range!==void 0||P.autorange!==void 0)&&(T(`${X}.range`),ke._inputRange=null)}var W=qg.containerArrayMatch(M);if(W){f=W.array,c=W.index;var le=W.property,de=re||{editType:"calc"};c!==""&&le===""&&(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,de),u[f]||(u[f]={});var K=u[f][c];K||(K=u[f][c]={}),K[le]=P,delete r[M]}else X==="reverse"?(N.range?N.range.reverse():(x(V+".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)}}(wR(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 N0e(e,r){for(var t=0;t[V,e._ev.listeners(V)]);i=Yt.newPlot(e,r,t,a).then(()=>{for(let[V,N]of H)N.forEach(Q=>e.on(V,Q));return Yt.react(e,r,t,a)})}else{e.data=r||[],wn.cleanData(e.data),e.layout=t||{},wn.cleanLayout(e.layout),I0e(e.data,e.layout,l,s),gt.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,d=e._fullLayout,h=d.datarevision===void 0,p=d.transition,m=U0e(e,s,d,h,p),b=m.newDataRevision,y=O0e(e,l,c,h,p,b);if(wR(e)&&(m.layoutReplot=!0),y.calc||m.calc){e.calcdata=void 0;for(var C=Object.getOwnPropertyNames(d),x=0;x(f||e.emit("plotly_react",{config:a,data:r,layout:t}),e))}function O0e(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(h){var p=Gg.getTraceValObject(u,h);return!u._module.animatable&&p.anim&&(p.anim=!1),p}var c={getValObject:f,flags:l,immutable:a,transition:n,newDataRevision:i,gd:e},d={};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 d(X){if(X.length!==0){for(var H=0;Ha._timeToNext&&p()};X()}var b=0;function y(X){return Array.isArray(n)?b>=n.length?X.transitionOpts=n[b]:X.transitionOpts=n[0]:X.transitionOpts=n,b++,X}var C,x,_=[],A=r==null,T=Array.isArray(r),M=!A&&!T&&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?d(_):(e.emit("plotly_animated"),u())})}function Y0e(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 d=r[a].name,h=(s[d]||c[d]||{}).name,p=r[a].name,m=s[h]||c[h];h&&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 X0e(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 j0e(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 W0e(e){var r=zg.select(e),t=e._fullLayout;if(t._calcInverseTransform=j0e,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(x0e.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=G0e;Yt.addFrames=Y0e;Yt.deleteFrames=V0e;Yt.addTraces=pR;Yt.deleteTraces=mR;Yt.extendTraces=dR;Yt.moveTraces=Z7;Yt.prependTraces=hR;Yt.newPlot=D0e;Yt._doPlot=M0e;Yt.purge=X0e;Yt.react=H0e;Yt.redraw=S0e;Yt.relayout=Ld;Yt.restyle=Ig;Yt.setPlotConfig=k0e;Yt.update=Og;Yt._guiRelayout=$7(Ld);Yt._guiRestyle=$7(Ig);Yt._guiUpdate=$7(Og);Yt._storeDirectGUIEdit=q0e});var xc=oe(sl=>{"use strict";var Z0e=_t();sl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};sl.getRedrawFunc=function(e){return function(){Z0e.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 AR=window.URL||window.webkitURL;sl.createObjectURL=function(e){return AR.createObjectURL(e)};sl.revokeObjectURL=function(e){return AR.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=$0e(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 $0e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var Q7=Lt(),L7e=pr(),J0e=da(),K0e=Nt(),q7e=(ec(),xr(Qf)),K7=/"/g,wc="TOBESTRIPPED",Q0e=new RegExp(`("${wc})|(${wc}")|("${wc})|(${wc}")`,"g"),efe=["&","&","&",""",""",""","'","'","'"],rfe=["<","<","<"],tfe=[">",">",">"];function afe(e){let r=Q7.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return efe.includes(n)?a:rfe.includes(n)?"<":tfe.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function nfe(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}MR.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(K0e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var ife=pr(),ofe=Rp().EventEmitter,Pd=xc();function lfe(e){var r=e.emitter||new ofe,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,d=u*f,h=u*c,p=s.getContext("2d",{willReadFrequently:!0}),m=new i,b,y;l==="svg"||ife.isSafari()?y=Pd.encodeSVG(o):(b=Pd.createBlob(o,"svg"),y=Pd.createObjectURL(b)),s.width=d,s.height=h,m.onload=function(){var C;switch(b=null,Pd.revokeObjectURL(y),l!=="svg"&&p.drawImage(m,0,0,d,h),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,Pd.revokeObjectURL(y),n(C),!e.promise)return r.emit("error",C)},m.src=y});return e.promise?t:r}TR.exports=lfe});var r9=oe((z7e,SR)=>{"use strict";var kR=Qt(),CR=J7(),sfe=Ln(),Vs=pr(),Rd=xc(),ufe=Vg(),ffe=Xg(),cfe=K2().version,e9=(l5(),xr(o5)).default;function vfe(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(T){return!(T in r)||Vs.validate(r[T],e9[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 "+Vs.join2(e9.format.values,", "," or ")+".");var l={};function s(T,M){return Vs.coerce(r,l,e9,T,M)}var u=s("format"),f=s("width"),c=s("height"),d=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 b=Vs.extendFlat({},a);f?b.width=f:r.width===null&&kR(i.width)&&(b.width=i.width),c?b.height=c:r.height===null&&kR(i.height)&&(b.height=i.height);var y=Vs.extendFlat({},n,{_exportedPlot:!0,staticPlot:!0,setBackground:h}),C=Rd.getRedrawFunc(m);function x(){return new Promise(function(T){setTimeout(T,Rd.getDelay(m._fullLayout))})}function _(){return new Promise(function(T,M){var E=ufe(m,u,d),P=m._fullLayout.width,z=m._fullLayout.height;function I(){CR.purge(m),document.body.removeChild(m)}if(u==="full-json"){var X=sfe.graphJson(m,!1,"object",!0,!0);return X.version=cfe,X=JSON.stringify(X),I(),T(p?X:Rd.encodeJSON(X))}if(I(),u==="svg")return T(p?E:Rd.encodeSVG(E));var H=document.createElement("canvas");H.id=Vs.randstr(),ffe({format:u,width:P,height:z,scale:d,canvas:H,svg:E,promise:!0}).then(T).catch(M)})}function A(T){return p?T.replace(Rd.IMAGE_URL_PREFIX,""):T}return new Promise(function(T,M){CR.newPlot(m,t,b,y).then(C).then(x).then(_).then(function(E){T(A(E))}).catch(function(E){M(E)})})}SR.exports=vfe});var ER=oe((N7e,FR)=>{"use strict";var ul=pr(),dfe=Ln(),hfe=H1(),pfe=m0().dfltConfig,Jl=ul.isPlainObject,Mc=Array.isArray,t9=ul.isArrayOrTypedArray;FR.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=hfe.get(),n=[],i={_context:ul.extendFlat({},pfe)},o,l;Mc(r)?(i.data=ul.extendDeep([],r),o=r):(i.data=[],o=[],n.push(Yn("array","data"))),Jl(t)?(i.layout=ul.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(Yn("object","layout"))),dfe.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,T,M;if(d.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,T=f[_][x],M=c[_][x],ul.validate(T,A)?M!==T&&M!==+T&&a.push(Yn("dynamic",n,u.concat(_,x),T,M)):a.push(Yn("value",n,u.concat(_,x),T))}else a.push(Yn("array",n,u.concat(_),f[_]));else for(_=0;_{"use strict";var wfe=pr(),Wg=xc();function Afe(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(wfe.isSafari()){var f=t==="svg"?",":";base64,";return Wg.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}LR.exports=Afe});var a9=oe((I7e,NR)=>{"use strict";var Zg=pr(),PR=vi(),Mfe=r9(),Tfe=qR(),RR=xc(),zR=40;function kfe(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=Mfe(e,r),o=r.filename||e.fn;if(!o){let s=RR.getPlotTitle(e);if(s&&!PR.matchTex(s))o=Zg.slugify(s,zR);else{let u=RR.getPlotSubtitle(e);u&&!PR.matchTex(u)&&(o=Zg.slugify(u,zR))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),Tfe(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}NR.exports=kfe});var UR=oe(n9=>{"use strict";var uo=pr(),fo=uo.isPlainObject,BR=H1(),IR=Ln(),Cfe=Wo(),HR=ka(),OR=m0().dfltConfig;n9.makeTemplate=function(e){e=uo.isPlainObject(e)?e:uo.getGraphDiv(e),e=uo.extendDeep({_context:OR},{data:e.data,layout:e.layout}),IR.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={};zd(h,p,Dfe.bind(null,h));var m=uo.coerce(h,{},Cfe,"type"),b=a.data[m];b||(b=a.data[m]=[]),b.push(p)}),zd(t,a.layout,Sfe.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 d=n.data;if(fo(d)){for(l in a.data)if(s=d[l],Array.isArray(s)){for(f=a.data[l],c=f.length,u=s.length,o=0;oy?o.push({code:"unused",traceType:h,templateCount:b,dataCount:y}):y>b&&o.push({code:"reused",traceType:h,templateCount:b,dataCount:y})}}function C(x,_){for(var A in x)if(A.charAt(0)!=="_"){var T=x[A],M=fl(x,A,_);fo(T)?(Array.isArray(x)&&T._template===!1&&T.templateitemname&&o.push({code:"missing",path:M,templateitemname:T.templateitemname}),C(T,M)):Array.isArray(T)&&Ffe(T)&&C(T,M)}}if(C({data:s,layout:l},""),o.length)return o.map(Efe)};function Ffe(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 Lfe=Mv().getGraphDiv,qfe=ig().eraseActiveShape;za.deleteActiveShape=function(e){return qfe(Lfe(e))};za.toImage=r9();za.validate=ER();za.downloadImage=a9();var GR=UR();za.makeTemplate=GR.makeTemplate;za.validateTemplate=GR.validateTemplate});var XR=oe((U7e,VR)=>{"use strict";var i9=pr(),Pfe=_t();VR.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=Pfe.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 $R=oe((G7e,ZR)=>{"use strict";var jR=pr().dateTick0,Rfe=(Za(),xr(nn)),zfe=Rfe.ONEWEEK;function WR(e,r){return e%zfe===0?jR(r,1):jR(r,0)}ZR.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",WR(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",WR(l,t.ycalendar)),n("yperiodalignment"))}}});var QR=oe((Y7e,KR)=>{"use strict";var JR=["orientation","groupnorm","stackgaps"];KR.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"},d=0;d{"use strict";var ez=Nt(),rz=Ls().hasColorscale,tz=V1(),Nfe=Ti();az.exports=function(r,t,a,n,i,o={}){var l=Nfe.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),rz(r,"marker")&&tz(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=ez.background:u=ez.defaultLine,i("marker.line.color",u),rz(r,"marker.line")&&tz(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((X7e,nz)=>{"use strict";var Bfe=pr().isArrayOrTypedArray,Ife=Ls().hasColorscale,Hfe=V1();nz.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),Ife(r,"line"))Hfe(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(Bfe(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var oz=oe((j7e,iz)=>{"use strict";iz.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var s9=oe((W7e,lz)=>{"use strict";var Ofe=pr();lz.exports=function(e,r,t,a,n){n=n||{},a("textposition"),Ofe.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var u9=oe((Z7e,uz)=>{"use strict";var Kg=Nt(),sz=pr().isArrayOrTypedArray;function Ufe(e){for(var r=Kg.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var fz=pr(),Gfe=_t(),Yfe=_c(),Vfe=(Mg(),xr(Ag)),h2=Ti(),Xfe=XR(),jfe=$R(),Wfe=QR(),Zfe=o9(),$fe=l9(),cz=oz(),Jfe=s9(),Kfe=u9(),Qfe=pr().coercePattern;vz.exports=function(r,t,a,n){function i(h,p){return fz.coerce(r,t,Yfe,h,p)}var o=Xfe(r,t,n,i);if(o||(t.visible=!1),!!t.visible){jfe(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=Wfe(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var ece=ld().getAxisGroup;hz.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=ece(a,l)+o,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,m=p[h];t._offsetIndex=0,(i!=="group"||h)&&(m||(m=p[h]={offsetIndex:Object.keys(p).length}),t._offsetIndex=m.offsetIndex)}});var gz=oe((K7e,mz)=>{"use strict";var rce=pr(),tce=pz(),ace=_c();mz.exports=function(r,t){var a,n,i,o=t.scattermode;function l(d){return rce.coerce(n._input,n,ace,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 bz=oe((Q7e,yz)=>{"use strict";var nce=pr(),ice=Hp();yz.exports=function(e,r){function t(n,i){return nce.coerce(e,r,ice,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var wz=oe((e9e,xz)=>{"use strict";var oce=Qt(),_z=pr(),lce=_z.dateTime2ms,Qg=_z.incrementMonth,sce=(Za(),xr(nn)),uce=sce.ONEAVGMONTH;xz.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(oce(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",d=r[a+"period0"],h=lce(d,u)||0,p=[],m=[],b=[],y=n.length,C=0;Cx;)T=Qg(T,-l,u);for(;T<=x;)T=Qg(T,l,u);A=Qg(T,-l,u)}else{for(_=Math.round((x-h)/o),T=h+_*o;T>x;)T-=o;for(;T<=x;)T+=o;A=T-o}p[C]=f?A:c?T:(A+T)/2,m[C]=A,b[C]=T}return{vals:p,starts:m,ends:b}}});var v9=oe((r9e,Mz)=>{"use strict";var f9=Ls().hasColorscale,c9=$p(),Az=Ti();Mz.exports=function(r,t){Az.hasLines(t)&&f9(t,"line")&&c9(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),Az.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 Nd=oe((t9e,Tz)=>{"use strict";var ln=pr();Tz.exports=function(r,t){for(var a=0;a{"use strict";var kz=pr();Cz.exports=function(r,t){kz.isArrayOrTypedArray(t.selectedpoints)&&kz.tagSelected(r,t)}});var r3=oe((n9e,Pz)=>{"use strict";var Sz=Qt(),h9=pr(),Bd=Ga(),Dz=wz(),d9=(Za(),xr(nn)).BADNUM,p9=Ti(),fce=v9(),cce=Nd(),vce=e3();function dce(e,r){var t=e._fullLayout,a=r._xA=Bd.getFromId(e,r.xaxis||"x","x"),n=r._yA=Bd.getFromId(e,r.yaxis||"y","y"),i=a.makeCalcdata(r,"x"),o=n.makeCalcdata(r,"y"),l=Dz(r,a,"x",i),s=Dz(r,n,"y",o),u=l.vals,f=s.vals,c=r._length,d=new Array(c),h=r.ids,p=m9(r,t,a,n),m=!1,b,y,C,x,_,A;Lz(t,r);var T="x",M="y",E;if(p)h9.pushUnique(p.traceIndices,r.index),b=p.orientation==="v",b?(M="s",E="x"):(T="s",E="y"),_=p.stackgaps==="interpolate";else{var P=Ez(r,c);Fz(e,r,a,n,u,f,P)}var z=!!r.xperiodalignment,I=!!r.yperiodalignment;for(y=0;yy&&d[x].gap;)x--;for(A=d[x].s,C=d.length-1;C>x;C--)d[C].s=A;for(;y{"use strict";Rz.exports=t3;var hce=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;ipce,eventDataKeys:()=>mce});var pce,mce,Bz=Oa(()=>{"use strict";pce=3,mce=["value","label"]});var Gz=oe((o9e,Uz)=>{"use strict";var cl=Qt(),{isArrayOrTypedArray:Gu}=pr(),{BADNUM:p2}=(Za(),xr(nn)),gce=_t(),Id=Ga(),{getAxisGroup:yce}=ld(),a3=zz(),{TEXTPAD:bce}=(Bz(),xr(Nz)),{LINE_SPACING:_ce}=(ci(),xr(fi)),{BR_TAG_ALL:xce}=vi();function wce(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*_ce*t+bce;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 Lce(e,r,t,a){for(var n=m2(a),i=0;i{"use strict";var Yz=r3(),Vz=Gz().setGroupPositions;function Pce(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 zce=da(),Jz=(Za(),xr(nn)),Hd=Jz.BADNUM,Kz=Jz.LOG_CLIP,Wz=Kz+.5,Zz=Kz-.5,n3=pr(),Nce=n3.segmentsIntersect,$z=n3.constrain,A9=(Mg(),xr(Ag));Qz.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,d=t.connectGaps,h=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,T,M,E,P,z,I,X,H,V,N,Q,ee,re,ae,ie,ue;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===Hd){if(o&&(ar=n.c2p(Cr.x,!0)),ar===Hd)return!1;l&&Fr===Hd&&(ar*=Math.abs(n._m*u*(n._m>0?Wz:Zz)/(i._m*s*(i._m>0?Wz:Zz)))),ar*=1e3}if(Fr===Hd){if(l&&(Fr=i.c2p(Cr.y,!0)),Fr===Hd)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)de||nr[1]J)return[$z(nr[0],le,de),$z(nr[1],K,J)]}function dr(nr,Cr){if(nr[0]===Cr[0]&&(nr[0]===le||nr[0]===de)||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&&dr(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&&dr(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,le,de):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?le:de,J]:[Fr>0?de:le,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===le||Cr===de)&&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=T,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]de?de: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(T=0;Tke(I,Nr))break;E=I,re=V[0]*H[0]+V[1]*H[1],re>Q?(Q=re,P=I,X=!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 rN={tonextx:1,tonexty:1,tonext:1};tN.exports=function(r,t,a){var n,i,o,l,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 Kl=Lt(),Bce=_t(),Od=pr(),g2=Od.ensureSingle,iN=Od.identity,cn=da(),y2=Ti(),Ice=eN(),Hce=aN(),i3=gg().tester;oN.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=Hce(r,t,a);if(l=n.selectAll("g.trace").data(c,function(h){return h[0].trace.uid}),l.enter().append("g").attr("class",function(h){return"trace scatter trace"+h[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Oce(r,l,t),f){o&&(s=o());var d=Kl.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){nN(r,p,t,h,c,this,i)})})}else l.each(function(h,p){nN(r,p,t,h,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function Oce(e,r,t){r.each(function(a){var n=g2(Kl.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,iN);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=g2(Kl.select(this),"path","js-fill")})})}function nN(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Uce(e,r,t,a,n);var u=!!o&&o.duration>0;function f(Qe){return u?Qe.transition():Qe}var c=t.xaxis,d=t.yaxis,h=a[0].trace,p=h.line,m=Kl.select(i),b=g2(m,"g","errorbars"),y=g2(m,"g","lines"),C=g2(m,"g","points"),x=g2(m,"g","text");if(Bce.getComponentMethod("errorbars","plot")(e,b,t,o),h.visible!==!0)return;f(m).style("opacity",h.opacity);var _,A,T=h.fill.charAt(h.fill.length-1);T!=="x"&&T!=="y"&&(T="");var M,E;T==="y"?(M=1,E=d.c2p(0,!0)):T==="x"&&(M=0,E=c.c2p(0,!0)),a[0][t.isRangePlot?"nodeRangePlot3":"node3"]=m;var P="",z=[],I=h._prevtrace,X=null,H=null;I&&(P=I._prevRevpath||"",A=I._nextFill,z=I._ownPolygons,X=I._fillsegments,H=I._fillElement);var V,N,Q="",ee="",re,ae,ie,ue,xe,De,Ye=[];h._polygons=[];var Ee=[],ke=[],je=Od.noop;if(_=h._ownFill,y2.hasLines(h)||h.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=Ice(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}),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]}),d=Math.ceil(c.length/f),h=0;n.forEach(function(m,b){var y=m[0].trace;y2.hasMarkers(y)&&y.marker.maxdisplayed>0&&b{"use strict";sN.exports={container:"marker",min:"cmin",max:"cmax"}});var fN=oe((v9e,uN)=>{"use strict";var o3=Ga();uN.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 Ud=oe((d9e,cN)=>{"use strict";var T9=Lt(),b2=da(),Gce=_t();function Yce(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),Gce.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 Vce(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))}cN.exports={style:Yce,stylePoints:k9,styleText:C9,styleOnSelect:Vce}});var S9=oe((h9e,vN)=>{"use strict";var _2=Nt(),Xce=Ti();vN.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)&&Xce.hasLines(r)&&r.line.width?a:r.fillcolor)}});var pN=oe((p9e,hN)=>{"use strict";var l3=pr(),dN=Wl(),jce=_t(),Wce=S9(),D9=Nt(),Zce=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],d=o.hoveron||"",h=o.mode.indexOf("markers")!==-1?3:.5,p=!!o.xperiodalignment,m=!!o.yperiodalignment;if(d.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),ue=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),ue=1-1/ie,xe=Math.abs(s.c2p(ee.y)-f);return xeYe!=J>=Ye&&(le=je[ke-1][0],de=je[ke][0],J-K&&(W=le+(de-le)*(Ye-K)/(J-K),ie=Math.min(ie,W),ue=Math.max(ue,W)));return ie=Math.max(ie,0),ue=Math.min(ue,l._length),{x0:ie,x1:ue,y0:Ye,y1:Ye}}if(d.indexOf("fills")!==-1&&o._fillElement){var V=X(o._fillElement)&&!X(o._fillExclusionElement);if(V){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 yN=oe((m9e,gN)=>{"use strict";var mN=Ti();gN.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,d=l.mode&&!mN.hasMarkers(l)&&!mN.hasText(l);if(d)return[];if(t===!1)for(s=0;s{"use strict";bN.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var MN=oe((y9e,AN)=>{"use strict";var s3=_t().traceIs,F9=X6();AN.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&($ce(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function $ce(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,wN(i,a)){var u=xN(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(wN(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function xN(e){return{v:"x",h:"y"}[e.orientation||"v"]}function wN(e,r){var t=xN(e),a=s3(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var kN=oe((b9e,TN)=>{"use strict";var Kce=ro().isTypedArraySpec;function Qce(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||Kce(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=Qce(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var DN=oe((_9e,SN)=>{"use strict";var CN=Nt(),e1e=Il(),r1e=pr();SN.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(E,P){return r1e.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=CN.mix(i,n.bgColor,n.blend||e1e.lightFraction),c=o("gridcolor",f),d=o("gridwidth"),h=o("griddash"),p=a("showgrid",n.showGrid||!!c||!!d||!!h);if(p||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),n.hasMinor){var m=CN.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),T=o("zerolinewidth"),M=a("zeroline",n.showGrid||!!A||!!T);M||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}});var L9=oe((x9e,RN)=>{"use strict";var FN=Qt(),t1e=_t(),Gd=pr(),a1e=ka(),n1e=Vl(),E9=Yl(),EN=g6(),LN=b6(),i1e=w6(),o1e=A6(),l1e=kN(),s1e=DN(),u1e=hb(),qN=cm(),u3=(Hn(),xr(In)).WEEKDAY_PATTERN,f1e=(Hn(),xr(In)).HOUR_PATTERN;RN.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||"-",d;if(c==="date"){var h=t1e.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=Gd.coerce(r,t,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:d==="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"),qN(t,i),u1e(r,t,a,n),l1e(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(o1e(r,t,a,c,n),!u)return t;a("title.text",y),Gd.coerceFont(a,"title.font",l,{overrideDflt:{size:Gd.bigFont(l.size),color:b}}),EN(r,t,a,c);var C=n.hasMinor;if(C&&(a1e.newContainer(t,"minor"),EN(r,t,a,c,{isMinor:!0})),i1e(r,t,a,c,n),LN(r,t,a,n),C){var x=n.isMinor;n.isMinor=!0,LN(r,t,a,n),n.isMinor=x}s1e(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(n1e(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:c1e}),!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=PN(i[l]),s){o=u3;break}}var u=a("pattern",o);if(u===u3)for(l=0;l<2;l++)s=PN(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(!FN(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 f1e:if(!FN(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 d1e=Qt(),f3=pr();zN.exports=function(r,t,a,n){var i=n.counterAxes||[],o=n.overlayableAxes||[],l=n.letter,s=n.grid,u=n.overlayingDomain,f,c,d,h,p,m;s&&(c=s._domains[l][s._axisMap[t._id]],f=s._anchors[t._id],c&&(d=s[l+"side"].split(" ")[0],h=s.domain[l][d==="right"||d==="top"?1:0])),c=c||[0,1],f=f||(d1e(r.position)?"free":i[0]||"free"),d=d||(l==="x"?"bottom":"left"),h=h||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:d}},"side");if(b==="free"){if(l==="y"){var C=a("autoshift");C&&(h=y==="left"?u[0]:u[1],m=t.automargin?t.automargin:!0,p=y==="left"?-3:3),a("shift",p)}a("position",h)}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),l==="x"?(a("domainpad.left"),a("domainpad.right")):(a("domainpad.top"),a("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var VN=oe((A9e,YN)=>{"use strict";var Tc=pr(),NN=Nt(),h1e=Pu().isUnifiedHover,p1e=Gb(),BN=ka(),m1e=F1(),IN=Yl(),g1e=MN(),HN=L9(),y1e=ld(),ON=q9(),R9=En(),Xs=R9.id2name,UN=R9.name2id,b1e=(Hn(),xr(In)).AX_ID_PATTERN,GN=_t(),c3=GN.traceIs,P9=GN.getComponentMethod;function v3(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}YN.exports=function(r,t,a){var n=t.autotypenumbers,i={},o={},l={},s={},u={},f={},c={},d={},h={},p={},m,b;for(m=0;m{"use strict";var _1e=Lt(),XN=_t(),d3=pr(),Lo=da(),h3=Ga();jN.exports=function(r,t,a,n){var i=r._fullLayout;if(t.length===0){h3.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,T=_._length,M=!!b.xr1,E=!!b.yr1,P=[];if(M){var z=d3.simpleMap(b.xr0,x.r2l),I=d3.simpleMap(b.xr1,x.r2l),X=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/X),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 V=d3.simpleMap(b.yr0,_.r2l),N=d3.simpleMap(b.yr1,_.r2l),Q=V[1]-V[0],ee=N[1]-N[0];P[1]=(V[1]*(1-y)+y*N[1]-V[1])/(V[0]-V[1])*T,P[3]=T*(1-y+y*ee/Q),_.range[0]=x.l2r(V[0]*(1-y)+y*N[0]),_.range[1]=_.l2r(V[1]*(1-y)+y*N[1])}else P[1]=0,P[3]=T;h3.drawOne(r,x,{skipTitle:!0}),h3.drawOne(r,_,{skipTitle:!0}),h3.redrawComponents(r,[x._id,_._id]);var re=M?A/P[2]:1,ae=E?T/P[3]:1,ie=M?P[0]:0,ue=E?P[1]:0,xe=M?P[0]/P[2]*A:0,De=E?P[1]/P[3]*T:0,Ye=x._offset-xe,Ee=_._offset-De;C.clipRect.call(Lo.setTranslate,ie,ue).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(),h=window.cancelAnimationFrame(m)):h=window.requestAnimationFrame(m)}return c=Date.now(),h=window.requestAnimationFrame(m),Promise.resolve()}});var z9=oe(hi=>{"use strict";var m3=Lt(),ZN=_t(),kc=pr(),x1e=Ln(),w1e=da(),$N=Pv().getModuleCalcData,V0=En(),Ql=(Hn(),xr(In)),A1e=(ec(),xr(Qf)),na=kc.ensureSingle;function p3(e,r,t){return kc.ensureSingle(e,r,t,function(a){a.datum(t)})}var Cc=Ql.zindexSeparator;hi.name="cartesian";hi.attr=["xaxis","yaxis"];hi.idRoot=["x","y"];hi.idRegex=Ql.idRegex;hi.attrRegex=Ql.attrRegex;hi.attributes=_N();hi.layoutAttributes=Yl();hi.supplyLayoutDefaults=VN();hi.transitionAxes=WN();hi.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 h=d.id;if(h.indexOf(Cc)!==-1)continue;h+=Cc+(u+1),d=kc.extendFlat({},d,{id:h,plot:n._cartesianlayer.selectAll(".subplot").select("."+h)})}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 d=na(a,"g","layer-subplot");r.shapelayer=na(d,"g","shapelayer"),r.imagelayer=na(d,"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 h=na(a,"g","layer-between");r.shapelayerBetween=na(h,"g","shapelayer"),r.imagelayerBetween=na(h,"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 QN(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=m3.select(this);f.remove(),eB(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();rB.exports={hasLines:g3.hasLines,hasMarkers:g3.hasMarkers,hasText:g3.hasText,isBubble:g3.isBubble,attributes:_c(),layoutAttributes:Hp(),supplyDefaults:dz(),crossTraceDefaults:gz(),supplyLayoutDefaults:bz(),calc:r3().calc,crossTraceCalc:jz(),arraysToCalcdata:Nd(),plot:lN(),colorbar:M9(),formatLabels:fN(),style:Ud().style,styleOnSelect:Ud().styleOnSelect,hoverPoints:pN(),selectPoints:yN(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:z9(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var iB=oe((C9e,nB)=>{"use strict";var T1e=Lt(),k1e=Nt(),aB=L7(),N9=pr(),C1e=N9.strScale,S1e=N9.strRotate,D1e=N9.strTranslate;nB.exports=function(r,t,a){var n=r.node(),i=aB[a.arrowhead||0],o=aB[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,d=o.backoff*s+a.startstandoff,h,p,m,b;if(n.nodeName==="line"){h={x:+r.attr("x1"),y:+r.attr("y1")},p={x:+r.attr("x2"),y:+r.attr("y2")};var y=h.x-p.x,C=h.y-p.y;if(m=Math.atan2(C,y),b=m+Math.PI,c&&d&&c+d>Math.sqrt(y*y+C*C)){V();return}if(c){if(c*c>y*y+C*C){V();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(d){if(d*d>y*y+C*C){V();return}var A=d*Math.cos(m),T=d*Math.sin(m);h.x-=A,h.y-=T,r.attr({x1:h.x,y1:h.y})}}else if(n.nodeName==="path"){var M=n.getTotalLength(),E="";if(M{"use strict";var oB=Lt(),B9=_t(),F1e=Ln(),j0=pr(),I9=j0.strTranslate,Vd=Ga(),Sc=Nt(),Yu=da(),lB=Wl(),H9=vi(),O9=z0(),Yd=el(),E1e=ka().arrayEditor,L1e=iB();fB.exports={draw:q1e,drawOne:sB,drawRaw:uB};function q1e(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*de(.5,r.xanchor)-ze*de(.5,r.yanchor),Ze===Ne){var cr=Vd.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*de(Ue,dr),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)ue.select("svg").attr({x:z+Er-1,y:z+jr}).call(Yu.setClipUrl,X?m:null,e);else{var et=z+jr-De.top,nr=z+Er-De.left;Q.call(H9.positionText,nr,et).call(Yu.setClipUrl,X?m:null,e)}H.select("rect").call(Yu.setRect,z,z,ke,je),I.call(Yu.setRect,E/2,E/2,W-E,le-E),M.call(Yu.setTranslate,Math.round(b.x.text-W/2),Math.round(b.y.text-le/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,hr=b.y.text+Wr,Dt=j0.rotationXYMatrix(y,or,hr),Wt=j0.apply2DTransform(Dt),ba=j0.apply2DTransform2(Dt),_a=+I.attr("width"),Xt=+I.attr("height"),Ht=or-.5*_a,la=Ht+_a,Pt=hr-.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,dn=r.arrowcolor,ja=r.arrowside,Fa=C.append("g").style({opacity:Sc.opacity(dn)}).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(dn));if(L1e(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;Yd.init({element:ma.node(),gd:e,prepFn:function(){var $t=Yu.getTranslate(M);Ea=$t.x,Rt=$t.y,n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(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),h("x",X0(n,$t,"x",l,r)),h("y",X0(i,Na,"y",l,r)),r.axref===r.xref&&h("ax",X0(n,$t,"ax",l,r)),r.ayref===r.yref&&h("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;Yd.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?h("ax",X0(n,Fr,"ax",l,r)):h("ax",r.ax+Fr),r.ayref===r.yref?h("ay",X0(i,Wr,"ay",l.w,r)):h("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=Yd.align(or+Fr/l.w,Be,0,1,r.xanchor)}if(i)Ae=X0(i,Wr,"y",l,r);else{var hr=r._ysize/l.h,Dt=r.y-(r._yshift+r.yshift)/l.h-hr/2;Ae=Yd.align(Dt-Wr/l.h,hr,0,1,r.yanchor)}h("x",Zr),h("y",Ae),(!n||!i)&&(Br=Yd.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",T(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),h("text",ae),n&&n.autorange&&d(n._name+".autorange",!0),i&&i.autorange&&d(i._name+".autorange",!0),B9.call("_guiRelayout",e,p())}):Q.call(ee)}});var mB=oe((D9e,pB)=>{"use strict";var cB=pr(),P1e=_t(),vB=ka().arrayEditor;pB.exports={hasClickToShow:R1e,onClick:z1e};function R1e(e,r){var t=hB(e,r);return t.on.length>0||t.explicitOff.length>0}function z1e(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();gB.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"),d,h;c.indexOf("end")!==-1&&(d=n("arrowhead"),h=n("arrowsize")),c.indexOf("start")!==-1&&(n("startarrowhead",d),n("startarrowsize",h)),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 bB=oe((E9e,yB)=>{"use strict";var Y9=pr(),Dc=Ga(),N1e=Vl(),B1e=G9(),I1e=v2();yB.exports=function(r,t){N1e(r,t,{name:"annotations",handleItemDefaults:H1e})};function H1e(e,r,t){function a(x,_){return Y9.coerce(e,r,I1e,x,_)}var n=a("visible"),i=a("clicktoshow");if(n||i){B1e(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],d=Dc.coerceRef(e,r,u,c,"","paper");if(d!=="paper"){var h=Dc.getFromId(u,d);h._annIndices.push(r._index)}if(Dc.coercePosition(r,u,a,d,c,.5),o){var p="a"+c,m=Dc.coerceRef(e,r,u,p,"pixel",["pixel","paper"]);m!=="pixel"&&m!==d&&(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 wB=oe((L9e,xB)=>{"use strict";var V9=pr(),Fc=Ga(),O1e=y3().draw;xB.exports=function(r){var t=r._fullLayout,a=V9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return V9.syncOrAsync([O1e,U1e],r)};function U1e(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"&&_B(t,a),o==="range"&&_B(t,n)})}function _B(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,d=c+f,h=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:d,ppadminus:h}),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,d,m),ppadminus:Math.max(u,h,b)});e._extremes[t]=y}});var MB=oe((q9e,AB)=>{"use strict";var G1e=Qt(),Y1e=qh();AB.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(h){var p=u[h],m=null;i?m=Y1e(p,t.range):m=Math.pow(10,p),G1e(m)||(m=null),n(f+h,m)}for(var d=0;d{"use strict";var X9=y3(),TB=mB();kB.exports={moduleType:"component",name:"annotations",layoutAttributes:v2(),supplyLayoutDefaults:bB(),includeBasePlot:kd()("annotations"),calcAutorange:wB(),draw:X9.draw,drawOne:X9.drawOne,drawRaw:X9.drawRaw,hasClickToShow:TB.hasClickToShow,onClick:TB.onClick,convertCoords:MB()}});var b3=oe((R9e,SB)=>{"use strict";var Sa=v2(),V1e=Zo().overrideAll,X1e=ka().templatedArray;SB.exports=V1e(X1e("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 FB=oe((z9e,DB)=>{"use strict";var j9=pr(),j1e=Ga(),W1e=Vl(),Z1e=G9(),$1e=b3();DB.exports=function(r,t,a){W1e(r,t,{name:"annotations",handleItemDefaults:J1e,fullLayout:a.fullLayout})};function J1e(e,r,t,a){function n(l,s){return j9.coerce(e,r,$1e,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],j1e.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(Z1e(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 PB=oe((N9e,qB)=>{"use strict";var EB=pr(),LB=Ga();qB.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 Q1e(e,r){var t=W9(e.projection,W9(e.view,W9(e.model,[r[0],r[1],r[2],1])));return t}RB.exports=Q1e});var BB=oe((I9e,NB)=>{"use strict";var e2e=y3().drawRaw,r2e=zB(),t2e=["x","y","z"];NB.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=r2e(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),e2e(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var OB=oe((H9e,HB)=>{"use strict";var a2e=_t(),IB=pr();HB.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:b3()}}},layoutAttributes:b3(),handleDefaults:FB(),includeBasePlot:n2e,convert:PB(),draw:BB()};function n2e(e,r){var t=a2e.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var O9e=(Hn(),xr(In)),UB=xi(),GB=_c().line,i2e=Fs().dash,es=Dn().extendFlat,o2e=ka().templatedArray,U9e=(Md(),xr(Ad)),w2=Wo(),YB=v2(),{shapeTexttemplateAttrs:l2e,templatefallbackAttrs:s2e}=Vf(),u2e=pp();VB.exports=o2e("shape",{visible:es({},w2.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:es({},w2.legend,{editType:"calc+arraydraw"}),legendgroup:es({},w2.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:es({},w2.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:UB({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:es({},w2.legendrank,{editType:"calc+arraydraw"}),legendwidth:es({},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:es({},YB.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:es({},YB.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:es({},GB.color,{editType:"arraydraw"}),width:es({},GB.width,{editType:"calc+arraydraw"}),dash:es({},i2e,{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:l2e({},{keys:Object.keys(u2e)}),texttemplatefallback:s2e({editType:"arraydraw"}),font:UB({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 jB=oe((Y9e,XB)=>{"use strict";var A2=pr(),qo=Ga(),f2e=Vl(),c2e=Z9(),Xd=O0();XB.exports=function(r,t){f2e(r,t,{name:"shapes",handleItemDefaults:d2e})};function v2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function d2e(e,r,t){function a(x,_){return A2.coerce(e,r,c2e,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"),d=a("ysizemode");let h=[.25,.75],p=[0,10];["x","y"].forEach(x=>{var _=x+"anchor",A=x==="x"?c:d,T={_fullLayout:t},M,E,P,z;let I=x+"ref",X=e[I];if(Array.isArray(X)&&X.length>0){let H=Xd.countDefiningCoords(s,o,x);z=qo.coerceRefArray(e,r,T,x,void 0,"paper",H),r["_"+x+"refArray"]=!0}else z=qo.coerceRef(e,r,T,x,void 0,"paper");if(Array.isArray(z))z.forEach(function(H){qo.getRefType(H)==="range"&&(M=qo.getFromId(T,H),M&&M._shapeIndices.indexOf(r._index)===-1&&M._shapeIndices.push(r._index))}),u&&[0,1].forEach(function(H){let V=z[H];qo.getRefType(V)==="range"?(M=qo.getFromId(T,V),E=Xd.shapePositionToRange(M),P=Xd.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,T,a,V,Q,h[H]),r[Q]=P(r[Q]),e[Q]=ee,H===0&&A==="pixel"){let re=e[_];e[_]=E(e[_],!0),qo.coercePosition(r,T,a,V,_,.25),r[_]=P(r[_]),e[_]=re}});else{if(qo.getRefType(z)==="range"?(M=qo.getFromId(T,z),M._shapeIndices.push(r._index),P=Xd.rangeToShapePosition(M),E=Xd.shapePositionToRange(M),u&&(M.type==="category"||M.type==="multicategory")&&(a(x+"0shift"),a(x+"1shift"))):E=P=A2.identity,u){let V=x+"0",N=x+"1",Q=e[V],ee=e[N];e[V]=E(e[V],!0),e[N]=E(e[N],!0),A==="pixel"?(a(V,p[0]),a(N,p[1])):(qo.coercePosition(r,T,a,z,V,h[0]),qo.coercePosition(r,T,a,z,N,h[1])),r[V]=P(r[V]),r[N]=P(r[N]),e[V]=Q,e[N]=ee}if(A==="pixel"){let V=e[_];e[_]=E(e[_],!0),qo.coercePosition(r,T,a,z,_,.25),r[_]=P(r[_]),e[_]=V}}}),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",v2e(m,C)),a("label.padding"),A2.coerceFont(a,"label.font",t.font)}}});var $B=oe((V9e,ZB)=>{"use strict";var h2e=Nt(),WB=pr();function p2e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}ZB.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"),WB.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",h2e.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",p2e(o,u)),a("newshape.label.padding"),WB.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var aI=oe((X9e,tI)=>{"use strict";var $9=pr(),vl=Ga(),js=(ad(),xr(td)),J9=O0();tI.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,d,KB(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=vl.getFromId(r,i.xref),l=eI(o,i,js.paramIsX),l&&(i._extremes[o._id]=vl.findExtremes(o,l,KB(i))));if(u==="array"){let f=JB(r,i,"y");Object.entries(f).forEach(([c,d])=>{o=vl.getFromId(r,c),i._extremes[o._id]=vl.findExtremes(o,d,QB(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=vl.getFromId(r,i.yref),l=eI(o,i,js.paramIsY),l&&(i._extremes[o._id]=vl.findExtremes(o,l,QB(i))))}};function JB(e,r,t){let a=r[t+"ref"],n=t==="x"?js.paramIsX:js.paramIsY;function i(c,d){c==="paper"||vl.getRefType(c)==="domain"||(o[c]||(o[c]=[]),o[c].push(d))}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 d=vl.getFromId(e,c);if(d){var f=d.type==="category"||d.type==="multicategory"?d.r2c:d.d2c;d.type==="date"&&(f=J9.decodeDate(f)),u[d._id]=o[c].map(f)}}return u}function KB(e){return rI(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function QB(e){return rI(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function rI(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,d=u>0?u+o:o;return{ppad:o,ppadplus:l?c:d,ppadminus:l?d:c}}else return{ppad:o}}function eI(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,d=-1/0,h=r.path.match(js.segmentRE),p,m,b,y,C;for(e.type==="date"&&(u=J9.decodeDate(u)),p=0;pd&&(d=C)));if(d>=c)return[c,d]}}});var oI=oe((j9e,iI)=>{"use strict";var nI=ig();iI.exports={moduleType:"component",name:"shapes",layoutAttributes:Z9(),supplyLayoutDefaults:jB(),supplyDrawNewShapeDefaults:$B(),includeBasePlot:kd()("shapes"),calcAutorange:aI(),draw:nI.draw,drawOne:nI.drawOne}});var K9=oe((Z9e,sI)=>{"use strict";var lI=(Hn(),xr(In)),m2e=ka().templatedArray,W9e=(Md(),xr(Ad));sI.exports=m2e("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",lI.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",lI.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var fI=oe(($9e,uI)=>{"use strict";var g2e=pr(),Q9=Ga(),y2e=Vl(),b2e=K9(),_2e="images";uI.exports=function(r,t){var a={name:_2e,handleItemDefaults:x2e};y2e(r,t,a)};function x2e(e,r,t){function a(d,h){return g2e.coerce(e,r,b2e,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 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,dI)=>{"use strict";var cI=Lt(),w2e=da(),M2=Ga(),vI=En(),A2e=(ec(),xr(Qf));dI.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var pI=Qt(),M2e=qh();mI.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";yI.exports={moduleType:"component",name:"images",layoutAttributes:K9(),supplyLayoutDefaults:fI(),includeBasePlot:kd()("images"),draw:hI(),convertCoords:gI()}});var _3={};Ua(_3,{activeColor:()=>Z2e,arrowOffsetX:()=>X2e,arrowPadX:()=>O2e,arrowSymbol:()=>J2e,autoMarginIdRoot:()=>z2e,blankHeaderOpts:()=>N2e,buttonClassName:()=>L2e,containerClassName:()=>k2e,dropdownButtonClassName:()=>E2e,dropdownButtonGroupClassName:()=>F2e,gapButton:()=>W2e,gapButtonHeader:()=>j2e,headerArrowClassName:()=>D2e,headerClassName:()=>S2e,headerGroupClassName:()=>C2e,hoverColor:()=>$2e,itemRectClassName:()=>q2e,itemTextClassName:()=>P2e,menuIndexAttrName:()=>R2e,minHeight:()=>I2e,minWidth:()=>B2e,name:()=>T2e,rx:()=>U2e,ry:()=>G2e,textOffsetX:()=>Y2e,textOffsetY:()=>V2e,textPadX:()=>H2e});var T2e,k2e,C2e,S2e,D2e,F2e,E2e,L2e,q2e,P2e,R2e,z2e,N2e,B2e,I2e,H2e,O2e,U2e,G2e,Y2e,V2e,X2e,j2e,W2e,Z2e,$2e,J2e,x3=Oa(()=>{"use strict";T2e="updatemenus",k2e="updatemenu-container",C2e="updatemenu-header-group",S2e="updatemenu-header",D2e="updatemenu-header-arrow",F2e="updatemenu-dropdown-button-group",E2e="updatemenu-dropdown-button",L2e="updatemenu-button",q2e="updatemenu-item-rect",P2e="updatemenu-item-text",R2e="updatemenu-active-index",z2e="updatemenu-",N2e={label:" "},B2e=30,I2e=30,H2e=24,O2e=16,U2e=2,G2e=2,Y2e=12,V2e=3,X2e=4,j2e=5,W2e=2,Z2e="#F4FAFF",$2e="#F4FAFF",J2e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var e8=oe((e8e,xI)=>{"use strict";var K2e=xi(),Q2e=Il(),eve=Dn().extendFlat,rve=Zo().overrideAll,tve=mp(),_I=ka().templatedArray,ave=_I("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}});xI.exports=rve(_I("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:ave,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:eve(tve({editType:"arraydraw"}),{}),font:K2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Q2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var TI=oe((r8e,MI)=>{"use strict";var w3=pr(),wI=Vl(),AI=e8(),nve=(x3(),xr(_3)),ive=nve.name,ove=AI.buttons;MI.exports=function(r,t){var a={name:ive,handleItemDefaults:lve};wI(r,t,a)};function lve(e,r,t){function a(o,l){return w3.coerce(e,r,AI,o,l)}var n=wI(e,r,{name:"buttons",handleItemDefaults:sve}),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 sve(e,r){function t(n,i){return w3.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 SI=oe((t8e,CI)=>{"use strict";CI.exports=Ka;var rs=Lt(),kI=Nt(),T2=da(),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,d=c==="down",h=c==="left",p=c==="right",m=c==="up",b=s,y=f,C,x,_,A;!d&&!h&&!p&&!m&&(this.position.direction="down",d=!0);var T=d||m;T?(C=l,x=C+b,d?(_=u,A=Math.min(_+y,o),y=A-_):(A=u+y,_=Math.max(A-y,0),y=A-_)):(_=u,A=_+y,h?(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 X=this.container.selectAll("rect.scrollbar-horizontal").data(M?[0]:[]);X.exit().on(".drag",null).remove(),X.enter().append("rect").classed("scrollbar-horizontal",!0).call(kI.fill,Ka.barColor),M?(this.hbar=X.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,V=Ka.barWidth+2*Ka.barPad,N=Ka.barLength+2*Ka.barPad,Q=l+s,ee=u;Q+V>i&&(Q=i-V);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(kI.fill,Ka.barColor),H?(this.vbar=re.attr({rx:Ka.barRadius,ry:Ka.barRadius,x:Q,y:ee,width:V,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,ue=H?x+V+.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(ue)-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=rs.behavior.drag().on("dragstart",function(){rs.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=rs.behavior.drag().on("dragstart",function(){rs.event.sourceEvent.preventDefault(),rs.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-=rs.event.dx),this.vbar&&(t-=rs.event.dy),this.setTranslate(r,t)};Ka.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=rs.event.deltaY),this.vbar&&(t+=rs.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(rs.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(rs.event.y,s,u),c=(f-s)/(u-s),d=this.position.h-this._box.h;t=c*d}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 BI=oe((a8e,NI)=>{"use strict";var k2=Lt(),jd=Ln(),Wd=Nt(),C2=da(),Po=pr(),M3=vi(),uve=ka().arrayEditor,FI=(ci(),xr(fi)).LINE_SPACING,mt=(x3(),xr(_3)),fve=SI();NI.exports=function(r){var t=r._fullLayout,a=Po.filterVisible(t[mt.name]);function n(d){jd.autoMargin(r,RI(d))}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,cve);o.enter().append("g").classed(mt.headerGroupClassName,!0);for(var l=Po.ensureSingle(i,"g",mt.dropdownButtonGroupClassName,function(d){d.style("pointer-events","all")}),s=0;s{"use strict";var yve=(x3(),xr(_3));II.exports={moduleType:"component",name:yve.name,layoutAttributes:e8(),supplyLayoutDefaults:TI(),draw:BI()}});var $d={};Ua($d,{arrowOffsetX:()=>Bve,autoMarginIdRoot:()=>Pve,containerClassName:()=>_ve,currentValueClass:()=>Eve,currentValueInset:()=>cde,currentValuePadding:()=>fde,gripBgActiveColor:()=>ede,gripBgColor:()=>Qve,gripBorder:()=>$ve,gripBorderColor:()=>Kve,gripBorderWidth:()=>Jve,gripHeight:()=>Zve,gripRadius:()=>jve,gripRectClass:()=>Tve,gripWidth:()=>Wve,groupClassName:()=>xve,inputAreaClass:()=>wve,inputProxyClass:()=>Cve,labelClass:()=>Fve,labelGroupClass:()=>Dve,labelOffset:()=>tde,labelPadding:()=>rde,labelsClass:()=>Sve,menuIndexAttrName:()=>qve,minHeight:()=>zve,minWidth:()=>Rve,minorTickColor:()=>sde,minorTickLength:()=>ude,minorTickOffset:()=>lde,name:()=>bve,railBgColor:()=>Yve,railBorder:()=>Ove,railBorderColor:()=>Gve,railBorderWidth:()=>Uve,railHeight:()=>Lve,railInset:()=>Vve,railRadius:()=>Ive,railRectClass:()=>Ave,railTouchRectClass:()=>Mve,railWidth:()=>Hve,stepInset:()=>Xve,textPadX:()=>Nve,tickColor:()=>nde,tickLength:()=>ode,tickOffset:()=>ide,tickRectClass:()=>kve,tickWidth:()=>ade});var 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,ede,rde,tde,ade,nde,ide,ode,lde,sde,ude,fde,cde,Jd=Oa(()=>{"use strict";bve="sliders",_ve="slider-container",xve="slider-group",wve="slider-input-area",Ave="slider-rail-rect",Mve="slider-rail-touch-rect",Tve="slider-grip-rect",kve="slider-tick-rect",Cve="slider-input-proxy",Sve="slider-labels",Dve="slider-label-group",Fve="slider-label",Eve="slider-current-value",Lve=5,qve="slider-active-index",Pve="slider-",Rve=30,zve=30,Nve=40,Bve=4,Ive=2,Hve=5,Ove=4,Uve=1,Gve="#bec8d9",Yve="#f8fafc",Vve=8,Xve=10,jve=10,Wve=20,Zve=20,$ve=20,Jve=1,Kve="#bec8d9",Qve="#f6f8fa",ede="#dbdde0",rde=8,tde=0,ade=1,nde="#333",ide=25,ode=7,lde=25,sde="#333",ude=4,fde=8,cde=0});var n8=oe((i8e,GI)=>{"use strict";var OI=xi(),vde=mp(),dde=Dn().extendDeepAll,hde=Zo().overrideAll,pde=Tv(),UI=ka().templatedArray,Ec=(Jd(),xr($d)),mde=UI("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}});GI.exports=hde(UI("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:mde,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(vde({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:pde.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:OI({})},font:OI({}),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 jI=oe((o8e,XI)=>{"use strict";var S2=pr(),YI=Vl(),VI=n8(),gde=(Jd(),xr($d)),yde=gde.name,bde=VI.steps;XI.exports=function(r,t){YI(r,t,{name:yde,handleItemDefaults:_de})};function _de(e,r,t){function a(c,d){return S2.coerce(e,r,VI,c,d)}for(var n=YI(e,r,{name:"steps",handleItemDefaults:xde}),i=0,o=0;o{"use strict";var ts=Lt(),T3=Ln(),W0=Nt(),as=da(),Ro=pr(),wde=Ro.strTranslate,Kd=vi(),Ade=ka().arrayEditor,St=(Jd(),xr($d)),l8=(ci(),xr(fi)),$I=l8.LINE_SPACING,i8=l8.FROM_TL,o8=l8.FROM_BR;tH.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=Mde(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,JI(f))}if(i.exit().each(function(){ts.select(this).selectAll("g."+St.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+St.groupClassName).data(n,Tde);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",wde(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 ZI(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 Lde(e,r,t){var a=t._dims,n=Ro.ensureSingle(e,"rect",St.railTouchRectClass,function(i){i.call(eH,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),as.setTranslate(n,0,a.currentValueTotalHeight)}function qde(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"),as.setTranslate(n,St.railInset,(t.inputAreaWidth-St.railWidth)*.5+t.currentValueTotalHeight)}});var iH=oe((s8e,nH)=>{"use strict";var Pde=(Jd(),xr($d));nH.exports={moduleType:"component",name:Pde.name,layoutAttributes:n8(),supplyLayoutDefaults:jI(),draw:aH()}});var C3=oe((u8e,lH)=>{"use strict";var oH=Il();lH.exports={bgcolor:{valType:"color",dflt:oH.background,editType:"plot"},bordercolor:{valType:"color",dflt:oH.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((f8e,sH)=>{"use strict";sH.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:()=>Nde,containerClassName:()=>zde,extraPad:()=>ohe,grabAreaCursor:()=>rhe,grabAreaFill:()=>ehe,grabAreaMaxClassName:()=>Xde,grabAreaMinClassName:()=>Gde,grabAreaWidth:()=>the,grabberMaxClassName:()=>Vde,grabberMinClassName:()=>Ude,handleMaxClassName:()=>jde,handleMinClassName:()=>Yde,handleRadius:()=>nhe,handleStrokeWidth:()=>ihe,handleWidth:()=>ahe,maskColor:()=>$de,maskMaxClassName:()=>Hde,maskMaxOppAxisClassName:()=>Zde,maskMinClassName:()=>Ide,maskMinOppAxisClassName:()=>Wde,maskOppAxisColor:()=>Jde,name:()=>Rde,rangePlotClassName:()=>Bde,slideBoxClassName:()=>Ode,slideBoxCursor:()=>Qde,slideBoxFill:()=>Kde});var Rde,zde,Nde,Bde,Ide,Hde,Ode,Ude,Gde,Yde,Vde,Xde,jde,Wde,Zde,$de,Jde,Kde,Qde,ehe,rhe,the,ahe,nhe,ihe,ohe,D3=Oa(()=>{"use strict";Rde="rangeslider",zde="rangeslider-container",Nde="rangeslider-bg",Bde="rangeslider-rangeplot",Ide="rangeslider-mask-min",Hde="rangeslider-mask-max",Ode="rangeslider-slidebox",Ude="rangeslider-grabber-min",Gde="rangeslider-grabarea-min",Yde="rangeslider-handle-min",Vde="rangeslider-grabber-max",Xde="rangeslider-grabarea-max",jde="rangeslider-handle-max",Wde="rangeslider-mask-min-opp-axis",Zde="rangeslider-mask-max-opp-axis",$de="rgba(0,0,0,0.4)",Jde="rgba(0,0,0,0.2)",Kde="transparent",Qde="ew-resize",ehe="transparent",rhe="col-resize",the=10,ahe=4,nhe=1,ihe=1,ohe=15});var cH=oe(E3=>{"use strict";var lhe=En(),she=vi(),uH=(D3(),xr(S3)),uhe=(ci(),xr(fi)).LINE_SPACING,F3=uH.name;function fH(e){var r=e&&e[F3];return r&&r.visible}E3.isVisible=fH;E3.makeData=function(e){for(var r=lhe.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var L3=pr(),vH=ka(),dH=En(),fhe=C3(),che=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=vH.newContainer(i,"rangeslider");function s(A,T){return L3.coerce(o,l,fhe,A,T)}var u,f;function c(A,T){return L3.coerce(u,f,che,A,T)}var d=s("visible");if(d){s("bgcolor",t.plot_bgcolor),s("bordercolor"),s("borderwidth"),s("thickness"),s("autorange",!i.isValidRange(o.range)),s("range");var h=t._subplots;if(h)for(var p=h.cartesian.filter(function(A){return A.slice(0,Math.max(0,A.indexOf("y")))===dH.name2id(a)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),m=L3.simpleMap(p,dH.id2name),b=0;b{"use strict";var vhe=En().list,dhe=P0().getAutoRange,hhe=(D3(),xr(S3));mH.exports=function(r){for(var t=vhe(r,"x",!0),a=0;a{"use strict";var q3=Lt(),phe=_t(),mhe=Ln(),vn=pr(),P3=vn.strTranslate,bH=da(),Z0=Nt(),ghe=Ov(),yhe=z9(),f8=En(),bhe=el(),_he=z0(),It=(D3(),xr(S3));_H.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=ee.max)N=z[Q+1];else if(V=ee.pmax)N=z[Q+1];else if(V0?e.touches[0].clientX:0}function xhe(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=yH(s),c=f-e.node().getBoundingClientRect().left,d=a.d2p(t._rl[0]),h=a.d2p(t._rl[1]),p=bhe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",b),p.addEventListener("mousemove",m),p.addEventListener("mouseup",b);function m(y){var C=yH(y),x=+C-f,_,A,T;switch(u){case n:if(T="ew-resize",d+x>t._length||h+x<0)return;_=d+x,A=h+x;break;case i:if(T="col-resize",d+x>t._length)return;_=d+x,A=h;break;case o:if(T="col-resize",h+x<0)return;_=d,A=h+x;break;default:T="ew-resize",_=c,A=c+x;break}if(A<_){var M=A;A=_,_=M}a._pixelMin=_,a._pixelMax=A,_he(q3.select(p),T),whe(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 whe(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(){phe.call("_guiRelayout",r,t._name+".range",[i,o])})}function Ahe(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 d=a._height-s(a.d2pOppAxis(n._rl[1])),h=a._height-s(a.d2pOppAxis(n._rl[0]));e.select("rect."+It.maskMinOppAxisClassName).attr("x",f).attr("height",d).attr("width",c-f),e.select("rect."+It.maskMaxOppAxisClassName).attr("x",f).attr("y",h).attr("height",a._height-h).attr("width",c-f),e.select("rect."+It.slideBoxClassName).attr("y",d).attr("height",h-d)}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 Mhe(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=bH.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 The(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 khe(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(bH.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"),d=c._name,h=a[d],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[d]={type:c.type,domain:[0,1],range:h.rangemode!=="match"?h.range.slice():c.range.slice(),calendar:c.calendar},c.rangebreaks&&(p.layout[d].rangebreaks=c.rangebreaks),mhe.supplyDefaults(p);var m=p._fullLayout.xaxis,b=p._fullLayout[d];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),yhe.rangePlot(r,y,Che(n,l))})}function Che(e,r){for(var t=[],a=0;a{"use strict";var Ehe=pr(),Lhe=C3(),qhe=u8(),c8=cH();wH.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:Ehe.extendFlat({},Lhe,{yaxis:qhe})}}},layoutAttributes:C3(),handleDefaults:pH(),calcAutorange:gH(),draw:xH(),isVisible:c8.isVisible,makeData:c8.makeData,autoMarginOpts:c8.autoMarginOpts}});var R3=oe((m8e,TH)=>{"use strict";var Phe=xi(),MH=Il(),Rhe=ka().templatedArray,zhe=Rhe("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"});TH.exports={visible:{valType:"boolean",editType:"plot"},buttons:zhe,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:Phe({editType:"plot"}),bgcolor:{valType:"color",dflt:MH.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:MH.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var v8={};Ua(v8,{darkAmount:()=>Uhe,lightAmount:()=>Ohe,minButtonWidth:()=>Bhe,rx:()=>Ihe,ry:()=>Hhe,yPad:()=>Nhe});var Nhe,Bhe,Ihe,Hhe,Ohe,Uhe,d8=Oa(()=>{"use strict";Nhe=.02,Bhe=30,Ihe=3,Hhe=3,Ohe=25,Uhe=10});var SH=oe((g8e,CH)=>{"use strict";var z3=pr(),Ghe=Nt(),Yhe=ka(),Vhe=Vl(),kH=R3(),h8=(d8(),xr(v8));CH.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=Yhe.newContainer(t,"rangeselector");function s(h,p){return z3.coerce(o,l,kH,h,p)}var u=Vhe(o,l,{name:"buttons",handleItemDefaults:Xhe,calendar:i}),f=s("visible",u.length>0);if(f){var c=jhe(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 d=s("bgcolor");s("activecolor",Ghe.contrast(d,h8.lightAmount,h8.darkAmount)),s("bordercolor"),s("borderwidth")}};function Xhe(e,r,t,a){var n=a.calendar;function i(s,u){return z3.coerce(e,r,kH.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 jhe(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var Whe=Dy(),Zhe=pr().titleCase;DH.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=$he(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function $he(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=Whe["utc"+Zhe(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 BH=oe((b8e,NH)=>{"use strict";var B3=Lt(),Jhe=_t(),Khe=Ln(),EH=Nt(),zH=da(),Vu=pr(),LH=Vu.strTranslate,N3=vi(),Qhe=En(),g8=(ci(),xr(fi)),qH=g8.LINE_SPACING,PH=g8.FROM_TL,RH=g8.FROM_BR,m8=(d8(),xr(v8)),epe=FH();NH.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(rpe(r),tpe);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=epe(o,u);u._isActive=ape(o,u,c),f.call(p8,l,u),f.call(ipe,l,u,r),f.on("click",function(){r._dragged||Jhe.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)})}),lpe(r,s,l,o._name,i)})};function rpe(e){for(var r=Qhe.list(e,"x",!0),t=[],a=0;a{"use strict";IH.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:R3()}}},layoutAttributes:R3(),handleDefaults:SH(),draw:BH()}});var I3=oe(y8=>{"use strict";var OH=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:OH({},t,{}),y:OH({},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 spe=pr(),upe=(C1(),xr(Av)).counter,fpe=I3().attributes,UH=(Hn(),xr(In)).idRegex,cpe=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:[upe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[UH.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[UH.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:fpe({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 vpe(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=cpe.newContainer(r,"grid");function d(T,M){return spe.coerce(t,c,b8,T,M)}var h=d("rows",u),p=d("columns",f);if(!(h*p>1)){delete r.grid;return}if(!i&&!o&&!l){var m=d("pattern")==="independent";m&&(i=!0)}c._hasSubplotGrid=i;var b=d("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:GH("x",d,C,_,p),y:GH("y",d,x,A,h,y)}}function GH(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),d=0;d{"use strict";jH.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 $H=oe((M8e,ZH)=>{"use strict";var WH=Qt(),hpe=_t(),ppe=pr(),mpe=ka(),gpe=_8();ZH.exports=function(e,r,t,a){var n="error_"+a.axis,i=mpe.newContainer(r,n),o=e[n]||{};function l(p,m){return ppe.coerce(o,i,gpe,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 d="copy_"+a.inherit+"style";if(a.inherit){var h=r["error_"+a.inherit];(h||{}).visible&&l(d,!(o.color||WH(o.thickness)||WH(o.width)))}(!a.inherit||!i[d])&&(l("color",t),l("thickness"),l("width",hpe.traceIs(r,"gl3d")?0:4))}}});var x8=oe((T8e,KH)=>{"use strict";KH.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 o=JH(t,r.value),l=JH(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 JH(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 rO=oe((k8e,eO)=>{"use strict";var w8=Qt(),ype=_t(),A8=Ga(),bpe=pr(),_pe=x8();eO.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var tO=Lt(),$0=Qt(),xpe=da(),wpe=Ti();aO.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,d=c.error_x||{},h=c.error_y||{},p;c.ids&&(p=function(C){return C.id});var m=wpe.hasMarkers(c)&&c.marker.maxdisplayed>0;!h.visible&&!d.visible&&(f=[]);var b=tO.select(this).selectAll("g.errorbar").data(f,p);if(b.exit().remove(),!!f.length){d.visible||b.selectAll("path.xerror").remove(),h.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),xpe.setClipUrl(b,a.layerClipId,r),b.each(function(C){var x=tO.select(this),_=Ape(C,o,l);if(!(m&&!C.vis)){var A,T=x.select("path.yerror");if(h.visible&&$0(_.x)&&$0(_.yh)&&$0(_.ys)){var M=h.width;A="M"+(_.x-M)+","+_.yh+"h"+2*M+"m-"+M+",0V"+_.ys,_.noYS||(A+="m-"+M+",0h"+2*M),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",A)}else T.remove();var E=x.select("path.xerror");if(d.visible&&$0(_.y)&&$0(_.xh)&&$0(_.xs)){var P=(d.copy_ystyle?h:d).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 Ape(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 lO=oe((S8e,oO)=>{"use strict";var Mpe=Lt(),iO=Nt();oO.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=Mpe.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(iO.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(iO.stroke,i.color)})}});var fO=oe((D8e,uO)=>{"use strict";var Qd=pr(),sO=Zo().overrideAll,eh=_8(),Lc={error_x:Qd.extendFlat({},eh),error_y:Qd.extendFlat({},eh)};delete Lc.error_x.copy_zstyle;delete Lc.error_y.copy_zstyle;delete Lc.error_y.copy_ystyle;var rh={error_x:Qd.extendFlat({},eh),error_y:Qd.extendFlat({},eh),error_z:Qd.extendFlat({},eh)};delete rh.error_x.copy_ystyle;delete rh.error_y.copy_ystyle;delete rh.error_z.copy_ystyle;delete rh.error_z.copy_zstyle;uO.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Lc,bar:Lc,histogram:Lc,scatter3d:sO(rh,"calc","nested"),scattergl:sO(Lc,"calc","nested")}},supplyDefaults:$H(),calc:rO(),makeComputeError:x8(),plot:nO(),style:lO(),hoverInfo:Tpe};function Tpe(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 cO={};Ua(cO,{cn:()=>kpe});var kpe,vO=Oa(()=>{"use strict";kpe={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 _O=oe((F8e,bO)=>{"use strict";var J0=Lt(),U3=Ln(),dO=_t(),Xu=Ga(),O3=el(),dl=pr(),is=dl.strTranslate,yO=Dn().extendFlat,M8=z0(),ns=da(),D2=Nt(),Cpe=Ov(),Spe=vi(),Dpe=Ls().flipScale,Fpe=L9(),Epe=q9(),Lpe=Yl(),k8=(ci(),xr(fi)),hO=k8.LINE_SPACING,pO=k8.FROM_TL,mO=k8.FROM_BR,Va=(vO(),xr(cO)).cn;function qpe(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Va.colorbar).data(Ppe(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);dl.ensureSingle(n,"rect",Va.cbbg),dl.ensureSingle(n,"g",Va.cbfills),dl.ensureSingle(n,"g",Va.cblines),dl.ensureSingle(n,"g",Va.cbaxis,function(o){o.classed(Va.crisp,!0)}),dl.ensureSingle(n,"g",Va.cbtitleunshift,function(o){o.append("g").classed(Va.cbtitle,!0)}),dl.ensureSingle(n,"rect",Va.cboutline);var i=Rpe(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&zpe(n,a,e)}),t.exit().each(function(a){U3.autoMargin(e,a._id)}).remove(),t.order()}function Ppe(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(x){return yO(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?Dpe(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]],gO=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function Rpe(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,d=r.yanchor,h=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,T=r._line,M=r.title,E=M.side,P=r._zrange||J0.extent((typeof A=="function"?A:T.color).domain()),z=typeof T.color=="function"?T.color:function(){return T.color},I=typeof A=="function"?A:function(){return A},X=r._levels,H=Npe(t,r,P),V=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,ue=y?_.h:t._fullLayout.height,xe=Math.round(a?m*ie+h:b*ue+p),De={center:.5,right:1}[c]||0,Ye={top:1,middle:.5}[d]||0,Ee=a?m-De*ee:b-Ye*ee,ke=a?b-Ye*ae:m-De*ae,je=Math.round(a?ue*(1-ke):ie*ke);r._lenFrac=ae,r._thickFrac=ee,r._uFrac=Ee,r._vFrac=ke;var W=r._axis=Bpe(t,r,P);W.position=ee+(a?m+h/_.w:b+p/_.h);var le=["top","bottom"].indexOf(E)!==-1;if(a&&le&&(W.title.side=E,W.titlex=m+h/_.w,W.titley=ke+(M.side==="top"?ae-p/_.h:p/_.h)),!a&&!le&&(W.title.side=E,W.titley=b+p/_.h,W.titlex=ke+h/_.w),T.color&&r.tickmode==="auto"){W.tickmode="linear",W.tick0=X.start;var de=X.size,K=dl.constrain(re/50,4,15)+1,J=(P[1]-P[0])/((r.nticks||K)*de);if(J>1){var fe=Math.pow(10,Math.floor(Math.log(J)/Math.LN10));de*=fe*dl.roundUp(J/fe,[2,5,10]),(Math.abs(X.start)/X.size+1e-6)%1<2e-6&&(W.tick0=0)}W.dtick=de}var be=a?p/_.h:h/_.w;W.domain=gO(T8([ke,ke+ae],be),be),W.setScale(),e.attr("transform",is(Math.round(_.l),Math.round(_.t)));var Ne=e.select("."+Va.cbtitleunshift).attr("transform",is(-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 dr(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(),Cpe.draw(t,Te,yO(_r,Ue||{}))}function Ar(){if(a&&le||!a&&!le){var Te,Ue;E==="top"&&(Te=h+_.l+ie*m,Ue=p+_.t+ue*(1-ke-ae)+3+er*.75),E==="bottom"&&(Te=h+_.l+ie*m,Ue=p+_.t+ue*(1-ke)-3-er*.25),E==="right"&&(Ue=p+_.t+ue*b+3+er*.75,Te=h+_.l+ie*ke),dr(W._id+"title",{attributes:{x:Te,y:Ue,"text-anchor":a?"start":"middle"}})}}function Qe(){if(a&&!le||!a&&le){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+ue*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+ue*Te+10-Q-hO*er*Nr}dr((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&&!le||a&&le){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=ns.bBox(Pr),lr=Ce.width,ze=Ce.height,ze>Nr&&(_r[1]-=(ze-Nr)/2)):Ue.node()&&!Ue.classed(Va.jsPlaceholder)&&(Ce=ns.bBox(Ue.node()),lr=Ce.width,ze=Ce.height),a){if(ze){if(ze+=5,E==="top")W.domain=gO(W.domain,ze/_.h),_r[1]*=-1;else{W.domain=T8(W.domain,ze/_.h);var He=Spe.lineCount(Ue);_r[1]+=(1-He)*Nr}Te.attr("transform",is(_r[0],_r[1])),W.setScale()}}else lr&&(E==="right"&&(W.domain=T8(W.domain,(lr+er/2)/_.w)),Te.attr("transform",is(_r[0],_r[1])),W.setScale())}e.selectAll("."+Va.cbfills+",."+Va.cblines).attr("transform",a?is(0,Math.round(_.h*(1-W.domain[1]))):is(Math.round(_.w*W.domain[0]),0)),Je.attr("transform",a?is(0,Math.round(-_.t)):is(Math.round(-_.l),0));var cr=e.select("."+Va.cbfills).selectAll("rect."+Va.cbfill).attr("style","").data(V);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]:(V[nr]+V[nr-1])/2,nr===V.length-1?P[1]:(V[nr]+V[nr+1])/2].map(W.c2p).map(Math.round);a&&(Cr[1]=dl.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)ns.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(T.color&&T.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))+T.width/2%1;J0.select(this).attr("d","M"+(a?nr+","+Cr:Cr+","+nr)+(a?"h":"v")+Q).call(ns.lineGroupStyle,T.width,z(et),T.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=ns.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&&le||!a&&!le)?(Te=ns.bBox(cr),_r=Te.width,He=Te.height):(Te=ns.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",is(_r/2+er/2,0)),_r*=2),Ue=Math.max(Ue,a?_r:He)}var Mr=(a?h:p)*2+Ue+u+s/2,vr=0;!a&&M.text&&d==="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?h: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+h)+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*h+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",is(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=ns.bBox(Wr),Zr=ns.getTranslate(e),Ae=2;ar.each(function(la,Pt){var Ta=0,pa=Fr-1;if(Pt===Ta||Pt===pa){var Xa=ns.bBox(this),dn=ns.getTranslate(this),ja;if(Pt===pa){var Fa=Xa.right+dn.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+dn.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=pO[c],hr=mO[c],Dt=pO[d],Wt=mO[d],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*hr):(Be.l=ba*or,Be.r=ba*hr,Be.xl=m-o*or,Be.xr=m+o*hr)):(i==="pixels"?(Be.x=m,Be.l=re*or,Be.r=re*hr):(Be.l=Be.r=0,Be.xl=m+n*or,Be.xr=m-n*hr),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 dl.syncOrAsync([U3.previousPromises,Ar,mr,Qe,U3.previousPromises,qr],t)}function zpe(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+is(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?dO.call("_guiRestyle",t,u,r._traceIndex):dO.call("_guiRelayout",t,u)}}})}function Npe(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";xO.exports={moduleType:"component",name:"colorbar",attributes:jp(),supplyDefaults:M6(),draw:_O().draw,hasColorbar:d6()}});var MO=oe((L8e,AO)=>{"use strict";AO.exports={moduleType:"component",name:"legend",layoutAttributes:_b(),supplyLayoutDefaults:wb(),draw:Nb(),style:qb()}});var kO=oe((q8e,TO)=>{"use strict";TO.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 SO=oe((P8e,CO)=>{"use strict";CO.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((R8e,LO)=>{"use strict";var Ipe=_t(),EO=pr(),C8=EO.extendFlat,DO=EO.extendDeep;function FO(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 Hpe(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}LO.exports=function(r,t){var a,n=r.data,i=r.layout,o=DO([],n),l=DO({},i,FO(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 Ope=Rp().EventEmitter,Upe=_t(),Gpe=pr(),qO=xc(),Ype=S8(),Vpe=Vg(),Xpe=Xg();function jpe(e,r){var t=new Ope,a=Ype(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=qO.getDelay(n._fullLayout);setTimeout(function(){var s=Vpe(n),u=document.createElement("canvas");u.id=Gpe.randstr(),t=Xpe({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=qO.getRedrawFunc(n);return Upe.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}PO.exports=jpe});var BO=oe((N8e,NO)=>{"use strict";var zO=xc(),Wpe={getDelay:zO.getDelay,getRedrawFunc:zO.getRedrawFunc,clone:S8(),toSVG:Vg(),svgToImg:Xg(),toImage:RO(),downloadImage:a9()};NO.exports=Wpe});var HO=oe(ju=>{"use strict";ju.version=K2().version;Y_();Dk();var Zpe=_t(),th=ju.register=Zpe.register,F8=YR(),IO=Object.keys(F8);for(G3=0;G3{"use strict";OO.exports=HO()});var ah=oe((H8e,jO)=>{"use strict";var{hovertemplateAttrs:$pe,texttemplateAttrs:Jpe,templatefallbackAttrs:GO}=Vf(),Kpe=q7(),Ws=_c(),Qpe=Wo(),YO=Y1(),eme=Fs().dash,qc=Dn().extendFlat,rme=Zo().overrideAll,hl=Ws.marker,VO=Ws.line,XO=hl.line;jO.exports=rme({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:GO({editType:"plot"}),hovertext:qc({},Ws.hovertext,{}),textfont:Ws.textfont,textposition:Ws.textposition,line:{color:VO.color,width:VO.width,dash:eme},connectgaps:Ws.connectgaps,marker:qc({symbol:hl.symbol,opacity:hl.opacity,angle:hl.angle,angleref:qc({},hl.angleref,{values:["previous","up","north"]}),standoff:hl.standoff,size:hl.size,sizeref:hl.sizeref,sizemin:hl.sizemin,sizemode:hl.sizemode,colorbar:hl.colorbar,line:qc({width:XO.width,dash:XO.dash},YO("marker.line")),gradient:hl.gradient},YO("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Kpe(),selected:Ws.selected,unselected:Ws.unselected,hoverinfo:qc({},Qpe.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:$pe(),hovertemplatefallback:GO()},"calc","nested")});var ZO=oe((O8e,WO)=>{"use strict";var E8=pr(),L8=Ti(),tme=o9(),ame=l9(),nme=s9(),ime=u9(),ome=ah();WO.exports=function(r,t,a,n){function i(h,p){return E8.coerce(r,t,ome,h,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")||[],d=i("lat")||[];l=Math.min(c.length,d.length)}if(!l){t.visible=!1;return}t._length=l,i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("mode"),L8.hasMarkers(t)&&tme(r,t,a,n,i,{gradient:!0}),L8.hasLines(t)&&(ame(r,t,a,n,i),i("connectgaps")),L8.hasText(t)&&(i("texttemplate"),i("texttemplatefallback"),nme(r,t,n,i)),i("fill"),t.fill!=="none"&&ime(r,t,a,i),E8.coerceSelectionMarkerOpacity(t,i)}});var KO=oe((U8e,JO)=>{"use strict";var $O=Ga();JO.exports=function(r,t,a){var n={},i=a[t.geo]._subplot,o=i.mockAxis,l=r.lonlat;return n.lonLabel=$O.tickText(o,o.c2l(l[0]),!0).text,n.latLabel=$O.tickText(o,o.c2l(l[1]),!0).text,n}});var aU=oe((G8e,tU)=>{"use strict";var q8=Qt(),QO=(Za(),xr(nn)).BADNUM,lme=v9(),sme=Nd(),ume=e3(),fme=pr().isArrayOrTypedArray,eU=pr()._;function rU(e){return e&&typeof e=="string"}tU.exports=function(r,t){var a=fme(t.locations),n=a?t.locations.length:t._length,i=new Array(n),o;t.geojson?o=function(d){return rU(d)||q8(d)}:o=rU;for(var l=0;lvme,clipPad:()=>gme,fillLayers:()=>Ame,fitboundsIncompatible:()=>pme,landColor:()=>bme,lataxisSpan:()=>hme,layerNameToAdjective:()=>Cme,layers:()=>Tme,layersForChoropleth:()=>kme,lineLayers:()=>Mme,locationmodeToLayer:()=>xme,lonaxisSpan:()=>dme,precision:()=>yme,projNames:()=>cme,scopeDefaults:()=>mme,sphereSVG:()=>wme,waterColor:()=>_me});var cme,vme,dme,hme,pme,mme,gme,yme,bme,_me,xme,wme,Ame,Mme,Tme,kme,Cme,ih=Oa(()=>{"use strict";cme={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"},vme=["lonaxis","lataxis"],dme={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},hme={"conic conformal":150,stereographic:179.5,"*":180},pme=new Set(["albers usa","craig","peirce quincuncial","satellite"]),mme={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]}},gme=.001,yme=.1,bme="#F0DC82",_me="#3399FF",xme={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},wme={type:"Sphere"},Ame={ocean:1,land:1,lakes:1},Mme={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},Tme=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],kme=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],Cme={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var P8=oe((V3,nU)=>{(function(e,r){typeof V3=="object"&&typeof nU!="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,T=x.scale[0],M=x.scale[1],E=x.translate[0],P=x.translate[1];return function(z,I){I||(_=A=0);var X=2,H=z.length,V=new Array(H);for(V[0]=(_+=z[0])*T+E,V[1]=(A+=z[1])*M+P;XE&&(E=X[0]),X[1]P&&(P=X[1])}function I(X){switch(X.type){case"GeometryCollection":X.geometries.forEach(I);break;case"Point":z(X.coordinates);break;case"MultiPoint":X.coordinates.forEach(z);break}}x.arcs.forEach(function(X){for(var H=-1,V=X.length,N;++HE&&(E=N[0]),N[1]P&&(P=N[1])});for(A in x.objects)I(x.objects[A]);return[T,M,E,P]}function n(x,_){for(var A,T=x.length,M=T-_;M<--T;)A=x[M],x[M++]=x[T],x[T]=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,T=_.bbox,M=_.properties==null?{}:_.properties,E=l(x,_);return A==null&&T==null?{type:"Feature",properties:M,geometry:E}:T==null?{type:"Feature",id:A,properties:M,geometry:E}:{type:"Feature",id:A,bbox:T,properties:M,geometry:E}}function l(x,_){var A=t(x.transform),T=x.arcs;function M(H,V){V.length&&V.pop();for(var N=T[H<0?~H:H],Q=0,ee=N.length;Q1)T=c(x,_,A);else for(M=0,T=new Array(E=x.arcs.length);M1)for(var V=1,N=z(X[0]),Q,ee;VN&&(ee=X[0],X[0]=X[V],X[V]=ee,N=Q);return X}).filter(function(I){return I.length>0})}}function m(x,_){for(var A=0,T=x.length;A>>1;x[M]<_?A=M+1:T=M}return A}function b(x){var _={},A=x.map(function(){return[]});function T(re,ae){re.forEach(function(ie){ie<0&&(ie=~ie);var ue=_[ie];ue?ue.push(ae):_[ie]=[ae]})}function M(re,ae){re.forEach(function(ie){T(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:T,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],X=I.length,H=0;H=2))throw new Error("n must be \u22652");I=x.bbox||a(x);var A=I[0],T=I[1],M=I[2],E=I[3],P;_={scale:[M-A?(M-A)/(P-1):1,E-T?(E-T)/(P-1):1],translate:[A,T]}}else I=x.bbox;var z=y(_),I,X,H=x.objects,V={};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,ue=re.length,xe,De=new Array(ue);for(De[0]=z(re[0],0);++ae{"use strict";var R8=iU.exports={},Sme=(ih(),xr(nh)).locationmodeToLayer,Dme=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=Sme[e.locationmode],a=r.objects[t];return Dme(r,a).features}});var oU=oe(oh=>{"use strict";var Fme=(Za(),xr(nn)).BADNUM;oh.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};oh.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};oh.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,Eme=Object.getOwnPropertyDescriptor,Lme=Object.getOwnPropertyNames,qme=Object.prototype.hasOwnProperty,Pme=(e,r)=>{for(var t in r)N8(e,t,{get:r[t],enumerable:!0})},Rme=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Lme(r))!qme.call(e,n)&&n!==t&&N8(e,n,{get:()=>r[n],enumerable:!(a=Eme(r,n))||a.enumerable});return e},zme=e=>Rme(N8({},"__esModule",{value:!0}),e),lU={};Pme(lU,{COUNTRIES:()=>sU,byAlpha2:()=>Hme,byAlpha3:()=>Ime,byM49:()=>Ome,createLookup:()=>uU,lookup:()=>Nme,lookupAlpha3:()=>Bme,sanitize:()=>z8});fU.exports=zme(lU);var sU=[{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 uU(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 lh=uU(sU),Nme=lh.lookup,Bme=lh.lookupAlpha3,Ime=lh.byAlpha3,Hme=lh.byAlpha2,Ome=lh.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 Ume(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 dU(r).geometry;case"MultiLineString":return vU(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 Gme(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 Vme(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 vU(e,r,t={}){return K0({type:"MultiLineString",coordinates:e},r,t)}function dU(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 Xme(e,r,t={}){return K0({type:"GeometryCollection",geometries:e},r,t)}function jme(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 pU(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 Wme(e,r){return mU(G8(e,r))}function Zme(e){let r=e%360;return r<0&&(r+=360),r}function $me(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function mU(e){return e%(2*Math.PI)*180/Math.PI}function Jme(e){return e%360*Math.PI/180}function Kme(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return pU(G8(e,r),t)}function Qme(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 ege(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 rge(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 tge(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=$me;ya.bearingToAzimuth=Zme;ya.convertArea=Qme;ya.convertLength=Kme;ya.degreesToRadians=Jme;ya.earthRadius=An;ya.factors=I8;ya.feature=K0;ya.featureCollection=Z3;ya.geometry=Ume;ya.geometryCollection=Xme;ya.isNumber=W3;ya.isObject=ege;ya.lengthToDegrees=Wme;ya.lengthToRadians=G8;ya.lineString=U8;ya.lineStrings=Vme;ya.multiLineString=vU;ya.multiPoint=dU;ya.multiPolygon=hU;ya.point=H8;ya.points=Gme;ya.polygon=O8;ya.polygons=Yme;ya.radiansToDegrees=mU;ya.radiansToLength=pU;ya.removeBbox=j3;ya.round=jme;ya.validateBBox=rge;ya.validateId=tge});var K3=oe(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});var qi=$3();function sh(e,r,t){if(e!==null)for(var a,n,i,o,l,s,u,f=0,c=0,d,h=e.type,p=h==="FeatureCollection",m=h==="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 uge(e,r,t){var a=t,n=!1;return bU(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 _U(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 xU=$3(),dge=K3();function MU(e){return dge.geomReduce.call(void 0,e,(r,t)=>r+hge(t),0)}function hge(e){let r=0,t;switch(e.type){case"Polygon":return wU(e.coordinates);case"MultiPolygon":for(t=0;t0){r+=Math.abs(AU(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*pge}var mge=MU;Q3.area=MU;Q3.default=mge});var CU=oe(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var gge=$3(),yge=K3();function kU(e,r={}){let t=0,a=0,n=0;return yge.coordEach.call(void 0,e,function(i){t+=i[0],a+=i[1],n++},!0),gge.point.call(void 0,[t/n,a/n],r.properties)}var bge=kU;ey.centroid=kU;ey.default=bge});var DU=oe((ry,SU)=>{(function(e,r){r(typeof ry=="object"&&typeof SU!="undefined"?ry:e.d3=e.d3||{})})(ry,(function(e){"use strict";function r(W,le){return Wle?1:W>=le?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(le,de,K,J){for(K==null&&(K=0),J==null&&(J=le.length);K>>1;W(le[fe],de)<0?K=fe+1:J=fe}return K},right:function(le,de,K,J){for(K==null&&(K=0),J==null&&(J=le.length);K>>1;W(le[fe],de)>0?J=fe:K=fe+1}return K}}}function a(W){return function(le,de){return r(W(le),de)}}var n=t(r),i=n.right,o=n.left;function l(W,le){le==null&&(le=s);for(var de=0,K=W.length-1,J=W[0],fe=new Array(K<0?0:K);deW?1:le>=W?0:NaN}function c(W){return W===null?NaN:+W}function d(W,le){var de=W.length,K=0,J=-1,fe=0,be,Ne,Ze=0;if(le==null)for(;++J1)return Ze/(K-1)}function h(W,le){var de=d(W,le);return de&&Math.sqrt(de)}function p(W,le){var de=W.length,K=-1,J,fe,be;if(le==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=le0)for(W=Math.ceil(W/Ne),le=Math.floor(le/Ne),be=new Array(fe=Math.ceil(le-W+1));++J=0?(fe>=A?10:fe>=T?5:fe>=M?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(fe>=A?10:fe>=T?5:fe>=M?2:1)}function z(W,le,de){var K=Math.abs(le-W)/Math.max(0,de),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),fe=K/J;return fe>=A?J*=10:fe>=T?J*=5:fe>=M&&(J*=2),letr;)ze.pop(),--lr;var dr=new Array(lr+1),Ar;for(fe=0;fe<=lr;++fe)Ar=dr[fe]=[],Ar.x0=fe>0?ze[fe-1]:Je,Ar.x1=fe=1)return+de(W[K-1],K-1,W);var K,J=(K-1)*le,fe=Math.floor(J),be=+de(W[fe],fe,W),Ne=+de(W[fe+1],fe+1,W);return be+(Ne-be)*(J-fe)}}function V(W,le,de){return W=y.call(W,c).sort(r),Math.ceil((de-le)/(2*(H(W,.75)-H(W,.25))*Math.pow(W.length,-1/3)))}function N(W,le,de){return Math.ceil((de-le)/(3.5*h(W)*Math.pow(W.length,-1/3)))}function Q(W,le){var de=W.length,K=-1,J,fe;if(le==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,le){var de=W.length,K=de,J=-1,fe,be=0;if(le==null)for(;++J=0;)for(be=W[le],de=be.length;--de>=0;)fe[--J]=be[de];return fe}function ie(W,le){var de=W.length,K=-1,J,fe;if(le==null){for(;++K=J)for(fe=J;++KJ&&(fe=J)}else for(;++K=J)for(fe=J;++KJ&&(fe=J);return fe}function ue(W,le){for(var de=le.length,K=new Array(de);de--;)K[de]=W[le[de]];return K}function xe(W,le){if(de=W.length){var de,K=0,J=0,fe,be=W[J];for(le==null&&(le=r);++K{(function(e,r){typeof ty=="object"&&typeof FU!="undefined"?r(ty,DU()):(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,$,he){var se=O.s=$+he,Me=se-$,Oe=se-Me;O.t=$-Oe+(he-Me)}var o=1e-6,l=1e-12,s=Math.PI,u=s/2,f=s/4,c=s*2,d=180/s,h=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,T=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 X(O){return(O=T(O/2))*O}function H(){}function V(O,$){O&&Q.hasOwnProperty(O.type)&&Q[O.type](O,$)}var N={Feature:function(O,$){V(O.geometry,$)},FeatureCollection:function(O,$){for(var he=O.features,se=-1,Me=he.length;++se=0?1:-1,Me=se*he,Oe=y($),We=T($),rr=ke*We,ir=Ee*Oe+rr*y(Me),gr=rr*se*T(Me);ie.add(b(gr,ir)),Ye=O,Ee=Oe,ke=We}function J(O){return ue.reset(),ae(O,je),ue*2}function fe(O){return[b(O[1],O[0]),I(O[2])]}function be(O){var $=O[0],he=O[1],se=y(he);return[se*y($),se*T($),T(he)]}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,dr,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=-(dr=180),lr=-(Ar=90)):Ue>o?Ar=90:Ue<-o&&(lr=-90),Pr[0]=ze,Pr[1]=dr},sphere:function(){ze=-(dr=180),lr=-(Ar=90)}};function Ce(O,$){_r.push(Pr=[ze=O,dr=O]),$Ar&&(Ar=$)}function He(O,$){var he=be([O*h,$*h]);if(Te){var se=Ze(Te,he),Me=[se[1],-se[0],0],Oe=Ze(Me,se);tr(Oe),Oe=fe(Oe);var We=O-Qe,rr=We>0?1:-1,ir=Oe[0]*d*rr,gr,$e=p(We)>180;$e^(rr*QeAr&&(Ar=gr)):(ir=(ir+360)%360-180,$e^(rr*QeAr&&(Ar=$))),$e?Ojr(ze,dr)&&(dr=O):jr(O,dr)>jr(ze,dr)&&(ze=O):dr>=ze?(Odr&&(dr=O)):O>Qe?jr(ze,O)>jr(ze,dr)&&(dr=O):jr(O,dr)>jr(ze,dr)&&(ze=O)}else _r.push(Pr=[ze=O,dr=O]);$Ar&&(Ar=$),Te=he,Qe=O}function cr(){Nr.point=He}function Mr(){Pr[0]=ze,Pr[1]=dr,Nr.point=Ce,Te=null}function vr(O,$){if(Te){var he=O-Qe;Ue.add(p(he)>180?he+(he>0?360:-360):he)}else mr=O,qr=$;je.point(O,$),He(O,$)}function kr(){je.lineStart()}function Er(){vr(mr,qr),je.lineEnd(),p(Ue)>o&&(ze=-(dr=180)),Pr[0]=ze,Pr[1]=dr,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(se[0],se[1])&&(se[1]=Me[1]),jr(Me[0],se[1])>jr(se[0],se[1])&&(se[0]=Me[0])):Oe.push(se=Me);for(We=-1/0,he=Oe.length-1,$=0,se=Oe[he];$<=he;se=Me,++$)Me=Oe[$],(rr=jr(se[1],Me[0]))>We&&(We=rr,ze=Me[0],dr=se[1])}return _r=Pr=null,ze===1/0||lr===1/0?[[NaN,NaN],[NaN,NaN]]:[[ze,lr],[dr,Ar]]}var ar,Fr,Wr,Br,Zr,Ae,Be,or,hr,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*=h,$*=h;var he=y($);pa(he*y(O),he*T(O),T($))}function pa(O,$,he){++ar,Wr+=(O-Wr)/ar,Br+=($-Br)/ar,Zr+=(he-Zr)/ar}function Xa(){Pt.point=dn}function dn(O,$){O*=h,$*=h;var he=y($);Xt=he*y(O),Ht=he*T(O),la=T($),Pt.point=ja,pa(Xt,Ht,la)}function ja(O,$){O*=h,$*=h;var he=y($),se=he*y(O),Me=he*T(O),Oe=T($),We=b(E((We=Ht*Oe-la*Me)*We+(We=la*se-Xt*Oe)*We+(We=Xt*Me-Ht*se)*We),Xt*se+Ht*Me+la*Oe);Fr+=We,Ae+=We*(Xt+(Xt=se)),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*=h,$*=h,Pt.point=Zt;var he=y($);Xt=he*y(O),Ht=he*T(O),la=T($),pa(Xt,Ht,la)}function Zt(O,$){O*=h,$*=h;var he=y($),se=he*y(O),Me=he*T(O),Oe=T($),We=Ht*Oe-la*Me,rr=la*se-Xt*Oe,ir=Xt*Me-Ht*se,gr=E(We*We+rr*rr+ir*ir),$e=I(gr),fr=gr&&-$e/gr;hr+=fr*We,Dt+=fr*rr,Wt+=fr*ir,Fr+=$e,Ae+=$e*(Xt+(Xt=se)),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=hr=Dt=Wt=0,ae(O,Pt);var $=hr,he=Dt,se=Wt,Me=$*$+he*he+se*se;return Mes?O+Math.round(-O/c)*c:O,$]}$t.invert=$t;function Na(O,$,he){return(O%=c)?$||he?Rt(Pi(O),Kn($,he)):Pi(O):$||he?Kn($,he):$t}function Jn(O){return function($,he){return $+=O,[$>s?$-c:$<-s?$+c:$,he]}}function Pi(O){var $=Jn(O);return $.invert=Jn(-O),$}function Kn(O,$){var he=y(O),se=T(O),Me=y($),Oe=T($);function We(rr,ir){var gr=y(ir),$e=y(rr)*gr,fr=T(rr)*gr,sr=T(ir),wr=sr*he+$e*se;return[b(fr*Me-wr*Oe,$e*he-sr*se),I(wr*Me+fr*Oe)]}return We.invert=function(rr,ir){var gr=y(ir),$e=y(rr)*gr,fr=T(rr)*gr,sr=T(ir),wr=sr*Me-fr*Oe;return[b(fr*Me+sr*Oe,$e*he+wr*se),I(wr*he-$e*se)]},We}function Ba(O){O=Na(O[0]*h,O[1]*h,O.length>2?O[2]*h:0);function $(he){return he=O(he[0]*h,he[1]*h),he[0]*=d,he[1]*=d,he}return $.invert=function(he){return he=O.invert(he[0]*h,he[1]*h),he[0]*=d,he[1]*=d,he},$}function ml(O,$,he,se,Me,Oe){if(he){var We=y($),rr=T($),ir=se*he;Me==null?(Me=$+se*c,Oe=$-ir/2):(Me=Qa(We,Me),Oe=Qa(We,Oe),(se>0?MeOe)&&(Me+=se*c));for(var gr,$e=Me;se>0?$e>Oe:$e1&&O.push(O.pop().concat(O.shift()))},result:function(){var he=O;return O=[],$=null,he}}}function Ia(O,$){return p(O[0]-$[0])=0;--rr)Me.point((fr=$e[rr])[0],fr[1]);else se(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 $,he=0,se=O[0],Me;++he<$;)se.n=Me=O[he],Me.p=se,se=Me;se.n=Me=O[0],Me.p=se}}var Ri=t();function ls(O){return p(O[0])<=s?O[0]:M(O[0])*((p(O[0])+s)%c-s)}function ss(O,$){var he=ls($),se=$[1],Me=T(se),Oe=[T(he),-y(he),0],We=0,rr=0;Ri.reset(),Me===1?se=u+o:Me===-1&&(se=-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*T(ea),rt*xt+zt*y(ea))),We+=xa?Jt+ua*c:Jt,xa^wr>=he^Lr>=he){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]);(se>wa||se===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(us))}}return sr}}function us(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,he=NaN,se=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(se,he),O.lineEnd(),O.lineStart(),O.point(rr,he),O.point(Oe,he),Me=0):se!==rr&&ir>=s&&(p($-se)o?m((T($)*(Oe=y(se))*T(he)-T(se)*(Me=y($))*T(O))/(Me*Oe*We)):($+se)/2}function Or(O,$,he,se){var Me;if(O==null)Me=he*u,se.point(-s,Me),se.point(0,Me),se.point(s,Me),se.point(s,0),se.point(s,-Me),se.point(0,-Me),se.point(-s,-Me),se.point(-s,0),se.point(-s,Me);else if(p(O[0]-$[0])>o){var Oe=O[0]<$[0]?s:-s;Me=he*Oe/2,se.point(-Oe,Me),se.point(0,Me),se.point(Oe,Me)}else se.point($[0],$[1])}function Mn(O){var $=y(O),he=6*h,se=$>0,Me=p($)>o;function Oe($e,fr,sr,wr){ml(wr,O,he,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=se?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&&se^Ur){var xt;!(vt&sr)&&(xt=ir(ft,fr,!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)))}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=se?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,se?[0,-O]:[-s,O-s])}function sa(O,$,he,se,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=he-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,$,he,se){function Me(gr,$e){return O<=gr&&gr<=he&&$<=$e&&$e<=se}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:he,wr>1?se:$);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]-he)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;Ktse&&(El-Fl)*(se-Bi)>(Ms-Bi)*(O-Fl)&&++Vr:Ms<=se&&(El-Fl)*(se-Bi)<(Ms-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,$,he,se)?(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,he=960,se=500,Me,Oe,We;return We={stream:function(rr){return Me&&Oe===rr?Me:Me=Vn(O,$,he,se)(Oe=rr)},extent:function(rr){return arguments.length?(O=+rr[0][0],$=+rr[0][1],he=+rr[1][0],se=+rr[1][1],Me=Oe=null,We):[[O,$],[he,se]]}}}var fs=t(),cs,Xi,No,bl={sphere:H,point:H,lineStart:vs,lineEnd:H,polygonStart:H,polygonEnd:H};function vs(){bl.point=sf,bl.lineEnd=eu}function eu(){bl.point=bl.lineEnd=H}function sf(O,$){O*=h,$*=h,cs=O,Xi=T($),No=y($),bl.point=Gc}function Gc(O,$){O*=h,$*=h;var he=T($),se=y($),Me=p(O-cs),Oe=y(Me),We=T(Me),rr=se*We,ir=No*he-Xi*se*Oe,gr=Xi*he+No*se*Oe;fs.add(b(E(rr*rr+ir*ir),gr)),cs=O,Xi=he,No=se}function ru(O){return fs.reset(),ae(O,bl),+fs}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 he=O.features,se=-1,Me=he.length;++se0&&(Me=_l(O[Oe],O[Oe-1]),Me>0&&he<=Me&&se<=Me&&(he+se-Me)*(1-Math.pow((he-se)/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(se).concat(lt(We).slice(1),Dr(he).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?(se=+Lr[0][0],he=+Lr[1][0],rr=+Lr[0][1],We=+Lr[1][1],se>he&&(Lr=se,se=he,he=Lr),rr>We&&(Lr=rr,rr=We,We=Lr),ut.precision(rt)):[[se,rr],[he,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(se,he,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 he=O[0]*h,se=O[1]*h,Me=$[0]*h,Oe=$[1]*h,We=y(se),rr=T(se),ir=y(Oe),gr=T(Oe),$e=We*y(he),fr=We*T(he),sr=ir*y(Me),wr=ir*T(Me),Dr=2*I(E(X(Oe-se)+We*ir*X(Me-he))),lt=T(Dr),rt=Dr?function(ut){var ft=T(ut*=Dr)/lt,Lr=T(Dr-ut)/lt,Ur=Lr*$e+ft*sr,vt=Lr*fr+ft*wr,xt=Lr*rr+ft*gr;return[b(vt,Ur)*d,b(xt,E(Ur*Ur+vt*vt))*d]}:function(){return[he*d,se*d]};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=ps,Xc=Oo=O,Ho=vf=$}function ps(O,$){hs.add(vf*O-Oo*$),Oo=O,vf=$}function I2(){ps(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,ms=0,gs=0,Ju=0,Ku=0,zi=0,Qu,e0,oi,Tn,Xn={point:go,lineStart:fu,lineEnd:df,polygonStart:function(){Xn.lineStart=jc,Xn.lineEnd=H2},polygonEnd:function(){Xn.point=go,Xn.lineStart=fu,Xn.lineEnd=df},result:function(){var O=zi?[Ju/zi,Ku/zi]:gs?[Tl/gs,ms/gs]:uu?[$u/uu,su/uu]:[NaN,NaN];return $u=su=uu=Tl=ms=gs=Ju=Ku=zi=0,O}};function go(O,$){$u+=O,su+=$,++uu}function fu(){Xn.point=kl}function kl(O,$){Xn.point=ys,go(oi=O,Tn=$)}function ys(O,$){var he=O-oi,se=$-Tn,Me=E(he*he+se*se);Tl+=Me*(oi+O)/2,ms+=Me*(Tn+$)/2,gs+=Me,go(oi=O,Tn=$)}function df(){Xn.point=go}function jc(){Xn.point=O2}function H2(){hf(Qu,e0)}function O2(O,$){Xn.point=hf,go(Qu=oi=O,e0=Tn=$)}function hf(O,$){var he=O-oi,se=$-Tn,Me=E(he*he+se*se);Tl+=Me*(oi+O)/2,ms+=Me*(Tn+$)/2,gs+=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&&du(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=du,Wc=cu=O,Zc=vu=$}function du(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 he=4.5,se,Me;function Oe(We){return We&&(typeof he=="function"&&Me.pointRadius(+he.apply(this,arguments)),ae(We,se(Me))),Me.result()}return Oe.area=function(We){return ae(We,se(ji)),ji.result()},Oe.measure=function(We){return ae(We,se(Wi)),Wi.result()},Oe.bounds=function(We){return ae(We,se(Uo)),Uo.result()},Oe.centroid=function(We){return ae(We,se(Xn)),Xn.result()},Oe.projection=function(We){return arguments.length?(se=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 he!="function"&&Me.pointRadius(he),Oe):$},Oe.pointRadius=function(We){return arguments.length?(he=typeof We=="function"?We:(Me.pointRadius(+We),+We),Oe):he},Oe.projection(O).context($)}function U2(O){return{stream:Go(O)}}function Go(O){return function($){var he=new a0;for(var se in O)he[se]=O[se];return he.stream=$,he}}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 bs(O,$,he){var se=O.clipExtent&&O.clipExtent();return O.scale(150).translate([0,0]),se!=null&&O.clipExtent(null),ae(he,O.stream(Uo)),$(Uo.result()),se!=null&&O.clipExtent(se),O}function hu(O,$,he){return bs(O,function(se){var Me=$[1][0]-$[0][0],Oe=$[1][1]-$[0][1],We=Math.min(Me/(se[1][0]-se[0][0]),Oe/(se[1][1]-se[0][1])),rr=+$[0][0]+(Me-We*(se[1][0]+se[0][0]))/2,ir=+$[0][1]+(Oe-We*(se[1][1]+se[0][1]))/2;O.scale(150*We).translate([rr,ir])},he)}function pu(O,$,he){return hu(O,[[0,0],$],he)}function bf(O,$,he){return bs(O,function(se){var Me=+$,Oe=Me/(se[1][0]-se[0][0]),We=(Me-Oe*(se[1][0]+se[0][0]))/2,rr=-Oe*se[0][1];O.scale(150*Oe).translate([We,rr])},he)}function Yo(O,$,he){return bs(O,function(se){var Me=+$,Oe=Me/(se[1][1]-se[0][1]),We=-Oe*se[0][0],rr=(Me-Oe*(se[1][1]+se[0][1]))/2;O.scale(150*Oe).translate([We,rr])},he)}var Jc=16,_f=y(30*h);function Kc(O,$){return+$?n0(O,$):xf(O)}function xf(O){return Go({point:function($,he){$=O($,he),this.stream.point($[0],$[1])}})}function n0(O,$){function he(se,Me,Oe,We,rr,ir,gr,$e,fr,sr,wr,Dr,lt,rt){var ut=gr-se,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)&&(he(se,Me,Oe,We,rr,ir,zt,Cn,ea,Ur/=Jt,vt/=Jt,xt,lt,rt),rt.point(zt,Cn),he(zt,Cn,ea,Ur,vt,xt,gr,$e,fr,sr,wr,Dr,lt,rt))}}return function(se){var Me,Oe,We,rr,ir,gr,$e,fr,sr,wr,Dr,lt,rt={point:ut,lineStart:ft,lineEnd:Ur,polygonStart:function(){se.polygonStart(),rt.lineStart=vt},polygonEnd:function(){se.polygonEnd(),rt.lineStart=ft}};function ut(ua,ea){ua=O(ua,ea),se.point(ua[0],ua[1])}function ft(){fr=NaN,rt.point=Lr,se.lineStart()}function Lr(ua,ea){var xa=be([ua,ea]),zt=O(ua,ea);he(fr,sr,$e,wr,Dr,lt,fr=zt[0],sr=zt[1],$e=ua,wr=xa[0],Dr=xa[1],lt=xa[2],Jc,se),se.point(fr,sr)}function Ur(){rt.point=ut,se.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(){he(fr,sr,$e,wr,Dr,lt,Oe,We,Me,rr,ir,gr,Jc,se),rt.lineEnd=Ur,Ur()}return rt}}var wf=Go({point:function(O,$){this.stream.point(O*h,$*h)}});function Af(O){return Go({point:function($,he){var se=O($,he);return this.stream.point(se[0],se[1])}})}function G2(O,$,he,se,Me){function Oe(We,rr){return We*=se,rr*=Me,[$+O*We,he-O*rr]}return Oe.invert=function(We,rr){return[(We-$)/O*se,(he-rr)/O*Me]},Oe}function Mf(O,$,he,se,Me,Oe){var We=y(Oe),rr=T(Oe),ir=We*O,gr=rr*O,$e=We/O,fr=rr/O,sr=(rr*he-We*$)/O,wr=(rr*$+We*he)/O;function Dr(lt,rt){return lt*=se,rt*=Me,[ir*lt-gr*rt+$,he-gr*lt-ir*rt]}return Dr.invert=function(lt,rt){return[se*($e*lt-fr*rt+sr),Me*(wr-fr*lt-$e*rt)]},Dr}function Zi(O){return Tf(function(){return O})()}function Tf(O){var $,he=150,se=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]*h,Vr[1]*h)}function Cn(Vr){return Vr=ua.invert(Vr[0],Vr[1]),Vr&&[Vr[0]*d,Vr[1]*d]}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*h):(Dr=null,ot),wa()):Dr*d},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?(he=+Vr,rn()):he},zt.translate=function(Vr){return arguments.length?(se=+Vr[0],Me=+Vr[1],rn()):[se,Me]},zt.center=function(Vr){return arguments.length?(Oe=Vr[0]%360*h,We=Vr[1]%360*h,rn()):[Oe*d,We*d]},zt.rotate=function(Vr){return arguments.length?(rr=Vr[0]%360*h,ir=Vr[1]%360*h,gr=Vr.length>2?Vr[2]%360*h:0,rn()):[rr*d,ir*d,gr*d]},zt.angle=function(Vr){return arguments.length?(fr=Vr%360*h,rn()):fr*d},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 hu(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(he,0,0,sr,wr,fr).apply(null,$(Oe,We)),Kt=(fr?Mf:G2)(he,se-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 _s(O){var $=0,he=s/3,se=Tf(O),Me=se($,he);return Me.parallels=function(Oe){return arguments.length?se($=Oe[0]*h,he=Oe[1]*h):[$*d,he*d]},Me}function kf(O){var $=y(O);function he(se,Me){return[se*$,T(Me)/$]}return he.invert=function(se,Me){return[se/$,I(Me*$)]},he}function Qc(O,$){var he=T(O),se=(he+T($))/2;if(p(se)=.12&&rt<.234&<>=-.425&<<-.214?Me:rt>=.166&&rt<.234&<>=-.214&<<-.115?We:he).invert(sr)},$e.stream=function(sr){return O&&$===sr?O:O=Y2([he.stream($=sr),Me.stream(sr),We.stream(sr)])},$e.precision=function(sr){return arguments.length?(he.precision(sr),Me.precision(sr),We.precision(sr),fr()):he.precision()},$e.scale=function(sr){return arguments.length?(he.scale(sr),Me.scale(sr*.35),We.scale(sr),$e.translate(he.translate())):he.scale()},$e.translate=function(sr){if(!arguments.length)return he.translate();var wr=he.scale(),Dr=+sr[0],lt=+sr[1];return se=he.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 hu($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($,he){var se=y($),Me=y(he),Oe=O(se*Me);return[Oe*Me*T($),Oe*T(he)]}}function $i(O){return function($,he){var se=E($*$+he*he),Me=O(se),Oe=T(Me),We=y(Me);return[b($*Oe,se*We),I(se&&he*Oe/se)]}}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 xs=yo(function(O){return(O=z(O))&&O/T(O)});xs.invert=$i(function(O){return O});function r1(){return Zi(xs).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),he=$.center,se=$.scale,Me=$.translate,Oe=$.clipExtent,We=null,rr,ir,gr;$.scale=function(fr){return arguments.length?(se(fr),$e()):se()},$.translate=function(fr){return arguments.length?(Me(fr),$e()):Me()},$.center=function(fr){return arguments.length?(he(fr),$e()):he()},$.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*se(),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 he=y(O),se=O===$?T(O):_(he/y($))/_(mu($)/mu(O)),Me=he*A(mu(O),se)/se;if(!se)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),se);return[ir*T(se*We),Me-ir*y(se*We)]}return Oe.invert=function(We,rr){var ir=Me-rr,gr=M(se)*E(We*We+ir*ir),$e=b(We,p(ir))*M(ir);return ir*se<0&&($e-=s*M(We)*M(ir)),[$e/se,2*m(A(Me/gr,1/se))-u]},Oe}function i0(){return _s(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 he=y(O),se=O===$?T(O):(he-y($))/($-O),Me=he/se+O;if(p(se)o&&--se>0);return[O/(.8707+(Oe=he*he)*(-.131979+Oe*(-.013791+Oe*Oe*Oe*(.003971-.001529*Oe)))),he]};function u0(){return Zi(Cf).scale(175.295)}function hn(O,$){return[y($)*T(O),T($)]}hn.invert=$i(I);function Ni(){return Zi(hn).scale(249.5).clipAngle(90+o)}function As(O,$){var he=y($),se=1+y(O)*he;return[he*T(O)/se,T($)/se]}As.invert=$i(function(O){return 2*m(O)});function f0(){return Zi(As).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,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=e1,e.geoAlbersUsa=V2,e.geoArea=J,e.geoAzimuthalEqualArea=X2,e.geoAzimuthalEqualAreaRaw=li,e.geoAzimuthalEquidistant=r1,e.geoAzimuthalEquidistantRaw=xs,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=hn,e.geoPath=yf,e.geoProjection=Zi,e.geoProjectionMutator=Tf,e.geoRotation=Ba,e.geoStereographic=f0,e.geoStereographicRaw=As,e.geoStream=ae,e.geoTransform=U2,e.geoTransverseMercator=Sf,e.geoTransverseMercatorRaw=wu,Object.defineProperty(e,"__esModule",{value:!0})}))});var qU=oe((J8e,LU)=>{"use strict";var EU={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"},_ge=new Set(Object.values(EU));LU.exports={usaLocationAbbreviations:_ge,usaLocationList:EU}});var PU={};Ua(PU,{COUNTRIES_X:()=>xge});var xge,RU=Oa(()=>{"use strict";xge=[{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((K8e,BU)=>{"use strict";var wge=Lt(),{COUNTRIES:Age,createLookup:Mge}=cU(),{area:Tge}=TU(),{centroid:kge}=CU(),{coordAll:Cge}=K3(),{geoBounds:Sge}=ay(),Dge=wp(),Q0=Cu(),Fge=d0(),Ege=Q2(),ny=gg(),{usaLocationAbbreviations:Lge,usaLocationList:qge}=qU(),{COUNTRIES_X:Pge}=(RU(),xr(PU)),{lookupAlpha3:Rge}=Mge([...Age,...Pge]),zge={"ISO-3":Dge,"USA-states":Bge,"country names":Nge};function Nge(e){let r=Rge(e);return r||(Q0.log("Unrecognized country name: "+e+"."),!1)}function Bge(e){e=e.trim();let r=Lge.has(e.toUpperCase())?e.toUpperCase():qge[e.toLowerCase()];return r||(Q0.log("Unrecognized US location: "+e+"."),!1)}function Ige(e,r,t){var n;if(!r||typeof r!="string")return!1;let a=zge[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 Hge(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[d++]=[u[s][0]+iy,u[s][1]]:s===f?(c[d++]=u[s],c[d++]=[u[s][0],-90]):c[d++]=u[s];var h=ny.tester(c);h.pts.pop(),n.push(h)}: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]:kge(t).geometry.coordinates}function Gge(e){var r=window.PlotlyGeoAssets||{},t=[];function a(s){return new Promise(function(u,f){wge.json(s,function(c,d){if(c){delete r[s];var h=c.status===404?'GeoJSON at URL "'+s+'" does not exist.':"Unexpected error while fetching from "+s;return f(new Error(h))}return r[s]=d,u(d)})})}function n(s){return new Promise(function(u,f){var c=0,d=setInterval(function(){if(r[s]&&r[s]!=="pending")return clearInterval(d),u(r[s]);if(c>100)return clearInterval(d),f("Unexpected error while fetching from "+s);c++},50)})}for(var i=0;iZ8(W8(e));function W8(e){try{return Cge(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]]=Sge({type:"MultiPoint",coordinates:e});return[r,t,NU([r,a])[1],n]}var Vge=(e,r)=>r.fitbounds==="geojson"&&e.locationmode==="geojson-id",zU=(e,r)=>Vge(e,r)?W8(j8(e)):[],Xge=(e,r)=>Z8(zU(e,r));function NU([e,r]){return[e,e>r?r+iy:r]}BU.exports={locationToFeature:Ige,feature2polygons:Hge,getTraceGeojson:j8,extractTraceFeature:Oge,fetchTraceGeoData:Gge,boundsOfCoords:Z8,computeBbox:Yge,coordsOf:W8,doesCrossAntiMeridian:X8,fitGeojsonBbox:Xge,fitGeojsonCoords:zU,unwrapLonRange:NU,ANTIMERIDIAN_LON_SHIFT:iy}});var $8=oe((Q8e,OU)=>{"use strict";var jge=Lt(),Wge=da(),IU=Nt(),HU=Ud(),Zge=HU.stylePoints,$ge=HU.styleText;OU.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),Zge(a,t,e),$ge(a,t,e),a.selectAll("path.js-line").style("fill","none").each(function(n){var i=jge.select(this),o=n.trace,l=o.line||{};i.call(IU.stroke,l.color).call(Wge.dashLine,l.dash||"",l.width||0),o.fill!=="none"&&i.call(IU.fill,o.fillcolor)})}});var sy=oe((e_e,YU)=>{"use strict";var UU=Lt(),oy=pr(),Kge=X3().getTopojsonFeatures,J8=oU(),ly=E2(),GU=P0().findExtremes,Q8=(Za(),xr(nn)).BADNUM,Qge=r3().calcMarkerSize,K8=Ti(),e3e=$8();function r3e(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&&UU.select(l).remove()}n.selectAll("*").remove(),n.each(function(o){var l=UU.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)}),e3e(e,o)})}function t3e(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):Kge(t,n.topojson);for(o=0;o{"use strict";var n3e=Wl(),i3e=(Za(),xr(nn)).BADNUM,o3e=S9(),l3e=pr().fillText,s3e=ah();VU.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]===i3e||u(x))return 1/0;var _=f(x),A=f([t,a]),T=Math.abs(_[0]-A[0]),M=Math.abs(_[1]-A[1]),E=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(T*T+M*M)-E,1-3/E)}if(n3e.getClosest(n,c,r),r.index!==!1){var d=n[r.index],h=d.lonlat,p=[o.c2p(h),l.c2p(h)],m=d.mrc||1;r.x0=p[0]-m,r.x1=p[0]+m,r.y0=p[1]-m,r.y1=p[1]+m,r.loc=d.loc,r.lon=h[0],r.lat=h[1];var b={};b[i.geo]={_subplot:s};var y=i._module.formatLabels(d,i,b);return r.lonLabel=y.lonLabel,r.latLabel=y.latLabel,r.color=o3e(i,d),r.extraText=u3e(i,d,r,n[0].t.labels),r.hovertemplate=i.hovertemplate,[r]}};function u3e(e,r,t,a){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,i=n==="all"?s3e.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(d){return d+"\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&&l3e(r,e,f),f.join("
")}});var WU=oe((t_e,jU)=>{"use strict";jU.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 JU=oe((a_e,$U)=>{"use strict";var ZU=Ti(),f3e=(Za(),xr(nn)).BADNUM;$U.exports=function(r,t){var a=r.cd,n=r.xaxis,i=r.yaxis,o=[],l=a[0].trace,s,u,f,c,d,h=!ZU.hasMarkers(l)&&!ZU.hasText(l);if(h)return[];if(t===!1)for(d=0;d{(function(e,r){r(typeof uy=="object"&&typeof KU!="undefined"?uy:e.d3=e.d3||{})})(uy,(function(e){"use strict";function r(W,le){return Wle?1:W>=le?0:NaN}function t(W){return W.length===1&&(W=a(W)),{left:function(le,de,K,J){for(K==null&&(K=0),J==null&&(J=le.length);K>>1;W(le[fe],de)<0?K=fe+1:J=fe}return K},right:function(le,de,K,J){for(K==null&&(K=0),J==null&&(J=le.length);K>>1;W(le[fe],de)>0?J=fe:K=fe+1}return K}}}function a(W){return function(le,de){return r(W(le),de)}}var n=t(r),i=n.right,o=n.left;function l(W,le){le==null&&(le=s);for(var de=0,K=W.length-1,J=W[0],fe=new Array(K<0?0:K);deW?1:le>=W?0:NaN}function c(W){return W===null?NaN:+W}function d(W,le){var de=W.length,K=0,J=-1,fe=0,be,Ne,Ze=0;if(le==null)for(;++J1)return Ze/(K-1)}function h(W,le){var de=d(W,le);return de&&Math.sqrt(de)}function p(W,le){var de=W.length,K=-1,J,fe,be;if(le==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=le0)for(W=Math.ceil(W/Ne),le=Math.floor(le/Ne),be=new Array(fe=Math.ceil(le-W+1));++J=0?(fe>=A?10:fe>=T?5:fe>=M?2:1)*Math.pow(10,J):-Math.pow(10,-J)/(fe>=A?10:fe>=T?5:fe>=M?2:1)}function z(W,le,de){var K=Math.abs(le-W)/Math.max(0,de),J=Math.pow(10,Math.floor(Math.log(K)/Math.LN10)),fe=K/J;return fe>=A?J*=10:fe>=T?J*=5:fe>=M&&(J*=2),letr;)ze.pop(),--lr;var dr=new Array(lr+1),Ar;for(fe=0;fe<=lr;++fe)Ar=dr[fe]=[],Ar.x0=fe>0?ze[fe-1]:Je,Ar.x1=fe=1)return+de(W[K-1],K-1,W);var K,J=(K-1)*le,fe=Math.floor(J),be=+de(W[fe],fe,W),Ne=+de(W[fe+1],fe+1,W);return be+(Ne-be)*(J-fe)}}function V(W,le,de){return W=y.call(W,c).sort(r),Math.ceil((de-le)/(2*(H(W,.75)-H(W,.25))*Math.pow(W.length,-1/3)))}function N(W,le,de){return Math.ceil((de-le)/(3.5*h(W)*Math.pow(W.length,-1/3)))}function Q(W,le){var de=W.length,K=-1,J,fe;if(le==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,le){var de=W.length,K=de,J=-1,fe,be=0;if(le==null)for(;++J=0;)for(be=W[le],de=be.length;--de>=0;)fe[--J]=be[de];return fe}function ie(W,le){var de=W.length,K=-1,J,fe;if(le==null){for(;++K=J)for(fe=J;++KJ&&(fe=J)}else for(;++K=J)for(fe=J;++KJ&&(fe=J);return fe}function ue(W,le){for(var de=le.length,K=new Array(de);de--;)K[de]=W[le[de]];return K}function xe(W,le){if(de=W.length){var de,K=0,J=0,fe,be=W[J];for(le==null&&(le=r);++K{(function(e,r){typeof fy=="object"&&typeof eG!="undefined"?r(fy,ay(),QU()):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,d=Math.pow,h=Math.round,p=Math.sign||function(k){return k>0?1:k<0?-1:0},m=Math.sin,b=Math.tan,y=1e-6,C=1e-12,x=Math.PI,_=x/2,A=x/4,T=Math.SQRT1_2,M=N(2),E=N(x),P=x*2,z=180/x,I=x/180;function X(k){return k?k/Math.sin(k):1}function H(k){return k>1?_:k<-1?-_:Math.asin(k)}function V(k){return k>1?0:k<-1?x:Math.acos(k)}function N(k){return k>0?Math.sqrt(k):0}function Q(k){return k=l(2*k),(k-1)/(k+1)}function ee(k){return(l(k)-l(-k))/2}function re(k){return(l(k)+l(-k))/2}function ae(k){return u(k+N(k*k+1))}function ie(k){return u(k+N(k*k-1))}function ue(k){var D=b(k/2),q=2*u(o(k/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=-k/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 k=_,D=r.geoProjectionMutator(ue),q=D(k);return q.radius=function(R){return arguments.length?D(k=R*I):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*m(k)*R,m(D)*R]}De.invert=function(k,D){if(!(k*k+4*D*D>x*x+y)){var q=k,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?V(ce*ve)*N(Tr=1/Ke):Tr=0,Tr,Kr=2*ur*ce*j-k,ct=ur*pe-D,dt=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*dt;if(!Da)break;var Gt=(ct*pt-Kr*fa)/Da,tn=(Kr*yt-ct*dt)/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(k){var D=m(k),q=o(k),R=k>=0?1:-1,G=b(R*k),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,dt=Tr*Fe/2,pt=-Ie*ur,yt=D*Tr*Ie/2,fa=q*Ke+D*Fe*ur,Da=pt*yt-fa*dt,Gt=(ct*pt-Kr*fa)/Da/2,tn=(Kr*yt-ct*dt)/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 k=20*I,D=k>=0?1:-1,q=b(D*k),R=r.geoProjectionMutator(Ee),G=R(k),U=G.stream;return G.parallel=function(j){return arguments.length?(q=b((D=(k=j*I)>=0?1:-1)*k),R(k)):k*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(k)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(k,D){var q=b(D/2),R=N(1-q*q),G=1+R*o(k/=2),U=m(k)*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(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=N((G-N(G*G-4*D*D))/2),j=H(U)/3,ve=U?ie(a(D/U))/3:ae(a(k))/3,pe=o(j),ce=re(ve),me=ce*ce-pe*pe;return[p(k)*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 le=N(8),de=u(1+M);function K(k,D){var q=a(D);return qC&&--R>0);return[k/(o(q)*(le-1/m(q))),p(D)*q]};function J(){return r.geoProjection(K).scale(112.314)}function fe(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=N(U[0]*U[0]+U[1]*U[1]),pe=D*h((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*h((j-_)/D)+_,pe=j>ve?-1:1,ce=U*o(ve-j),me=1/b(pe*V((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 k=5,D=r.geoProjectionMutator(fe),q=D(k),R=q.stream,G=.01,U=-o(G*I),j=m(G*I);return q.lobes=function(ve){return arguments.length?D(k=+ve):k},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/k,Ie=2*x/k,Ke=90-180/k,ur=_;we0&&a(G)>y);return R<0?NaN:q}function tr(k,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=k(U+ur,j),ct=k(U,j+Tr),dt=(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*dt-pt*yt,Gt=(a(Da)<.5?.5:1)/Da;if(pe=(Ie*yt-Fe*fa)*Gt,ce=(Fe*pt-Ie*dt)*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 dr(k,D){var q=k*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(k,D,q){function R(G,U){return[k*G*o(U=dr(q,U)),D*m(U)]}return R.invert=function(G,U){return U=H(U/D),[G/(k*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(k,D){var q=dr(x,D);return[qr*k/(1/o(D)+Te/o(q)),(D+M*m(q))/qr]}Ue.invert=function(k,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),[k*(1/o(j)+Te/o(R))/qr,j]};function _r(){return r.geoProjection(Ue).scale(160.857)}function Pr(k){var D=0,q=r.geoProjectionMutator(k),R=q(D);return R.parallel=function(G){return arguments.length?q(D=G*I):D*z},R}function Nr(k,D){return[k*o(D),D]}Nr.invert=function(k,D){return[k/o(D),D]};function Ce(){return r.geoProjection(Nr).scale(152.63)}function He(k){if(!k)return Nr;var D=1/b(k);function q(R,G){var U=D+k-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+k-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(k){function D(q,R){var G=_-R,U=G&&q*k*m(G)/G;return[G*m(U)/k,_-G*o(U)]}return D.invert=function(q,R){var G=q*k,U=_-R,j=N(G*G+U*U),ve=i(G,U);return[(j?j/m(j):1)*ve/k,_-j]},D}function vr(){var k=.5,D=r.geoProjectionMutator(Mr),q=D(k);return q.fraction=function(R){return arguments.length?D(k=+R):k},q.scale(158.837)}var kr=Ar(1,4/x,x);function Er(){return r.geoProjection(kr).scale(152.63)}function jr(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 pe=m(k/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(k,D,q){return V((k*k+D*D-q*q)/(2*k*D))}function nr(k){return k-2*x*s((k+x)/(2*x))}function Cr(k,D,q){for(var R=[[k[0],k[1],m(k[1]),o(k[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 dt=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,dt[0]-=Tr[Kr][0]*o(yt),dt[1]-=Tr[Kr][0]*m(yt)):(yt=ce-yt,dt[0]+=Tr[Kr][0]*o(yt),dt[1]+=Tr[Kr][0]*m(yt)):(dt[0]+=Tr[Kr][0]*o(yt),dt[1]-=Tr[Kr][0]*m(yt))}return dt[0]/=3,dt[1]/=3,dt}return we}function ar(k){return k[0]*=I,k[1]*=I,k}function Fr(){return Wr([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function Wr(k,D,q){var R=r.geoCentroid({type:"MultiPoint",coordinates:[k,D,q]}),G=[-R[0],-R[1]],U=r.geoRotation(G),j=Cr(ar(U(k)),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(k,D){var q=N(1-m(D));return[2/E*k*q,E*(1-q)]}Br.invert=function(k,D){var q=(q=D/E-1)*q;return[q>0?k*N(x/q)/2:0,H(1-q)]};function Zr(){return r.geoProjection(Br).scale(95.6464).center([0,30])}function Ae(k){var D=b(k);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 hr(k,D){return[or*k*(2*o(2*D/3)-1)/E,or*E*m(D/3)]}hr.invert=function(k,D){var q=3*H(D/(or*E));return[E*k/(or*(2*o(2*q/3)-1)),q]};function Dt(){return r.geoProjection(hr).scale(156.19)}function Wt(k){var D=o(k);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(k){var D=o(k);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(k,D){var q=N(8/(3*x));return[q*k*(1-a(D)/x),q*D]}Ht.invert=function(k,D){var q=N(8/(3*x)),R=D/q;return[k/(q*(1-a(R)/x)),R]};function la(){return r.geoProjection(Ht).scale(165.664)}function Pt(k,D){var q=N(4-3*m(a(D)));return[2/N(6*x)*k*q,p(D)*N(2*x/3)*(2-q)]}Pt.invert=function(k,D){var q=2-a(D)/N(2*x/3);return[k*N(6*x)/(2*q),p(D)*H((4-q*q)/3)]};function Ta(){return r.geoProjection(Pt).scale(165.664)}function pa(k,D){var q=N(x*(4+x));return[2/q*k*(1+N(1-4*D*D/(x*x))),4/q*D]}pa.invert=function(k,D){var q=N(x*(4+x))/2;return[k*q/(1+N(1-D*D*(4+x)/(4*x))),D*q/2]};function Xa(){return r.geoProjection(pa).scale(180.739)}function dn(k,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))*k*(1+o(D)),2*N(x/(4+x))*m(D)]}dn.invert=function(k,D){var q=D*N((4+x)/x)/2,R=H(q),G=o(R);return[k/(2/N(x*(4+x))*(1+G)),H((R+q*(G+2))/(2+_))]};function ja(){return r.geoProjection(dn).scale(180.739)}function Fa(k,D){return[k*(1+o(D))/N(2+x),2*D/N(2+x)]}Fa.invert=function(k,D){var q=N(2+x),R=D*q/2;return[q*k/(1+o(R)),R]};function Rr(){return r.geoProjection(Fa).scale(173.044)}function Vt(k,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),[k*(1+o(D))/q,2*D/q]}Vt.invert=function(k,D){var q=1+_,R=N(q/2);return[k*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(k,D){var q=m(k/=2),R=o(k),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(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/=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,dt=Kr/ct,pt=N(dt),yt=pt-1/pt,fa=pt+1/pt,Da=Tr*yt-2*u(pt)-k,Gt=Tr*Ke*fa-2*n(Ke)-D,tn=me&&T*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/dt),Pl=yt*Au-2*xo/pt+Tr*(xo+xo/dt),Rl=Ke*fa*Ll-2*tn/(1+ur)+Tr*fa*tn+Tr*Ke*(ei-ei/dt),Ts=Ke*fa*Au-2*zn/(1+ur)+Tr*fa*zn+Tr*Ke*(xo-xo/dt),Vo=Pl*Rl-Ts*ql;if(!Vo)break;var Mu=(Gt*Pl-Da*Ts)/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*h(Fe/q),Ke=Fe-Ie,ur=k*o(Ke),Tr=(k*m(Ke)-Ke*m(ur))/(_-ur),Kr=Ia(Ke,Tr),ct=(x-k)/Yi(Kr,ur,x);pe=we;var dt=50,pt;do pe-=pt=(k+Yi(Kr,ur,pe)*ct-we)/(Kr(pe)*ct);while(a(pt)>y&&--dt>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*h(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=k*m(Ke),ct=k*o(Ke),dt=m(ct),pt=_-ct,yt=(Kr-Ke*dt)/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 ls(){return r.geoProjection(Ri).scale(149.995)}var ss=Vi(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function Ks(){return r.geoProjection(ss).scale(153.93)}var us=Vi(5/6*x,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Qs(){return r.geoProjection(us).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)>y&&--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)>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(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 sa(k,D){var q=p(k),R=p(D),G=o(D),U=o(k)*G,j=m(k)*G,ve=m(R*D);k=a(i(j,ve)),D=H(U),a(k-_)>y&&(k%=_);var pe=Wa(k>x/4?_-k:k,D);return k>x/4&&(ve=pe[0],pe[0]=-pe[1],pe[1]=-ve),pe[0]*=q,pe[1]*=-R,pe}sa.invert=function(k,D){a(k)>1&&(k=p(k)*2-k),a(D)>1&&(D=p(D)*2-D);var q=p(k),R=p(D),G=-q*k,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(k,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(k===0)return[0,-(Ke+R*Ie)];var Kr=o(D),ct=1/Kr,dt=2*q*Kr,pt=(-3*R+pe*j)*dt,yt=(-ce*Kr-(1-q)*pt)/(ce*ce),fa=.5*yt/we,Da=ve*fa-2*R*we*dt,Gt=R*U*yt+me*j*dt,tn=-ct*dt,zn=-ct*Gt,Ii=-2*ct*Da,Ll=4*k/x,Au;if(k>.222*x||D.175*x){if(ur=(Ke+R*N(Fe*(1+G)-Ke*Ke))/(1+G),k>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),Ts=Ii+tn*Rl,Vo=ur*Ts+zn*H(ur/Ie)-Ll,Mu=Ts+(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(k,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-k*k,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),dt=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*dt*Gt,zn=-dt*pt,Ii=-dt*(G*(1+j)*fa+me*(1+3*j)*pt);return[x/4*(k*(tn+zn*ur)+Ii*H(k/N(Fe))),Kr]}function Vn(){return r.geoProjection(Mn(sa)).scale(239.75)}function yl(k,D,q){var R,G,U;return k?(R=fs(k,q),D?(G=fs(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=fs(D,1-q),[[0,G[0]/G[1]],[1/G[1],0],[G[2]/G[1],0]])}function fs(k,D){var q,R,G,U,j;if(D=1-y)return q=(1-D)/4,R=re(k),U=Q(k),G=1/R,j=R*ee(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],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]*k;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 cs(k,D,q){var R=a(k),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(k),Xi(n(N((me/ve-1)/q)),1-q)*p(D)]}return[0,Xi(n(U),1-q)*p(D)]}function Xi(k,D){if(!D)return k;if(D===1)return u(b(k/2+A));for(var q=1,R=N(1-D),G=N(D),U=0;a(G)>y;U++){if(k%x){var j=n(R*b(k)/q);j<0&&(j+=x),k+=j+~~(k/x)*x}else k+=k;G=(q+R)/2,R=N(q*R),G=((q=G)-R)/2}return k/(d(2,U)*q)}function No(k,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*k),ve*m(U*k)),ce=cs(pe[0],pe[1],R*R);return[-ce[1],(D>=0?1:-1)*(.5*G-ce[0])]}function bl(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 vs(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]}No.invert=function(k,D){var q=(M-1)/(M+1),R=N(1-q*q),G=Xi(_,R*R),U=-1,j=yl(.5*G-D,-k,R*R),ve=vs(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(k){var D=m(k),q=o(k),R=Gc(k);R.invert=Gc(-k);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=V(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(k){var D=m(k),q=o(k);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 k=0,D=r.geoProjectionMutator(sf),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*I).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,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(k){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/k,ve=4/P,pe=R+U*U*4/P;function ce(me,we){var Fe,Ie=a(we);if(Ie>D){var Ke=c(k-1,f(0,s((me+x)/j)));me+=x*(k-1)/k-Ke*j,Fe=Br(me,Ie),Fe[0]=Fe[0]*P/q-P*(k-1)/(2*k)+Ke*P/k,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(k-1,f(0,s((me+x)/j)));me=(me+x*(k-1)/k-Ie*j)*q/P;var Ke=Br.invert(me,.25*(Fe-R)*P/U+G);return Ke[0]-=x*(k-1)/k-Ie*j,we<0&&(Ke[1]=-Ke[1]),Ke}return _l.invert(me,we)},ce}function Io(k,D){return[k,D&1?90-y:au]}function vo(k,D){return[k,D&1?-90+y:-au]}function uf(k){return[k[0]*(1-y),k[1]]}function Zu(k){var D=[].concat(t.range(-180,180+k/2,k).map(Io),t.range(180,-180-k/2,-k).map(vo));return{type:"Polygon",coordinates:[k===180?D.map(uf):D]}}function ds(){var k=4,D=r.geoProjectionMutator(Bo),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(Zu(180/k),ve)},j},q.scale(239.75)}function ff(k){var D=1+k,q=m(1/D),R=H(q),G=2*N(x/(U=x+4*R*D)),U,j=.5*G*(D+N(k*(2+k))),ve=k*k,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),dt=o(ur),pt=R+i(ct,D-dt),yt=1+pe-2*D*dt;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*(k+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=V(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 k=1,D=r.geoProjectionMutator(ff),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,ho=.0528035274542;function iu(k,D){return D>-nu?(k=Qe(k,D),k[1]+=ho,k):Nr(k,D)}iu.invert=function(k,D){return D>-nu?Qe.invert(k,D-ho):Nr.invert(k,D)};function Vc(){return r.geoProjection(iu).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ou(k,D){return a(D)>nu?(k=Qe(k,D),k[1]-=D>0?ho:-ho,k):Nr(k,D)}ou.invert=function(k,D){return a(D)>nu?Qe.invert(k,D+(D>0?ho:-ho)):Nr.invert(k,D)};function N2(){return r.geoProjection(ou).scale(152.63)}function xl(k,D,q,R){var G=N(4*x/(2*q+(1+k-D/2)*m(2*q)+(k+D)/2*m(4*q)+D/2*m(6*q))),U=N(R*m(q)*N((1+k*o(2*q)+D*o(4*q))/(1+k+D))),j=q*pe(1);function ve(we){return N(1+k*o(2*we)+D*o(4*we))}function pe(we){var Fe=we*q;return(2*Fe+(1+k-D/2)*m(2*Fe)+(k+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 k=1,D=0,q=45*I,R=2,G=r.geoProjectionMutator(xl),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*I,R):q*z},U.ratio=function(j){return arguments.length?G(k,D,q,R=+j):R},U.scale(180.739)}function hs(k,D,q,R,G,U,j,ve,pe,ce,me){if(me.nanEncountered)return NaN;var we,Fe,Ie,Ke,ur,Tr,Kr,ct,dt,pt;if(we=q-D,Fe=k(D+we*.25),Ie=k(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 k=0,D=2.5,q=1.183136,R=r.geoProjectionMutator(Ho),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 vf(k,D){return a(k[0]-D[0])=0;--pe)q=k[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(k,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=k(pe-we[Fe][1][0],ce);return Ke[0]+=k(we[Fe][1][0],me*ce>me*we[Fe][0][1]?we[Fe][0][1]:ce)[0],Ke}q?U.invert=q(U):k.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 ps=[[[[-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,ps).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 ms(k,D){return[3/P*k*N(x*x/3-D*D),D]}ms.invert=function(k,D){return[P/3*k/N(x*x/3-D*D),D]};function gs(){return r.geoProjection(ms).scale(158.837)}function Ju(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=d((1+ve)/(1-ve),1/k),[i(2*q,1-U-j)/k,H((ve-1)/(ve+1))]},D}function Ku(){var k=.5,D=r.geoProjectionMutator(Ju),q=D(k);return q.spacing=function(R){return arguments.length?D(k=+R):k},q.scale(124.75)}var zi=x/M;function Qu(k,D){return[k*(1+N(o(D)))/2,D/(o(D/2)*o(k/6))]}Qu.invert=function(k,D){var q=a(k),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(k,D){return[m(k)/o(D),b(D)*o(k)]}Xn.invert=function(k,D){var q=k*k,R=D*D,G=R+1,U=q+G,j=k?T*N((U-N(U*U-4*q))/q):1/N(G);return[H(k*j),p(D)*V(j)]};function go(){return r.geoProjection(Xn).scale(144.049).clipAngle(90-.001)}function fu(k){var D=o(k),q=b(A+k/2);function R(G,U){var j=U-k,ve=a(j)=0;)me=k[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=k[pe],me=ce[0],we=ce[1],Fe=0,Ie=0,Ke;--pe>=0;)ce=k[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),dt=2*n(ct*.5),pt=m(dt);return[i(j*pt,ct*o(dt)),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]],hf=[[.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(hf,[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(k,D){var q=r.geoProjection(jc(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 r0=N(6),du=N(7);function t0(k,D){var q=H(7*m(D)/(3*r0));return[r0*k*(2*o(2*q/3)-1)/du,9*m(q/3)/du]}t0.invert=function(k,D){var q=3*H(D*du/9);return[k*du/(r0*(2*o(2*q/3)-1)),H(m(q)*3*r0/7)]};function $c(){return r.geoProjection(t0).scale(164.859)}function yf(k,D){for(var q=(1+T)*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,[k/(.84719-.13063*U+ve*ve*(-.04515+.05494*U-.02326*j+.00331*ve)),q]};function hu(){return r.geoProjection(bs).scale(175.295)}function pu(k,D){return[k*(1+o(D))/2,2*(D-b(D/2))]}pu.invert=function(k,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*k/(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(k,D){var q=m(D),R=o(D),G=p(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),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(k,D){k/=_,D/=_;var q=k*k,R=D*D,G=q+R,U=x*x;return[k?(G-1+N((1-G)*(1-G)+4*q))/(2*k)*_: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,_s=1.790857183;function kf(k,D){var q=D*D;return[k,D*(xf+q*q*(n0+q*(wf+Af*q)))]}kf.invert=function(k,D){D>_s?D=_s:D<-_s&&(D=-_s);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[k,q]};function Qc(){return r.geoProjection(kf).scale(139.319)}function Cl(k,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(k){for(var D=k.length,q=[],R=k[D-1],G=0;G0?[-R[0],0]:[180-R[0],180])};var D=i0.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])}),xs(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(k,D){var q=D.stream,R;if(!q)throw new Error("invalid projection");switch(k&&k.type){case"Feature":R=l1;break;case"FeatureCollection":R=o1;break;default:R=u0;break}return R(k,q)}function o1(k,D){return{type:"FeatureCollection",features:k.features.map(function(q){return l1(q,D)})}}function l1(k,D){return{type:"Feature",id:k.id,properties:k.properties,geometry:u0(k.geometry,D)}}function Cf(k,D){return{type:"GeometryCollection",geometries:k.geometries.map(function(q){return u0(q,D)})}}function u0(k,D){if(!k)return null;if(k.type==="GeometryCollection")return Cf(k,D);var q;switch(k.type){case"Point":q=As;break;case"MultiPoint":q=As;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(k,D(q)),q.result()}var hn=[],Ni=[],As={point:function(k,D){hn.push([k,D])},result:function(){var k=hn.length?hn.length<2?{type:"Point",coordinates:hn[0]}:{type:"MultiPoint",coordinates:hn}:null;return hn=[],k}},f0={lineStart:l0,point:function(k,D){hn.push([k,D])},lineEnd:function(){hn.length&&(Ni.push(hn),hn=[])},result:function(){var k=Ni.length?Ni.length<2?{type:"LineString",coordinates:Ni[0]}:{type:"MultiLineString",coordinates:Ni}:null;return Ni=[],k}},wu={polygonStart:l0,lineStart:l0,point:function(k,D){hn.push([k,D])},lineEnd:function(){var k=hn.length;if(k){do hn.push(hn[0].slice());while(++k<4);Ni.push(hn),hn=[]}},polygonEnd:l0,result:function(){if(!Ni.length)return null;var k=[],D=[];return Ni.forEach(function(q){xu(q)?k.push([q]):D.push(q)}),D.forEach(function(q){var R=q[0];k.some(function(G){if(i1(G[0],R))return G.push(q),!0})||k.push([q])}),Ni=[],k.length?k.length>1?{type:"MultiPolygon",coordinates:k}:{type:"Polygon",coordinates:k[0]}:null}};function Sf(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,pe=(j[0]+j[1])*T;if(U)return[ve,pe];var ce=D*T,me=ve>0^pe>0?-1:1;return[me*ve-p(pe)*ce,me*pe-p(ve)*ce]}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 pe=D*T,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)*T,j=(me-we)*T}var Fe=k.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 he(k,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(k!=null)switch(k.type){case"Feature":return ve(k);case"FeatureCollection":{var pe={type:"FeatureCollection",features:k.features.map(ve)};return k.bbox!=null&&(pe.bbox=k.bbox),pe}default:return j(k)}return k}function se(k){var D=m(k);function q(R,G){var U=D?b(R*D/2)/D:R/2;if(!G)return[2*U,-k];var j=2*n(U*m(G)),ve=1/b(G);return[m(j)*ve,G+(1-o(j))*ve-k]}return q.invert=function(R,G){if(a(G+=k)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(k,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[k/(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(k){function D(q,R){var G=o(R),U=(k-1)/(k-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=(k-N(1-G*(k+1)/(k-1)))/((k-1)/U+U/(k-1));return[i(q*j,U*N(1-j*j)),U?H(R*j/U):0]},D}function gr(k,D){var q=ir(k);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/(k-1)+R;return[pe[0]*R/me,ce/me]}return U.invert=function(j,ve){var pe=(k-1)/(k-1-ve*G);return q.invert(pe*j,pe*ve*R)},U}function $e(){var k=2,D=0,q=r.geoProjectionMutator(gr),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*I):D*z},R.scale(432.147).clipAngle(V(1/k)*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(k){return k.length>0}function xt(k){return Math.floor(k*sr)/sr}function Jt(k){return k===ut||k===Lr?[0,k]:[wr,xt(k)]}function ua(k){var D=k[0],q=k[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]:k}function ea(k){return k.map(ua)}function xa(k,D,q){for(var R=0,G=k.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(k){var D,q=k.length,R={},G={},U,j,ve,pe,ce;for(D=0;D0?x-ve:ve)*z],ce=r.geoProjection(k(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(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 yi(){return bo([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function bo(k,D){return un(Rn,k,D)}function Ji(k){if(!(k*=2))return r.geoAzimuthalEquidistantRaw;var D=-k/2,q=-D,R=k*k,G=b(q),U=.5/m(q);function j(ve,pe){var ce=V(o(pe)*o(ve-D)),me=V(o(pe)*o(ve-q)),we=pe<0?-1:1;return ce*=ce,me*=me,[(ce-me)/(2*k),we*N(4*R*me-(R-ce+me)*(R-ce+me))/(2*k)]}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)*V(N(Fe*Fe+Ie*Ie)*U)]},j}function Fl(){return Bi([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Bi(k,D){return un(Ji,k,D)}function El(k,D){if(a(D)y&&--ve>0);return[p(k)*(N(G*G+4)+G)*x/4,_*j]};function _o(){return r.geoProjection(Df).scale(127.16)}function gh(k,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[k*ce*me*m(j),D*pe*me]}return U.invert=function(j,ve){var pe=j/k,ce=ve/D,me=N(pe*pe+ce*ce),we=2*H(me/2);return[i(j*b(we),k*me)/G,me&&H(ve*m(we)/(D*q*me))/R]},U}function yh(k,D,q,R){var G=x/3;k=f(k,y),D=f(D,y),k=c(k,_),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=V(U*o(G))/G,pe=m(k)/m(ve*_),ce=D/x,me=N(j*m(k/2)/m(D/2)),we=me/N(ce*pe*ve),Fe=1/(me*N(ce*pe*ve));return gh(we,Fe,pe,ve,ce)}function f1(){var k=65*I,D=60*I,q=20,R=200,G=r.geoProjectionMutator(yh),U=G(k,D,q,R);return U.poleline=function(j){return arguments.length?G(k=+j*I,D,q,R):k*z},U.parallels=function(j){return arguments.length?G(k,D=+j*I,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 W2(){return f1().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var bh=4*x+3*N(3),_h=2*N(2*x*N(3)/bh),xh=Ar(_h*N(3)/x,_h,bh/6);function c1(){return r.geoProjection(xh).scale(176.84)}function Ff(k,D){return[k*N(1-3*D*D/(x*x)),D]}Ff.invert=function(k,D){return[k/N(1-3*D*D/(x*x)),D]};function wh(){return r.geoProjection(Ff).scale(152.63)}function Z2(k,D){var q=o(D),R=o(k)*q,G=1-R,U=o(k=i(m(k)*q,-m(D))),j=m(k);return q=N(1-R*R),[j*q-U*G,-U*q-j*G]}Z2.invert=function(k,D){var q=(k*k+D*D)/-2,R=N(-q*(2+q)),G=D*q+k*R,U=k*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(k,D){var q=De(k,D);return[(q[0]+k/_)/2,(q[1]+D)/2]}$2.invert=function(k,D){var q=k,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?V(U*we)*N(Tr=1/Ke):Tr=0,Tr,Kr=.5*(2*ur*U*Fe+q/_)-k,ct=.5*(ur*j+R)-D,dt=.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*dt,Gt=(ct*pt-Kr*fa)/Da,tn=(Kr*yt-ct*dt)/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=ue,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=hr,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=dn,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=ls,e.geoGinzburg4Raw=Ri,e.geoGinzburg5=Ks,e.geoGinzburg5Raw=ss,e.geoGinzburg6=Qs,e.geoGinzburg6Raw=us,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=ds,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=gs,e.geoKavrayskiy7Raw=ms,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=df,e.geoMillerRaw=ys,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=hu,e.geoNaturalEarth2Raw=bs,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=xs,e.geoPolyhedralButterfly=gu,e.geoPolyhedralCollignon=j2,e.geoPolyhedralWaterman=bu,e.geoProject=s0,e.geoGringortenQuincuncial=O,e.geoPeirceQuincuncial=$,e.geoPierceQuincuncial=$,e.geoQuantize=he,e.geoQuincuncial=Sf,e.geoRectangularPolyconic=Me,e.geoRectangularPolyconicRaw=se,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=Ms,e.geoVanDerGrintenRaw=El,e.geoVanDerGrinten2=s1,e.geoVanDerGrinten2Raw=c0,e.geoVanDerGrinten3=mh,e.geoVanDerGrinten3Raw=u1,e.geoVanDerGrinten4=_o,e.geoVanDerGrinten4Raw=Df,e.geoWagner=f1,e.geoWagner7=W2,e.geoWagnerRaw=yh,e.geoWagner4=c1,e.geoWagner4Raw=xh,e.geoWagner6=wh,e.geoWagner6Raw=Ff,e.geoWiechel=Cy,e.geoWiechelRaw=Z2,e.geoWinkel3=Ki,e.geoWinkel3Raw=$2,Object.defineProperty(e,"__esModule",{value:!0})}))});var oG=oe((n_e,iG)=>{"use strict";var sn=Lt(),e_=pr(),c3e=_t(),L2=Math.PI/180,Pc=180/Math.PI,t_={cursor:"pointer"},a_={cursor:"auto"};function v3e(e,r){var t=e.projection,a;return r._isScoped?a=d3e:r._isClipped?a=p3e:a=h3e,a(e,t)}iG.exports=v3e;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(d,h){u[a+"."+d]=e_.nestedProperty(o,d).get(),c3e.call("_storeDirectGUIEdit",i,l._preGUI,u);var p=e_.nestedProperty(s,d);p.get()!==h&&(p.set(h),e_.nestedProperty(o,d).set(h),f[a+"."+d]=h)}t(c),c("projection.scale",r.scale()/e.fitScale),c("fitbounds",!1),n.emit("plotly_relayout",f)}function d3e(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 h3e(e,r){var t=n_(e,r),a=2,n,i,o,l,s,u,f,c,d;function h(x){return r.invert(x)}function p(x){var _=h(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:T}=this.getBBox();n=sn.event.sourceEvent?sn.mouse(this):[x+A/2,_+T/2],i=r.rotate(),o=r.translate(),l=i,s=h(n)}function b(){let{x,y:_,width:A,height:T}=this.getBBox();if(u=sn.event.sourceEvent?sn.mouse(this):[x+A/2,_+T/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?h(u)&&(c=h(u),f=[l[0]+(c[0]-s[0]),i[1],i[2]],r.rotate(f),l=f):(n=u,s=h(n)),d=!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_),d&&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 p3e(e,r){var t={r:r.rotate(),k:r.scale()},a=n_(e,r),n=A3e(a,"zoomstart","zoom","zoomend"),i=0,o=a.on,l;a.on("zoomstart",function(){sn.select(this).style(t_);let{x:d,y:h,width:p,height:m}=this.getBBox(),b=sn.event.sourceEvent?sn.mouse(this):[d+p/2,h+m/2],y=r.rotate(),C=y,x=r.translate(),_=m3e(y);l=cy(r,b),o.call(a,"zoom",function(){let{x:A,y:T,width:M,height:E}=this.getBBox(),P=sn.event.sourceEvent?sn.mouse(this):[A+M/2,T+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=y3e(l,z),X=_3e(g3e(_,I)),H=t.r=b3e(X,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 d=r.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":r.scale()/e.fitScale,"geo.projection.rotation.lon":-d[0],"geo.projection.rotation.lat":-d[1]})});function s(d){i++||d({type:"zoomstart"})}function u(d){d({type:"zoom"})}function f(d){--i||d({type:"zoomend"})}function c(d){var h=r.rotate();d("projection.rotation.lon",-h[0]),d("projection.rotation.lat",-h[1])}return sn.rebind(a,n,"on")}function cy(e,r){var t=e.invert(r);return t&&isFinite(t[0])&&isFinite(t[1])&&x3e(t)}function m3e(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 g3e(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 y3e(e,r){if(!(!e||!r)){var t=w3e(e,r),a=Math.sqrt(nG(t,t)),n=.5*Math.acos(Math.max(-1,Math.min(1,nG(e,r)))),i=Math.sin(n)/a;return a&&[Math.cos(n),t[2]*i,-t[1]*i,t[0]*i]}}function b3e(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),d,h;Math.abs(s)>c?(h=(s>0?90:-90)-f,d=0):(h=Math.asin(s/c)*Pc-f,d=Math.sqrt(c*c-s*s));var p=180-h-2*f,m=(Math.atan2(u,l)-Math.atan2(o,d))*Pc,b=(Math.atan2(u,l)-Math.atan2(o,-d))*Pc,y=tG(t[0],t[1],h,m),C=tG(t[0],t[1],p,b);return y<=C?[h,m,t[2]]:[p,b,t[2]]}function tG(e,r,t,a){var n=aG(t-e),i=aG(a-r);return Math.sqrt(n*n+i*i)}function aG(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 _3e(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 x3e(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 nG(e,r){for(var t=0,a=0,n=e.length;a{"use strict";var Zs=Lt(),s_=ay(),M3e=s_.geoPath,T3e=s_.geoDistance,k3e=rG(),C3e=_t(),fh=pr(),S3e=fh.strTranslate,vy=Nt(),uh=da(),lG=Wl(),D3e=Ln(),l_=Ga(),{concatExtremes:F3e,getAutoRange:sG,makePadFn:uG}=P0(),o_=el(),E3e=Ou().prepSelect,L3e=Ou().clearOutline,q3e=Ou().selectOnClick,P3e=oG(),Gi=(ih(),xr(nh)),u_=E2(),{unwrapLonRange:R3e}=u_,cG=X3(),z3e=P8().feature;function vG(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 os=vG.prototype;dG.exports=function(r){return new vG(r)};os.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),D3e.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()};os.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=N3e(a),d=[[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])]],h=a.center||{},p=o.rotation||{},m=l.range||[],b=s.range||[];if(a.fitbounds){u._length=d[1][0]-d[0][0],f._length=d[1][1]-d[0][1],u.range=sG(t,u),f.range=sG(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=F3e(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()),[ue,,xe]=ie||[],De=xe-ue;if(!!ie&&(ae>360||ae<360&&DeMath.max(J,Ee(fe)),0),W=Q.max.reduce((J,fe)=>Math.max(J,ke(fe)),0),le=u._length-je-W,de=le>u._length/10?De*u._length/le:De,K=(ue+xe)/2;u.range=[K-de/2,K+de/2]}var y=(u.range[0]+u.range[1])/2,C=(f.range[0]+f.range[1])/2;if(a._isScoped)h={lon:y,lat:C};else if(a._isClipped){h={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 h={lon:y,lat:C},p={lon:y,lat:p.lat,roll:p.roll}}c.center([h.lon-p.lon,h.lat-p.lat]).rotate([-p.lon,-p.lat,p.roll]).parallels(o.parallels);var T=fG(m,b);c.fitExtent(d,T);var M=this.bounds=c.getBounds(T),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(fG(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):fh.warn("Something went wrong during"+this.id+"fitbounds computations.")}else c.scale(o.scale*E);var X=this.midPt=[(M[0][0]+M[1][0])/2,(M[0][1]+M[1][1])/2];if(c.translate([P[0]+(X[0]-P[0]),P[1]+(X[1]-P[1])]).clipExtent(M),a._isAlbersUsa){var H=c([h.lon,h.lat]);if(H){var V=c.translate();c.translate([V[0]-(H[0]-V[0]),V[1]-(H[1]-V[1])])}}};os.updateBaseLayers=function(e,r){var t=this,a=t.topojson,n=t.layers,i=t.basePaths;function o(d){return d==="lonaxis"||d==="lataxis"}function l(d){return!!Gi.lineLayers[d]}function s(d){return!!Gi.fillLayers[d]}var u=this.hasChoropleth?Gi.layersForChoropleth:Gi.layers,f=u.filter(function(d){return l(d)||s(d)?r["show"+d]:o(d)?r[d].showgrid:!0}),c=t.framework.selectAll(".layer").data(f,String);c.exit().each(function(d){delete n[d],delete i[d],Zs.select(this).remove()}),c.enter().append("g").attr("class",function(d){return"layer "+d}).each(function(d){var h=n[d]=Zs.select(this);d==="bg"?t.bgRect=h.append("rect").style("pointer-events","all"):o(d)?i[d]=h.append("path").style("fill","none"):d==="backplot"?h.append("g").classed("choroplethlayer",!0):d==="frontplot"?h.append("g").classed("scatterlayer",!0):l(d)?i[d]=h.append("path").style("fill","none").style("stroke-miterlimit",2):s(d)&&(i[d]=h.append("path").style("stroke","none"))}),c.order(),c.each(function(d){var h=i[d],p=Gi.layerNameToAdjective[d];d==="frame"?h.datum(Gi.sphereSVG):l(d)||s(d)?h.datum(z3e(a,a.objects[d])):o(d)&&h.datum(B3e(d,r,e)).call(vy.stroke,r[d].gridcolor).call(uh.dashLine,r[d].griddash,r[d].gridwidth),l(d)?h.call(vy.stroke,r[p+"color"]).call(uh.dashLine,"",r[p+"width"]):s(d)&&h.call(vy.fill,r[p+"color"])})};os.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;uh.setRect(this.clipRect,n,i,o,l),this.bgRect.call(uh.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};os.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,d={};for(var h in c)d[t.id+"."+h]=c[h];C3e.call("_guiRelayout",a,d),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,d){if(d.isRect){var h=c.range={};h[t.id]=[s([d.xmin,d.ymin]),s([d.xmax,d.ymax])]}else{var p=c.lassoPoints={};p[t.id]=d.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&&L3e(a)}};if(i==="pan"){n.node().onmousedown=null;let c=P3e(t,r);if(n.call(c),!Zs.event){let d=t.projection.scale(),[h,p]=t.projection.scaleExtent();(dp)&&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,d,h){E3e(c,d,h,f,i)},o_.init(f));n.on("mousemove",function(){var c=t.projection.invert(fh.getPositionFromD3Event());if(!c)return o_.unhover(a,Zs.event);t.xaxis.p2c=function(){return c[0]},t.yaxis.p2c=function(){return c[1]},lG.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&&q3e(Zs.event,a,[t.xaxis],[t.yaxis],t.id,f),o.indexOf("event")>-1&&lG.click(a,Zs.event))})};os.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(uh.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)};os.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},fh.extendFlat(this.viewInitial,n)};os.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};os._render=function(){var e=this.projection,r=e.getPath(),t;function a(i){var o=e(i.lonlat);return o?S3e(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 N3e(e){var r=e.projection,t=r.type,a=Gi.projNames[t];a="geo"+fh.titleCase(a);for(var n=s_[a]||k3e[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 M3e().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 B3e(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 d=c.length,h=new Array(d),p=0;p{"use strict";var P2=Il(),I3e=I3().attributes,H3e=Fs().dash,q2=(ih(),xr(nh)),O3e=Zo().overrideAll,pG=(Mp(),xr(Ap)).default,mG={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:H3e},U3e=gG.exports=O3e({domain:I3e({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:pG(q2.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:pG(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:mG,lataxis:mG},"plot","from-root");U3e.uirevision={valType:"any",editType:"none"}});var bG=oe((l_e,yG)=>{"use strict";var G3e=pr(),Y3e=ka(),V3e=I3().defaults;yG.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+$/,""),d,h;function p(C,x){return G3e.coerce(d,h,o,C,x)}for(var m=0;m{"use strict";var dy=pr(),X3e=bG(),j3e=Pv().getSubplotData,{unwrapLonRange:W3e}=E2(),ch=(ih(),xr(nh)),Z3e=f_(),_G=ch.axesNames;xG.exports=function(r,t,a){X3e(r,t,a,{type:"geo",attributes:Z3e,handleDefaults:$3e,fullData:a,partition:"y"})};function $3e(e,r,t,a){var n=j3e(a.fullData,"geo",a.id),i=n.map(function(ie){return ie.index}),o=t("resolution"),l=t("scope"),s=ch.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",d=r._isSatellite=u==="satellite",h=r._isConic=u.indexOf("conic")!==-1||u==="albers",p=r._isClipped=!!ch.lonaxisSpan[u];if(e.visible===!1){var m=dy.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;C<_G.length;C++){var x=_G[C],_=[30,10][C],A;if(c)A=s[x+"Range"];else{var T=ch[x+"Span"],M=(T[u]||T["*"])/2,E=t("projection.rotation."+x.slice(0,3),s.projRotate[C]);A=[E-M,E+M]}var P=t(x+".range",A);t(x+".tick0"),t(x+".dtick",_),y=t(x+".showgrid",b?void 0:!1),y&&(t(x+".gridcolor"),t(x+".gridwidth"),t(x+".griddash")),r[x]._ax={type:"linear",_id:x.slice(0,3),_traceIndices:i,setScale:dy.identity,c2l:dy.identity,r2l:dy.identity,autorange:!0,range:P.slice(),_m:1,_input:{}}}var z=r.lonaxis.range,I=r.lataxis.range;let[X,H]=W3e(z);var V=(X+H)/2,N;if(!f){var Q=c?s.projRotate:[V,0,0];N=t("projection.rotation.lon",Q[0]),t("projection.rotation.lat",Q[1]),t("projection.rotation.roll",Q[2]),y=t("showcoastlines",!c&&b),y&&(t("coastlinecolor"),t("coastlinewidth")),y=t("showocean",b?void 0:!1),y&&t("oceancolor")}var ee,re;if(f?(ee=-96.6,re=38.7):(ee=c?V:N,re=(I[0]+I[1])/2),t("center.lon",ee),t("center.lat",re),d&&(t("projection.tilt"),t("projection.distance")),h){var ae=s.projParallels||[0,60];t("projection.parallels",ae)}if(t("projection.scale"),t("projection.minscale"),t("projection.maxscale"),y=t("showland",b?void 0:!1),y&&t("landcolor"),y=t("showlakes",b?void 0:!1),y&&t("lakecolor"),y=t("showrivers",b?void 0:!1),y&&(t("rivercolor"),t("riverwidth")),y=t("showcountries",c&&l!=="usa"&&b),y&&(t("countrycolor"),t("countrywidth")),(l==="usa"||l==="north america"&&o===50)&&(t("showsubunits",b),t("subunitcolor"),t("subunitwidth")),c||(y=t("showframe",b),y&&(t("framecolor"),t("framewidth"))),t("bgcolor"),t("fitbounds"),r.fitbounds){let ie=e.center||{},ue=e.projection||{},xe=ue.rotation||{},De=e.lonaxis||{},Ye=e.lataxis||{},Ee=[{dst:r.center,key:"lon",src:ie},{dst:r.center,key:"lat",src:ie},{dst:r.projection,key:"scale",src:ue}];c||(p?Ee.push({dst:r.projection.rotation,key:"lon",src:xe},{dst:r.projection.rotation,key:"lat",src:xe},{dst:r.lonaxis,key:"range",src:De},{dst:r.lataxis,key:"range",src:Ye}):Ee.push({dst:r.projection.rotation,key:"lon",src:xe})),p||Ee.push({key:"range",src:De},{key:"range",src:Ye}),Ee.some(({src:je,key:W})=>je[W]!=null)||ch.fitboundsIncompatible.has(u)?r.fitbounds=!1:Ee.forEach(({dst:je,key:W})=>je&&(je[W]=null))}}});var c_=oe((u_e,TG)=>{"use strict";var J3e=Pv().getSubplotCalcData,K3e=pr().counterRegex,Q3e=hG(),$s="geo",AG=K3e($s),MG={};MG[$s]={valType:"subplotid",dflt:$s,editType:"calc"};function eye(e){for(var r=e._fullLayout,t=e.calcdata,a=r._subplots[$s],n=0;n{"use strict";kG.exports={attributes:ah(),supplyDefaults:ZO(),colorbar:M9(),formatLabels:KO(),calc:aU(),calcGeoJSON:sy().calcGeoJSON,fitCoords:sy().fitCoords,plot:sy().plot,style:$8(),styleOnSelect:Ud().styleOnSelect,hoverPoints:XU(),eventData:WU(),selectPoints:JU(),moduleType:"trace",name:"scattergeo",basePlotModule:c_(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var DG=oe((c_e,SG)=>{"use strict";SG.exports=CG()});var hy=oe((v_e,LG)=>{"use strict";var{hovertemplateAttrs:aye,templatefallbackAttrs:nye}=Vf(),rf=ah(),iye=Y1(),FG=Wo(),oye=Il().defaultLine,ef=Dn().extendFlat,EG=rf.marker.line;LG.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({},EG.color,{dflt:oye}),width:ef({},EG.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({},FG.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:aye(),hovertemplatefallback:nye(),showlegend:ef({},FG.showlegend,{dflt:!1})},iye("",{cLetter:"z",editTypeOverride:"calc"}))});var PG=oe((d_e,qG)=>{"use strict";var py=pr(),lye=V1(),sye=hy();qG.exports=function(r,t,a,n){function i(d,h){return py.coerce(r,t,sye,d,h)}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"),lye(r,t,n,i,{prefix:"",cLetter:"z"}),py.coerceSelectionMarkerOpacity(t,i)}});var zG=oe((h_e,RG)=>{"use strict";RG.exports={min:"zmin",max:"zmax"}});var HG=oe((p_e,IG)=>{"use strict";var NG=Qt(),uye=(Za(),xr(nn)).BADNUM,fye=$p(),cye=Nd(),vye=e3();function BG(e){return e&&typeof e=="string"}IG.exports=function(r,t){var a=t._length,n=new Array(a),i;t.geojson?i=function(f){return BG(f)||NG(f)}:i=BG;for(var o=0;o{"use strict";var dye=Lt(),hye=Nt(),v_=da(),pye=Kp();function mye(e,r){r&&OG(e,r)}function OG(e,r){var t=r[0].trace,a=r[0].node3,n=a.selectAll(".choroplethlocation"),i=t.marker||{},o=i.line||{},l=pye.makeColorScaleFuncFromTrace(t);n.each(function(s){dye.select(this).attr("fill",l(s.z)).call(hye.stroke,s.mlc||o.color).call(v_.dashLine,"",s.mlw||o.width||0).style("opacity",i.opacity)}),v_.selectedPointStyle(n,t)}function gye(e,r){var t=r[0].node3,a=r[0].trace;a.selectedpoints?v_.selectedPointStyle(t.selectAll(".choroplethlocation"),a):OG(e,r)}UG.exports={style:mye,styleOnSelect:gye}});var gy=oe((g_e,VG)=>{"use strict";var yye=Lt(),GG=pr(),Rc=E2(),bye=X3().getTopojsonFeatures,YG=P0().findExtremes,_ye=my().style;function xye(e,r,t){var a=r.layers.backplot.select(".choroplethlayer");GG.makeTraceGroups(a,t,"trace choropleth").each(function(n){var i=yye.select(this),o=i.selectAll("path.choroplethlocation").data(GG.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),_ye(e,n)})}function wye(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):bye(t,n.topojson);let s=Rc.fitGeojsonBbox(t,a);for(var u=[],f=[],c=0;c{"use strict";var Mye=Ga(),Tye=hy(),kye=pr().fillText,{ANTIMERIDIAN_LON_SHIFT:Cye}=E2();XG.exports=function(r,t,a){var n=r.cd,i=n[0].trace,o=r.subplot,l,s,u,f,c=[t,a];let d=[t+Cye,a];for(s=0;s")}}});var ZG=oe((b_e,WG)=>{"use strict";WG.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 JG=oe((__e,$G)=>{"use strict";$G.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";KG.exports={attributes:hy(),supplyDefaults:PG(),colorbar:zG(),calc:HG(),calcGeoJSON:gy().calcGeoJSON,fitCoords:gy().fitCoords,plot:gy().plot,style:my().style,styleOnSelect:my().styleOnSelect,hoverPoints:jG(),eventData:ZG(),selectPoints:JG(),moduleType:"trace",name:"choropleth",basePlotModule:c_(),categories:["geo","noOpacity","showLegend"],meta:{}}});var rY=oe((w_e,eY)=>{"use strict";eY.exports=QG()});var pi=oe((A_e,aY)=>{"use strict";var tY=Object.getOwnPropertySymbols,Dye=Object.prototype.hasOwnProperty,Fye=Object.prototype.propertyIsEnumerable;function Eye(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Lye(){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}}aY.exports=Lye()?Object.assign:function(e,r){for(var t,a=Eye(e),n,i=1;i{var by=pi();function nY(){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(nY.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 d_(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(d_.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 h_(){this.shortYearCutoff="+10"}by(h_.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 d_(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=iY.exports=new nY;qt.cdate=d_;qt.baseCalendar=h_;qt.calendars.gregorian=p_});var oY=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 T=1;x+T1},f=function(_,A,T,M){var E=""+A;if(u(_,M))for(;E.length1},C=function(X,H){var V=y(X,H),N=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(X)+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 X=l.call(x,r.substring(E));return E+=X.length,X}return C("m")},A=function(X,H,V,N){for(var Q=y(X,N)?V:H,ee=0;ee-1){d=1,h=p;for(var I=this.daysInMonth(c,d);h>I;I=this.daysInMonth(c,d))d++,h-=I}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,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 lY=oe(()=>{var tf=mi(),qye=pi(),g_=tf.instance();function _y(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_y.prototype=new tf.baseCalendar;qye(_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(Rye);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(zye);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(Nye);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=Iye(e,i,t,n);return g_.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=g_.fromJD(e),t=Bye(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(Pye),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 Pye=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Rye=/^\d?\d[iI]?/m,zye=/^闰?十?[一二三四五六七八九]?月/m,Nye=/^闰?十?[一二三四五六七八九]?/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 Bye(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,d=u>>5&15,h=u&31,p,m=new Date(c,d-1,h),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 Iye(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 d=af[o.year-af[0]],h=d>>13,p;h&&(o.month>h||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 sY=oe(()=>{var zc=mi(),Hye=pi();function y_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y_.prototype=new zc.baseCalendar;Hye(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 uY=oe(()=>{var Wu=mi(),Oye=pi();function b_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b_.prototype=new Wu.baseCalendar;Oye(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:Uye[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 Uye={20:"Fruitbat",21:"Anchovy"};Wu.calendars.discworld=b_});var fY=oe(()=>{var Nc=mi(),Gye=pi();function __(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}__.prototype=new Nc.baseCalendar;Gye(__.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 cY=oe(()=>{var of=mi(),Yye=pi();function x_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x_.prototype=new of.baseCalendar;Yye(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 vY=oe(()=>{var vh=mi(),Vye=pi();function w_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}w_.prototype=new vh.baseCalendar;Vye(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,vh.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,vh.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,vh.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)}});vh.calendars.islamic=w_});var dY=oe(()=>{var dh=mi(),Xye=pi();function A_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A_.prototype=new dh.baseCalendar;Xye(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,dh.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,dh.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,dh.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)}});dh.calendars.julian=A_});var pY=oe(()=>{var pl=mi(),jye=pi();function T_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T_.prototype=new pl.baseCalendar;jye(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 gY=oe(()=>{var Bc=mi(),Wye=pi();function k_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k_.prototype=new Bc.baseCalendar;var mY=Bc.instance("gregorian");Wye(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 mY.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 yY=oe(()=>{var Ic=mi(),Zye=pi();function C_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C_.prototype=new Ic.baseCalendar;Zye(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(),$ye=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;$ye(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 _Y=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 xY=oe(()=>{var Oc=mi(),Kye=pi(),Ty=Oc.instance();function D_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}D_.prototype=new Oc.baseCalendar;Kye(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 wY=oe(()=>{var Uc=mi(),Qye=pi();function F_(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}F_.prototype=new Uc.baseCalendar;Qye(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 MY=oe((rxe,AY)=>{"use strict";AY.exports=mi();oY();lY();sY();uY();fY();cY();vY();dY();pY();gY();yY();bY();_Y();xY();wY()});var EY=oe((txe,FY)=>{"use strict";var kY=MY(),hh=pr(),CY=(Za(),xr(nn)),e4e=CY.EPOCHJD,r4e=CY.ONEDAY,q_={valType:"enumerated",values:hh.sortObjectKeys(kY.calendars),editType:"calc",dflt:"gregorian"},SY=function(e,r,t,a){var n={};return n[t]=q_,hh.coerce(e,r,n,t,a)},t4e=function(e,r,t,a){for(var n=0;n{"use strict";LY.exports=EY()});var s4e=oe((nxe,RY)=>{var PY=UO();PY.register([DG(),rY(),qY()]);RY.exports=PY});return s4e();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl2d.js b/dist/plotly-gl2d.js index 9cc0aaeb29d..9c658b65ab9 100644 --- a/dist/plotly-gl2d.js +++ b/dist/plotly-gl2d.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl2d) v4.2.0 +* plotly.js (gl2d) v4.3.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.2.0"; + exports.version = "4.3.0"; } }); @@ -9261,7 +9261,7 @@ var Plotly = (() => { for (var i = 1; i < length; i++) { input = inputs[i]; for (key in input) { - src = target[key]; + src = Object.prototype.hasOwnProperty.call(target, key) ? target[key] : void 0; copy = input[key]; if (noArrayCopies && isArray(copy)) { target[key] = copy; @@ -19641,8 +19641,8 @@ var Plotly = (() => { }; var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/; var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/; - function notValid(prop) { - return prop.slice(0, 2) === "__"; + function notValid(obj, prop) { + return prop in obj && !Object.prototype.hasOwnProperty.call(obj, prop); } lib.expandObjectPaths = function(data) { var match, key, prop, datum, idx, dest, trailingPath; @@ -19652,7 +19652,7 @@ var Plotly = (() => { if (match = key.match(dottedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; delete data[key]; data[prop] = lib.extendDeepNoArrays( data[prop] || {}, @@ -19661,7 +19661,7 @@ var Plotly = (() => { } else if (match = key.match(indexedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; idx = parseInt(match[2]); delete data[key]; data[prop] = data[prop] || []; @@ -19670,11 +19670,11 @@ var Plotly = (() => { dest = data[prop][idx] = data[prop][idx] || {}; lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum))); } else { - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; data[prop][idx] = lib.expandObjectPaths(datum); } } else { - if (notValid(key)) continue; + if (notValid(data, key)) continue; data[key] = lib.expandObjectPaths(data[key]); } } @@ -22229,7 +22229,7 @@ var Plotly = (() => { ax._counterAxes.sort(axisIDs.idSort); ax._subplotsWith.sort(Lib.subplotSort); ax._mainSubplot = findMainSubplot(ax, newFullLayout); - if (ax._counterAxes.length && (ax.spikemode && ax.spikemode.indexOf("across") !== -1 || ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { + if (ax._counterAxes.length && (ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { var min = 1; var max = 0; for (j = 0; j < ax._counterAxes.length; j++) { @@ -25421,6 +25421,33 @@ var Plotly = (() => { dflt: [0, 1], editType: "plot" }, + domainpad: { + left: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + right: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + top: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + bottom: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + editType: "plot" + }, position: { valType: "number", min: 0, @@ -29097,6 +29124,12 @@ var Plotly = (() => { function isValidCategory(v) { return v !== null && v !== void 0; } + var MIN_PADDED_LENGTH = 2; + function padFactor(wanted, bandLength) { + if (wanted <= 0) return 0; + const room = Math.max(0, bandLength - MIN_PADDED_LENGTH); + return wanted > room ? room / wanted : 1; + } module.exports = function setConvert(ax, fullLayout) { fullLayout = fullLayout || {}; var axId = ax._id || "x"; @@ -29467,6 +29500,7 @@ var Plotly = (() => { if (ax.overlaying) { var ax2 = axisIds.getFromId({ _fullLayout: fullLayout }, ax.overlaying); ax.domain = ax2.domain; + ax.domainpad = ax2.domainpad; } var rangeAttr = usePrivateRange && ax._r ? "_r" : "range"; var calendar = ax.calendar; @@ -29474,14 +29508,26 @@ var Plotly = (() => { var rl0 = ax.r2l(ax[rangeAttr][0], calendar); var rl1 = ax.r2l(ax[rangeAttr][1], calendar); var isY2 = axLetter === "y"; + const bandLength = (isY2 ? gs.h : gs.w) * (ax.domain[1] - ax.domain[0]); + const pad = ax.domainpad; + let padStart = 0; + let padEnd = 0; + if (pad) { + padStart = (isY2 ? pad.top : pad.left) || 0; + padEnd = (isY2 ? pad.bottom : pad.right) || 0; + const fits = padFactor(padStart + padEnd, bandLength); + padStart *= fits; + padEnd *= fits; + } + ax._length = bandLength - padStart - padEnd; + ax._padStart = padStart; + ax._padEnd = padEnd; if (isY2) { - ax._offset = gs.t + (1 - ax.domain[1]) * gs.h; - ax._length = gs.h * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.t + (1 - ax.domain[1]) * gs.h + padStart; ax._m = ax._length / (rl0 - rl1); ax._b = -ax._m * rl1; } else { - ax._offset = gs.l + ax.domain[0] * gs.w; - ax._length = gs.w * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.l + ax.domain[0] * gs.w + padStart; ax._m = ax._length / (rl1 - rl0); ax._b = -ax._m * rl0; } @@ -31338,7 +31384,7 @@ var Plotly = (() => { for (var i = 0; i < vals.length; i++) { var vali = tickVal2l(vals[i]); if (vali > tickMin && vali < tickMax) { - var obj = axes.tickText(ax, vali, false, String(text[i]), { + const obj = axes.tickText(ax, vali, false, text[i] !== void 0, { first: i === firstIdx, last: i === lastIdx }); @@ -33427,6 +33473,7 @@ var Plotly = (() => { var noSwapAttrs = [ "anchor", "domain", + "domainpad", "overlaying", "position", "side", @@ -38012,6 +38059,30 @@ var Plotly = (() => { } return d; } + function getAcrossSpikeSpan(gd, ax, gs) { + const isY = ax._id.charAt(0) === "y"; + let start = Infinity; + let end = -Infinity; + for (const counterId of ax._counterAxes || []) { + const counterAx = Axes.getFromId(gd, counterId); + if (!counterAx) continue; + const padStart = counterAx._padStart || 0; + const padEnd = counterAx._padEnd || 0; + if (isY) { + start = Math.min(start, gs.l + counterAx.domain[0] * gs.w + padStart); + end = Math.max(end, gs.l + counterAx.domain[1] * gs.w - padEnd); + } else { + start = Math.min(start, gs.t + (1 - counterAx.domain[1]) * gs.h + padStart); + end = Math.max(end, gs.t + (1 - counterAx.domain[0]) * gs.h - padEnd); + } + } + if (ax.anchor === "free") { + const position = isY ? gs.l + ax.position * gs.w : gs.t + (1 - ax.position) * gs.h; + start = Math.min(start, position); + end = Math.max(end, position); + } + return [start, end]; + } function createSpikelines(gd, closestPoints, opts) { var container = opts.container; var fullLayout = opts.fullLayout; @@ -38048,14 +38119,9 @@ var Plotly = (() => { xEndSpike = hLinePointX; } if (yMode.indexOf("across") !== -1) { - var xAcross0 = ya._counterDomainMin; - var xAcross1 = ya._counterDomainMax; - if (ya.anchor === "free") { - xAcross0 = Math.min(xAcross0, ya.position); - xAcross1 = Math.max(xAcross1, ya.position); - } - xBase = gs.l + xAcross0 * gs.w; - xEndSpike = gs.l + xAcross1 * gs.w; + const xSpan = getAcrossSpikeSpan(gd, ya, gs); + xBase = xSpan[0]; + xEndSpike = xSpan[1]; } container.insert("line", ":first-child").attr({ x1: xBase, @@ -38109,14 +38175,9 @@ var Plotly = (() => { yEndSpike = vLinePointY; } if (xMode.indexOf("across") !== -1) { - var yAcross0 = xa._counterDomainMin; - var yAcross1 = xa._counterDomainMax; - if (xa.anchor === "free") { - yAcross0 = Math.min(yAcross0, xa.position); - yAcross1 = Math.max(yAcross1, xa.position); - } - yBase = gs.t + (1 - yAcross1) * gs.h; - yEndSpike = gs.t + (1 - yAcross0) * gs.h; + const ySpan = getAcrossSpikeSpan(gd, xa, gs); + yBase = ySpan[0]; + yEndSpike = ySpan[1]; } container.insert("line", ":first-child").attr({ x1: vLinePointX, @@ -42772,7 +42833,7 @@ var Plotly = (() => { var outerMax = rangeCenter + halfRange * factor * 1.0001; var getPadMin = autorange.makePadFn(fullLayout, ax, 0); var getPadMax = autorange.makePadFn(fullLayout, ax, 1); - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); var m = Math.abs(ax._m); var extremes = autorange.concatExtremes(gd, ax); var minArray = extremes.min; @@ -42797,7 +42858,7 @@ var Plotly = (() => { rangeMax = ax.l2r(rangeMax); ax.range = ax._input.range = rl0 < rl1 ? [rangeMin, rangeMax] : [rangeMax, rangeMin]; } - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); } } } @@ -42828,13 +42889,26 @@ var Plotly = (() => { } } }; - function updateDomain(ax, factor) { + function domainPadFraction(ax, fullLayout) { + const pad = ax.domainpad; + if (!pad) return 0; + const gs = fullLayout._size; + return ax._id.charAt(0) === "y" ? ((pad.top || 0) + (pad.bottom || 0)) / gs.h : ((pad.left || 0) + (pad.right || 0)) / gs.w; + } + function updateDomain(ax, factor, fullLayout) { var inputDomain = ax._inputDomain; var centerFraction = FROM_BL2[ax.constraintoward]; var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction; + let divisor = factor; + const padFraction = domainPadFraction(ax, fullLayout); + if (padFraction > 0) { + const inputSpan = inputDomain[1] - inputDomain[0]; + const drawnSpan = inputSpan - padFraction; + if (drawnSpan > 0) divisor = inputSpan / (drawnSpan / factor + padFraction); + } ax.domain = ax._input.domain = [ - center + (inputDomain[0] - center) / factor, - center + (inputDomain[1] - center) / factor + center + (inputDomain[0] - center) / divisor, + center + (inputDomain[1] - center) / divisor ]; ax.setScale(); } @@ -50063,6 +50137,10 @@ var Plotly = (() => { if (!newType || newType === "-") newType = "linear"; Registry.getComponentMethod("annotations", "convertCoords")(gd, fullProp, newType, doextra); Registry.getComponentMethod("images", "convertCoords")(gd, fullProp, newType, doextra); + if (!ptrunk && fullProp && vi && (vi.range !== void 0 || vi.autorange !== void 0)) { + recordAlteredAxis(`${pleaf}.range`); + fullProp._inputRange = null; + } } var containerArrayMatch = manageArrays.containerArrayMatch(ai); if (containerArrayMatch) { @@ -50576,6 +50654,14 @@ var Plotly = (() => { newFullLayout[key]._inputDomain = null; } } + const newRange = newFullLayout[key].range; + const oldRange = oldFullLayout[key].range; + const oldInputRange = oldFullLayout[key]._inputRange; + if (oldInputRange && newRange && oldRange) { + const isInputRange = newRange[0] === oldInputRange[0] && newRange[1] === oldInputRange[1]; + const isOldRange = newRange[0] === oldRange[0] && newRange[1] === oldRange[1]; + if (!isInputRange && !isOldRange) newFullLayout[key]._inputRange = null; + } } var diffOpts = { getValObject: getLayoutValObject, @@ -55824,6 +55910,13 @@ var Plotly = (() => { var domain = coerce("domain", dfltDomain); if (domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain; Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain); + if (letter === "x") { + coerce("domainpad.left"); + coerce("domainpad.right"); + } else { + coerce("domainpad.top"); + coerce("domainpad.bottom"); + } if (containerOut.tickmode === "sync") { containerOut.tickmode = "auto"; } @@ -61200,9 +61293,8 @@ var Plotly = (() => { } axisOpts.cleanRange("rangeslider.range"); var gs = fullLayout._size; - var domain = axisOpts.domain; - opts2._width = gs.w * (domain[1] - domain[0]); - var x = Math.round(gs.l + gs.w * domain[0]); + opts2._width = axisOpts._length; + const x = Math.round(axisOpts._offset); var y = Math.round( gs.t + gs.h * (1 - axisOpts._counterDomainMin) + (axisOpts.side === "bottom" ? axisOpts._depth : 0) + opts2._offsetShift + constants2.extraPad ); @@ -83682,11 +83774,15 @@ void main() { var t = gs.t * plotGlPixelRatio; var w = gs.w * plotGlPixelRatio; var h = gs.h * plotGlPixelRatio; + const padL = (xaxis._padStart || 0) * plotGlPixelRatio; + const padR = (xaxis._padEnd || 0) * plotGlPixelRatio; + const padT = (yaxis._padStart || 0) * plotGlPixelRatio; + const padB = (yaxis._padEnd || 0) * plotGlPixelRatio; return [ - l + xaxis.domain[0] * w, - b + yaxis.domain[0] * h, - width - r - (1 - xaxis.domain[1]) * w, - height - t - (1 - yaxis.domain[1]) * h + l + xaxis.domain[0] * w + padL, + b + yaxis.domain[0] * h + padB, + width - r - (1 - xaxis.domain[1]) * w - padR, + height - t - (1 - yaxis.domain[1]) * h - padT ]; } var exports = module.exports = function plot(gd, subplot, cdata) { @@ -84865,6 +84961,7 @@ void main() { var viewOpts = scene.viewOpts = {}; viewOpts.ranges = new Array(visibleLength); viewOpts.domains = new Array(visibleLength); + const padFrac = (px, total) => (px || 0) / total; for (k = 0; k < visibleDims.length; k++) { i = visibleDims[k]; var rng = viewOpts.ranges[k] = new Array(4); @@ -84873,15 +84970,15 @@ void main() { if (xa) { rng[0] = xa._rl[0]; rng[2] = xa._rl[1]; - dmn[0] = xa.domain[0]; - dmn[2] = xa.domain[1]; + dmn[0] = xa.domain[0] + padFrac(xa._padStart, gs.w); + dmn[2] = xa.domain[1] - padFrac(xa._padEnd, gs.w); } ya = AxisIDs.getFromId(gd, trace._diag[i][1]); if (ya) { rng[1] = ya._rl[0]; rng[3] = ya._rl[1]; - dmn[1] = ya.domain[0]; - dmn[3] = ya.domain[1]; + dmn[1] = ya.domain[0] + padFrac(ya._padEnd, gs.h); + dmn[3] = ya.domain[1] - padFrac(ya._padStart, gs.h); } } var plotGlPixelRatio = gd._context.plotGlPixelRatio; @@ -85259,7 +85356,7 @@ void main() { var xOffset = xa._offset; var xLength = xa._length; var yLength = ya._length; - var yOffset = gs.b + ya.domain[0] * gs.h; + const yOffset = gs.b + ya.domain[0] * gs.h + (ya._padEnd || 0); var ym = -ya._m; var yb = -ym * ya.r2l(ya.range[0], ya.calendar); var x, y; diff --git a/dist/plotly-gl2d.min.js b/dist/plotly-gl2d.min.js index 8540bdd1f92..d90dc5cff76 100644 --- a/dist/plotly-gl2d.min.js +++ b/dist/plotly-gl2d.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl2d - minified) v4.2.0 +* plotly.js (gl2d - minified) v4.3.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 _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(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(;$t{var wte=Object.create;var f2=Object.defineProperty,Ate=Object.defineProperties,Tte=Object.getOwnPropertyDescriptor,Mte=Object.getOwnPropertyDescriptors,kte=Object.getOwnPropertyNames,ay=Object.getOwnPropertySymbols,Ste=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)=>Ate(e,Mte(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 kte(r))!f_.call(e,n)&&n!==t&&f2(e,n,{get:()=>r[n],enumerable:!(a=Tte(r,n))||a.enumerable});return e};var c2=(e,r,t)=>(t=e!=null?wte(Ste(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.3.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[W++],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,W))}):(ke={},re=function(Se,De){ke[Se]=L(R,De,W)}),ve.forEach(re),ke}function N(R,O){if(O>=g.length)return R;var W=[],J=A[O++];return R.forEach(function($,K){W.push({key:$,values:N(K,O)})}),J?W.sort(function($,K){return J($.key,K.key)}):W}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 W(){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?V:W}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:X(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,me())};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=me().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,W=N-S,J=O*O+W*W,$,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(W,ui).on(J,xi),Wa=ye(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(W,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),ae=$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]=ye(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?ns(h.l,h.a,h.b):ns((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 ns(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 is(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=is((.4124564*h+.3575761*g+.1804375*A)/Ln),D=is((.2126729*h+.7151522*g+.072175*A)/Fo),L=is((.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=W:R.onreadystatechange=function(){R.readyState>3&&W()};function W(){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(W,J,$){arguments.length<3&&($=J,J=null);var K=Wr(W,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(W){return D.parse(W.responseText)}function N(W){return function(J){return D.parse(J.responseText,W)}}D.parse=function(W,J){var $;return D.parseRows(W,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(W.charCodeAt(sr)===34){for(var Ar=sr;Ar++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[W[$[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 te(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 W=S.site,J=W.x,$=W.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,ye={x:(ve*Se-we*De)/xe+J,y:(K*De-re*Se)/xe+$};Iu(D.edge,W,ke,ye),O.edge=p0(W,h,null,ye),D.edge=p0(h,ke,null,ye),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,W=O-g;if(!W)return R;var J=R-S,$=1/L-1/W,K=J/W;return $?(-K+Math.sqrt(K*K-2*$*(J*J/(-2*W)-O+W/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,W=Dl,J=W.length,$,K,we,ke,re,ve;J--;)if($=W[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+W*W,we=J*J+ve*ve,ke=(ve*K-W*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=ls,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]}),W}function R(O){return O.map(function(W,J){return{x:Math.round(S(W,J)/rr)*rr,y:Math.round(D(W,J)/rr)*rr,i:J}})}return N.links=function(O){return Hu(R(O)).edges.filter(function(W){return W.l&&W.r}).map(function(W){return{source:O[W.l.i],target:O[W.r.i]}})},N.triangles=function(O){var W=[];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>ye&&(ye=J.y),we.push(J.x),ke.push(J.y);else for(re=0;reDe&&(De=sr),Ar>ye&&(ye=Ar),we.push(sr),ke.push(Ar)}var Nr=De-xe,Zr=ye-Se;Nr>Zr?ye=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,ye)},Bt.visit=function(gt){g0(gt,Bt,xe,Se,De,ye)},Bt.find=function(gt){return um(Bt,gt[0],gt[1],xe,Se,De,ye)},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(fs(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=ye:(A.c=null,A.t=NaN,A=null,g.end({type:"end",alpha:L=0})):ye>0&&(g.start({type:"start",alpha:L=ye}),A=Vs(h.tick)),h):L},h.start=function(){var ye,sr=we.length,Ar=ke.length,Nr=S[0],Zr=S[1],ct,vt;for(ye=0;ye=0;)L.push(J=W[O]),J.parent=R,J.depth=R.depth+1;A&&(R.value=0),R.children=W}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),W=A.call(this,O,K),J=S.call(this,W,O,K),$,K=-1,we=O.length,ke=J.length-1,re=h?1:1/we,ve;++K0)for(K=-1;++K=W[0]&&ve<=W[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],W=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/W,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,W/2,J/2,S?1:1/Math.max(2*O.r/W,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,W,J,$,K;function we(ye){A=Math.min(ye.x-ye.r,A),S=Math.max(ye.x+ye.r,S),D=Math.min(ye.y-ye.r,D),L=Math.max(ye.y+ye.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,W=3;Wve.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),ye=A[1]/(xe.depth||1);_0(we,function(sr){sr.x=(sr.x+Se)*De,sr.y=sr.depth*ye})}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,ye+=ve.m,Se+=ke.m;re&&!Om(ke)&&(ke.t=re,ke.m+=De-Se),we&&!Im(ve)&&(ve.t=we,ve.m+=xe-ye,K=J)}return K}function W(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?W:null,D):S?null:A},D.nodeSize=function(J){return arguments.length?(S=(A=J)==null?null:W,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],W,J=0;rl(O,function(re){var ve=re.children;ve&&ve.length?(re.x=Um(ve),re.y=tl(ve)):(re.x=W?J+=g(re,W):0,re.y=0,W=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 W(re,ve){for(var xe=-1,Se=re.length,De,ye;++xe0;)Se.push(ye=De[Zr-1]),Se.area+=ye.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,ye=[];for(W(Se,xe.dx*xe.dy/re.value),ye.area=0;De=Se.pop();)ye.push(De),ye.area+=De.area,De.z!=null&&(we(ye,De.z?xe.dx:xe.dy,xe,!Se.length),ye.length=ye.area=0);ve.forEach($)}}function K(re,ve){for(var xe=re.area,Se,De=0,ye=1/0,sr=-1,Ar=re.length;++srDe&&(De=Se));return xe*=xe,ve*=ve,xe?Math.max(ve*De*O/xe,xe/(ve*ye*O)):1/0}function we(re,ve,xe,Se){var De=-1,ye=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_,W=S?km:Mm;return D=O(h,g,W,A),L=O(g,h,W,us),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,W){return d3_scale_linearTickFormat(h,O,W)},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(cs(h,g)[2])),Yu(h,ei(cs(h,g)[2])),h}function cs(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,cs(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=[],W=R[0],J=R[1],$=Math.floor(D(W)),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(W){return R+O*W})}return L.domain=function(R){if(!arguments.length)return h;h=[],A=new x;for(var O=-1,W=R.length,J;++O0?A[L-1]:h[0],LK?0:1;if(J=lt)return O(J,ke)+(W?O(W,1-ke):"")+"Z";var re,ve,xe,Se,De=0,ye=0,sr,Ar,Nr,Zr,ct,vt,Bt,gt,Rt=[];if((Se=(+N.apply(this,arguments)||0)/2)&&(xe=S===M0?Math.sqrt(W*W+J*J):+S.apply(this,arguments),ke||(ye*=-1),J&&(ye=Ha(xe/J*Math.sin(Se))),W&&(De=Ha(xe/W*Math.sin(Se)))),J){sr=J*Math.cos($+ye),Ar=J*Math.sin($+ye),Nr=J*Math.cos(K-ye),Zr=J*Math.sin(K-ye);var pa=Math.abs(K-$-2*ye)<=at?0:1;if(ye&&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(W){ct=W*Math.cos(K-De),vt=W*Math.sin(K-De),Bt=W*Math.cos($+De),gt=W*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=W*Math.cos(Or),vt=W*Math.sin(Or),Bt=gt=null}}else ct=vt=0;if(we>rr&&(re=Math.min(Math.abs(J-W)/2,+A.apply(this,arguments)))>.001){ve=W0?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,W=-R*L,J=h[0]+O,$=h[1]+W,K=g[0]+O,we=g[1]+W,ke=(J+K)/2,re=($+we)/2,ve=K-J,xe=we-$,Se=ve*ve+xe*xe,De=A-S,ye=J*we-K*$,sr=(xe<0?-1:1)*Math.sqrt(Math.max(0,De*De*Se-ye*ye)),Ar=(ye*xe-ve*sr)/Se,Nr=(-ye*ve-xe*sr)/Se,Zr=(ye*xe+ve*sr)/Se,ct=(-ye*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-W],[Ar*A/De,Nr*A/De]]}function cv(){return!0}function jd(h){var g=os,A=Nu,S=cv,D=io,L=D.key,N=.7;function R(O){var W=[],J=[],$=-1,K=O.length,we,ke=St(g),re=St(A);function ve(){W.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 W=2;W9&&(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 W(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,W=[N,{x:N.x,y:O},{x:R.x,y:O},R];return W=W.map(A),"M"+W[0]+"C"+W[1]+" "+W[2]+" "+W[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=ds||++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(W){W.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,ye,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"?(ye=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)):(ye=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(ye,K,$);ve.call(ye,$,K),Se.call(ye,K,K)})}return O.scale=function(W){return arguments.length?(h=W,O):h},O.orient=function(W){return arguments.length?(g=W in a2?W+"":_v,O):g},O.ticks=function(){return arguments.length?(L=t(arguments),O):L},O.tickValues=function(W){return arguments.length?(N=W,O):N},O.tickFormat=function(W){return arguments.length?(R=W,O):R},O.tickSize=function(W){var J=arguments.length;return J?(A=+W,S=+arguments[J-1],O):A},O.innerTickSize=function(W){return arguments.length?(A=+W,O):A},O.outerTickSize=function(W){return arguments.length?(S=+W,O):S},O.tickPadding=function(W){return arguments.length?(D=+W,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,W=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(W,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),ye=e.transition(xe),sr;g&&(sr=ov(g),ye.attr("x",sr[0]).attr("width",sr[1]-sr[0]),K(De)),A&&(sr=ov(A),ye.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,ds?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),ye=b0(D,xe.y);return L=N=null,function(sr){S=xe.x=De(sr),D=xe.y=ye(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(),ye=!/^(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,G=E.range,X=F.range,Y=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()}),V=Y.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()}),me=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,te=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=te.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=G,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=Y,e.timeMonths=V,e.timeSaturday=F,e.timeSaturdays=X,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=te,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=me,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:is,A:Ro,b:Kn,B:kl,c:null,d:Y,e:Y,f:me,g:qe,G:Ye,H:V,I:Z,j,L:ee,m:fe,M:he,p:Ys,q:Po,Q:$r,s:tt,S:te,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:G,s:X,S:q,u:m,U:y,V:b,w:p,W:T,x:ns,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 ns(kt,St,xa){return ba(kt,tr,St,xa)}function $n(kt,St,xa){return ba(kt,hr,St,xa)}function is(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 G(le,Te,tr){var hr=l.exec(Te.slice(tr));return hr?(le.Q=+hr[0],tr+hr[0].length):-1}function X(le,Te,tr){var hr=l.exec(Te.slice(tr));return hr?(le.s=+hr[0],tr+hr[0].length):-1}function Y(le,Te){return f(le.getDate(),Te,2)}function V(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 me(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 te(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 G(Y){Y=l(Y);var V=Y.fill,Z=Y.align,j=Y.sign,ee=Y.symbol,me=Y.zero,fe=Y.width,he=Y.comma,te=Y.precision,Le=Y.trim,ce=Y.type;ce==="n"?(he=!0,ce="g"):d[ce]||(te===void 0&&(te=12),Le=!0,ce="g"),(me||V==="0"&&Z==="=")&&(me=!0,V="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);te=te===void 0?6:/[gprs]/.test(ce)?Math.max(1,Math.min(21,te)):Math.max(0,Math.min(20,te));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),te),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&&!me&&(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 Y+""},ur}function X(Y,V){var Z=G((Y=l(Y),Y.type="f",Y)),j=Math.max(-8,Math.min(8,Math.floor(a(V)/3)))*3,ee=Math.pow(10,-j),me=y[8+j/3];return function(fe){return Z(ee*fe)+me}}return{format:G,formatPrefix:X}}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((gLe,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((bLe,ak)=>{"use strict";var Cte=tk();ak.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&Cte(t))return!1}else if(r!=="number")return!1;return e-e<1}});var ri={};ja(ri,{ALMOST_EQUAL:()=>Wte,BADNUM:()=>h_,EPOCHJD:()=>Xte,FP_SAFE:()=>Dte,LOG_CLIP:()=>Zte,MINUS_SIGN:()=>Jte,ONEAVGMONTH:()=>zte,ONEAVGQUARTER:()=>Rte,ONEAVGYEAR:()=>Ete,ONEDAY:()=>Ote,ONEHOUR:()=>Hte,ONEMAXMONTH:()=>Nte,ONEMAXQUARTER:()=>Fte,ONEMAXYEAR:()=>Lte,ONEMICROSEC:()=>Vte,ONEMILLI:()=>Yte,ONEMIN:()=>Ute,ONEMINMONTH:()=>Bte,ONEMINQUARTER:()=>Pte,ONEMINYEAR:()=>qte,ONESEC:()=>Gte,ONEWEEK:()=>Ite});var h_,Dte,Lte,Ete,qte,Fte,Rte,Pte,Nte,zte,Bte,Ite,Ote,Hte,Ute,Gte,Yte,Vte,Xte,Wte,Zte,Jte,Wn=Ja(()=>{"use strict";h_=void 0,Dte=Number.MAX_VALUE*1e-4,Lte=316224e5,Ete=315576e5,qte=31536e6,Fte=79488e5,Rte=78894e5,Pte=76896e5,Nte=26784e5,zte=26298e5,Bte=24192e5,Ite=6048e5,Ote=864e5,Hte=36e5,Ute=6e4,Gte=1e3,Yte=1,Vte=.001,Xte=24405875e-1,Wte=1-1e-6,Zte=10,Jte="\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((xLe,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,$te=q0(),p_=Array.isArray,Kte=ArrayBuffer,Qte=DataView;function ok(e){return Kte.isView(e)&&!(e instanceof Qte)}ql.isTypedArray=ok;function fy(e){return p_(e)||ok(e)}ql.isArrayOrTypedArray=fy;function eae(e){return!fy(e[0])}ql.isArray1D=eae;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=rae(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(),oae=/^\w*$/,lae=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 sae=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,uae=/^[^\.\[\]]+$/;yk.exports=function(e,r){for(;r;){var t=e.match(sae);if(t)e=t[1];else if(e.match(uae))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((MLe,bk)=>{"use strict";var fae=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 fae(a)||(a=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),a}});var wk=B((kLe,_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;lcae,modHalf:()=>vae});function cae(e,r){let t=e%r;return t<0?t+r:t}function vae(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 hae(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:()=>pae,HOVERFONT:()=>gae,HOVERFONTSIZE:()=>yae,HOVERID:()=>xae,HOVERMINTIME:()=>bae,HOVERTEXTPAD:()=>mae,YANGLE:()=>dae});var dae,pae,mae,yae,gae,bae,xae,g2=Ja(()=>{"use strict";dae=60,pae=6,mae=3,yae=13,gae="Arial, sans-serif",bae=50,xae="-hover"});var kv=B((DLe,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((LLe,Ck)=>{"use strict";var _ae=Di(),b2=kv().hoverlabel,x2=Fn().extendFlat;Ck.exports={hoverlabel:{bgcolor:x2({},b2.bgcolor,{arrayOk:!0}),bordercolor:x2({},b2.bordercolor,{arrayOk:!0}),font:_ae({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((ELe,Dk)=>{"use strict";var wae=Di(),Aae=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:wae({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:Aae.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var _C=B((BLe,xC)=>{var c4=Object.defineProperty,Tae=Object.getOwnPropertyDescriptor,Mae=Object.getOwnPropertyNames,kae=Object.prototype.hasOwnProperty,Sae=(e,r)=>{for(var t in r)c4(e,t,{get:r[t],enumerable:!0})},Cae=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Mae(r))!kae.call(e,n)&&n!==t&&c4(e,n,{get:()=>r[n],enumerable:!(a=Tae(r,n))||a.enumerable});return e},Dae=e=>Cae(c4({},"__esModule",{value:!0}),e),Ik={};Sae(Ik,{a98:()=>xle,average:()=>Mne,averageAngle:()=>ys,averageNumber:()=>tS,blend:()=>Toe,blerp:()=>V_,clampChroma:()=>Yoe,clampGamut:()=>B4,clampRgb:()=>Goe,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:()=>_le,differenceCie76:()=>gne,differenceCie94:()=>bne,differenceCiede2000:()=>xne,differenceCmc:()=>_ne,differenceEuclidean:()=>Ev,differenceHueChroma:()=>S2,differenceHueNaive:()=>rS,differenceHueSaturation:()=>k2,differenceHyab:()=>wne,differenceItp:()=>Tne,differenceKotsarenkoRamos:()=>Ane,displayable:()=>z4,dlab:()=>wle,dlch:()=>Ale,easingGamma:()=>pC,easingInOutSine:()=>gle,easingMidpoint:()=>sC,easingSmootherstep:()=>mle,easingSmoothstep:()=>hle,easingSmoothstepInverse:()=>dle,filterBrightness:()=>Qoe,filterContrast:()=>ele,filterDeficiencyDeuter:()=>cle,filterDeficiencyProt:()=>fle,filterDeficiencyTrit:()=>vle,filterGrayscale:()=>ale,filterHueRotate:()=>ile,filterInvert:()=>nle,filterSaturate:()=>tle,filterSepia:()=>rle,fixupAlpha:()=>hi,fixupHueDecreasing:()=>hne,fixupHueIncreasing:()=>vne,fixupHueLonger:()=>cne,fixupHueShorter:()=>ms,formatCss:()=>yoe,formatHex:()=>goe,formatHex8:()=>boe,formatHsl:()=>_oe,formatRgb:()=>xoe,getMode:()=>Wi,hsi:()=>Tle,hsl:()=>Mle,hsv:()=>kle,hwb:()=>Sle,inGamut:()=>By,interpolate:()=>Foe,interpolateWith:()=>fC,interpolateWithPremultipliedAlpha:()=>Roe,interpolatorLinear:()=>yt,interpolatorPiecewise:()=>$k,interpolatorSplineBasis:()=>vC,interpolatorSplineBasisClosed:()=>hC,interpolatorSplineMonotone:()=>zoe,interpolatorSplineMonotone2:()=>Boe,interpolatorSplineMonotoneClosed:()=>Ioe,interpolatorSplineNatural:()=>Poe,interpolatorSplineNaturalClosed:()=>Noe,itp:()=>Cle,jab:()=>Dle,jch:()=>Lle,lab:()=>Ele,lab65:()=>qle,lch:()=>Fle,lch65:()=>Rle,lchuv:()=>Ple,lerp:()=>P0,lrgb:()=>Nle,luv:()=>zle,mapAlphaDivide:()=>lC,mapAlphaMultiply:()=>oC,mapTransferGamma:()=>Doe,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:()=>Woe,okhsl:()=>Ble,okhsv:()=>Ile,oklab:()=>Ole,oklch:()=>Hle,p3:()=>Ule,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:()=>Gle,random:()=>Coe,rec2020:()=>Yle,removeParser:()=>Gae,rgb:()=>Vle,round:()=>tC,samples:()=>Uoe,serializeHex:()=>F4,serializeHex8:()=>aC,serializeHsl:()=>iC,serializeRgb:()=>nC,toGamut:()=>Voe,trilerp:()=>ene,unlerp:()=>Qae,useMode:()=>Fa,useParser:()=>Xk,wcagContrast:()=>ble,wcagLuminance:()=>f4,xyb:()=>Xle,xyz50:()=>Wle,xyz65:()=>Zle,yiq:()=>Jle});xC.exports=Dae(Ik);var Lae=(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=Lae,Eae={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=Eae,qae=e=>Ok(Hk[e.toLowerCase()],6),Uk=qae,Fae=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Rae=e=>{let r;return(r=e.match(Fae))?Ok(parseInt(r[1],16),r[1].length):void 0},Gk=Rae,_o="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",qLe=`(?:${_o}|none)`,A2=`${_o}%`,FLe=`(?:${_o}%|none)`,v4=`(?:${_o}%|${_o})`,Pae=`(?:${_o}%|${_o}|none)`,Nae=`(?:${_o}(deg|grad|rad|turn)|${_o})`,RLe=`(?:${_o}(deg|grad|rad|turn)|${_o}|none)`,Dv="\\s*,\\s*",PLe=new RegExp("^"+Pae+"$"),zae=new RegExp(`^rgba?\\(\\s*${_o}${Dv}${_o}${Dv}${_o}\\s*(?:,\\s*${v4}\\s*)?\\)$`),Bae=new RegExp(`^rgba?\\(\\s*${A2}${Dv}${A2}${Dv}${A2}\\s*(?:,\\s*${v4}\\s*)?\\)$`),Iae=e=>{let r={mode:"rgb"},t;if(t=e.match(zae))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(Bae))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=Iae,Oae=(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=Oae,Hae=(e="rgb")=>r=>(r=Rl(r,e))!==void 0?r.mode===e?r:ps[r.mode][e]?ps[r.mode][e](r):e==="rgb"?ps[r.mode].rgb(r):ps.rgb[e](ps[r.mode].rgb(r)):void 0,$a=Hae,ps={},Vk={},Lv=[],h4={},Uae=e=>e,Fa=e=>(ps[e.mode]=ka(ka({},ps[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{ps[r]||(ps[r]={}),ps[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=Uae)}),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)},Gae=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_]/,Yae=/[^\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 Vae={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*Vae[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; +`||r[$t]===" "||r[$t]===" ");)$t++;let n;if(py(r)&&(n=_2(r),n.type!==Qr.Hue)){t.push({type:Qr.Alpha,value:n});continue}if(Y_(r)&&by(r)==="none"){t.push({type:Qr.Alpha,value:{type:Qr.None,value:void 0}});continue}return}if(/\d/.test(a)){$t--,t.push(_2(r));continue}if(G_.test(a)){$t--,t.push(Xae(r));continue}return}return t}function Zae(e){e._i=0;let r=e[e._i++];if(!r||r.type!==Qr.Function||r.value!=="color"||(r=e[e._i++],r.type!==Qr.Ident))return;let t=h4[r.value];if(!t)return;let a={mode:t},n=Wk(e,!1);if(!n)return;let i=Wi(t).channels;for(let o=0,l,s;o4)){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 Jae(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=Wae(e),t=r?Jae(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=Kae,P0=(e,r,t)=>e+t*(r-e),Qae=(e,r,t)=>(t-e)/(r-e),V_=(e,r,t,a,n,i)=>P0(P0(e,r,n),P0(t,a,n),i),ene=(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),rne=e=>{let r=[];for(let t=0;tr=>{let t=rne(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},tne={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=tne,x_=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),ane=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_=ane,__=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),nne=({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_=nne,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)},ine=({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=ine,one=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=one,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},lne=({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=lne,sne=({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=sne,une=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=une,fne=e=>(e=e%360)<0?e+360:e,Bi=fne,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),[]),ms=e=>Cy(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),cne=e=>Cy(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),vne=e=>Cy(e,r=>r>=0?r:r+360),hne=e=>Cy(e,r=>r<=0?r:r-360),Li=[-.14861,1.78277,-.29227,-.90649,1.97294,0],dne=Math.PI/180,pne=180/Math.PI,Lk=Li[3]*Li[4],Ek=Li[1]*Li[4],qk=Li[1]*Li[2]-Li[0]*Li[3],mne=({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)*pne-120),a!==void 0&&(l.alpha=a),l},Qk=mne,yne=({h:e,s:r,l:t,alpha:a})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*dne,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=yne,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))}},gne=()=>Ev("lab65"),bne=(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))}},xne=(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),G=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),X=1+.015*U/Math.sqrt(20+U),Y=1+.045*z,V=1+.015*z*G,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*X),2)+Math.pow(E/(r*Y),2)+Math.pow(P/(t*V),2)+ee*E/(r*Y)*P/(t*V))}},_ne=(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))}},wne=()=>{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)}},Ane=()=>Ev("yiq",[.5053,.299,.1957]),Tne=()=>Ev("itp",[518400,129600,518400]),ys=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 Mne(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 kne={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:ms},s:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:k2},average:{h:ys}},aS=kne,Sne=({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=Sne,Cne=({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=Cne,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},NLe=Math.pow(29,3)/Math.pow(3,3),zLe=Math.pow(6,3)/Math.pow(29,3),M_=e=>Math.pow(e,3)>iS?Math.pow(e,3):(116*e-16)/nS,Dne=({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=Dne,Lne=e=>af(d4(e)),C2=Lne,k_=e=>e>iS?Math.cbrt(e):(nS*e+16)/116,Ene=({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=Ene,qne=e=>{let r=p4(tf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},D2=qne,xy=1,oS=1,M2=26/180*Math.PI,_y=Math.cos(M2),wy=Math.sin(M2),lS=100/Math.log(139/100),Fne=({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=Fne,Rne=({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=Rne,Fk=e=>Ay(iu(e,"dlch")),Rk=e=>ou(Ty(e),"dlab"),Pne={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=Pne,Nne={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:ms},alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ys}},uS=Nne;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}},Ine=Bne,One=new RegExp(`^hsla?\\(\\s*${Nae}${Dv}${A2}${Dv}${A2}\\s*(?:,\\s*${v4}\\s*)?\\)$`),Hne=e=>{let r=e.match(One);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=Ine(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=Hne;function Une(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=Une,Gne={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:ms},s:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:k2},average:{h:ys}},m4=Gne;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 Vne(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=Vne,Xne={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:ms},w:yt,b:yt,alpha:{use:yt,fixup:hi}},difference:{h:rS},average:{h:ys}},xS=Xne,_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),Wne=({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_=Wne,L_=(e=0)=>Math.max(e*_S,0),Zne=({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_=Zne,Jne={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=Jne,jne=134.03437499999998,$ne=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),Kne=({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)-$ne,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=Kne,Qne=134.03437499999998,Pk=16295499532821565e-27,F_=e=>{if(e<0)return 0;let r=Math.pow(e,1/Qne);return 1e4*Math.pow((Ly-r)/(qy*r-Ey),1/Dy)},R_=e=>e/203,eie=({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=eie,rie=e=>{let r=x4(tf(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},w4=rie,tie=e=>af(_4(e)),A4=tie,aie={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=aie,nie=({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_=nie,iie=({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},$_=iie,oie={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:ms},c:yt,j:yt,alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ys}},MS=oie,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,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=(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=lie,sie=({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=sie,uie=e=>qv(Ry(e)),M4=uie,fie=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=fie,N_=e=>e>T4?Math.cbrt(e):(Fy*e+16)/116,cie=({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=cie,vie=e=>{let r=Py(Fv(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},k4=vie;function hie(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=hie,die={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=die,pie=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=pie;function mie(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=mie,yie={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:ms},c:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ys}},zy=yie,gie=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=gie,bie=({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=bie,xie=({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=xie,LS=(e,r,t)=>4*e/(e+15*r+3*t),ES=(e,r,t)=>9*r/(e+15*r+3*t),_ie=LS(vi.X,vi.Y,vi.Z),wie=ES(vi.X,vi.Y,vi.Z),Aie=e=>e<=T4?Fy*e:116*Math.cbrt(e)-16,Tie=({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=Aie(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-_ie),o=13*n*(o-wie));let l={mode:"luv",l:n,u:i,v:o};return a!==void 0&&(l.alpha=a),l},My=Tie,Mie=(e,r,t)=>4*e/(e+15*r+3*t),kie=(e,r,t)=>9*r/(e+15*r+3*t),Sie=Mie(vi.X,vi.Y,vi.Z),Cie=kie(vi.X,vi.Y,vi.Z),Die=({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)+Sie,i=t/(13*e)+Cie,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=Die,Lie=e=>S4(My(Fv(e))),Eie=e=>qv(ky(C4(e))),qie={mode:"lchuv",toMode:{luv:C4,rgb:Eie},fromMode:{rgb:Lie,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:ms},c:yt,l:yt,alpha:{use:yt,fixup:hi}},difference:{h:S2},average:{h:ys}},qS=qie,Fie=Va(ka({},B0),{mode:"lrgb",toMode:{rgb:O0},fromMode:{rgb:I0},parse:["srgb-linear"],serialize:"srgb-linear"}),FS=Fie,Rie={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=Rie,Pie=({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=Pie,Nie=e=>{let r=D4(I0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},L2=Nie,zie=({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=zie,Bie=e=>O0(Rv(e)),E2=Bie;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 Iie(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=Iie(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 Oie(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,G=I/(I*I-.5*z*U),X=-z*G,Y=-1.2684380046*x+2.6097574011*w-.3413193965*k-1,V=-1.2684380046*M+2.6097574011*C-.3413193965*E,Z=-1.2684380046*F+2.6097574011*P-.3413193965*q,j=V/(V*V-.5*Y*Z),ee=-Y*j,me=-.0041960863*x-.7034186147*w+1.707614701*k-1,fe=-.0041960863*M-.7034186147*C+1.707614701*E,he=-.0041960863*F-.7034186147*P+1.707614701*q,te=fe/(fe*fe-.5*me*he),Le=-me*te;X=G>=0?X:1e6,ee=j>=0?ee:1e6,Le=te>=0?Le:1e6,o+=Math.min(X,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=Oie(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=Hie;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 Uie=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=Uie;function Gie(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=Gie,Yie=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=Yie;function Vie(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=Vie,Xie=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=Xie,Wie=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=Wie,Zie=({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=Zie,Jie=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=Jie,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},$ie=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=$ie,Kie=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=Kie,Nk=1.09929682680944,Qie=.018053968510807,I_=e=>{let r=Math.abs(e);return r>Qie?(Math.sign(e)||1)*(Nk*Math.pow(r,.45)-(Nk-1)):4.5*e},eoe=({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=eoe,zk=1.09929682680944,roe=.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=toe,aoe=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=aoe,N0=.0037930732552754493,VS=Math.cbrt(N0),H_=e=>Math.cbrt(e)-VS,noe=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=noe,U_=e=>Math.pow(e+VS,3),ioe=({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=ioe,ooe={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=ooe,loe={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=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:"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=soe,uoe=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=uoe,foe={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=foe,coe=({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=coe,voe=({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=voe,hoe={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=hoe,doe=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,poe=(e=4)=>r=>typeof r=="number"?doe(r,e):r,tC=poe,w2=tC(2),T2=e=>Math.max(0,Math.min(1,e||0)),z0=e=>Math.round(T2(e)*255),q4=$a("rgb"),moe=$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))})`},yoe=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)},goe=e=>F4(q4(e)),boe=e=>aC(q4(e)),xoe=e=>nC(q4(e)),_oe=e=>iC(moe(e)),woe={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},Aoe=(e,r="normal",t="rgb")=>{let a=typeof r=="function"?r:woe[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})})},Toe=Aoe,Moe=([e,r])=>e+Math.random()*(r-e),koe=e=>Object.keys(e).reduce((r,t)=>{let a=e[t];return r[t]=Array.isArray(a)?a:[a,a],r},{}),Soe=(e="rgb",r={})=>{let t=Wi(e),a=koe(r);return t.channels.reduce((n,i)=>((a.alpha||i!=="alpha")&&(n[i]=Moe(a[i]||t.ranges[i])),n),{mode:e})},Coe=Soe,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,Doe=(e=1,r=1,t=0)=>(a,n)=>n!=="alpha"?e*Math.pow(a,r)+t:a,Loe=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=qoe,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))}),Eoe(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})}},Foe=(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},Roe=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},Poe=e=>vC(dC(e)),Noe=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]}},zoe=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)},Boe=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)},Ioe=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)},Ooe=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),pC=Ooe,Hoe=(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 Goe(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 Yoe(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 Voe(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 Xoe=(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]))},Woe=Xoe,I4=e=>Math.max(e,0),O4=e=>Math.max(Math.min(e,1),0),Zoe=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),Joe=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]},$oe=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]},Koe=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)},ele=(e=1,r="rgb")=>{let t=I4(e);return q2(R4(t,(1-t)/2),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")=>Iy($oe(e),r,!0),nle=(e=1,r="rgb")=>{let t=O4(e);return q2((a,n)=>n==="alpha"?a:Zoe(t,1-t,a),r,!0)},ile=(e=0,r="rgb")=>Iy(Koe(e),r,!0),ole=$a("rgb"),lle=[[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]],sle=[[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]],ule=[[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}=ole(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)}},fle=(e=1)=>H4(lle,e),cle=(e=1)=>H4(sle,e),vle=(e=1)=>H4(ule,e),hle=e=>e*e*(3-2*e),dle=e=>.5-Math.sin(Math.asin(1-2*e)/3),ple=e=>e*e*e*(e*(e*6-15)+10),mle=ple,yle=e=>(1-Math.cos(e*Math.PI))/2,gle=yle;function f4(e){let r=$a("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function ble(e,r){let t=f4(e),a=f4(r);return(Math.max(t,a)+.05)/(Math.min(t,a)+.05)}var xle=Fa(Kk),_le=Fa(aS),wle=Fa(sS),Ale=Fa(uS),Tle=Fa(vS),Mle=Fa(m4),kle=Fa(b4),Sle=Fa(xS),Cle=Fa(AS),Dle=Fa(TS),Lle=Fa(MS),Ele=Fa(Ny),qle=Fa(SS),Fle=Fa(zy),Rle=Fa(DS),Ple=Fa(qS),Nle=Fa(FS),zle=Fa(RS),Ble=Fa(NS),Ile=Fa(zS),Ole=Fa(IS),Hle=Fa(HS),Ule=Fa(US),Gle=Fa(GS),Yle=Fa(YS),Vle=Fa(B0),Xle=Fa(ZS),Wle=Fa(JS),Zle=Fa(KS),Jle=Fa(rC)});var U4={};ja(U4,{default:()=>$le});var jle,$le,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(" ")}},$le=jle});var nf=B((HLe,kC)=>{"use strict";var{format:Kle,width:Qle,height:ese,scale:rse}=(G4(),vr(U4)).default,wC=rse,{dflt:OLe}=wC,tse=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:Kle,filename:{valType:"string"},width:Qle,height:ese,scale:tse},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((GLe,SC)=>{"use strict";var Y4=la(),ase=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;ase(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 gs=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((XLe,zC)=>{"use strict";var{converter:DC,formatHex:nse,formatRgb:ise,wcagContrast:ose,wcagLuminance:lse}=_C(),{isArrayOrTypedArray:LC}=so(),{warn:sse}=of(),{background:P2,defaultLine:j4,defaults:use,lightLine:fse}=gs(),EC=DC("rgb"),cse=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,vse={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=>ise(FC(e)),hse=e=>nse(FC(e)),dse=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&&sse(`Invalid color specifier: ${dse(e)}. Defaulting to "#000"`),vse)},R2=e=>Bo(Va(ka({},An(e)),{alpha:1})),pse=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]),mse=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}},yse=(e,r)=>{let t=RC(e)?mse(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},gse=(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)})},bse=(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=cse(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)=>ose(An(e),An(r)),NC=e=>Oy(e,P2)>Oy(e,j4),xse=Bo(An(P2)),_se=Bo(An(j4)),wse=(e,r,t)=>(An(e).alpha!==1&&(e=PC(e,P2)),NC(e)?r?J4(e,r):xse:t?J4(e,-t):_se),Ase=(e,r)=>{e.style({stroke:R2(r),"stroke-opacity":An(r).alpha})},Tse=(e,r)=>{e.style({fill:R2(r),"fill-opacity":An(r).alpha})},Mse=(e,r)=>!!(e&&r&&R2(e)===R2(r)),kse=e=>qC(e)!==void 0,Sse=(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)}))},Cse=(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})},Dse=(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},Lse=e=>Bo(An(e)),Ese=e=>hse(An(e)).toUpperCase(),qse=e=>{let r=An(e);return[Zi(r.r)*255,Zi(r.g)*255,Zi(r.b)*255,Zi(r.alpha)]},Fse=([e,r,t,a])=>Bo({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:a}),Rse=e=>{let r=An(e);return lse({mode:"rgb",r:Zi(r.r),g:Zi(r.g),b:Zi(r.b)})};zC.exports={addOpacity:gse,adjustLightness:J4,background:P2,brighten:Sse,combine:PC,contrast:wse,defaultLine:j4,defaults:use,equals:Mse,fill:Tse,hexString:Ese,interpolate:bse,isChannelArray:RC,isDark:NC,isValid:kse,lightLine:fse,luminosity:Rse,mix:Cse,mostReadable:Dse,normalize:yse,opacity:pse,parse:An,rgb:R2,rgbaArray:qse,rgbaArrayToString:Fse,rgbaString:Lse,stroke:Ase,wcagContrast:Oy}});var U0=B((ZLe,OC)=>{"use strict";var Pse=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 Nse(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;tOse,HIDE_PLACEHOLDER:()=>Ise,SHOW_PLACEHOLDER:()=>Bse});var Bse,Ise,Ose,zv=Ja(()=>{"use strict";Bse=100,Ise=1e3,Ose=.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,Hse=Fl(),Use=U0(),Q4=Kt(),Gse=(zv(),vr(Nv)).DESELECTDIM,Iv=cy(),UC=(Bv(),vr(N2)).counter,Yse=(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(Use.get(e,t))}},angle:{coerceFunction:function(e,r,t){lf(e)&&(e=sf(e)),e==="auto"?r.set("auto"):K4(e)?r.set(Yse(+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(($Le,VC)=>{"use strict";VC.exports=function(r,t){if(t instanceof RegExp){for(var a=t.toString(),n=0;n{XC.exports=Vse;function Vse(){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((QLe,ZC)=>{ZC.exports=Xse;function Xse(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((eEe,jC)=>{jC.exports=Wse;function Wse(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((rEe,KC)=>{KC.exports=Zse;function Zse(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((tEe,QC)=>{QC.exports=Jse;function Jse(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((aEe,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((nEe,aD)=>{aD.exports=$se;function $se(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((iEe,iD)=>{iD.exports=Kse;function Kse(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((oEe,lD)=>{lD.exports=Qse;function Qse(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((lEe,uD)=>{uD.exports=eue;function eue(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((sEe,cD)=>{cD.exports=rue;function rue(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((uEe,hD)=>{hD.exports=tue;function tue(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((fEe,pD)=>{pD.exports=aue;function aue(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((cEe,yD)=>{yD.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[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((vEe,bD)=>{bD.exports=iue;function iue(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((hEe,_D)=>{_D.exports=oue;function oue(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((dEe,AD)=>{AD.exports=lue;function lue(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((pEe,MD)=>{MD.exports=sue;function sue(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((mEe,SD)=>{SD.exports=uue;function uue(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((yEe,DD)=>{DD.exports=fue;function fue(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((gEe,ED)=>{ED.exports=cue;function cue(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((bEe,FD)=>{FD.exports=vue;function vue(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((xEe,PD)=>{PD.exports=hue;function hue(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((_Ee,zD)=>{zD.exports=due;function due(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((wEe,ID)=>{ID.exports=pue;function pue(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((AEe,HD)=>{HD.exports=mue;function mue(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((TEe,GD)=>{GD.exports=yue;function yue(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((MEe,VD)=>{var gue=r6();VD.exports=bue;function bue(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?gue(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((kEe,WD)=>{WD.exports=xue;function xue(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((SEe,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 _ue=t6();Rn.init2dArray=function(e,r){for(var t=new Array(e),a=0;a{"use strict";var wue=la(),jD=of(),Aue=Yy(),Tue=t6();function Mue(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 kue(e){var r=wue.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 Sue(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 Cue(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&$D(t)}function Due(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 Lue(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=Aue.convertCssMatrix(n);t=Tue.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=[];Eue(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function Eue(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function que(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}rL.exports={getGraphDiv:Mue,isPlotDiv:kue,removeElement:$D,addStyleRule:Sue,addRelatedStyleRule:KD,deleteRelatedStyleRule:Cue,setStyleOnHover:Due,getFullTransformMatrix:Lue,getElementTransformMatrix:QD,getElementAndAncestors:eL,equalDomRects:que}});var B2=B((LEe,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((EEe,uL)=>{"use strict";var nL=Fn().extendFlat,Fue=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"]},Rue=iL.flags.slice().concat(["fullReplot"]),Pue=oL.flags.slice().concat("layoutReplot");uL.exports={traces:iL,layout:oL,traceFlags:function(){return aL(Rue)},layoutFlags:function(){return aL(Pue)},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:()=>zue,FORMAT_LINK:()=>Nue});var Nue,zue,i6=Ja(()=>{"use strict";Nue="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",zue="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Hv=B(Ov=>{"use strict";var{DATE_FORMAT_LINK:Bue,FORMAT_LINK:Iue}=(i6(),vr(n6)),Oue=["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 Hue({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}".`,Iue,"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}".`,Bue,"for details on the date formatting syntax.",Oue].join(" ")}Ov.templateFormatStringDescription=Hue;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((PEe,pL)=>{"use strict";function ff(e,r){return r?r.d2l(e):e}function fL(e,r){return r?r.l2d(e):e}function Uue(e){return e.x0}function Gue(e){return e.x1}function Yue(e){return e.y0}function Vue(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 Xue(e,r){return Math.abs(Vy(e,r))}function Wue(e,r,t){return Math.abs(Xy(e,r,t))}function Zue(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 Jue(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 $ue(e,r,t){return e.type!=="line"?void 0:Xy(e,r,t)/Vy(e,r)}var Kue=["x0","x1","y0","y1","dy","height","ycenter"],Que=["x0","x1","y0","y1","dx","width","xcenter"];pL.exports={x0:Uue,x1:Gue,y0:Yue,y1:Vue,slope:$ue,dx:Vy,dy:Xy,width:Xue,height:Wue,length:Zue,xcenter:Jue,ycenter:jue,simpleXVariables:Kue,simpleYVariables:Que}});var gL=B((NEe,yL)=>{"use strict";var efe=Nl().overrideAll,Y0=Fl(),mL=Di(),rfe=uf().dash,cf=Fn().extendFlat,{shapeTexttemplateAttrs:tfe,templatefallbackAttrs:afe}=Hv(),nfe=Wy();yL.exports=efe({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({},rfe,{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:tfe({newshape:!0},{keys:Object.keys(nfe)}),texttemplatefallback:afe({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((zEe,bL)=>{"use strict";var ife=uf().dash,ofe=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:ofe({},ife,{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((BEe,_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((IEe,ML)=>{"use strict";var o6=Di(),lfe=B2(),Jy=gs(),wL=gL(),AL=xL(),sfe=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(sfe({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({},lfe.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(),UEe=z2().addStyleRule,DL=Fn(),ufe=Fl(),ffe=Uv(),cfe=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 mfe=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,yfe=/^\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,gfe=/^\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=bfe(e,!!r);if(r<2)return t;var a=Pn.dateTime2ms(t,e);return a+=Ao*(r-1),Pn.ms2DateTime(a,0,e)};function bfe(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?gfe:yfe);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=mfe("%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 xfe=/%\d?f/g,_fe=/%h/g,wfe={1:"1",2:"1",3:"2",4:"2"};function BL(e,r,t,a){e=e.replace(xfe,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(_fe,function(){return wfe[t("%q")(n)]}),su(a))try{e=lu.getComponentMethod("calendars","worldCalFmt")(e,r,a)}catch(i){return"Invalid"}return t(e)(n)}var Afe=[59,59.9,59.99,59.999,59.9999];function Tfe(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),Afe[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 Tfe(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 Mfe=da(),kfe=of(),Sfe=eg(),Cfe=(Wn(),vr(ri)).BADNUM,f6=1e-9;uu.findBin=function(e,r,t){if(Mfe(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?Dfe:Lfe:s=t?qfe:Efe,e+=o*f6*(t?-1:1)*(o>=0?1:-1);a90&&kfe.log("Long binary search..."),a-1};function Dfe(e,r){return er}function qfe(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]===Cfe;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||Sfe;for(var t=1/0,a,n=0;nRfe});function Ffe(e){return Object.keys(e).sort()}var Rfe,tg=Ja(()=>{"use strict";Rfe=Ffe});var YL=B(Nn=>{"use strict";var H2=da(),Pfe=so().isArrayOrTypedArray;Nn.aggNums=function(e,r,t,a){var n,i;if((!a||a>t.length)&&(a=t.length),H2(r)||(r=!1),Pfe(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((ZEe,ZL)=>{"use strict";var VL=(Mv(),vr(Tv)),v6=VL.mod,Nfe=VL.modHalf,U2=Math.PI,df=2*U2;function zfe(e){return e/180*U2}function Bfe(e){return e/U2*180}function h6(e){return Math.abs(e[1]-e[0])>df-1e-14}function XL(e,r){return Nfe(r-e,df)}function Ife(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 Ofe(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((KEe,rE)=>{"use strict";rE.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var aE=B((QEe,og)=>{"use strict";og.exports=y6;og.exports.isMobile=y6;og.exports.default=y6;var Yfe=/(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,Vfe=/CrOS/,Xfe=/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=Yfe.test(r)&&!Vfe.test(r)||!!e.tablet&&Xfe.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((eqe,nE)=>{"use strict";var Wfe=da(),Zfe=aE();nE.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=Jfe(),typeof t!="string")return!0;var a=Zfe({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(Wfe(u)&&(u=+u),u>=13)return!0}}}return a};function Jfe(){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((rqe,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((tqe,sE)=>{"use strict";var $fe=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=$fe.localeRegistry}var u=a.split("-")[0];if(u===a)break;a=u}return t}});var cE=B((aqe,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=e0e(r)?Qfe:Kfe,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:()=>a0e});function t0e(e){return typeof e=="string"&&(e=e.replace(r0e,"")),(0,mE.default)(e)?Number(e):void 0}var mE,r0e,a0e,gE=Ja(()=>{"use strict";mE=c2(da());Wn();r0e=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;a0e=t0e});var _E=B((lqe,xE)=>{"use strict";var n0e=/<[^>]*>/g,i0e=/[\p{S}\p{P}]/gu,o0e=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,l0e=/�/g,s0e=/\s+/g,lg="-",bE=lg.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),u0e=new RegExp(bE+"{3,}","g"),f0e=new RegExp(bE+"$","g"),c0e=60;function v0e(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}xE.exports=function(r,t=c0e){var a=v0e(r!=null?r:"").replace(l0e,"").replace(n0e," ").replace(i0e,n=>n===lg?n:"").toLowerCase().trim().replace(s0e,lg).replace(o0e,"").replace(u0e,lg);return a.length<=t?a:Array.from(a).slice(0,t).join("").replace(f0e,"")}});var or=B((sqe,FE)=>{"use strict";var Y2=la(),h0e=wv().utcFormat,d0e=v_().format,SE=da(),CE=(Wn(),vr(ri)),DE=CE.FP_SAFE,p0e=-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=d0e(_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 bs=JL();_e.deg2rad=bs.deg2rad;_e.rad2deg=bs.rad2deg;_e.angleDelta=bs.angleDelta;_e.angleDist=bs.angleDist;_e.isFullCircle=bs.isFullCircle;_e.isAngleInsideSector=bs.isAngleInsideSector;_e.isPtInsideSector=bs.isPtInsideSector;_e.pathArc=bs.pathArc;_e.pathSector=bs.pathSector;_e.pathAnnulus=bs.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 m0e=(Bv(),vr(N2));_e.counterRegex=m0e.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;nb0e.test(window.navigator.userAgent);var x0e=/Firefox\/(\d+)\.\d+/;_e.getFirefoxVersion=function(){var e=x0e.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 A0e={max:10,count:0,name:"hovertemplate"};_e.hovertemplateString=e=>x6(Va(ka({},e),{opts:A0e}));var T0e={max:10,count:0,name:"texttemplate"};_e.texttemplateString=e=>x6(Va(ka({},e),{opts:T0e}));var M0e=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function k0e(e){var r=e.match(M0e);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var S0e={max:10,count:0,name:"texttemplate",parseMultDiv:!0};_e.texttemplateStringForShapes=e=>x6(Va(ka({},e),{opts:S0e}));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=k0e(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(),C0e=kE!==null&&kE<86;_e.getPositionFromD3Event=function(){return C0e?[Y2.event.layerX,Y2.event.layerY]:[Y2.event.offsetX,Y2.event.offsetY]}});var NE=B(()=>{"use strict";var D0e=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"),D0e.addStyleRule(PE,RE[_6]);var PE,_6});var w6=B((vqe,zE)=>{zE.exports=!0});var T6=B((hqe,BE)=>{"use strict";var L0e=w6(),A6;typeof window.matchMedia=="function"?A6=!window.matchMedia("(hover: none)").matches:A6=L0e;BE.exports=A6});var hg=B((dqe,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 E0e(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=P0e;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,E0e(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 q0e(){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=q0e.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():F0e(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?R0e(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,z0e={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(),B0e=nf().dfltConfig;function I0e(e,r){for(var t=[],a,n=0;nB0e.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(),O0e=S6(),H0e=B2(),U0e=nf().configAttributes,eq=Nl(),Il=X2.extendDeepAll,jv=X2.isPlainObject,G0e=X2.isArrayOrTypedArray,mg=X2.nestedProperty,Y0e=X2.valObjectMeta,D6="_isSubplotObj",yg="_isLinkedToArray",V0e="_arrayAttrRegexps",tq="_deprecated",L6=[D6,yg,V0e,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]=W0e(r)}),{defs:{valObjects:Y0e,metaKeys:L6.concat(["description","role","editType","impliedEdits"]),editType:{traces:eq.traces,layout:eq.layout},impliedEdits:{}},traces:e,layout:Z0e(),frames:J0e(),animation:$v(H0e),config:$v(U0e)}};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)G0e(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 W0e(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 Z0e(){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(),ece=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,{},ece,"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:()=>ice,AX_NAME_PATTERN:()=>oce,DFLTRANGEX:()=>dce,DFLTRANGEY:()=>pce,DRAGGERSIZE:()=>vce,HOUR_PATTERN:()=>sce,MINDRAG:()=>fce,MINZOOM:()=>cce,REDRAWDELAY:()=>hce,SUBPLOT_PATTERN:()=>lce,WEEKDAY_PATTERN:()=>uce,attrRegex:()=>tce,clipOnAxisFalseQuery:()=>yce,idRegex:()=>rce,layerValue2layerClass:()=>gce,traceLayerClasses:()=>mce,xAxisMatch:()=>ace,yAxisMatch:()=>nce,zindexSeparator:()=>bce});var rce,tce,ace,nce,ice,oce,lce,sce,uce,fce,cce,vce,hce,dce,pce,mce,yce,gce,bce,ni=Ja(()=>{"use strict";Bv();rce={x:G0("x","( domain)?"),y:G0("y","( domain)?")},tce=G0("[xy]axis"),ace=G0("xaxis"),nce=G0("yaxis"),ice=/^[xyz][0-9]*( domain)?$/,oce=/^[xyz]axis[0-9]*$/,lce=/^x([0-9]*)y([0-9]*)$/,sce="hour",uce="day of week",fce=8,cce=20,vce=20,hce=50,dce=[-1,6],pce=[-1,4],mce=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],yce=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],gce={"above traces":"above","below traces":"below"},bce="z"});var hn=B(To=>{"use strict";var xce=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 _ce(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function wce(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}lq.exports={clearOutlineControllers:_ce,clearOutline:wce}});var gg=B((Aqe,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(),Tqe=(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 Ace=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((Cqe,wq)=>{"use strict";var Sqe=la(),Mce=wv().timeFormatLocale,kce=v_().formatLocale,Z2=da(),Sce=d_(),Cce=v2().version,ya=Pt(),Dce=Kv(),Lce=Ra(),st=or(),Ece=Kt(),hq=(Wn(),vr(ri)).BADNUM,Mo=hn(),qce=gf().clearOutline,Fce=gg(),R6=B2(),Rce=S6(),Pce=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=Cce;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 Nce=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],zce=["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,Nce);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=Oce(v,n.separators),n._extraFormat=pq(e,zce),n._initialAutoSizeIsDone=!0,n._dataLength=s.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=Ice(),x=n._splomAxes={x:{},y:{}},w=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=Bce(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&&qce({_fullLayout:a}),Hce(l,n),dq(n,a),ya.getComponentMethod("colorscale","crossTraceDefaults")(l,n),n._preGUI||(n._preGUI={}),n._tracePreGUI||(n._tracePreGUI={});var G=n._tracePreGUI,X={},Y;for(Y in G)X[Y]="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 Gce(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,G=t-o.r-o.l,X=a-o.t-o.b;for(var Y in v){if(Z2(z)&&v[Y].r){var V=v[Y].r.val,Z=v[Y].r.size;if(V>q){var j=(z*V+(Z-G)*q)/(V-q),ee=(Z*(1-q)+(z-G)*(1-V))/(V-q);j+ee>s+u&&(s=j,u=ee)}}if(Z2(U)&&v[Y].t){var me=v[Y].t.val,fe=v[Y].t.size;if(me>I){var he=(U*me+(fe-X)*I)/(me-I),te=(fe*(1-I)+(U-X)*(1-me))/(me-I);he+te>c+f&&(c=he,f=te)}}}}}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)||Gce(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)?Sce.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:()=>Jce,xlink:()=>Tq,xmlns:()=>Zce});var Zce,Aq,Tq,Jce,xf=Ja(()=>{"use strict";Zce="http://www.w3.org/2000/xmlns/",Aq="http://www.w3.org/2000/svg",Tq="http://www.w3.org/1999/xlink",Jce={xmlns:Aq,"xmlns:xlink":Tq}});var Ii={};ja(Ii,{CAP_SHIFT:()=>eve,FROM_BL:()=>jce,FROM_BR:()=>Kce,FROM_TL:()=>$ce,LINE_SPACING:()=>Qce,MID_SHIFT:()=>rve,OPPOSITE_SIDE:()=>tve});var jce,$ce,Kce,Qce,eve,rve,tve,Oi=Ja(()=>{"use strict";jce={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},$ce={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},Kce={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},Qce=1.3,eve=.7,rve=.35,tve={left:"right",right:"left",top:"bottom",bottom:"top"}});var Ei=B(Ji=>{"use strict";var kn=la(),ll=or(),ave=ll.strTranslate,P6=(xf(),vr(bf)),nve=(Oi(),vr(Ii)).LINE_SPACING,ive=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,B6=e=>e?e.match(ive):null;Ji.matchTex=B6;var ove=e=>{var r=B6(e);return!!r&&!r[1]&&!r[3]};Ji.isPureTex=ove;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]+")"+ave(-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 lve(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&&!cve()&&(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=_ve(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");vve(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()),lve(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 sve=/(<|<|<)/g,uve=/(>|>|>)/g;function fve(e){return e.replace(sve,"\\lt ").replace(uve,"\\gt ")}var N6=null,Eq=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,Mq=!1,kq=!1;function cve(){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 vve(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=fve(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"},hve={sub:"0.3em",sup:"-0.6em"},dve={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,pve=//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,mve=/(^|[\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 yve=/(^|;)\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 gve={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},bve=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Ag(e){return e.replace(bve,function(r,t){var a;return t.charAt(0)==="#"?a=xve(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):a=gve[t],a||r})}Ji.convertEntities=Ag;function xve(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 _ve(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*nve+"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=pve.test(r);f?o():(n=e,a=[{node:e}]);for(var c=r.split(I6),v=0;v{"use strict";var wve=la(),j2=da(),Tg=or(),K0=Kt(),Ave=U0().isValid;function Tve(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)),kve=Gq.FORMAT_LINK,Sve=Gq.DATE_FORMAT_LINK;function Cve(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: "+kve+"."].join(" ")}function Yq(e,r){return U6(e,r)+[" And for dates see: "+Sve+".","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:Cve,descriptionOnlyNumbers:U6,descriptionWithDates:Yq}});var sl=B((Fqe,sF)=>{"use strict";var Xq=Di(),rh=gs(),lF=uf().dash,Y6=Fn().extendFlat,Wq=Ra().templatedArray,qqe=Hv().templateFormatStringDescription,Zq=$2().descriptionWithDates,Dve=(Wn(),vr(ri)).ONEDAY,xs=(ni(),vr(ai)),Lve=xs.HOUR_PATTERN,Eve=xs.WEEKDAY_PATTERN,G6={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},qve=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:[xs.idRegex.x.toString(),xs.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:[xs.idRegex.x.toString(),xs.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:[Eve,Lve,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Dve},editType:"calc"}),tickmode:qve,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",xs.idRegex.x.toString(),xs.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",xs.idRegex.x.toString(),xs.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"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},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((Rqe,fF)=>{"use strict";var Qa=sl(),uF=Di(),V6=Fn().extendFlat,Fve=Nl().overrideAll;fF.exports=Fve({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((Nqe,vF)=>{"use strict";var Rve=Mg(),Pve=(Bv(),vr(N2)).counter,Nve=(tg(),vr(rg)).default,cF=U0().scales,Pqe=Nve(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=Rve),t.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Pve("coloraxis"),dflt:null,editType:"calc"}),M}});var W6=B((zqe,hF)=>{"use strict";var zve=Fn().extendFlat,Bve=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:zve({_isSubplotObj:!0,editType:"calc"},Bve("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Z6=B((Bqe,dF)=>{"use strict";var Ive=or();dF.exports=function(r){return Ive.isPlainObject(r.colorbar)}});var $6=B(j6=>{"use strict";var J6=da(),pF=or(),mF=(Wn(),vr(ri)),Ove=mF.ONEDAY,Hve=mF.ONEWEEK;j6.dtick=function(e,r){var t=r==="log",a=r==="date",n=r==="category",i=a?Ove: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%Hve===0?1:0));if(!(a==="D1"||a==="D2"))return J6(e)?Number(e):0}});var K6=B((Oqe,gF)=>{"use strict";var yF=$6(),Uve=or().isArrayOrTypedArray,Gve=so().isTypedArraySpec,Yve=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 Gve(w)&&(w=Yve(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;Uve(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((Hqe,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((Uqe,_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((Gqe,wF)=>{"use strict";var Sg=or(),Vve=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=Vve.arrayTemplater(t,n,i),f,c;for(f=0;f{"use strict";var t7=or(),Xve=Kt().contrast,AF=sl(),Wve=r7(),Zve=Oo();TF.exports=function(r,t,a,n,i){i||(i={});var o=a("labelalias");t7.isPlainObject(o)||delete t.labelalias;var l=Wve(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?Xve(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");Zve(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Jve}),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 Jve(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((Vqe,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((Xqe,kF)=>{"use strict";var _f=or(),$ve=Ra(),Kve=K6(),Qve=e7(),ehe=a7(),rhe=n7(),the=Mg();kF.exports=function(r,t,a){var n=$ve.newContainer(t,"colorbar"),i=r.colorbar||{};function o(P,q){return _f.coerce(i,n,the,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"),Kve(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"),rhe(i,n,o,"linear",C),ehe(i,n,o,"linear",C),Qve(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((Wqe,DF)=>{"use strict";var SF=da(),l7=or(),ahe=Z6(),nhe=i7(),CF=U0().isValid,ihe=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=ihe(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(),ohe=Ra(),EF=W6(),lhe=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=ohe.newContainer(t,s,"coloraxis"),o._name=s,lhe(i,o,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var she=or(),uhe=Ol().hasColorscale,fhe=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?she.nestedProperty(f,c.container).get():f;if(v)if(v.coloraxis)v._colorAx=t[v.coloraxis];else{var d=fhe(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(),che=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=che(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(($qe,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((Kqe,OF)=>{"use strict";var IF=or(),vhe=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)||vhe(r.size))}}});var f7=B((Qqe,HF)=>{"use strict";var hhe=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 hhe(s)&&s>0?Math.max(s,i):0}}});var _s=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},yhe=/([astvzqmhlc])([^astvzqmhlc]*)/gi,ghe=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function bhe(e){let r=[];return e.replace(yhe,(t,a,n)=>{let i=a.toLowerCase(),o=a,l=xhe(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 _he=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=_he(t),s="",u=0;u{"use strict";var pi=la(),La=or(),whe=La.numberFormat,Af=da(),Lg=Pt(),ii=Kt(),Ahe=nh(),e1=La.strTranslate,Eg=Ei(),The=(xf(),vr(bf)),Mhe=(Oi(),vr(Ii)),khe=Mhe.LINE_SPACING,lR=(zv(),vr(Nv)).DESELECTDIM,She=Ti(),Che=f7(),Dhe=_s().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(Ehe(f))),s&&e.style("text-shadow",s==="auto"?Eg.makeTextShadow(ii.contrast(i)):m7(s)),u&&e.style("text-decoration-line",m7(qhe(u)))};function m7(e){return e==="none"?void 0:e}var Lhe={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Ehe(e){return Lhe[e]}function qhe(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 Fhe=Hr.symbolNames.length,Rhe="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>=Fhe||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?Rhe:"")}var QF=whe("~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 G=t.uid;E&&(G+="-"+e.i),Hr.pattern(r,"point",n,G,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=She.isBubble(e)?Che(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={};Dhe(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(The.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,zhe=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>=zhe&&(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 Bhe=/\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(Bhe,"");n+=a,n=n.trim(),this.setAttribute("transform",n)})}};var Ihe=/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(Ihe);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((nFe,_R)=>{"use strict";var lh=la(),Ohe=da(),Hhe=di(),T7=Pt(),ac=or(),gR=ac.strTranslate,qg=Sa(),Fg=Kt(),sh=Ei(),bR=(zv(),vr(Nv)),Uhe=(Oi(),vr(Ii)).OPPOSITE_SIDE,xR=/ [XY][0-9]* /,M7=1.6,k7=1.6;function Ghe(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,G=1,X=z.font,Y=X.family,V=X.size,Z=X.color,j=X.weight,ee=X.style,me=X.variant,fe=X.textcase,he=X.lineposition,te=X.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===""?G=0:Fe(I,q)&&(ce||(I=""),G=.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*V;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*V:Ee.y+Ee.height+k7*V,ot=ac.extendFlat({},u,{y:rt});$e.attr("transform",mr),$e.style("opacity",G*Fg.opacity(Z)).call(qg.font,{color:Fg.rgb(Z),size:lh.round(V,2),family:Y,weight:j,style:ee,variant:me,textcase:fe,shadow:te,lineposition:he}).attr(ot).call(sh.convertToTspans,e)}return Hhe.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=Uhe[s.side],Yr=s.side==="left"||s.side==="top"?-1:1,ue=Ohe(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*V;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:Ghe,SUBTITLE_PADDING_EM:k7,SUBTITLE_PADDING_MATHJAX_EM:M7}});var Hg=B((iFe,kR)=>{"use strict";var Yhe=la(),Vhe=wv().utcFormat,Pa=or(),Xhe=Pa.numberFormat,ws=da(),Tf=Pa.cleanNumber,Whe=Pa.ms2DateTime,wR=Pa.dateTime2ms,As=Pa.ensureNumber,AR=Pa.isArrayOrTypedArray,Mf=(Wn(),vr(ri)),Rg=Mf.FP_SAFE,Hl=Mf.BADNUM,Zhe=Mf.LOG_CLIP,Jhe=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}var jhe=2;function $he(e,r){if(e<=0)return 0;let t=Math.max(0,r-jhe);return e>t?t/e:1}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*Zhe*Math.abs(k-M))}else return Hl}function o(x,w,k,M){if((M||{}).msUTC&&ws(x))return+x;var C=wR(x,k||r.calendar);if(C===Hl)if(ws(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 Whe(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:As,r.l2c=r.type==="log"?t1:As,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=As,r.d2p=r.r2p=function(x){return r.l2p(Tf(x))},r.p2d=r.p2r=b,r.cleanPos=As):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=As,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=As):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=As,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:As(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=As,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:As(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(!ws(k[M]))if(!(E||F)&&ws(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,r.domainpad=k.domainpad}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";let q=(P?w.h:w.w)*(r.domain[1]-r.domain[0]),z=r.domainpad,I=0,U=0;if(z){I=(P?z.top:z.left)||0,U=(P?z.bottom:z.right)||0;let Z=$he(I+U,q);I*=Z,U*=Z}if(r._length=q-I-U,r._padStart=I,r._padEnd=U,P?(r._offset=w.t+(1-r.domain[1])*w.h+I,r._m=r._length/(E-F),r._b=-r._m*F):(r._offset=w.l+r.domain[0]*w.w+I,r._m=r._length/(F-E),r._b=-r._m*E),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var G,X;if(r._rangebreaks=r.locateBreaks(Math.min(E,F),Math.max(E,F)),r._rangebreaks.length){for(G=0;GF&&(Y=!Y),Y&&r._rangebreaks.reverse();var V=Y?-1:1;for(r._m2=V*r._length/(Math.abs(F-E)-r._lBreaks),r._B.push(-r._m2*(P?F:E)),G=0;GC&&(C+=7,EC&&(C+=24,E=M&&E=M&&x=te.min&&(eete.max&&(te.max=me),fe=!1)}fe&&F.push({min:ee,max:me})}};for(k=0;k{"use strict";var SR=da(),C7=or(),Khe=(Wn(),vr(ri)).BADNUM,Ug=C7.isArrayOrTypedArray,Qhe=C7.isDateTime,ede=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&&ide(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 nde(e,r){for(var t=e.length,a=DR(t),n=0,i=0,o={},l=0;ln*2}function ide(e){return Ug(e[0])&&Ug(e[1])}});var uh=B((lFe,BR)=>{"use strict";var ode=la(),RR=da(),kf=or(),Gg=(Wn(),vr(ri)).FP_SAFE,lde=Pt(),sde=Sa(),PR=hn(),ude=PR.getFromId,fde=PR.isLinked;BR.exports={applyAutorangeOptions:zR,getAutoRange:L7,makePadFn:E7,doAutoRange:vde,findExtremes:hde,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(X,Y){return Math.max(X,l(Y))}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),G=c/(1-Math.min(.5,U/_));n=c>0?[0,G]:[G,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,dde)}function F7(e,r,t,a){NR(e,r,t,a,pde)}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 mde(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 yde(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=mde(t,r),a=yde(a,r),[t,a]}});var en=B((uFe,oP)=>{"use strict";var ul=la(),zn=da(),fh=di(),n1=Pt(),Ft=or(),ch=Ft.strTranslate,nc=Ei(),gde=r1(),i1=Kt(),Ho=Sa(),bde=sl(),IR=$6(),sFe=(ni(),vr(ai)),Fi=(Wn(),vr(ri)),xde=Fi.ONEMAXYEAR,Wg=Fi.ONEAVGYEAR,Zg=Fi.ONEMINYEAR,_de=Fi.ONEMAXQUARTER,B7=Fi.ONEAVGQUARTER,Jg=Fi.ONEMINQUARTER,wde=Fi.ONEMAXMONTH,vh=Fi.ONEAVGMONTH,jg=Fi.ONEMINMONTH,Uo=Fi.ONEWEEK,ji=Fi.ONEDAY,Sf=ji/2,Ms=Fi.ONEHOUR,o1=Fi.ONEMIN,$g=Fi.ONESEC,Ade=Fi.ONEMILLI,Tde=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,Mde=e3.OPPOSITE_SIDE,Kg=3,pr=oP.exports={};pr.setConvert=Hg();var kde=D7(),ks=hn(),Sde=ks.idSort,Cde=ks.isLinked;pr.id2name=ks.id2name;pr.name2id=ks.name2id;pr.cleanId=ks.cleanId;pr.list=ks.list;pr.listIds=ks.listIds;pr.getFromId=ks.getFromId;pr.getFromTrace=ks.getFromTrace;var $R=uh();pr.getAutoRange=$R.getAutoRange;pr.findExtremes=$R.findExtremes;var Dde=1e-4;function V7(e){var r=(e[1]-e[0])*Dde;return[e[0]-r,e[1]+r]}function Lde(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<=xde?c=u:c=Wg:t===B7&&f>=Jg?u>=Jg&&u<=_de?c=u:c=B7:f>=jg?u>=jg&&u<=wde?c=u:c=vh:t===Uo&&f>=Uo?c=Uo:f>=ji?c=ji:t===Sf&&f>=Sf?c=Sf:t===Ms&&f>=Ms&&(c=Ms);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=Nde(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,Y,f,n)){if(w&&G++,M.rangebreaks&&!f){if(U=v)break}if(y.length>d||U===I)break;I=U;var Z={value:Lde(U,V,Y)};w?(U===z&&(Z.first=!0),q&&U!==(U|0)&&(Z.simpleLabel=!0),i>1&&G%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 me=[],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);(te?ce>Fe-Le:cev||arv&&(Ve.periodX=v),arn&&pn&&yWg)r/=Wg,a=n(10),e.dtick="M"+12*Ts(r,a,Vg);else if(i>vh)r/=vh,e.dtick="M"+Ts(r,1,XR);else if(i>ji){if(e.dtick=Ts(r,ji,e._hasDayOfWeekBreaks?[1,2,7,14]:zde),!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>Ms?e.dtick=Ts(r,Ms,XR):i>o1?e.dtick=Ts(r,o1,WR):i>$g?e.dtick=Ts(r,$g,WR):(a=n(10),e.dtick=Ts(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"+Ts(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=Ts(r,a,Bde)):(e.tick0=0,a=n(10),e.dtick=Ts(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>=Ms)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 Ode(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 Hde(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function Ude(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 Gde(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 Yde(e,r,t,a,n){if(e.thetaunit==="radians"&&!t){var i=r.x/180;if(i===0)r.text="0";else{var o=Vde(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 Vde(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"],Xde=["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 Wde(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"?Xde[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=o2e(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]=$de(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=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,U=jde(r,_);if(!s._hasOnlyLargeSploms){var G=r._subplotsWith,X={};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 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 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 Kde(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 Sde(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(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:[],r3),v=[];c.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(V){var Z=ul.select(this),j=e._promises.length;Z.call(nc.positionText,s.xFn(V),s.yFn(V)).call(Ho.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(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(V){ul.select(this).select("text").call(nc.positionText,s.xFn(V),s.yFn(V))});function d(V,Z){V.each(function(j){var ee=ul.select(this),me=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)+")":""),te=nc.lineCount(ee),Le=l1*j.fontSize,ce=s.heightFn(j,zn(Z)?+Z:0,(te-1)*Le);if(ce&&(he+=ch(0,ce)),me.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(me.node()).width,ge=Re*{end:-.5,start:.5}[fe];me.attr("transform",he+ch(ge,0))}})}r._adjustTickLabelsOverflow=function(){var V=r.ticklabeloverflow;if(!(!V||V==="allow")){var Z=V.indexOf("hide")!==-1,j=r._id.charAt(0)==="x",ee=0,me=j?e._fullLayout.width:e._fullLayout.height;if(V.indexOf("domain")!==-1){var fe=Ft.simpleMap(r.range,r.r2l);ee=r.l2p(fe[0])+r._offset,me=r.l2p(fe[1])+r._offset}var he=Math.min(ee,me),te=Math.max(ee,me),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>te||Ye.leftte||Ye.top+(r.tickangle?0:ur.fontSize/4)r["_visibleLabelMin_"+fe._id]?qe.style("display","none"):te.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 V=0,Z=[],j,ee=1;c.each(function(mr){V=Math.max(V,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 me=(r.tickson==="boundaries"||r.showdividers)&&!t.secondary,fe=l.length,he=Math.abs((l[fe-1].x-l[0].x)*r._m)/(fe-1),te=me?he/2:he,Le=me?r.ticklen:V*1.25*ee,ce=Math.sqrt(Math.pow(te,2)+Math.pow(Le,2)),Fe=te/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))G*U&&(q=U,E[C]=F[C]=z[C])}var X=Math.abs(q-P);X-w>0?(X-=w,w*=1+w/X):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 Y=Ft.syncOrAsync(b);return Y&&Y.then&&e._promises.push(Y),Y};function Qde(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 e2e(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,gde.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)||!r2e(e,r,t,a)||t2e(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=Tde:/%L/.test(r)?e>=Ade:/%[SX]/.test(r)?e>=$g:/%M/.test(r)?e>=o1:/%[HI]/.test(r)?e>=Ms:/%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((fFe,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((cFe,uP)=>{"use strict";var s2e=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&&(s2e(a,f,l),(o==="linear"||o==="-")&&a("rangemode")),t.cleanRange()}});var cP=B((vFe,fP)=>{var u2e={left:0,top:0};fP.exports=f2e;function f2e(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=c2e(r);return t[0]=a-i.left,t[1]=n-i.top,t}function c2e(e){return e===window||e===document||e===document.body?u2e:e.getBoundingClientRect()}});var K7=B((hFe,vP)=>{"use strict";var v2e=w6();function h2e(){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=v2e&&h2e()});var dP=B((dFe,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((pFe,mP)=>{"use strict";var pP=or(),d2e=[["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),d2e[t][r]}});var bP=B((mFe,gP)=>{"use strict";var p2e=V2(),m2e=ig(),y2e=z2().getGraphDiv,g2e=(g2(),vr(y2)),Q7=gP.exports={};Q7.wrapped=function(e,r,t){var i;e=y2e(e),e._fullLayout&&m2e.clear(e._fullLayout._uid+g2e.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&&p2e.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((yFe,AP)=>{"use strict";var b2e=cP(),e8=T6(),x2e=K7(),_2e=or().removeElement,w2e=(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,x2e?(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 b2e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Cf=B((gFe,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((bFe,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;iL2e,itemGap:()=>D2e,itemHeightPad:()=>q2e,itemMinHeight:()=>E2e,scrollBarColor:()=>M2e,scrollBarEnterAttrs:()=>S2e,scrollBarMargin:()=>k2e,scrollBarMinHeight:()=>T2e,scrollBarWidth:()=>A2e,titlePad:()=>C2e});var A2e,T2e,M2e,k2e,S2e,C2e,D2e,L2e,E2e,q2e,n3=Ja(()=>{"use strict";A2e=6,T2e=20,M2e="#808BA4",k2e=4,S2e={rx:20,ry:3,width:0,height:0},C2e=2,D2e=5,L2e=6,E2e=16,q2e=3});var a8=B((xFe,DP)=>{"use strict";var t8=Di(),F2e=gs(),{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:F2e.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((wFe,LP)=>{"use strict";var i3=Pt(),Go=or(),R2e=Ra(),P2e=Fl(),N2e=a8(),z2e=Uv(),n8=v1();function B2e(e,r,t,a,n){var i=r[e]||{},o=R2e.newContainer(t,e);function l(Z,j){return Go.coerce(i,o,N2e,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,me=f;return Go.coerce(ee,me,P2e,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 me=Z.legend.length;me(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,G="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,G="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 X=l("groupclick");l("groupdoubleclick",X),l("xanchor",G),l("yanchor",U),l("maxheight"),l("valign"),Go.noneOrAll(i,o,["x","y"]);var Y=l("title.text");if(Y){l("title.side",F?"left":"top");var V=Go.extendFlat({},s,{size:Go.bigFont(s.size)});Go.coerceFont(l,"title.font",V);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(),I2e=o8.pushUnique,O2e=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 G=l.label,X=f.indexOf(G);if(n==="toggle")X===-1?f.push(G):f.splice(X,1);else if(n==="toggleothers"){var Y=X!==-1,V=[];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 me="~~i"+c;s.push(me),l[me]=[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,me=u8(j.trace.legendrank)?j.trace.legendrank[j.i]:j.trace.legendrank;return ee-me||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 H2e=Sa(),U2e=Kt();NP.exports=function(r,t,a,n){var i=a.marker.pattern;i&&i.shape?H2e.pointStyle(r,a,n,t):U2e.fill(r,t.color)}});var HP=B((SFe,OP)=>{"use strict";var BP=Kt(),IP=c8().castOption,G2e=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(G2e,t,a,n).style("stroke-width",l).call(BP.stroke,o)}});var m8=B((CFe,XP)=>{"use strict";var $i=la(),v8=Pt(),Hi=or(),h8=Hi.strTranslate,Yo=Sa(),fl=Kt(),d8=Ol().extractOpts,s3=Ti(),Y2e=HP(),V2e=c8().castOption,UP=(n3(),vr(a3)),GP=12,YP=5,uc=2,X2e=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],G=U*(.5*(z-I+3))||0,X=a.indentation;F.attr("transform",h8(X,G))}var Y=F.selectAll("g.legendfill").data([C]);Y.enter().append("g").classed("legendfill",!0);var V=F.selectAll("g.legendlines").data([C]);V.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,G=C[0],X=G.trace,Y,V,Z=d8(X),j=Z.colorscale,ee=Z.reversescale,me=function(ge){if(ge.size())if(F)Yo.fillGroupStyle(ge,t,!0);else{var He="legendfill-"+X.uid;Yo.gradient(ge,t,He,p8(ee),j,"fill")}},fe=function(ge){if(ge.size()){var He="legendline-"+X.uid;Yo.lineGroupStyle(ge),Yo.gradient(ge,t,He,p8(ee),j,"stroke")}},he=s3.hasMarkers(X)||!I?"M5,0":U?"M5,-2":"M5,-3",te=$i.select(this),Le=te.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(me);let ce=F||z?(UP.dfltFillHeight-l)/2:0;if(te.selectAll("g.legendfill, g.legendlines, g.legendsymbols").attr("transform",ce?h8(0,ce):null),P||q){var Fe=f(void 0,X.line,X2e,YP);V=Hi.minExtend(X,{line:{width:Fe}}),Y=[Hi.minExtend(G,{trace:V})]}var Re=te.select(".legendlines").selectAll("path").data(P||q?[Y]:[]);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,G=!z&&!P&&!F&&s3.hasText(U),X,Y;function V(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||G||q){var j={},ee={};if(z){j.mc=V("marker.color",Z);var me=U.type==="scattermap";j.mx=me?"circle":V("marker.symbol",Z),j.mo=V("marker.opacity",Hi.mean,[.2,1]),j.mlc=V("marker.line.color",Z),j.mlw=V("marker.line.width",Hi.mean,[0,5],uc),j.mld=V("marker.line.dash",Z),ee.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var fe=V("marker.size",Hi.mean,[2,16],GP);j.ms=fe,ee.marker.size=fe}q&&(ee.line={width:V("line.width",Z,[0,10],YP)}),G&&(j.tx="Aa",j.tp=V("textposition",Z),j.ts=10,j.tc=V("textfont.color",Z),j.tf=V("textfont.family",Z),j.tw=V("textfont.weight",Z),j.ty=V("textfont.style",Z),j.tv=V("textfont.variant",Z),j.tC=V("textfont.textcase",Z),j.tE=V("textfont.lineposition",Z),j.tS=V("textfont.shadow",Z)),X=[Hi.minExtend(I,j)],Y=Hi.minExtend(U,ee),Y.selectedpoints=null,Y.texttemplate=null}var he=$i.select(this).select("g.legendpoints"),te=he.selectAll("path.scatterpts").data(z?X:[]);te.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),te.exit().remove(),te.call(Yo.pointStyle,Y,t),z&&(X[0].mrc=3);var Le=he.selectAll("g.pointtext").data(G?X:[]);Le.enter().append("g").classed("pointtext",!0).append("text").attr("transform",u),Le.exit().remove(),Le.selectAll("text").call(Yo.textPointStyle,Y,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),G=E[I[0]].marker,X=f(void 0,G.line,dh,uc);U.attr("d",I[1]).style("stroke-width",X+"px").call(fl.fill,G.color),X&&U.call(fl.stroke,G.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"),G=$i.select(E).select("g.legendpoints").selectAll("path.legend"+F).data(U?[C]:[]);G.enter().append("path").classed("legend"+F,!0).attr("d",I).attr("transform",u),G.exit().remove(),G.each(function(X){var Y=$i.select(this),V=X[0],Z=f(V.mlw,q.line,dh,uc);Y.style("stroke-width",Z+"px");var j=V.mcc;if(!a._inHover&&"mc"in V){var ee=d8(q),me=ee.mid;me===void 0&&(me=(ee.max+ee.min)/2),j=Yo.tryColorscale(q,"")(me)}var fe=j||V.mc||q.color,he=q.pattern,te=Yo.getPatternAttr;let Le=0;a._inHover&&V._distinct&&V.index!=null&&(Le=V.index);let ce=he&&(te(he.shape,Le,"")||te(he.path,Le,""));if(ce){let Re=te(he.bgcolor,Le,null),ge=te(he.fgcolor,Le,null);var Fe=he.fgopacity;let He=a._inHover?l3(te(he.size,Le,8),8,10):l3(he.size,8,10),ur=a._inHover?l3(te(he.solidity,Le,.5),.5,1):l3(he.solidity,.5,1),qe=a._inHover?`hover-${P.uid}-${Le}`:`legend-${P.uid}`;Y.call(Yo.pattern,"legend",t,qe,ce,He,ur,j,he.fillmode,Re,ge,Fe)}else Y.call(fl.fill,fe);Z&&fl.stroke(Y,V.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||{},G=f(V2e(U.line.width,P.pts),U.line,dh,uc),X="pieLike",Y=Hi.minExtend(q,{marker:{line:{width:G}}},X),V=Hi.minExtend(P,{trace:Y},X);Y2e(I,V,Y,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),G=d8(E),X=G.colorscale,Y=G.reversescale,V=function(me){if(me.size()){var fe="legendfill-"+E.uid;Yo.gradient(me,t,fe,p8(Y,F==="radial"),X,"fill")}},Z;if(X){if(!F){var ee=X.length;Z=I===0?X[Y?ee-1:0][1]:I===1?X[Y?0:ee-1][1]:X[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(V)})}};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((DFe,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(),W2e=m8(),yh=v1(),ph=1,Z2e=/^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(Z2e)&&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)&&K2e(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(j2e,e,t)}).call(W2e,e,t).each(function(C){l||C[0].groupTitle&&t.groupclick==="toggleitem"||Ki.select(this).call($2e,e,n)}),Bn.syncOrAsync([g8.previousPromises,function(){return r1e(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=t1e(e,n,q,z);if(I)return;if(a.margin.autoexpand){var U=q,G=z;q=F?Bn.constrain(q,0,a.width-t._width):U,z=P?Bn.constrain(z,0,a.height-t._effHeight):G,q!==U&&Bn.log("Constrain "+n+".x to make legend fit inside graph"),z!==G&&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 X=t._effHeight;l&&(X=t._height),b.attr({width:t._width-E,height:X-E,x:E/2,y:E/2}),In.setTranslate(T,0,0),y.select("rect").attr({width:t._width-2*E,height:X-2*E,x:E,y:E}),In.setClipUrl(T,i,e),In.setRect(w,0,0,0,0),delete t._scrollY}else{var Y=Math.max(dn.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),V=t._effHeight-Y-2*dn.scrollBarMargin,Z=t._height-t._effHeight,j=V/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,Y,j),m.on("wheel",function(){ee=Bn.constrain(t._scrollY+Ki.event.deltaY/Z*V,0,Z),Re(ee,Y,j),ee!==0&&ee!==Z&&Ki.event.preventDefault()});var me,fe,he,te=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"?me=Ue.changedTouches[0].clientY:me=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=te(he,me,fe),Re(ee,Y,j))});w.call(ce);var Fe=Ki.behavior.drag().on("dragstart",function(){var Ue=Ki.event.sourceEvent;Ue.type==="touchstart"&&(me=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,me,fe),Re(ee,Y,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 j2e(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 $2e(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 K2e(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(){Q2e(r,t,a,n)})}function Q2e(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 e1e(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 r1e(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=e1e(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,G=i.width/2;a._maxWidth=Math.max(z?U&&q==="left"?l.l+l.w:G:I?U&&q==="right"?l.r+l.w:G:l.w,2*p);var X=0,Y=0;t.each(function(Ue){var Ye=u3(Ue,a,p);X=Math.max(X,Ye),Y+=Ye}),F=null;var V=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?(V=Math.max(V,j),j=0,ee+=Z+_,Z=Ye):Z=Math.max(Z,Ye),In.setTranslate(this,j,ee),j+=We}),a._width=Math.max(V,j)+c,a._height=ee+Z+m}else{var me=t.size(),fe=Y+v+(me-1)*d=a._maxWidth&&(V=Math.max(V,ce),te=0,Le+=he,a._height+=he,he=0),In.setTranslate(this,P[0]+c+te,P[1]+c+Le+Ye/2+d),ce=te+We+d,te+=Ve,he=Math.max(he,Ye)}),fe?(a._width=te+v,a._height=he+m):(a._width=Math.max(V,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()&&J2e(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 t1e(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(),a1e=pn.pushUnique,_8=pn.strTranslate,n1e=pn.strRotate,i1e=V2(),nn=Ei(),o1e=SP(),Ss=Sa(),Zn=Kt(),d3=Ul(),Gl=en(),l1e=(ni(),vr(ai)).zindexSeparator,cc=Pt(),Vo=_s(),vc=(g2(),vr(y2)),s1e=i8(),u1e=x8(),cN=vc.YANGLE,A8=Math.PI*cN/180,f1e=1/Math.sin(A8),c1e=Math.cos(A8),v1e=Math.sin(A8),rn=vc.HOVERARROWSIZE,ia=vc.HOVERTEXTPAD,tN={box:!0,ohlc:!0,violin:!0,candlestick:!0},h1e={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(){p1e(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=pN(n),o=mN(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=hN(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?X=Vo.flat(i,r.xval):X=Vo.p2c(C,Ue),"yval"in r?Y=Vo.flat(i,r.yval):Y=Vo.p2c(E,Ye),e._hoverPointerX=r.pointerX,e._hoverPointerY=r.pointerY,!du(X[0])||!du(Y[0]))return pn.warn("Fx.hover failed",r,e),d3.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=X,e._hoverYVals=Y,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,te,Le,"closest");$n=Kn&&Kn[0]}let is=ge[me];$n&&$n.index!==void 0&&$n.index!==!1&&$n.spikeDistance<=I&&(!is||$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],X&&X[Ir],Y&&Y[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=fN("x",fr,l),$r=fN("y",fr,l);Ie(qr,$r);var tt=[],Ge={},Mr=0,rr=function(Ir){var ca=tN[Ir.trace.type]?vN(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=pN(e),le=mN(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"&&(G.length>1||U.length>1)||d==="closest"&&He&&U.length>1,un=Zn.combine(l.plot_bgcolor||Zn.background,l.paper_bgcolor),fn=hN(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);o1e(pu.select(n),si?"pointer":"")}var bn=b1e(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,X),yvals:Vo.c2dApply(E,Y),xPixel:r.pointerX,yPixel:r.pointerY})}}function vN(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 m1e=/([\s\S]*)<\/extra>/;function w8(e,r){return p3(e,nn.getMathOrTextNode(r))}function hN(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,me=pe[0],fe=((n==="x unified"?me.xa:me.ya).unifiedhovertitle||{}).text,he=fe?pn.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:fe}):C,te={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};s1e(te,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?n1e(cN):""))}}),{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=uN(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(m1e,(p,m)=>(o=uN(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(G){return G*t._invScaleX},y=function(G){return G*t._invScaleY};e.each(function(G){var X=G[n],Y=G[i],V=X._id.charAt(0)==="x",Z=X.range;f===0&&Z&&Z[0]>Z[1]!==V&&(l=-1);var j=0,ee=V?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var me=dN(G,r),fe=G.anchor,he=fe==="end"?-1:1,te,Le;if(fe==="middle")te=G.crossPos+(V?y(me.y-G.by/2):m(G.bx/2+G.tx2width/2)),Le=te+(V?y(G.by):m(G.bx));else if(V)te=G.crossPos+y(rn+me.y)-y(G.by/2-rn),Le=te+y(G.by);else{var ce=m(he*rn+me.x),Fe=ce+m(he*G.bx);te=G.crossPos+Math.min(ce,Fe),Le=G.crossPos+Math.max(ce,Fe)}V?d!==void 0&&p!==void 0&&Math.min(Le,p)-Math.max(te,d)>1&&(Y.side==="left"?(j=Y._mainLinePosition,ee=t.width):ee=Y._mainLinePosition):c!==void 0&&v!==void 0&&Math.min(Le,v)-Math.max(te,c)>1&&(Y.side==="top"?(j=Y._mainLinePosition,ee=t.height):ee=Y._mainLinePosition)}u[f++]=[{datum:G,traceIndex:G.trace.index,dp:0,pos:G.pos,posref:G.posref,size:G.by*(V?f1e:1)/2,pmin:j,pmax:ee}]}),u.sort(function(G,X){return G[0].posref-X[0].posref||l*(X[0].traceIndex-G[0].traceIndex)});var b,T,_,x,w,k,M;function C(G){var X=G[0],Y=G[G.length-1];if(T=X.pmin-X.pos-X.dp+X.size,_=Y.pos+Y.dp+Y.size-X.pmax,T>.01){for(w=G.length-1;w>=0;w--)G[w].dp+=T;b=!1}if(!(_<.01)){if(T<-.01){for(w=G.length-1;w>=0;w--)G[w].dp-=_;b=!1}if(b){var V=0;for(x=0;xX.pmax&&V++;for(x=G.length-1;x>=0&&!(V<=0);x--)k=G[x],k.pos>X.pmax-1&&(k.del=!0,V--);for(x=0;x=0;w--)G[w].dp-=_;for(x=G.length-1;x>=0&&!(V<=0);x--)k=G[x],k.pos+k.dp+k.size>X.pmax&&(k.del=!0,V--)}}}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 dN(e,r){var t=0,a=e.offset;return r&&(a*=-v1e,t=e.offset*c1e),{x:t,y:a}}function y1e(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=y1e(o),v=dN(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(Ss.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 g1e(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: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 oN(e,r,t){let a=r._id.charAt(0)==="y",n=1/0,i=-1/0;for(let o of r._counterAxes||[]){let l=Gl.getFromId(e,o);if(!l)continue;let s=l._padStart||0,u=l._padEnd||0;a?(n=Math.min(n,t.l+l.domain[0]*t.w+s),i=Math.max(i,t.l+l.domain[1]*t.w-u)):(n=Math.min(n,t.t+(1-l.domain[1])*t.h+s),i=Math.max(i,t.t+(1-l.domain[0])*t.h-u))}if(r.anchor==="free"){let o=a?t.l+r.position*t.w:t.t+(1-r.position)*t.h;n=Math.min(n,o),i=Math.max(i,o)}return[n,i]}function lN(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=Gl.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){let Y=oN(e,f,i);w=Y[0],k=Y[1]}a.insert("line",":first-child").attr({x1:w,x2:k,y1:p,y2:p,"stroke-width":T,stroke:_,"stroke-dasharray":Ss.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 M=r.vLinePoint,C,E;u=M&&M.xa,f=M&&M.ya;var F=u.spikesnap;F==="cursor"?(C=o.pointerX,E=o.pointerY):(C=u._offset+M.x,E=f._offset+M.y);var P=Zn.wcagContrast(M.color,c)<1.5?Zn.contrast(c):M.color,q=u.spikemode,z=u.spikethickness,I=u.spikecolor||P,U=Gl.getPxPosition(e,u),G,X;if(q.indexOf("toaxis")!==-1||q.indexOf("across")!==-1){if(q.indexOf("toaxis")!==-1&&(G=U,X=E),q.indexOf("across")!==-1){let Y=oN(e,u,i);G=Y[0],X=Y[1]}a.insert("line",":first-child").attr({x1:C,x2:C,y1:G,y2:X,"stroke-width":z,stroke:I,"stroke-dasharray":Ss.dashStyle(u.spikedash,z)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:C,x2:C,y1:G,y2:X,"stroke-width":z+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}q.indexOf("marker")!==-1&&a.insert("circle",":first-child").attr({cx:C,cy:U-(u.side!=="top"?z:-z),r:z,fill:I}).classed("spikeline",!0)}}}function b1e(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 sN(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function uN(e,r){return nn.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function x1e(e,r){for(var t=r.charAt(0),a=[],n=[],i=[],o=0;oe.offsetTop+e.clientTop,mN=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((EFe,yN)=>{"use strict";var _1e=or(),w1e=Kt(),A1e=_s().isUnifiedHover;yN.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&&A1e(t.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),i?(n.bgcolor||(n.bgcolor=w1e.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),_1e.coerceFont(a,"hoverlabel.font",n.font),a("hoverlabel.align",n.align)}});var bN=B((qFe,gN)=>{"use strict";var T1e=or(),M1e=y3(),k1e=kv();gN.exports=function(r,t){function a(n,i){return T1e.coerce(r,t,k1e,n,i)}M1e(r,t,a)}});var wN=B((FFe,_N)=>{"use strict";var xN=or(),S1e=dy(),C1e=y3();_N.exports=function(r,t,a,n){function i(l,s){return xN.coerce(r,t,S1e,l,s)}var o=xN.extendFlat({},n.hoverlabel);t.hovertemplate&&(o.namelength=-1),C1e(r,t,i,o)}});var k8=B((RFe,AN)=>{"use strict";var D1e=or(),L1e=kv();AN.exports=function(r,t){function a(n,i){return t[n]!==void 0?t[n]:D1e.coerce(r,t,L1e,n,i)}return a("clickmode"),a("hoversubplots"),a("hoveranywhere"),a("clickanywhere"),a("hovermode")}});var kN=B((PFe,MN)=>{"use strict";var TN=or(),E1e=kv(),q1e=k8(),F1e=y3();MN.exports=function(r,t){function a(u,f){return TN.coerce(r,t,E1e,u,f)}var n=q1e(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"),F1e(r,t,a),TN.coerceFont(a,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var DN=B((NFe,CN)=>{"use strict";var S8=or(),SN=Pt();CN.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 P1e=Pt(),LN=_s(),N1e=M8().hover;EN.exports=function(r,t,a){var n=P1e.getComponentMethod("annotations","onClick")(r,r._hoverdata),i=r._fullLayout;a!==void 0&&N1e(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&&LN.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&LN.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((BFe,PN)=>{"use strict";var z1e=la(),g3=or(),B1e=Ul(),d1=_s(),FN=kv(),RN=M8();PN.exports={moduleType:"component",name:"fx",constants:(g2(),vr(y2)),schema:{layout:FN},attributes:dy(),layoutAttributes:FN,supplyLayoutGlobalDefaults:bN(),supplyDefaults:wN(),supplyLayoutDefaults:kN(),calc:DN(),getDistanceFunction:d1.getDistanceFunction,getClosest:d1.getClosest,inbox:d1.inbox,quadrature:d1.quadrature,appendArrayPointValue:d1.appendArrayPointValue,castHoverOption:O1e,castHoverinfo:H1e,hover:RN.hover,unhover:B1e.unhover,loneHover:RN.loneHover,loneUnhover:I1e,click:qN()};function I1e(e){var r=g3.isD3Selection(e)?e:z1e.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function O1e(e,r,t){return g3.castOption(e,r,"hoverlabel."+t)}function H1e(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((OFe,NN)=>{"use strict";NN.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((HFe,zN)=>{"use strict";zN.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:()=>U1e,SQRT2:()=>J1e,cos45:()=>W1e,i000:()=>G1e,i090:()=>Y1e,i180:()=>V1e,i270:()=>X1e,sin45:()=>Z1e});var U1e,G1e,Y1e,V1e,X1e,W1e,Z1e,J1e,w3=Ja(()=>{"use strict";U1e=32,G1e=0,Y1e=8,V1e=16,X1e=24,W1e=Math.cos(Math.PI/4),Z1e=Math.sin(Math.PI/4),J1e=Math.sqrt(2)});var A3=B((UFe,IN)=>{"use strict";var j1e=or().strTranslate;function BN(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 $1e(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 K1e(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return BN(e,t[r])}}function Q1e(e){return j1e(e.xaxis._offset,e.yaxis._offset)}IN.exports={p2r:BN,r2p:$1e,axValue:K1e,getTransform:Q1e}});var Ef=B(gu=>{"use strict";var epe=v7(),UN=(w3(),vr(_3)),gh=UN.CIRCLE_SIDES,C8=UN.SQRT2,GN=A3(),ON=GN.p2r,HN=GN.r2p,rpe=[0,3,4,5,6,1,2],tpe=[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 YN=hn(),JN=Lf(),ape=JN.drawMode,npe=JN.openMode,bh=(w3(),vr(_3)),VN=bh.i000,XN=bh.i090,WN=bh.i180,ZN=bh.i270,ipe=bh.cos45,ope=bh.sin45,jN=A3(),M3=jN.p2r,qf=jN.r2p,lpe=gf(),spe=lpe.clearOutline,k3=Ef(),upe=k3.readPaths,fpe=k3.writePaths,cpe=k3.ellipseOver,vpe=k3.fixDatesForPaths;function hpe(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(!ape(i)&&n!==void 0){var l=a._fullLayout._activeShapeIndex;if(l{"use strict";var dpe=Lf(),ppe=dpe.selectMode,mpe=gf(),ype=mpe.clearOutline,D8=Ef(),gpe=D8.readPaths,bpe=D8.writePaths,xpe=D8.fixDatesForPaths;QN.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(!ppe(c)&&f!==void 0){var d=i._fullLayout._activeSelectionIndex;if(dMpe,paramIsX:()=>Ape,paramIsY:()=>Tpe,paramRE:()=>wpe,segmentRE:()=>_pe});var _pe,wpe,Ape,Tpe,Mpe,y1=Ja(()=>{"use strict";_pe=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,wpe=/[^\s,]+/g,Ape={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:{}},Tpe={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:{}},Mpe={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)),ez=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(G){return F._offset+F.r2p(U(G,!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 kpe(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 kpe(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.*/,""),ez.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((WFe,az)=>{"use strict";var Spe=or(),Ls=en(),rz=Ei(),tz=Sa(),Cpe=Ef().readPaths,hc=Rf(),Dpe=hc.getPathString,g1=Wy(),Lpe=(Oi(),vr(Ii)).FROM_TL;az.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=Spe.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=Dpe(r,a),C=Cpe(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,me,Le),qe=hc.getPixelShift(me,a.x0shift),Ue=hc.getPixelShift(me,a.x1shift);_=ur+a.x0+qe,x=ur+a.x1+Ue}else _=ge(a.x0,a.x0shift,me,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,te,Re)}var U=a.label.textangle;U==="auto"&&(a.type==="line"?U=Epe(_,w,x,k):U=0),T.call(function(j){return j.call(tz.font,m).attr({}),rz.convertToTspans(j,r),j});var G=tz.bBox(T.node()),X=qpe(_,w,x,k,a,U,G),Y=X.textx,V=X.texty,Z=X.xanchor;T.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Z],y:V,x:Y,transform:"rotate("+U+","+Y+","+V+")"}).call(rz.positionText,Y,V)}};function Epe(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 qpe(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 Fpe=or(),Rpe=Fpe.strTranslate,nz=Ul(),lz=Lf(),Ppe=lz.drawMode,sz=lz.selectMode,uz=Pt(),iz=Kt(),D3=(w3(),vr(_3)),Npe=D3.i000,zpe=D3.i090,Bpe=D3.i180,Ipe=D3.i270,Ope=gf(),fz=Ope.clearOutlineControllers,F8=Ef(),C3=F8.pointsOnRectangle,q8=F8.pointsOnEllipse,Hpe=F8.writePaths,Upe=S3().newShapes,Gpe=S3().createShapeObj,Ype=L8(),Vpe=E8();cz.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(X){var Y={};a.isActiveShape!==void 0&&(a.isActiveShape=!1,Y=Upe(t,a)),a.isActiveSelection!==void 0&&(a.isActiveSelection=!1,Y=Ype(t,a),i._fullLayout._reselect=!0),Object.keys(Y).length&&uz.call((X||{}).redrawing?"relayout":"_guiRelayout",i,Y)}var s=i._fullLayout,u=s._zoomlayer,f=a.dragmode,c=Ppe(f),v=sz(f);(c||v)&&(i._fullLayout._outlining=!0),fz(i),t.attr("d",Hpe(r));var d,p,m,y,b;if(!n&&(a.isActiveShape||a.isActiveSelection)){b=Xpe([],r);var T=u.append("g").attr("class","outline-controllers");F(T),G()}if(c&&a.hasText){var _=u.select(".label-temp"),x=Gpe(t,a,a.dragmode);Vpe(i,"label-temp",x,_)}function w(X){m=+X.srcElement.getAttribute("data-i"),y=+X.srcElement.getAttribute("data-j"),d[m][y].moveFn=k}function k(X,Y){if(r.length){var V=b[m][y][1],Z=b[m][y][2],j=r[m],ee=j.length;if(C3(j)){var me=X,fe=Y;if(a.isActiveSelection){var he=oz(j,y);he[1]===j[y][1]?fe=0:me=0}for(var te=0;te1&&!(X.length===2&&X[1][0]==="Z")&&(y===0&&(X[0][0]="M"),r[m]=X,o(),l())}}function E(X,Y){if(X===2){m=+Y.srcElement.getAttribute("data-i"),y=+Y.srcElement.getAttribute("data-j");var V=r[m];!C3(V)&&!q8(V)&&C()}}function F(X){d=[];for(var Y=0;Y{"use strict";var Zpe=la(),yz=Pt(),P8=or(),dc=en(),Jpe=Ef().readPaths,jpe=L3(),q3=E8(),gz=gf().clearOutlineControllers,R8=Kt(),F3=Sa(),$pe=Ra().arrayEditor,vz=Ul(),hz=mu(),dz=Cf(),pc=(y1(),vr(m1)),ko=Rf(),N8=ko.getPathString;_z.exports={draw:z8,drawOne:bz,eraseActiveShape:tme,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&&hz.hover(e,o,t.id)}}),a.addEventListener("click",i=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(i);o&&hz.click(e,o,t.id)}})}function xz(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=Qpe(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 Qpe(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 eme(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=Zpe.select(r.node().parentNode),z=dc.getFromId(e,t.xref),I=dc.getRefType(t.xref),U=dc.getFromId(e,t.yref),G=dc.getRefType(t.yref),X=t.x0shift,Y=t.x1shift,V=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,G);return _r(ar)},me=ko.getPixelToData(e,z,!1,I),fe=ko.getPixelToData(e,U,!0,G),he=ce(),te={element:he.node(),gd:e,prepFn:ge,doneFn:He,clickFn:ur},Le;vz.init(te),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,X),cy:u?ee(t.yanchor)-t.y0:ee(t.y0,V),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,Y),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=te.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?vz.getCursor(Br/_r,1-$e/Pr):"move";dz(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),te.moveFn=Le==="move"?qe:Ue,te.altKey=ar.altKey)}function He(){E3(e)||(dz(r),We(n),xz(r,e,t),yz.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=me(b+ar)):(Pr=function(mr){return me(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=pz(P,Pr,Br))}else s?v("xanchor",t.xanchor=me(b+ar)):(v("x0",t.x0=me(d+ar)),v("x1",t.x1=me(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=me(b+ar)):(Pr=function(qr){return me(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=pz(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:me($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:me(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:me(wr)),v(F,t[F]=s?fr:me(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 pz(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 rme(e,r){if(R3(e)){var t=r.node(),a=+t.getAttribute("data-index");if(a>=0){if(a===e._fullLayout._activeShapeIndex){mz(e);return}e._fullLayout._activeShapeIndex=a,e._fullLayout._deactivateShape=mz,z8(e)}}}function mz(e){if(R3(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(gz(e),delete e._fullLayout._activeShapeIndex,z8(e))}}function tme(e){if(R3(e)){gz(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var xh=or()._,ame=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")}};wz.exports=ame});var kz=B(($Fe,Mz)=>{"use strict";var Tz=la(),{dfltConfig:nme}=nf(),ime=Az(),ome=(e,r,t,a,n)=>{let i=ime(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===nme.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)},lme=(e,r,t)=>{let a=Tz.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",()=>{Tz.event.target===n.node()&&i()}),ome(e,n,r,()=>{i(),t()},i)};Mz.exports=lme});var O8=B((KFe,Fz)=>{"use strict";var Xo=Pt(),sme=di(),Cz=hn(),_a=x3(),ume=P3().eraseActiveShape,fme=kz(),_h=or(),oa=_h._,ga={};Fz.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}fme(e,r,function(){sme.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:ume};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=Cz.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"?Sz*v:1/Sz*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:Ez};function Lz(e){var r=e._fullLayout;return r.hovermode?!1:r._has("cartesian")?r._isHoriz?"y":"x":"closest"}function Ez(e){var r=Lz(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 Rz=O8(),dme=Object.keys(Rz),Pz=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Nz=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Pz,["downloadJson"]),wh=[],pme=function(e){if(Nz.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)}};dme.forEach(function(e){pme(Rz[e])});wh.sort();zz.exports={DRAW_MODES:Pz,backButtons:Nz,foreButtons:wh}});var G8={};ja(G8,{default:()=>yme});var U8,mme,yme,Y8=Ja(()=>{"use strict";U8=c2(H8()),mme={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(" ")}},yme=mme});var Iz=B((eRe,Bz)=>{"use strict";var gme=or(),b1=Kt(),bme=Ra(),xme=(Y8(),vr(G8)).default;Bz.exports=function(r,t){var a=r.modebar||{},n=bme.newContainer(t,"modebar");function i(l,s){return gme.coerce(a,n,xme,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 Gz=B((rRe,Uz)=>{"use strict";var V8=la(),_me=da(),B3=or(),Oz=x3(),wme=v2().version,Ame=new DOMParser;function Hz(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Es=Hz.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||Oz.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};Es.createIcon=function(e){var r=_me(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=Ame.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 kme=hn(),Yz=Ti(),X8=Pt(),Sme=_s().isUnifiedHover,Cme=Gz(),I3=O8(),Dme=H8().DRAW_MODES,Lme=or().extendDeep;Vz.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=Nme(i):!a.displayModeBar&&a.watermark?o=[]:o=Eme(r),n?n.update(r,o):t._modeBar=Cme(r,o)};function Eme(e){var r=e._fullLayout,t=e._fullData,a=e._context;function n(Y,V){if(typeof V=="string"){if(V.toLowerCase()===Y.toLowerCase())return!0}else{var Z=V.name,j=V._cat||V.name;if(Z===Y||j===Y.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(Y){for(var V=0;V1?(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"),(Rme(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"]),Fme(t)&&P.push("select2d","lasso2d");var q=[],z=function(Y){q.indexOf(Y)===-1&&E.indexOf(Y)!==-1&&q.push(Y)};if(Array.isArray(l)){for(var I=[],U=0;U{"use strict";Wz.exports={moduleType:"component",name:"modebar",layoutAttributes:(Y8(),vr(G8)).default,supplyLayoutDefaults:Iz(),manage:Xz()}});var Z8=B((nRe,Zz)=>{"use strict";var zme=(Oi(),vr(Ii)).FROM_BL;Zz.exports=function(r,t,a){a===void 0&&(a=zme[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(),Yl=hn().id2name,Bme=sl(),Jz=Z8(),Ime=Hg(),Ome=(Wn(),vr(ri)).ALMOST_EQUAL,Hme=(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 Gme(e,r){for(var t=r._size,a=t.h/t.w,n={},i=Object.keys(e),o=0;oOme*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=k0){let s=a[1]-a[0],u=s-l;u>0&&(o=s/(u/r+l))}e.domain=e._input.domain=[i+(a[0]-i)/o,i+(a[1]-i)/o],e.setScale()}});var U3=B(mi=>{"use strict";var H3=la(),eo=Pt(),Wo=di(),cl=or(),K8=Ei(),Q8=b3(),w1=Kt(),Ah=Sa(),Qz=r1(),nB=W8(),A1=en(),bu=(Oi(),vr(Ii)),iB=_1(),Vme=iB.enforce,Xme=iB.clean,eB=uh().doAutoRange,oB="start",Wme="middle",lB="end",Zme=(ni(),vr(ai)).zindexSeparator;mi.layoutStyles=function(e){return cl.syncOrAsync([Wo.doAutoMargin,jme],e)};function Jme(e,r,t){for(var a=0;a=e[1]||n[1]<=e[0])&&i[0]r[0])return!0}return!1}function jme(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),nB.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){eye(e,i,u,s),l.attr({x:o,y:i,"text-anchor":a,dy:aB(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+Qz.SUBTITLE_PADDING_EM*r.subtitle.font.size;v.attr({x:o,y:m,"text-anchor":a,dy:aB(r.yanchor)}).call(K8.positionText,o,m)}}}};function $me(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=Kme(i,a,n,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>o?l:0}function eye(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"&&$me(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 rye(e,r){var t=e.title,a=e._size,n=0;return r===oB?n=t.pad.l:r===lB&&(n=-t.pad.r),t.xref==="paper"?a.l+a.w*t.x+n:e.width*t.x+n}function tye(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 aB(e){return e==="top"?bu.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":bu.MID_SHIFT+"em"}function aye(e){var r=e.title,t=Wme;return cl.isRightAnchor(r)?t=lB:cl.isLeftAnchor(r)&&(t=oB),t}function nye(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 iye=Ef().readPaths,oye=L3(),sB=gf().clearOutlineControllers,ew=Kt(),uB=Sa(),lye=Ra().arrayEditor,fB=Rf(),sye=fB.getPathString;vB.exports={draw:G3,drawOne:cB,activateLastSelection:cye};function G3(e){var r=e._fullLayout;sB(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(uB.dashLine,y?"solid":d,y?4+v:v);if(uye(b,e,a),p){var T=lye(e.layout,"selections",a);b.style({cursor:"move"});var _={element:b.node(),plotinfo:n,gd:e,editHelpers:T,isActiveSelection:!0},x=iye(l,e);oye(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 fye(e,w)})}}function uye(e,r,t){var a=t.xref+t.yref;uB.setClipUrl(e,"clip"+r._fullLayout._uid+a,r)}function fye(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 cye(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&&(sB(e),delete e._fullLayout._activeSelectionIndex,G3(e))}}});var dB=B((sRe,hB)=>{function vye(){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}hB.exports=vye});var mB=B((uRe,pB)=>{function hye(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}pB.exports=hye});var gB=B((fRe,yB)=>{var dye={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}};yB.exports=dye});var xB=B((cRe,bB)=>{var T1=gB();function pye(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,G){var X=U.seg.start,Y=U.seg.end,V=G.seg.start,Z=G.seg.end;return r.pointsCollinear(X,V,Z)?r.pointsCollinear(Y,V,Z)||r.pointAboveOrOnLine(Y,V,Z)?1:-1:r.pointAboveOrOnLine(X,V,Z)?1:-1}function T(U){return y.findTransition(function(G){var X=b(U,G.ev);return X>0})}function _(U,G){var X=U.seg,Y=G.seg,V=X.start,Z=X.end,j=Y.start,ee=Y.end;t&&t.checkIntersection(X,Y);var me=r.linesIntersect(V,Z,j,ee);if(me===!1){if(!r.pointsCollinear(V,Z,j)||r.pointsSame(V,ee)||r.pointsSame(Z,j))return!1;var fe=r.pointsSame(V,j),he=r.pointsSame(Z,ee);if(fe&&he)return G;var te=!fe&&r.pointBetween(V,j,ee),Le=!he&&r.pointBetween(Z,j,ee);if(fe)return Le?v(G,Z):v(U,ee),G;te&&(he||(Le?v(G,Z):v(U,ee)),v(G,V))}else me.alongA===0&&(me.alongB===-1?v(U,j):me.alongB===0?v(U,me.pt):me.alongB===1&&v(U,ee)),me.alongB===0&&(me.alongA===-1?v(G,V):me.alongA===0?v(G,me.pt):me.alongA===1&&v(G,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 G=_(w,M);if(G)return G}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 mye(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,G){return f.index=I,f.matches_head=U,f.matches_pt1=G,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 yye={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)}};AB.exports=yye});var kB=B((dRe,MB)=>{var gye={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 bye=dB(),xye=mB(),SB=xB(),_ye=wB(),k1=TB(),CB=kB(),vl=!1,S1=xye(),So;So={buildLog:function(e){return e===!0?vl=bye():e===!1&&(vl=!1),vl===!1?!1:vl.list},epsilon:function(e){return S1.epsilon(e)},segments:function(e){var r=SB(!0,S1,vl);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=SB(!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:_ye(e.segments,S1,vl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return CB.toPolygon(So,e)},polygonToGeoJSON:function(e){return CB.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);DB.exports=So});var qB=B((mRe,EB)=>{EB.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((yRe,FB)=>{"use strict";var aw=Yy().dot,V3=(Wn(),vr(ri)).BADNUM,X3=FB.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 RB={};ja(RB,{BENDPX:()=>wye,MINSELECT:()=>Aye,SELECTDELAY:()=>Tye,SELECTID:()=>Mye});var wye,Aye,Tye,Mye,PB=Ja(()=>{"use strict";wye=1.5,Aye=12,Tye=100,Mye="-select"});var aI=B((gRe,tI)=>{"use strict";var NB=LB(),kye=qB(),E1=Pt(),Sye=Sa().dashStyle,D1=Kt(),Cye=mu(),Dye=_s().makeEventData,N1=Lf(),Lye=N1.freeMode,Eye=N1.rectMode,q1=N1.drawMode,sw=N1.openMode,uw=N1.selectMode,zB=Rf(),BB=(y1(),vr(m1)),GB=L3(),YB=gf().clearOutline,VB=Ef(),iw=VB.handleEllipse,qye=VB.readPaths,Fye=S3().newShapes,Rye=L8(),Pye=tw().activateLastSelection,Z3=or(),Nye=Z3.sorterAsc,XB=nw(),L1=ig(),hl=hn().getFromId,zye=b3(),Bye=U3().redrawReglTraces,J3=(PB(),vr(RB)),qs=J3.MINSELECT,Iye=XB.filter,fw=XB.tester,cw=A3(),IB=cw.p2r,Oye=cw.axValue,Hye=cw.getTransform;function vw(e){return e.subplot!==void 0}function Uye(e,r,t,a,n){var i=!vw(a),o=Lye(n),l=Eye(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=Hye(_),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,G=I._length,X=e.altKey&&!(q1(n)&&s),Y,V,Z,j,ee,me,fe;ZB(e,p,a),o&&(Y=Iye([[w,k]],J3.BENDPX));var he=b.selectAll("path.select-outline-"+_.id).data([1]),te=u?m.newshape:m.newselection;u&&(a.hasText=te.label.text||te.label.texttemplate);var Le=u&&!s?te.fillcolor:"rgba(0,0,0,0)",ce=te.line.color||(i?D1.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");he.enter().append("path").attr("class","select-outline select-outline-"+_.id).style({opacity:u?te.opacity/2:1,"stroke-dasharray":Sye(te.line.dash,te.line.width),"stroke-width":te.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;QB(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&&WB(Ye,p,a.xaxes,a.yaxes,a.subplot,a,he),We==="event"&&P1(p,void 0);Cye.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=X,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 WB(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(Wye(l)){ZB(e,r,i),v=j3(r,t,a,n);var k=Zye(l,v),M=k.pointNumbers.length>0;if(M?Jye(v,k):jye(v)&&(T=HB(k))){for(o&&o.remove(),w=0;w=0}function Xye(e){return e._fullLayout._activeSelectionIndex>=0}function F1(e,r){var t=e.dragmode,a=e.plotinfo,n=e.gd;Vye(n)&&n._fullLayout._deactivateShape(n),Xye(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=Fye(u,e)),f&&E1.call("_guiRelayout",n,{shapes:f});var c;s&&!vw(e)&&(c=Rye(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,E1.call("_guiRelayout",n,{selections:c}).then(function(){r&&Pye(n)})),n._fullLayout._outlining=!1}}a.selection={},a.selection.selectionDefs=e.selectionDefs=[],a.selection.mergedPolygons=e.mergedPolygons=[]}function OB(e){return e._id}function j3(e,r,t,a){if(!e.calcdata)return[];var n=[],i=r.map(OB),o=t.map(OB),l,s,u;for(u=0;u0,i=n?a[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(i)>-1:!1}function Jye(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=UB(e,!0);if(Ue.length){var Ye=Ue[0].xref,We=Ue[0].yref;if(Ye&&We){var Ve=eI(Ue),ar=rI([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,Qye(l,s,f)||QB(e,l,s,a),qe&&(He.points.length?P1(e,He):pw(e)),v._deselect=!1}return{eventData:He,selectionTesters:t}}function Kye(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";nI.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:()=>nge});function nge(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((_Re,lI)=>{"use strict";var iI=mw(),oI=Di(),$3=(ni(),vr(ai)),ige=Ra().templatedArray,xRe=(B1(),vr(z1));lI.exports=ige("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:oI({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:iI.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:iI.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:oI({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var I1={};ja(I1,{PTS_LINESONLY:()=>oge,eventDataKeys:()=>fge,maxScreensAway:()=>uge,minTolerance:()=>lge,toleranceGrowth:()=>sge});var oge,lge,sge,uge,fge,O1=Ja(()=>{"use strict";oge=20,lge=.2,sge=10,uge=20,fge=[]});var yw=B((wRe,sI)=>{"use strict";sI.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Nf=B((ARe,mI)=>{"use strict";var uI=$2().axisHoverFormat,{hovertemplateAttrs:cge,texttemplateAttrs:vge,templatefallbackAttrs:fI}=Hv(),cI=Q0(),hge=Di(),vI=uf().dash,dge=uf().pattern,pge=Sa(),mge=(O1(),vr(I1)),H1=Fn().extendFlat,yge=yw();function hI(e){return{valType:"any",dflt:0,editType:"calc"}}function dI(e){return{valType:"any",editType:"calc"}}function pI(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}mI.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:hI("x"),yperiod:hI("y"),xperiod0:dI("x0"),yperiod0:dI("y0"),xperiodalignment:pI("x"),yperiodalignment:pI("y"),xhoverformat:uI("x"),yhoverformat:uI("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:vge(),texttemplatefallback:fI({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:cge({},{keys:mge.eventDataKeys}),hovertemplatefallback:fI(),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({},vI,{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:yge(!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:dge,marker:H1({symbol:{valType:"enumerated",values:pge.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({},vI,{arrayOk:!0}),editType:"calc"},cI("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"},cI("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:hge({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var gw=B((MRe,bI)=>{"use strict";var yI=Th(),gI=Nf().line,gge=uf().dash,K3=Fn().extendFlat,bge=Nl().overrideAll,xge=Ra().templatedArray,TRe=(B1(),vr(z1));bI.exports=bge(xge("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:K3({},yI.xref,{}),yref:K3({},yI.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:gI.color,width:K3({},gI.width,{min:1,dflt:1}),dash:K3({},gge,{dflt:"dot"})}}),"arraydraw","from-root")});var AI=B((kRe,wI)=>{"use strict";var xI=or(),Q3=en(),_ge=Oo(),wge=gw(),_I=Rf();wI.exports=function(r,t){_ge(r,t,{name:"selections",handleItemDefaults:Age});for(var a=t.selections,n=0;n{"use strict";TI.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((CRe,CI)=>{"use strict";var Tge=Pt(),kI=or(),SI=hn();CI.exports=function(r){return function(a,n){var i=a[r];if(Array.isArray(i))for(var o=Tge.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 DI=tw(),G1=aI();LI.exports={moduleType:"component",name:"selections",layoutAttributes:gw(),supplyLayoutDefaults:AI(),supplyDrawNewSelectionDefaults:MI(),includeBasePlot:U1()("selections"),draw:DI.draw,drawOne:DI.drawOne,reselect:G1.reselect,prepSelect:G1.prepSelect,clearOutline:G1.clearOutline,clearSelectionsCache:G1.clearSelectionsCache,selectOnClick:G1.selectOnClick}});var jI=B((LRe,JI)=>{"use strict";var Tw=la(),dl=or(),EI=dl.numberFormat,Mge=K7(),e5=Pt(),II=dl.strTranslate,kge=Ei(),xw=Kt(),zf=Sa(),Sge=mu(),qI=en(),Cge=Cf(),Dge=Ul(),OI=Lf(),r5=OI.selectingOrDrawing,Lge=OI.freeMode,Ege=(Oi(),vr(Ii)).FROM_TL,qge=b3(),Fge=U3().redrawReglTraces,Rge=di(),_w=hn().getFromId,Pge=Mh().prepSelect,Nge=Mh().clearOutline,zge=Mh().selectOnClick,bw=Z8(),Mw=(ni(),vr(ai)),FI=Mw.MINDRAG,uo=Mw.MINZOOM,RI=!0;function Bge(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,G,X;t+=r.yaxis._shift;function Y(){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&&zge(Ce,lr,m,y,r.id,j),wr.indexOf("event")>-1&&Sge.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=Ige(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(kge.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)})}}Dge.init(j);var fe,he,te,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],te={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=GI(s,Le,b,T,ce),He=YI(s,b,T)}function Ue(pe,Ce){if(e._transitioningWithDuration)return!1;var lr=Math.max(0,Math.min(_,G*pe+fe)),wr=Math.max(0,Math.min(x,X*Ce+he)),fr=Math.abs(lr-fe),kr=Math.abs(wr-he);te.l=Math.min(fe,lr),te.r=Math.max(fe,lr),te.t=Math.min(he,wr),te.b=Math.max(he,wr);function qr(){Re="",te.r=te.l,te.t=te.b,He.attr("d","M0,0Z")}if(w.isSubplotConstrained)fr>uo||kr>uo?(Re="xy",fr/_>kr/x?(kr=fr*x/_,he>wr?te.t=he-kr:te.b=he+kr):(fr=kr*_/x,fe>lr?te.l=fe-fr:te.r=fe+fr),He.attr("d",t5(te))):qr();else if(k.isSubplotConstrained)if(fr>uo||kr>uo){Re="xy";var $r=Math.min(te.l/_,(x-te.b)/x),tt=Math.max(te.r/_,(x-te.t)/x);te.l=$r*_,te.r=tt*_,te.b=(1-$r)*x,te.t=(1-tt)*x,He.attr("d",t5(te))}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)*Ege[lr||pe.constraintoward||"middle"]}return Z}function HI(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(Cge,a),n.node()}function UI(e,r,t,a,n,i,o){var l=HI(e,"rect",r,t);return Tw.select(l).call(zf.setRect,a,n,i,o),l}function PI(e,r){for(var t=0;t=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Hge(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function GI(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",II(t,a)).attr("d",n+"Z")}function YI(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",II(r,t)).attr("d","M0,0Z")}function VI(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"),XI(e,r,n,i)}function XI(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 WI(e){RI&&e.data&&e._context.showTips&&(dl.notifier(dl._(e,"Double-click to zoom back out"),"long",e),RI=!1)}function Uge(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 Gge(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 zI(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 Yge=la(),a5=mu(),Vge=Ul(),Xge=Cf(),Vl=jI().makeDragBox,yi=(ni(),vr(ai)).DRAGGERSIZE;n5.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){Yge.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=Vl(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,Vge.unhover(r,v))},r._context.showAxisDragHandles&&(Vl(r,o,l._offset-yi,s._offset-yi,yi,yi,"n","w"),Vl(r,o,l._offset+l._length,s._offset-yi,yi,yi,"n","e"),Vl(r,o,l._offset-yi,s._offset+s._length,yi,yi,"s","w"),Vl(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),Vl(r,o,l._offset+l._length*.1,f,l._length*.8,yi,"","ew"),Vl(r,o,l._offset,f,l._length*.1,yi,"","w"),Vl(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),Vl(r,o,c,s._offset+s._length*.1,yi,s._length*.8,"ns",""),Vl(r,o,c,s._offset+s._length*.9,yi,s._length*.1,"s",""),Vl(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";Xge(r._draggers,t)}});var QI=B((qRe,KI)=>{"use strict";var $I=Pt();KI.exports=function(r){for(var t=$I.layoutArrayContainers,a=$I.layoutArrayRegexes,n=r.split("[")[0],i,o,l=0;l{"use strict";var Wge=q0(),Sw=Gy(),Y1=of(),Zge=c6().sorterAsc,Cw=Pt();V1.containerArrayMatch=QI();var Jge=V1.isAddVal=function(r){return r==="add"||Wge(r)},eO=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(eO(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(Zge),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),eO(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 iO=da(),oO=Pt(),ro=or(),X1=di(),lO=hn(),W1=lO.cleanId,jge=lO.getFromTrace,Dw=oO.traceIs,$ge=["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=nO(r);t;){if(t in e)return!0;t=nO(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(),e3e=da(),r3e=T6(),Xr=or(),Ia=Xr.nestedProperty,qw=V2(),fo=KE(),ml=Pt(),m5=Kv(),zt=di(),to=en(),t3e=$7(),a3e=sl(),l5=Sa(),n3e=Kt(),i3e=kw().initInteractions,o3e=(xf(),vr(bf)),l3e=Mh().clearOutline,hO=nf().dfltConfig,o5=rO(),On=sO(),Ea=U3(),Bf=Nl(),s3e=(ni(),vr(ai)).AX_NAME_PATTERN,Ew=0,uO=5;function u3e(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)}pO(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)&&(F3e(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 c3e(e){return Xr.extendFlat(hO,e)}function dO(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){Xr.error(t)}}function v3e(e,r){var t=n3e.combine(r,"white");dO(e,t)}function pO(e,r){if(!e._context){e._context=Xr.extendDeep({},hO);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 mO(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 p3e(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(),G=Ia(a,I).get(),X=C.get();if(E!==void 0){b[M]=E,T[M]=q==="reverse"?E:xu(X);var Y=m5.getLayoutValObject(a,C.parts);if(Y&&Y.impliedEdits&&E!==null)for(var V in Y.impliedEdits)_(Xr.relativeAttr(M,V),Y.impliedEdits[V]);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(MO))k(z),Ia(a,I+"._inputRange").set(null);else if(z.match(kO)){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(b3e)&&Ia(a,I+"._inputDomain").set(null);if(q==="type"){w=U;var ee=G.type==="linear"&&E==="log",me=G.type==="log"&&E==="linear";if(ee||me){if(!w||!w.range)_(I+".autorange",!0);else if(G.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,G,E,_),ml.getComponentMethod("images","convertCoords")(e,G,E,_)}else _(I+".autorange",!0),_(I+".range",null);Ia(a,I+"._inputRange").set(null)}else if(q.match(s3e)){var te=Ia(a,M).get(),Le=(E||{}).type;(!Le||Le==="-")&&(Le="linear"),ml.getComponentMethod("annotations","convertCoords")(e,te,Le,_),ml.getComponentMethod("images","convertCoords")(e,te,Le,_),!I&&te&&E&&(E.range!==void 0||E.autorange!==void 0)&&(k(`${q}.range`),te._inputRange=null)}var ce=o5.containerArrayMatch(M);if(ce){f=ce.array,c=ce.index;var Fe=ce.property,Re=Y||{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]),G.autorange?y.calc=!0:y.plot=!0):(M==="dragmode"&&(E===!1&&X!==!1||E!==!1&&X===!1)||a._has("scatter-like")&&a._has("regl")&&M==="dragmode"&&(E==="lasso"||E==="select")&&!(X==="lasso"||X==="select")?y.plot=!0:Y?Bf.update(y,Y):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)}}(CO(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 w3e(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(G=>e.on(I,G));return sa.react(e,r,t,a)})}else{e.data=r||[],On.cleanData(e.data),e.layout=t||{},On.cleanLayout(e.layout),T3e(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=S3e(e,s,v,d,p),y=m.newDataRevision,b=k3e(e,l,c,d,p,y);if(CO(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 k3e(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 D3e(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 E3e(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 q3e(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 F3e(e){var r=u5.select(e),t=e._fullLayout;if(t._calcInverseTransform=q3e,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(o3e.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=C3e;sa.addFrames=D3e;sa.deleteFrames=L3e;sa.addTraces=_O;sa.deleteTraces=wO;sa.extendTraces=bO;sa.moveTraces=Fw;sa.prependTraces=xO;sa.newPlot=d3e;sa._doPlot=u3e;sa.purge=E3e;sa.react=M3e;sa.redraw=h3e;sa.relayout=Z1;sa.restyle=v5;sa.setPlotConfig=c3e;sa.update=d5;sa._guiRelayout=Rw(Z1);sa._guiRestyle=Rw(v5);sa._guiUpdate=Rw(d5);sa._storeDirectGUIEdit=g3e});var yc=B(yl=>{"use strict";var R3e=Pt();yl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};yl.getRedrawFunc=function(e){return function(){R3e.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 DO=window.URL||window.webkitURL;yl.createObjectURL=function(e){return DO.createObjectURL(e)};yl.revokeObjectURL=function(e){return DO.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=P3e(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 P3e(e){for(var r=e.length,t=new ArrayBuffer(r),a=new Uint8Array(t),n=0;n{"use strict";var zw=la(),BRe=or(),N3e=Sa(),z3e=Kt(),IRe=(xf(),vr(bf)),Nw=/"/g,gc="TOBESTRIPPED",B3e=new RegExp(`("${gc})|(${gc}")|("${gc})|(${gc}")`,"g"),I3e=["&","&","&",""",""",""","'","'","'"],O3e=["<","<","<"],H3e=[">",">",">"];function U3e(e){let r=zw.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,a=>{let n=a.toLowerCase();return I3e.includes(n)?a:O3e.includes(n)?"<":H3e.includes(n)?">":a.includes("<")||a.includes(">")?"":r.html(a).text()});return r.remove(),t}function G3e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}LO.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(N3e.setRect,0,0,l,s).call(z3e.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var Y3e=or(),V3e=hg().EventEmitter,j1=yc();function X3e(e){var r=e.emitter||new V3e,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"||Y3e.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}EO.exports=X3e});var Iw=B((URe,RO)=>{"use strict";var qO=da(),FO=Pw(),W3e=di(),Fs=or(),$1=yc(),Z3e=g5(),J3e=b5(),j3e=v2().version,Bw=(G4(),vr(U4)).default;function $3e(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&&qO(i.width)&&(y.width=i.width),c?y.height=c:r.height===null&&qO(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=Z3e(m,u,v),E=m._fullLayout.width,F=m._fullLayout.height;function P(){FO.purge(m),document.body.removeChild(m)}if(u==="full-json"){var q=W3e.graphJson(m,!1,"object",!0,!0);return q.version=j3e,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(),J3e({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){FO.newPlot(m,t,y,b).then(T).then(_).then(x).then(function(C){k(w(C))}).catch(function(C){M(C)})})}RO.exports=$3e});var zO=B((GRe,NO)=>{"use strict";var gl=or(),K3e=di(),Q3e=Kv(),e5e=nf().dfltConfig,Xl=gl.isPlainObject,xc=Array.isArray,Ow=gl.isArrayOrTypedArray;NO.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var a=Q3e.get(),n=[],i={_context:gl.extendFlat({},e5e)},o,l;xc(r)?(i.data=gl.extendDeep([],r),o=r):(i.data=[],o=[],n.push(gi("array","data"))),Xl(t)?(i.layout=gl.extendDeep({},t),l=t):(i.layout={},l={},arguments.length>1&&n.push(gi("object","layout"))),K3e.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 l5e=or(),_5=yc();function s5e(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(l5e.isSafari()){var f=t==="svg"?",":";base64,";return _5.octetStream(f+encodeURIComponent(e)),o(r)}l(new Error("download error"))});return i}BO.exports=s5e});var Hw=B((VRe,GO)=>{"use strict";var w5=or(),OO=Ei(),u5e=Iw(),f5e=IO(),HO=yc(),UO=40;function c5e(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=u5e(e,r),o=r.filename||e.fn;if(!o){let s=HO.getPlotTitle(e);if(s&&!OO.matchTex(s))o=w5.slugify(s,UO);else{let u=HO.getPlotSubtitle(e);u&&!OO.matchTex(u)&&(o=w5.slugify(u,UO))}}var l=o||"plot-image";l+="."+r.format.replace("-","."),i.then(function(s){return t&&(t._snapshotInProgress=!1),f5e(s,l,r.format)}).then(function(s){a(s)}).catch(function(s){t&&(t._snapshotInProgress=!1),n(s)})})}GO.exports=c5e});var ZO=B(Uw=>{"use strict";var Co=or(),Do=Co.isPlainObject,YO=Kv(),VO=di(),v5e=Fl(),XO=Ra(),WO=nf().dfltConfig;Uw.makeTemplate=function(e){e=Co.isPlainObject(e)?e:Co.getGraphDiv(e),e=Co.extendDeep({_context:WO},{data:e.data,layout:e.layout}),VO.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,d5e.bind(null,d));var m=Co.coerce(d,{},v5e,"type"),y=a.data[m];y||(y=a.data[m]=[]),y.push(p)}),K1(t,a.layout,h5e.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)&&p5e(k)&&T(k,M)}}if(T({data:s,layout:l},""),o.length)return o.map(m5e)};function p5e(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 y5e=z2().getGraphDiv,g5e=P3().eraseActiveShape;tn.deleteActiveShape=function(e){return g5e(y5e(e))};tn.toImage=Iw();tn.validate=zO();tn.downloadImage=Hw();var JO=ZO();tn.makeTemplate=JO.makeTemplate;tn.validateTemplate=JO.validateTemplate});var Yw=B((ZRe,$O)=>{"use strict";var Gw=or(),b5e=Pt();$O.exports=function(r,t,a,n){var i=n("x"),o=n("y"),l,s=b5e.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((JRe,eH)=>{"use strict";var KO=or().dateTick0,x5e=(Wn(),vr(ri)),_5e=x5e.ONEWEEK;function QO(e,r){return e%_5e===0?KO(r,1):KO(r,0)}eH.exports=function(r,t,a,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n("xperiod");o&&(n("xperiod0",QO(o,t.xcalendar)),n("xperiodalignment"))}if(i.y){var l=n("yperiod");l&&(n("yperiod0",QO(l,t.ycalendar)),n("yperiodalignment"))}}});var aH=B((jRe,tH)=>{"use strict";var rH=["orientation","groupnorm","stackgaps"];tH.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 nH=Kt(),iH=Ol().hasColorscale,oH=th(),w5e=Ti();lH.exports=function(r,t,a,n,i,o={}){var l=w5e.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),iH(r,"marker")&&oH(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=nH.background:u=nH.defaultLine,i("marker.line.color",u),iH(r,"marker.line")&&oH(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((KRe,sH)=>{"use strict";var A5e=or().isArrayOrTypedArray,T5e=Ol().hasColorscale,M5e=th();sH.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),T5e(r,"line"))M5e(r,t,n,i,{prefix:"line.",cLetter:"c"});else{var s=(A5e(l)?!1:l)||a;i("line.color",s)}i("line.width"),o.noDash||i("line.dash"),o.backoff&&i("line.backoff")}});var fH=B((QRe,uH)=>{"use strict";uH.exports=function(r,t,a){var n=a("line.shape");n==="spline"&&a("line.smoothing")}});var Ww=B((ePe,cH)=>{"use strict";var k5e=or();cH.exports=function(e,r,t,a,n){n=n||{},a("textposition"),k5e.coerceFont(a,"textfont",n.font||t.font,n),n.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}});var Zw=B((rPe,hH)=>{"use strict";var k5=Kt(),vH=or().isArrayOrTypedArray;function S5e(e){for(var r=k5.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var dH=or(),C5e=Pt(),D5e=Nf(),L5e=(O1(),vr(I1)),Sh=Ti(),E5e=Yw(),q5e=Vw(),F5e=aH(),R5e=M5(),P5e=Xw(),pH=fH(),N5e=Ww(),z5e=Zw(),B5e=or().coercePattern;mH.exports=function(r,t,a,n){function i(d,p){return dH.coerce(r,t,D5e,d,p)}var o=E5e(r,t,n,i);if(o||(t.visible=!1),!!t.visible){q5e(r,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder");var l=F5e(r,t,n,i);n.scattermode==="group"&&t.orientation===void 0&&i("orientation","v");var s=!l&&o{"use strict";var I5e=_1().getAxisGroup;gH.exports=function(r,t,a,n,i){var o=t.orientation,l=t[{v:"x",h:"y"}[o]+"axis"],s=I5e(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((nPe,xH)=>{"use strict";var O5e=or(),H5e=bH(),U5e=Nf();xH.exports=function(r,t){var a,n,i,o=t.scattermode;function l(v){return O5e.coerce(n._input,n,U5e,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 wH=B((iPe,_H)=>{"use strict";var G5e=or(),Y5e=gg();_H.exports=function(e,r){function t(n,i){return G5e.coerce(e,r,Y5e,n,i)}var a=r.barmode==="group";r.scattermode==="group"&&t("scattergap",a?r.bargap:.2)}});var jw=B((oPe,TH)=>{"use strict";var V5e=da(),AH=or(),X5e=AH.dateTime2ms,S5=AH.incrementMonth,W5e=(Wn(),vr(ri)),Z5e=W5e.ONEAVGMONTH;TH.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(V5e(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=X5e(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((lPe,kH)=>{"use strict";var $w=Ol().hasColorscale,Kw=u7(),MH=Ti();kH.exports=function(r,t){MH.hasLines(t)&&$w(t,"line")&&Kw(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),MH.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((sPe,SH)=>{"use strict";var Tn=or();SH.exports=function(r,t){for(var a=0;a{"use strict";var CH=or();DH.exports=function(r,t){CH.isArrayOrTypedArray(t.selectedpoints)&&CH.tagSelected(r,t)}});var Ch=B((fPe,zH)=>{"use strict";var EH=da(),r9=or(),ep=en(),qH=jw(),e9=(Wn(),vr(ri)).BADNUM,t9=Ti(),J5e=Q1(),j5e=Qw(),$5e=LH();function K5e(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=qH(r,a,"x",i),s=qH(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;PH(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=RH(r,c);FH(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],G=v[b-1].s,X=(v[T].s-G)/(v[T][C]-U);b{"use strict";BH.exports=C5;var Q5e=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;iebe,eventDataKeys:()=>rbe});var ebe,rbe,HH=Ja(()=>{"use strict";ebe=3,rbe=["value","label"]});var XH=B((vPe,VH)=>{"use strict";var xl=da(),{isArrayOrTypedArray:_u}=or(),{BADNUM:Dh}=(Wn(),vr(ri)),tbe=Pt(),rp=en(),{getAxisGroup:abe}=_1(),D5=IH(),{TEXTPAD:nbe}=(HH(),vr(OH)),{LINE_SPACING:ibe}=(Oi(),vr(Ii)),{BR_TAG_ALL:obe}=Ei();function lbe(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*ibe*t+nbe;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 ybe(e,r,t,a){for(var n=Lh(a),i=0;i{"use strict";var WH=Ch(),ZH=XH().setGroupPositions;function bbe(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 _be=Sa(),eU=(Wn(),vr(ri)),tp=eU.BADNUM,rU=eU.LOG_CLIP,$H=rU+.5,KH=rU-.5,L5=or(),wbe=L5.segmentsIntersect,QH=L5.constrain,f9=(O1(),vr(I1));tU.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,G,X,Y,V,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?$H:KH)/(i._m*s*(i._m>0?$H:KH)))),rr*=1e3}if(Rr===tp){if(l&&(Rr=i.c2p(Mr.y,!0)),Rr===tp)return!1;Rr*=1e3}return[rr,Rr]}function me(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[QH(Ge[0],Fe,Re),QH(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))&&Ute(P,ot))break;C=P,Y=I[0]*z[0]+I[1]*z[1],Y>G?(G=Y,E=P,q=!1):Y=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 nU={tonextx:1,tonexty:1,tonext:1};iU.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 Wl=la(),Abe=Pt(),ap=or(),Eh=ap.ensureSingle,lU=ap.identity,Sn=Sa(),qh=Ti(),Tbe=aU(),Mbe=c9(),E5=nw().tester;sU.exports=function(r,t,a,n,i,o){var l,s,u=!i,f=!!i&&i.duration>0,c=Mbe(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(),kbe(r,l,t),f){o&&(s=o());var v=Wl.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){oU(r,p,t,d,c,this,i)})})}else l.each(function(d,p){oU(r,p,t,d,c,this,i)});u&&l.exit().remove(),n.selectAll("path:not([d])").remove()};function kbe(e,r,t){r.each(function(a){var n=Eh(Wl.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,lU);l.enter().append("g"),l.exit().remove(),l.order().each(function(s){i[s]=Eh(Wl.select(this),"path","js-fill")})})}function oU(e,r,t,a,n,i,o){var l=e._context.staticPlot,s;Sbe(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=Wl.select(i),y=Eh(m,"g","errorbars"),b=Eh(m,"g","lines"),T=Eh(m,"g","points"),_=Eh(m,"g","text");if(Abe.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,G="",X="",Y,V,Z,j,ee,me,fe=[];d._polygons=[];var he=[],te=[],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?(Y=Sn.steps(p.shape),V=Sn.steps(p.shape.split("").reverse().join(""))):p.shape==="spline"?Y=V=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)}:Y=V=function($e){return"M"+$e.join("L")},Z=function($e){return V($e.reverse())},te=Tbe(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(te.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";fU.exports={container:"marker",min:"cmin",max:"cmax"}});var v9=B((gPe,cU)=>{"use strict";var F5=en();cU.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((bPe,vU)=>{"use strict";var h9=la(),Fh=Sa(),Cbe=Pt();function Dbe(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),Cbe.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 Lbe(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))}vU.exports={style:Dbe,stylePoints:d9,styleText:p9,styleOnSelect:Lbe}});var y9=B((xPe,hU)=>{"use strict";var Rh=Kt(),Ebe=Ti();hU.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)&&Ebe.hasLines(r)&&r.line.width?a:r.fillcolor)}});var mU=B((_Pe,pU)=>{"use strict";var R5=or(),dU=mu(),qbe=Pt(),Fbe=y9(),g9=Kt(),Rbe=R5.fillText;pU.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(X){if(p){var Y=l.c2p(X.xStart),V=l.c2p(X.xEnd);return u>=Math.min(Y,V)&&u<=Math.max(Y,V)?0:1/0}var Z=Math.max(3,X.mrc||0),j=1-1/Z,ee=Math.abs(l.c2p(X.x)-u);return ee=Math.min(Y,V)&&f<=Math.max(Y,V)?0:1/0}var Z=Math.max(3,X.mrc||0),j=1-1/Z,ee=Math.abs(s.c2p(X.y)-f);return eefe!=He>=fe&&(Fe=Le[te-1][0],Re=Le[te][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 G=g9.defaultLine;return g9.opacity(o.fillcolor)?G=o.fillcolor:g9.opacity((o.line||{}).color)&&(G=o.line.color),R5.extendFlat(r,{distance:r.maxHoverDistance,x0:U.x0,x1:U.x1,y0:U.y0,y1:U.y1,color:G,hovertemplate:!1}),delete r.index,o.text&&!R5.isArrayOrTypedArray(o.text)?r.text=String(o.text):r.text=o.name,[r]}}}});var bU=B((wPe,gU)=>{"use strict";var yU=Ti();gU.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&&!yU.hasMarkers(l)&&!yU.hasText(l);if(v)return[];if(t===!1)for(s=0;s{"use strict";xU.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var MU=B((TPe,TU)=>{"use strict";var P5=Pt().traceIs,b9=D7();TU.exports=function(r,t,a,n){a("autotypenumbers",n.autotypenumbersDflt);var i=a("type",(n.splomStash||{}).type);i==="-"&&(Pbe(t,n.data),t.type==="-"?t.type="linear":r.type=t.type)};function Pbe(e,r){if(e.type==="-"){var t=e._id,a=t.charAt(0),n;t.indexOf("scene")!==-1&&(t=a);var i=Nbe(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,AU(i,a)){var u=wU(i),f=[];for(n=0;n0&&(n["_"+t+"axes"]||{})[r])return n;if((n[t+"axis"]||t)===r){if(AU(n,t))return n;if((n[t]||[]).length||n[t+"0"])return n}}}function wU(e){return{v:"x",h:"y"}[e.orientation||"v"]}function AU(e,r){var t=wU(e),a=P5(e,"box-violin");return a&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var SU=B((MPe,kU)=>{"use strict";var zbe=so().isTypedArraySpec;function Bbe(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||zbe(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=Bbe(t,n).sort(),s==="category ascending"?t._initialCategories=u:s==="category descending"&&(t._initialCategories=u.reverse()))}}});var LU=B((kPe,DU)=>{"use strict";var CU=Kt(),Ibe=gs(),Obe=or();DU.exports=function(r,t,a,n){n=n||{};var i=n.dfltColor;function o(C,E){return Obe.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=CU.mix(i,n.bgColor,n.blend||Ibe.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=CU.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((SPe,NU)=>{"use strict";var EU=da(),Hbe=Pt(),np=or(),Ube=Ra(),Gbe=Oo(),x9=sl(),qU=K6(),FU=e7(),Ybe=a7(),Vbe=n7(),Xbe=SU(),Wbe=LU(),Zbe=$7(),RU=Hg(),N5=(ni(),vr(ai)).WEEKDAY_PATTERN,Jbe=(ni(),vr(ai)).HOUR_PATTERN;NU.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=Hbe.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"),RU(t,i),Zbe(r,t,a,n),Xbe(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(Vbe(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}}),qU(r,t,a,c);var T=n.hasMinor;if(T&&(Ube.newContainer(t,"minor"),qU(r,t,a,c,{isMinor:!0})),Ybe(r,t,a,c,n),FU(r,t,a,n),T){var _=n.isMinor;n.isMinor=!0,FU(r,t,a,n),n.isMinor=_}Wbe(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(Gbe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:jbe}),!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=PU(i[l]),s){o=N5;break}}var u=a("pattern",o);if(u===N5)for(l=0;l<2;l++)s=PU(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(!EU(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 Jbe:if(!EU(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 Kbe=da(),z5=or();zU.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||(Kbe(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),l==="x"?(a("domainpad.left"),a("domainpad.right")):(a("domainpad.top"),a("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return a("layer"),t}});var XU=B((DPe,VU)=>{"use strict";var _c=or(),BU=Kt(),Qbe=_s().isUnifiedHover,exe=k8(),IU=Ra(),rxe=Uv(),OU=sl(),txe=MU(),HU=_9(),axe=_1(),UU=w9(),T9=hn(),Rs=T9.id2name,GU=T9.name2id,nxe=(ni(),vr(ai)).AX_ID_PATTERN,YU=Pt(),B5=YU.traceIs,A9=YU.getComponentMethod;function I5(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}VU.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 ixe=la(),WU=Pt(),O5=or(),Zo=Sa(),H5=en();ZU.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),G=I[1]-I[0],X=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*X/G),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 Y=M?w/E[2]:1,V=C?k/E[3]:1,Z=M?E[0]:0,j=C?E[1]:0,ee=M?E[0]/E[2]*w:0,me=C?E[1]/E[3]*k:0,fe=_._offset-ee,he=x._offset-me;T.clipRect.call(Zo.setTranslate,Z,j).call(Zo.setScale,1/Y,1/V),T.plot.call(Zo.setTranslate,fe,he).call(Zo.setScale,Y,V),Zo.setPointGroupScale(T.zoomScalePts,1/Y,1/V),Zo.setTextPointsScale(T.zoomScaleTxt,1/Y,1/V)}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(),oxe=di(),lxe=Sa(),$U=W2().getModuleCalcData,If=hn(),Zl=(ni(),vr(ai)),sxe=(xf(),vr(bf)),wa=wc.ensureSingle;function U5(e,r,t){return wc.ensureSingle(e,r,t,function(a){a.datum(t)})}var Ac=Zl.zindexSeparator;Ui.name="cartesian";Ui.attr=["xaxis","yaxis"];Ui.idRoot=["x","y"];Ui.idRegex=Zl.idRegex;Ui.attrRegex=Zl.attrRegex;Ui.attributes=_U();Ui.layoutAttributes=sl();Ui.supplyLayoutDefaults=XU();Ui.transitionAxes=JU();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 eG(e,r){if(e){var t={};e.each(function(s){var u=s[0],f=G5.select(this);f.remove(),rG(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();tG.exports={hasLines:Y5.hasLines,hasMarkers:Y5.hasMarkers,hasText:Y5.hasText,isBubble:Y5.isBubble,attributes:Nf(),layoutAttributes:gg(),supplyDefaults:yH(),crossTraceDefaults:Jw(),supplyLayoutDefaults:wH(),calc:Ch().calc,crossTraceCalc:jH(),arraysToCalcdata:Qw(),plot:uU(),colorbar:q5(),formatLabels:v9(),style:m9().style,styleOnSelect:m9().styleOnSelect,hoverPoints:mU(),selectPoints:bU(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:ip(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var oG=B((FPe,iG)=>{"use strict";var fxe=la(),cxe=Kt(),nG=mw(),M9=or(),vxe=M9.strScale,hxe=M9.strRotate,dxe=M9.strTranslate;iG.exports=function(r,t,a){var n=r.node(),i=nG[a.arrowhead||0],o=nG[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 lG=la(),k9=Pt(),pxe=di(),Hf=or(),S9=Hf.strTranslate,lp=en(),Tc=Kt(),wu=Sa(),sG=mu(),C9=Ei(),D9=Cf(),op=Ul(),mxe=Ra().arrayEditor,yxe=oG();cG.exports={draw:gxe,drawOne:uG,drawRaw:fG};function gxe(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=(te-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-me.top,Ge=F+qr-me.left;G.call(C9.positionText,Ge,tt).call(wu.setClipUrl,q?m:null,e)}z.select("rect").call(wu.setRect,F,F,te,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(yxe(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?G.call(C9.makeEditable,{delegate:M,gd:e}).call(X).on("edit",function(V){r.text=V,this.call(X),d("text",V),n&&n.autorange&&v(n._name+".autorange",!0),i&&i.autorange&&v(i._name+".autorange",!0),k9.call("_guiRelayout",e,p())}):G.call(X)}});var yG=B((PPe,mG)=>{"use strict";var vG=or(),bxe=Pt(),hG=Ra().arrayEditor;mG.exports={hasClickToShow:xxe,onClick:_xe};function xxe(e,r){var t=pG(e,r);return t.on.length>0||t.explicitOff.length>0}function _xe(e,r){var t=pG(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();gG.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 xG=B((zPe,bG)=>{"use strict";var q9=or(),Mc=en(),wxe=Oo(),Axe=E9(),Txe=Th();bG.exports=function(r,t){wxe(r,t,{name:"annotations",handleItemDefaults:Mxe})};function Mxe(e,r,t){function a(_,x){return q9.coerce(e,r,Txe,_,x)}var n=a("visible"),i=a("clicktoshow");if(n||i){Axe(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 AG=B((BPe,wG)=>{"use strict";var F9=or(),kc=en(),kxe=V5().draw;wG.exports=function(r){var t=r._fullLayout,a=F9.filterVisible(t.annotations);if(a.length&&r._fullData.length)return F9.syncOrAsync([kxe,Sxe],r)};function Sxe(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"&&_G(t,a),o==="range"&&_G(t,n)})}function _G(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 MG=B((IPe,TG)=>{"use strict";var Cxe=da(),Dxe=hy();TG.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=Dxe(p,t.range):m=Math.pow(10,p),Cxe(m)||(m=null),n(f+d,m)}for(var v=0;v{"use strict";var R9=V5(),kG=yG();SG.exports={moduleType:"component",name:"annotations",layoutAttributes:Th(),supplyLayoutDefaults:xG(),includeBasePlot:U1()("annotations"),calcAutorange:AG(),draw:R9.draw,drawOne:R9.drawOne,drawRaw:R9.drawRaw,hasClickToShow:kG.hasClickToShow,onClick:kG.onClick,convertCoords:MG()}});var X5=B((HPe,DG)=>{"use strict";var Oa=Th(),Lxe=Nl().overrideAll,Exe=Ra().templatedArray;DG.exports=Lxe(Exe("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 EG=B((UPe,LG)=>{"use strict";var P9=or(),qxe=en(),Fxe=Oo(),Rxe=E9(),Pxe=X5();LG.exports=function(r,t,a){Fxe(r,t,{name:"annotations",handleItemDefaults:Nxe,fullLayout:a.fullLayout})};function Nxe(e,r,t,a){function n(l,s){return P9.coerce(e,r,Pxe,l,s)}function i(l){var s=l+"axis",u={_fullLayout:{}};return u._fullLayout[s]=t[s],qxe.coercePosition(r,u,n,l,l,.5)}var o=n("visible");o&&(Rxe(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 PG=B((GPe,RG)=>{"use strict";var qG=or(),FG=en();RG.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 Bxe(e,r){var t=N9(e.projection,N9(e.view,N9(e.model,[r[0],r[1],r[2],1])));return t}NG.exports=Bxe});var IG=B((VPe,BG)=>{"use strict";var Ixe=V5().drawRaw,Oxe=zG(),Hxe=["x","y","z"];BG.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=Oxe(r.glplot.cameraParams,[t.xaxis.r2l(o.x)*a[0],t.yaxis.r2l(o.y)*a[1],t.zaxis.r2l(o.z)*a[2]]),Ixe(r.graphDiv,o,i,r.id,o._xa,o._ya))}}});var UG=B((XPe,HG)=>{"use strict";var Uxe=Pt(),OG=or();HG.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:X5()}}},layoutAttributes:X5(),handleDefaults:EG(),includeBasePlot:Gxe,convert:PG(),draw:IG()};function Gxe(e,r){var t=Uxe.subplotsRegistry.gl3d;if(t)for(var a=t.attrRegex,n=Object.keys(e),i=0;i{"use strict";var WPe=(ni(),vr(ai)),GG=Di(),YG=Nf().line,Yxe=uf().dash,Jl=Fn().extendFlat,Vxe=Ra().templatedArray,ZPe=(B1(),vr(z1)),Nh=Fl(),VG=Th(),{shapeTexttemplateAttrs:Xxe,templatefallbackAttrs:Wxe}=Hv(),Zxe=Wy();XG.exports=Vxe("shape",{visible:Jl({},Nh.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Jl({},Nh.legend,{editType:"calc+arraydraw"}),legendgroup:Jl({},Nh.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Jl({},Nh.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:GG({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Jl({},Nh.legendrank,{editType:"calc+arraydraw"}),legendwidth:Jl({},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:Jl({},VG.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:Jl({},VG.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:Jl({},YG.color,{editType:"arraydraw"}),width:Jl({},YG.width,{editType:"calc+arraydraw"}),dash:Jl({},Yxe,{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:Xxe({},{keys:Object.keys(Zxe)}),texttemplatefallback:Wxe({editType:"arraydraw"}),font:GG({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 ZG=B((jPe,WG)=>{"use strict";var zh=or(),Jo=en(),Jxe=Oo(),jxe=z9(),sp=Rf();WG.exports=function(r,t){Jxe(r,t,{name:"shapes",handleItemDefaults:Kxe})};function $xe(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function Kxe(e,r,t){function a(_,x){return zh.coerce(e,r,jxe,_,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 G=_+z,X=e[G];if(e[G]=C(e[G],!0),w==="pixel"?a(G,p[z]):Jo.coercePosition(r,k,a,I,G,d[z]),r[G]=E(r[G]),e[G]=X,z===0&&w==="pixel"){let Y=e[x];e[x]=C(e[x],!0),Jo.coercePosition(r,k,a,I,x,.25),r[x]=E(r[x]),e[x]=Y}});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",G=e[I],X=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]=G,e[U]=X}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",$xe(m,T)),a("label.padding"),zh.coerceFont(a,"label.font",t.font)}}});var $G=B(($Pe,jG)=>{"use strict";var Qxe=Kt(),JG=or();function e_e(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"),JG.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",Qxe.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",e_e(o,u)),a("newshape.label.padding"),JG.coerceFont(a,"newshape.label.font",t.font)}a("activeshape.fillcolor"),a("activeshape.opacity")}});var nY=B((KPe,aY)=>{"use strict";var B9=or(),_l=en(),Ps=(y1(),vr(m1)),I9=Rf();aY.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,QG(i))})}else i.xref!=="paper"&&s!=="domain"&&(o=_l.getFromId(r,i.xref),l=rY(o,i,Ps.paramIsX),l&&(i._extremes[o._id]=_l.findExtremes(o,l,QG(i))));if(u==="array"){let f=KG(r,i,"y");Object.entries(f).forEach(([c,v])=>{o=_l.getFromId(r,c),i._extremes[o._id]=_l.findExtremes(o,v,eY(i))})}else i.yref!=="paper"&&u!=="domain"&&(o=_l.getFromId(r,i.yref),l=rY(o,i,Ps.paramIsY),l&&(i._extremes[o._id]=_l.findExtremes(o,l,eY(i))))}};function KG(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 QG(e){return tY(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function eY(e){return tY(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function tY(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 rY(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 lY=B((QPe,oY)=>{"use strict";var iY=P3();oY.exports={moduleType:"component",name:"shapes",layoutAttributes:z9(),supplyLayoutDefaults:ZG(),supplyDrawNewShapeDefaults:$G(),includeBasePlot:U1()("shapes"),calcAutorange:nY(),draw:iY.draw,drawOne:iY.drawOne}});var O9=B((rNe,uY)=>{"use strict";var sY=(ni(),vr(ai)),r_e=Ra().templatedArray,eNe=(B1(),vr(z1));uY.exports=r_e("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",sY.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",sY.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var cY=B((tNe,fY)=>{"use strict";var t_e=or(),H9=en(),a_e=Oo(),n_e=O9(),i_e="images";fY.exports=function(r,t){var a={name:i_e,handleItemDefaults:o_e};a_e(r,t,a)};function o_e(e,r,t){function a(v,d){return t_e.coerce(e,r,n_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 pY=B((aNe,dY)=>{"use strict";var vY=la(),l_e=Sa(),Bh=en(),hY=hn(),s_e=(xf(),vr(bf));dY.exports=function(r){var t=r._fullLayout,a=[],n={},i=[],o,l;for(l=0;l{"use strict";var mY=da(),u_e=hy();yY.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";bY.exports={moduleType:"component",name:"images",layoutAttributes:O9(),supplyLayoutDefaults:cY(),includeBasePlot:U1()("images"),draw:pY(),convertCoords:gY()}});var W5={};ja(W5,{activeColor:()=>R_e,arrowOffsetX:()=>E_e,arrowPadX:()=>k_e,arrowSymbol:()=>N_e,autoMarginIdRoot:()=>__e,blankHeaderOpts:()=>w_e,buttonClassName:()=>y_e,containerClassName:()=>c_e,dropdownButtonClassName:()=>m_e,dropdownButtonGroupClassName:()=>p_e,gapButton:()=>F_e,gapButtonHeader:()=>q_e,headerArrowClassName:()=>d_e,headerClassName:()=>h_e,headerGroupClassName:()=>v_e,hoverColor:()=>P_e,itemRectClassName:()=>g_e,itemTextClassName:()=>b_e,menuIndexAttrName:()=>x_e,minHeight:()=>T_e,minWidth:()=>A_e,name:()=>f_e,rx:()=>S_e,ry:()=>C_e,textOffsetX:()=>D_e,textOffsetY:()=>L_e,textPadX:()=>M_e});var 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,F_e,R_e,P_e,N_e,Z5=Ja(()=>{"use strict";f_e="updatemenus",c_e="updatemenu-container",v_e="updatemenu-header-group",h_e="updatemenu-header",d_e="updatemenu-header-arrow",p_e="updatemenu-dropdown-button-group",m_e="updatemenu-dropdown-button",y_e="updatemenu-button",g_e="updatemenu-item-rect",b_e="updatemenu-item-text",x_e="updatemenu-active-index",__e="updatemenu-",w_e={label:" "},A_e=30,T_e=30,M_e=24,k_e=16,S_e=2,C_e=2,D_e=12,L_e=3,E_e=4,q_e=5,F_e=2,R_e="#F4FAFF",P_e="#F4FAFF",N_e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var U9=B((oNe,wY)=>{"use strict";var z_e=Di(),B_e=gs(),I_e=Fn().extendFlat,O_e=Nl().overrideAll,H_e=Zy(),_Y=Ra().templatedArray,U_e=_Y("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}});wY.exports=O_e(_Y("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:U_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:I_e(H_e({editType:"arraydraw"}),{}),font:z_e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:B_e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var kY=B((lNe,MY)=>{"use strict";var J5=or(),AY=Oo(),TY=U9(),G_e=(Z5(),vr(W5)),Y_e=G_e.name,V_e=TY.buttons;MY.exports=function(r,t){var a={name:Y_e,handleItemDefaults:X_e};AY(r,t,a)};function X_e(e,r,t){function a(o,l){return J5.coerce(e,r,TY,o,l)}var n=AY(e,r,{name:"buttons",handleItemDefaults:W_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 W_e(e,r){function t(n,i){return J5.coerce(e,r,V_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 DY=B((sNe,CY)=>{"use strict";CY.exports=mn;var jl=la(),SY=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(SY.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,G=l+s,X=u;G+I>i&&(G=i-I);var Y=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);Y.exit().on(".drag",null).remove(),Y.enter().append("rect").classed("scrollbar-vertical",!0).call(SY.fill,mn.barColor),z?(this.vbar=Y.attr({rx:mn.barRadius,ry:mn.barRadius,x:G,y:X,width:I,height:U}),this._vbarYMin=X+U/2,this._vbarTranslateMax=b-U):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var V=this.id,Z=T-.5,j=z?_+I+.5:_+.5,ee=x-.5,me=M?w+E+.5:w+.5,fe=n._topdefs.selectAll("#"+V).data(M||z?[0]:[]);if(fe.exit().remove(),fe.enter().append("clipPath").attr("id",V).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(me)-Math.floor(ee)}),this.container.call(Ih.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(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 te=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(te),z&&this.vbar.on(".drag",null).call(te)}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 IY=B((uNe,BY)=>{"use strict";var Oh=la(),up=di(),fp=Kt(),Hh=Sa(),jo=or(),$5=Ei(),Z_e=Ra().arrayEditor,EY=(Oi(),vr(Ii)).LINE_SPACING,Nt=(Z5(),vr(W5)),J_e=DY();BY.exports=function(r){var t=r._fullLayout,a=jo.filterVisible(t[Nt.name]);function n(v){up.autoMargin(r,NY(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,j_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 a4e=(Z5(),vr(W5));OY.exports={moduleType:"component",name:a4e.name,layoutAttributes:U9(),supplyLayoutDefaults:kY(),draw:IY()}});var vp={};ja(vp,{arrowOffsetX:()=>A4e,autoMarginIdRoot:()=>b4e,containerClassName:()=>i4e,currentValueClass:()=>m4e,currentValueInset:()=>j4e,currentValuePadding:()=>J4e,gripBgActiveColor:()=>I4e,gripBgColor:()=>B4e,gripBorder:()=>P4e,gripBorderColor:()=>z4e,gripBorderWidth:()=>N4e,gripHeight:()=>R4e,gripRadius:()=>q4e,gripRectClass:()=>f4e,gripWidth:()=>F4e,groupClassName:()=>o4e,inputAreaClass:()=>l4e,inputProxyClass:()=>v4e,labelClass:()=>p4e,labelGroupClass:()=>d4e,labelOffset:()=>H4e,labelPadding:()=>O4e,labelsClass:()=>h4e,menuIndexAttrName:()=>g4e,minHeight:()=>_4e,minWidth:()=>x4e,minorTickColor:()=>W4e,minorTickLength:()=>Z4e,minorTickOffset:()=>X4e,name:()=>n4e,railBgColor:()=>D4e,railBorder:()=>k4e,railBorderColor:()=>C4e,railBorderWidth:()=>S4e,railHeight:()=>y4e,railInset:()=>L4e,railRadius:()=>T4e,railRectClass:()=>s4e,railTouchRectClass:()=>u4e,railWidth:()=>M4e,stepInset:()=>E4e,textPadX:()=>w4e,tickColor:()=>G4e,tickLength:()=>V4e,tickOffset:()=>Y4e,tickRectClass:()=>c4e,tickWidth:()=>U4e});var 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,W4e,Z4e,J4e,j4e,hp=Ja(()=>{"use strict";n4e="sliders",i4e="slider-container",o4e="slider-group",l4e="slider-input-area",s4e="slider-rail-rect",u4e="slider-rail-touch-rect",f4e="slider-grip-rect",c4e="slider-tick-rect",v4e="slider-input-proxy",h4e="slider-labels",d4e="slider-label-group",p4e="slider-label",m4e="slider-current-value",y4e=5,g4e="slider-active-index",b4e="slider-",x4e=30,_4e=30,w4e=40,A4e=4,T4e=2,M4e=5,k4e=4,S4e=1,C4e="#bec8d9",D4e="#f8fafc",L4e=8,E4e=10,q4e=10,F4e=20,R4e=20,P4e=20,N4e=1,z4e="#bec8d9",B4e="#f6f8fa",I4e="#dbdde0",O4e=8,H4e=0,U4e=1,G4e="#333",Y4e=25,V4e=7,X4e=25,W4e="#333",Z4e=4,J4e=8,j4e=0});var X9=B((cNe,YY)=>{"use strict";var UY=Di(),$4e=Zy(),K4e=Fn().extendDeepAll,Q4e=Nl().overrideAll,e6e=B2(),GY=Ra().templatedArray,Sc=(hp(),vr(vp)),r6e=GY("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}});YY.exports=Q4e(GY("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:r6e,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:K4e($4e({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:e6e.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:UY({})},font:UY({}),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 ZY=B((vNe,WY)=>{"use strict";var Uh=or(),VY=Oo(),XY=X9(),t6e=(hp(),vr(vp)),a6e=t6e.name,n6e=XY.steps;WY.exports=function(r,t){VY(r,t,{name:a6e,handleItemDefaults:i6e})};function i6e(e,r,t){function a(c,v){return Uh.coerce(e,r,XY,c,v)}for(var n=VY(e,r,{name:"steps",handleItemDefaults:o6e}),i=0,o=0;o{"use strict";var $l=la(),K5=di(),Uf=Kt(),Kl=Sa(),$o=or(),l6e=$o.strTranslate,dp=Ei(),s6e=Ra().arrayEditor,jt=(hp(),vr(vp)),J9=(Oi(),vr(Ii)),$Y=J9.LINE_SPACING,W9=J9.FROM_TL,Z9=J9.FROM_BR;aV.exports=function(r){var t=r._context.staticPlot,a=r._fullLayout,n=u6e(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,KY(f))}if(i.exit().each(function(){$l.select(this).selectAll("g."+jt.groupClassName).each(o)}).remove(),n.length!==0){var l=i.selectAll("g."+jt.groupClassName).data(n,f6e);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",l6e(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 y6e(e,r,t){var a=t._dims,n=$o.ensureSingle(e,"rect",jt.railTouchRectClass,function(i){i.call(rV,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),Kl.setTranslate(n,0,a.currentValueTotalHeight)}function g6e(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"),Kl.setTranslate(n,jt.railInset,(t.inputAreaWidth-jt.railWidth)*.5+t.currentValueTotalHeight)}});var oV=B((dNe,iV)=>{"use strict";var b6e=(hp(),vr(vp));iV.exports={moduleType:"component",name:b6e.name,layoutAttributes:X9(),supplyLayoutDefaults:ZY(),draw:nV()}});var eb=B((pNe,sV)=>{"use strict";var lV=gs();sV.exports={bgcolor:{valType:"color",dflt:lV.background,editType:"plot"},bordercolor:{valType:"color",dflt:lV.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((mNe,uV)=>{"use strict";uV.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:()=>w6e,containerClassName:()=>_6e,extraPad:()=>V6e,grabAreaCursor:()=>O6e,grabAreaFill:()=>I6e,grabAreaMaxClassName:()=>E6e,grabAreaMinClassName:()=>C6e,grabAreaWidth:()=>H6e,grabberMaxClassName:()=>L6e,grabberMinClassName:()=>S6e,handleMaxClassName:()=>q6e,handleMinClassName:()=>D6e,handleRadius:()=>G6e,handleStrokeWidth:()=>Y6e,handleWidth:()=>U6e,maskColor:()=>P6e,maskMaxClassName:()=>M6e,maskMaxOppAxisClassName:()=>R6e,maskMinClassName:()=>T6e,maskMinOppAxisClassName:()=>F6e,maskOppAxisColor:()=>N6e,name:()=>x6e,rangePlotClassName:()=>A6e,slideBoxClassName:()=>k6e,slideBoxCursor:()=>B6e,slideBoxFill:()=>z6e});var x6e,_6e,w6e,A6e,T6e,M6e,k6e,S6e,C6e,D6e,L6e,E6e,q6e,F6e,R6e,P6e,N6e,z6e,B6e,I6e,O6e,H6e,U6e,G6e,Y6e,V6e,tb=Ja(()=>{"use strict";x6e="rangeslider",_6e="rangeslider-container",w6e="rangeslider-bg",A6e="rangeslider-rangeplot",T6e="rangeslider-mask-min",M6e="rangeslider-mask-max",k6e="rangeslider-slidebox",S6e="rangeslider-grabber-min",C6e="rangeslider-grabarea-min",D6e="rangeslider-handle-min",L6e="rangeslider-grabber-max",E6e="rangeslider-grabarea-max",q6e="rangeslider-handle-max",F6e="rangeslider-mask-min-opp-axis",R6e="rangeslider-mask-max-opp-axis",P6e="rgba(0,0,0,0.4)",N6e="rgba(0,0,0,0.2)",z6e="transparent",B6e="ew-resize",I6e="transparent",O6e="col-resize",H6e=10,U6e=4,G6e=1,Y6e=1,V6e=15});var vV=B(nb=>{"use strict";var X6e=hn(),W6e=Ei(),fV=(tb(),vr(rb)),Z6e=(Oi(),vr(Ii)).LINE_SPACING,ab=fV.name;function cV(e){var r=e&&e[ab];return r&&r.visible}nb.isVisible=cV;nb.makeData=function(e){for(var r=X6e.list({_fullLayout:e},"x",!0),t=e.margin,a=[],n=0;n{"use strict";var ib=or(),hV=Ra(),dV=hn(),J6e=eb(),j6e=$9();pV.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=hV.newContainer(i,"rangeslider");function s(w,k){return ib.coerce(o,l,J6e,w,k)}var u,f;function c(w,k){return ib.coerce(u,f,j6e,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")))===dV.name2id(a)}).map(function(w){return w.slice(w.indexOf("y"),w.length)}),m=ib.simpleMap(p,dV.id2name),y=0;y{"use strict";var $6e=hn().list,K6e=uh().getAutoRange,Q6e=(tb(),vr(rb));yV.exports=function(r){for(var t=$6e(r,"x",!0),a=0;a{"use strict";var ob=la(),e7e=Pt(),r7e=di(),Cn=or(),lb=Cn.strTranslate,xV=Sa(),Gf=Kt(),t7e=r1(),a7e=ip(),K9=hn(),n7e=Ul(),i7e=Cf(),aa=(tb(),vr(rb));_V.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,a=0;a=X.max)U=F[G+1];else if(I=X.pmax)U=F[G+1];else if(I0?e.touches[0].clientX:0}function o7e(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=bV(s),c=f-e.node().getBoundingClientRect().left,v=a.d2p(t._rl[0]),d=a.d2p(t._rl[1]),p=n7e.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",y),p.addEventListener("mousemove",m),p.addEventListener("mouseup",y);function m(b){var T=bV(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 m7e=or(),y7e=eb(),g7e=$9(),Q9=vV();AV.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:m7e.extendFlat({},y7e,{yaxis:g7e})}}},layoutAttributes:eb(),handleDefaults:mV(),calcAutorange:gV(),draw:wV(),isVisible:Q9.isVisible,makeData:Q9.makeData,autoMarginOpts:Q9.autoMarginOpts}});var sb=B((wNe,kV)=>{"use strict";var b7e=Di(),MV=gs(),x7e=Ra().templatedArray,_7e=x7e("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"});kV.exports={visible:{valType:"boolean",editType:"plot"},buttons:_7e,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:b7e({editType:"plot"}),bgcolor:{valType:"color",dflt:MV.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:MV.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var eA={};ja(eA,{darkAmount:()=>S7e,lightAmount:()=>k7e,minButtonWidth:()=>A7e,rx:()=>T7e,ry:()=>M7e,yPad:()=>w7e});var w7e,A7e,T7e,M7e,k7e,S7e,rA=Ja(()=>{"use strict";w7e=.02,A7e=30,T7e=3,M7e=3,k7e=25,S7e=10});var DV=B((ANe,CV)=>{"use strict";var ub=or(),C7e=Kt(),D7e=Ra(),L7e=Oo(),SV=sb(),tA=(rA(),vr(eA));CV.exports=function(r,t,a,n,i){var o=r.rangeselector||{},l=D7e.newContainer(t,"rangeselector");function s(d,p){return ub.coerce(o,l,SV,d,p)}var u=L7e(o,l,{name:"buttons",handleItemDefaults:E7e,calendar:i}),f=s("visible",u.length>0);if(f){var c=q7e(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",C7e.contrast(v,tA.lightAmount,tA.darkAmount)),s("bordercolor"),s("borderwidth")}};function E7e(e,r,t,a){var n=a.calendar;function i(s,u){return ub.coerce(e,r,SV.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 q7e(e,r,t){for(var a=t.filter(function(l){return r[l].anchor===e._id}),n=0,i=0;i{"use strict";var F7e=c_(),R7e=or().titleCase;LV.exports=function(r,t){var a=r._name,n={};if(t.step==="all")n[a+".autorange"]=!0;else{var i=P7e(r,t);n[a+".range[0]"]=i[0],n[a+".range[1]"]=i[1]}return n};function P7e(e,r){var t=e.range,a=new Date(e.r2l(t[1])),n=r.step,i=F7e["utc"+R7e(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 IV=B((MNe,BV)=>{"use strict";var cb=la(),N7e=Pt(),z7e=di(),qV=Kt(),zV=Sa(),Au=or(),FV=Au.strTranslate,fb=Ei(),B7e=hn(),iA=(Oi(),vr(Ii)),RV=iA.LINE_SPACING,PV=iA.FROM_TL,NV=iA.FROM_BR,nA=(rA(),vr(eA)),I7e=EV();BV.exports=function(r){var t=r._fullLayout,a=t._infolayer.selectAll(".rangeselector").data(O7e(r),H7e);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=I7e(o,u);u._isActive=U7e(o,u,c),f.call(aA,l,u),f.call(Y7e,l,u,r),f.on("click",function(){r._dragged||N7e.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)})}),X7e(r,s,l,o._name,i)})};function O7e(e){for(var r=B7e.list(e,"x",!0),t=[],a=0;a{"use strict";OV.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:sb()}}},layoutAttributes:sb(),handleDefaults:DV(),draw:IV()}});var vb=B(oA=>{"use strict";var UV=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:UV({},t,{}),y:UV({},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 W7e=or(),Z7e=(Bv(),vr(N2)).counter,J7e=vb().attributes,GV=(ni(),vr(ai)).idRegex,j7e=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:[Z7e("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[GV.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[GV.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:J7e({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 $7e(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=j7e.newContainer(r,"grid");function v(k,M){return W7e.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:YV("x",v,T,x,p),y:YV("y",v,_,w,d,b)}}function YV(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";WV.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((LNe,JV)=>{"use strict";var ZV=da(),Q7e=Pt(),e8e=or(),r8e=Ra(),t8e=uA();JV.exports=function(e,r,t,a){var n="error_"+a.axis,i=r8e.newContainer(r,n),o=e[n]||{};function l(p,m){return e8e.coerce(o,i,t8e,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||ZV(o.thickness)||ZV(o.width)))}(!a.inherit||!i[v])&&(l("color",t),l("thickness"),l("width",Q7e.traceIs(r,"gl3d")?0:4))}}});var fA=B((ENe,KV)=>{"use strict";KV.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=$V(t,r.value),l=$V(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 $V(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 rX=B((qNe,eX)=>{"use strict";var cA=da(),a8e=Pt(),vA=en(),n8e=or(),i8e=fA();eX.exports=function(r){for(var t=r.calcdata,a=0;a{"use strict";var tX=la(),Yf=da(),o8e=Sa(),l8e=Ti();aX.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=l8e.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!v.visible&&(f=[]);var y=tX.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),o8e.setClipUrl(y,a.layerClipId,r),y.each(function(T){var _=tX.select(this),x=s8e(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 s8e(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 lX=B((RNe,oX)=>{"use strict";var u8e=la(),iX=Kt();oX.exports=function(r){r.each(function(t){var a=t[0].trace,n=a.error_y||{},i=a.error_x||{},o=u8e.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(iX.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(iX.stroke,i.color)})}});var fX=B((PNe,uX)=>{"use strict";var pp=or(),sX=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;uX.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Cc,bar:Cc,histogram:Cc,scatter3d:sX(yp,"calc","nested"),scattergl:sX(Cc,"calc","nested")}},supplyDefaults:jV(),calc:rX(),makeComputeError:fA(),plot:nX(),style:lX(),hoverInfo:f8e};function f8e(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 cX={};ja(cX,{cn:()=>c8e});var c8e,vX=Ja(()=>{"use strict";c8e={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 xX=B((NNe,bX)=>{"use strict";var Vf=la(),pb=di(),hX=Pt(),Tu=en(),db=Ul(),wl=or(),es=wl.strTranslate,gX=Fn().extendFlat,hA=Cf(),Ql=Sa(),Gh=Kt(),v8e=r1(),h8e=Ei(),d8e=Ol().flipScale,p8e=_9(),m8e=w9(),y8e=sl(),pA=(Oi(),vr(Ii)),dX=pA.LINE_SPACING,pX=pA.FROM_TL,mX=pA.FROM_BR,on=(vX(),vr(cX)).cn;function g8e(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+on.colorbar).data(b8e(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=x8e(n,a,e);i&&i.then&&(e._promises||[]).push(i),e._context.edits.colorbarPosition&&_8e(n,a,e)}),t.exit().each(function(a){pb.autoMargin(e,a._id)}).remove(),t.order()}function b8e(e){var r=e._fullLayout,t=e.calcdata,a=[],n,i,o,l;function s(_){return gX(_,{_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?d8e(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]],yX=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function x8e(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=w8e(t,r,E),I=z.fill,U=z.line,G=Math.round(o*(l==="fraction"?a?x.w:x.h:1)),X=G/(a?x.w:x.h),Y=Math.round(n*(i==="fraction"?a?x.h:x.w:1)),V=Y/(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),me={center:.5,right:1}[c]||0,fe={top:1,middle:.5}[v]||0,he=a?m-me*X:y-fe*X,te=a?y-fe*V:m-me*V,Le=Math.round(a?j*(1-te):Z*te);r._lenFrac=V,r._thickFrac=X,r._uFrac=he,r._vFrac=te;var ce=r._axis=A8e(t,r,E);ce.position=X+(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=te+(M.side==="top"?V-p/x.h:p/x.h)),!a&&!Fe&&(ce.title.side=C,ce.titley=y+p/x.h,ce.titlex=te+d/x.w),k.color&&r.tickmode==="auto"){ce.tickmode="linear",ce.tick0=q.start;var Re=q.size,ge=wl.constrain(Y/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=yX(dA([te,te+V],qe),qe),ce.setScale(),e.attr("transform",es(Math.round(x.l),Math.round(x.t)));var Ue=e.select("."+on.cbtitleunshift).attr("transform",es(-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(),v8e.draw(t,ue,gX(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-te-V)+3+We*.75),C==="bottom"&&(ue=d+x.l+Z*m,Ee=p+x.t+j*(1-te)-3-We*.25),C==="right"&&(Ee=p+x.t+j*y+3+We*.75,ue=d+x.l+Z*te),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-G-dX*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)*dX);var pe;if(rt?(pe=Ql.bBox(rt),_r=pe.width,Ie=pe.height,Ie>ot&&(Tr[1]-=(Ie-ot)/2)):Ee.node()&&!Ee.classed(on.jsPlaceholder)&&(pe=Ql.bBox(Ee.node()),_r=pe.width,Ie=pe.height),a){if(Ie){if(Ie+=5,C==="top")ce.domain=yX(ce.domain,Ie/x.h),Tr[1]*=-1;else{ce.domain=dA(ce.domain,Ie/x.h);var Ce=h8e.lineCount(Ee);Tr[1]+=(1-Ce)*ot}ue.attr("transform",es(Tr[0],Tr[1])),ce.setScale()}}else _r&&(C==="right"&&(ce.domain=dA(ce.domain,(_r+We/2)/x.w)),ue.attr("transform",es(Tr[0],Tr[1])),ce.setScale())}e.selectAll("."+on.cbfills+",."+on.cblines).attr("transform",a?es(0,Math.round(x.h*(1-ce.domain[1]))):es(Math.round(x.w*ce.domain[0]),0)),Ve.attr("transform",a?es(0,Math.round(-x.t)):es(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(G,2)).attr(a?"height":"width",Math.max(Vf.max(Mr)-Vf.min(Mr),2));if(r._fillgradient)Ql.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")+G).call(Ql.lineGroupStyle,k.width,F(tt),k.dash)}),Ve.selectAll("g."+ce._id+"tick,path").remove();var kr=ee+G+(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=G+s/2;Ye.indexOf("inside")===-1&&(ue=Ql.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=Ql.bBox(lr),Tr=ue.width,Ce=ue.height):(ue=Ql.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",es(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?Y: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(Y+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-Y:ee)+(rt?Ie:0)).attr(a?"width":"height",Math.max(G,2)).attr(a?"height":"width",Math.max(Y-(a?2*p+Ie:2*d+tt),2)).call(Gh.stroke,r.outlinecolor).style({fill:"none","stroke-width":s});var Ge=a?me*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",es(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=Ql.bBox(at),lt=Ql.getTranslate(e),le=2;rr.each(function(Yn,qa){var un=0,fn=Rr-1;if(qa===un||qa===fn){var gn=Ql.bBox(this),si=Ql.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=pX[c],hr=mX[c],ra=pX[v],Ca=mX[v],Ha=wr-G;a?(i==="pixels"?(Te.y=y,Te.t=Y*ra,Te.b=Y*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=Y*tr,Te.r=Y*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 _8e(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+es(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?hX.call("_guiRestyle",t,u,r._traceIndex):hX.call("_guiRelayout",t,u)}}})}function w8e(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";_X.exports={moduleType:"component",name:"colorbar",attributes:Mg(),supplyDefaults:i7(),draw:xX().draw,hasColorbar:Z6()}});var TX=B((BNe,AX)=>{"use strict";AX.exports={moduleType:"component",name:"legend",layoutAttributes:a8(),supplyLayoutDefaults:i8(),draw:x8(),style:m8()}});var kX=B((INe,MX)=>{"use strict";MX.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 CX=B((ONe,SX)=>{"use strict";SX.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((HNe,qX)=>{"use strict";var T8e=Pt(),EX=or(),mA=EX.extendFlat,DX=EX.extendDeep;function LX(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 M8e(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}qX.exports=function(r,t){var a,n=r.data,i=r.layout,o=DX([],n),l=DX({},i,LX(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 k8e=hg().EventEmitter,S8e=Pt(),C8e=or(),FX=yc(),D8e=yA(),L8e=g5(),E8e=b5();function q8e(e,r){var t=new k8e,a=D8e(e,{format:"png"}),n=a.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function i(){var l=FX.getDelay(n._fullLayout);setTimeout(function(){var s=L8e(n),u=document.createElement("canvas");u.id=C8e.randstr(),t=E8e({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=FX.getRedrawFunc(n);return S8e.call("_doPlot",n,a.data,a.layout,a.config).then(o).then(i).catch(function(l){t.emit("error",l)}),t}RX.exports=q8e});var BX=B((GNe,zX)=>{"use strict";var NX=yc(),F8e={getDelay:NX.getDelay,getRedrawFunc:NX.getRedrawFunc,clone:yA(),toSVG:g5(),svgToImg:b5(),toImage:PX(),downloadImage:Hw()};zX.exports=F8e});var OX=B(Mu=>{"use strict";Mu.version=v2().version;$M();NE();var R8e=Pt(),gp=Mu.register=R8e.register,bA=jO(),IX=Object.keys(bA);for(mb=0;mb{"use strict";HX.exports=OX()});var xA=B((XNe,YX)=>{"use strict";var P8e=Pt(),Ko=or(),N8e=y9(),z8e=Sa();function B8e(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,G)&&c<=Math.max(U,G)?0:1/0}if(C<=q){if(q=C,k=f[_],E=s.c2p(k)-v,I){var X=s.c2p(o._yStarts[_]),Y=s.c2p(o._yEnds[_]);E=v>=Math.min(X,Y)&&v<=Math.max(X,Y)?0:1/0}P=Math.sqrt(C*C+E*E),x=p[M]}}}else for(M=0;MG8e,SYMBOL_SDF_SIZE:()=>O8e,SYMBOL_SIZE:()=>H8e,SYMBOL_STROKE:()=>U8e,TOO_MANY_POINTS:()=>I8e});var I8e,O8e,H8e,U8e,G8e,xp=Ja(()=>{"use strict";I8e=1e5,O8e=200,H8e=20,U8e=1,G8e={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}});var gb=B((WNe,ZX)=>{"use strict";var Y8e=Fl(),V8e=Di(),X8e=yw(),ln=Nf(),VX=$2().axisHoverFormat,XX=Q0(),W8e=(tg(),vr(rg)).default,_A=Fn().extendFlat,Z8e=Nl().overrideAll,J8e=(xp(),vr(bp)).DASHES,WX=ln.line,ku=ln.marker,j8e=ku.line,Xf=ZX.exports=Z8e({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:VX("x"),yhoverformat:VX("y"),text:ln.text,hovertext:ln.hovertext,textposition:ln.textposition,textfont:V8e({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:WX.color,width:WX.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:W8e(J8e),dflt:"solid"}},marker:_A({},XX("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({},XX("marker.line"),{width:j8e.width})}),connectgaps:ln.connectgaps,fill:_A({},ln.fill,{dflt:"none"}),fillcolor:X8e(),selected:{marker:ln.selected.marker,textfont:ln.selected.textfont},unselected:{marker:ln.unselected.marker,textfont:ln.unselected.textfont},opacity:Y8e.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:JX}=Sa();wA.isOpenSymbol=e=>JX(e)%200>=100;wA.isDotSymbol=e=>JX(e)>=200});var KX=B((JNe,$X)=>{"use strict";var jX=or(),$8e=Pt(),K8e=bb(),Q8e=gb(),ewe=(O1(),vr(I1)),xb=Ti(),rwe=Yw(),twe=Vw(),awe=M5(),nwe=Xw(),iwe=Zw(),owe=Ww();$X.exports=function(r,t,a,n){function i(d,p){return jX.coerce(r,t,Q8e,d,p)}var o=r.marker?K8e.isOpenSymbol(r.marker.symbol):!1,l=xb.isBubble(r),s=rwe(r,t,n,i);if(!s){t.visible=!1;return}twe(r,t,n,i),i("xhoverformat"),i("yhoverformat");var u=s{"use strict";var lwe=v9();QX.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]),lwe(r,t,a)}});var tW=B(($Ne,rW)=>{"use strict";function swe(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 uwe(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 fwe(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 cwe(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 vwe(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)}rW.exports={ge:function(e,r,t,a,n){return _p(e,r,t,a,n,swe)},gt:function(e,r,t,a,n){return _p(e,r,t,a,n,uwe)},lt:function(e,r,t,a,n){return _p(e,r,t,a,n,fwe)},le:function(e,r,t,a,n){return _p(e,r,t,a,n,cwe)},eq:function(e,r,t,a,n){return _p(e,r,t,a,n,vwe)}}});var AA=B((KNe,aW)=>{aW.exports=hwe;function hwe(e,r,t){return rt?t:e:er?r:e}});var Ns=B((QNe,iW)=>{"use strict";iW.exports=function(r,t,a){var n={},i,o;if(typeof t=="string"&&(t=nW(t)),Array.isArray(t)){var l={};for(o=0;o{"use strict";var dwe=Ns();oW.exports=pwe;function pwe(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=dwe(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((rze,lW)=>{"use strict";lW.exports=mwe;function mwe(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";sW.exports=function(){for(var r=0;r{fW.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((nze,vW)=>{var cW=_b();vW.exports=ywe;function ywe(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(cW(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";hW.exports=function(e){var r=typeof e;return e!==null&&(r==="object"||r==="function")}});var mW=B((oze,pW)=>{"use strict";pW.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var AW=B((lze,wW)=>{"use strict";var yW=tW(),gW=AA(),gwe=Vh(),bwe=Dc(),bW=Ns(),MA=uW(),xwe=Lc(),_we=dW(),wwe=_b(),xW=mW(),Awe=1073741824;wW.exports=function(r,t){t||(t={}),r=xwe(r,"float64"),t=bW(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,bwe(r,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let i=_W(r,n),o=r.length>>>1,l;t.dtype||(t.dtype="array"),typeof t.dtype=="string"?l=new(wwe(t.dtype))(o):t.dtype&&(l=t.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;ba||k>Awe){for(let Y=0;Yee||E>me||F=q||Z===j)return;let fe=s[V];j===void 0&&(j=fe.length);for(let ur=Z;ur=x&&Ue<=k&&Ye>=w&&Ye<=M&&z.push(qe)}let he=u[V],te=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=Y*.5,He=V+1;I(G,X,ge,He,te,Le||ce||Fe||Re),I(G,X+ge,ge,He,Le,ce||Fe||Re),I(G+ge,X,ge,He,ce,Fe||Re),I(G+ge,X+ge,ge,He,Fe,Re)}function U(G,X){let Y=null,V=0;for(;Y===null;)if(Y=G[X*4+V],V++,V>G.length)return null;return Y}return z}function m(b,T,_,x,w){let k=[];for(let M=0;M{"use strict";TW.exports=AW()});var kW=B((uze,MW)=>{MW.exports=Mwe;var SA={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Twe=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Mwe(e){var r=[];return e.replace(Twe,function(t,a,n){var i=a.toLowerCase();for(n=Swe(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{SW.exports=Cwe;function Cwe(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 Dwe=(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}},Lwe=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}]},DW=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)},Ewe=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=DW(1,0,k,M),P=DW(k,M,C,E);return s===0&&P>0&&(P-=wp),s===1&&P<0&&(P+=wp),[x,w,F,P]},qwe=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=Ewe(t,a,n,i,o,l,c,d,m,y,b,T),w=Dwe(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";FW.exports=Rwe;var Fwe=EW();function Rwe(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 qW(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((vze,PW)=>{"use strict";PW.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 zW=B((hze,NW)=>{"use strict";var Pwe=kW(),Nwe=CW(),zwe=RW(),Bwe=DA();NW.exports=Iwe;function Iwe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!Bwe(e))throw Error("String is not an SVG path.");e=Pwe(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=Nwe(e),e=zwe(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 HW=B((dze,OW)=>{"use strict";OW.exports=Owe;var Ap=1e20;function Owe(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);pVW});function VW(e,r={}){if(!(0,GW.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,UW.default)(e),l=[t/(o[2]-o[0]),a/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;rs.fillStyle="black",rs.fillRect(0,0,t,a),rs.fillStyle="white",i&&(typeof i!="number"&&(i=1),rs.strokeStyle=i>0?"white":"black",rs.lineWidth=Math.abs(i)),rs.translate(t*.5,a*.5),rs.scale(s,s);let u=new Path2D(e);return rs.fill(u),i&&rs.stroke(u),rs.setTransform(1,0,0,1,0,0),(0,YW.default)(rs,{cutoff:r.cutoff!=null?r.cutoff:.5,radius:r.radius!=null?r.radius:n*.5})}var UW,GW,YW,LA,rs,WW=Ja(()=>{UW=c2(zW()),GW=c2(DA()),YW=c2(HW()),LA=document.createElement("canvas"),rs=LA.getContext("2d",{willReadFrequently:!0})});var eZ=B((pze,QW)=>{"use strict";var $W=da(),Tb=nh(),Xh=Kt(),Hwe=gs().defaultLine,ZW=so().isArrayOrTypedArray,qA=Xh.normalize(Hwe),KW=1;function JW(e,r){return[e[0],e[1],e[2],e[3]*r]}function EA(e){return $W(e)||!Xh.isChannelArray(e)&&!Xh.isValid(e)?qA:Xh.normalize(e)}function jW(e){return $W(e)?e:KW}function Uwe(e,r,t){var a=e.color;a&&a._inputArray&&(a=a._inputArray);var n=ZW(a),i=ZW(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?KW:jW(p[m])}:f=jW,n||i)for(var d=0;d{"use strict";var kb=da(),Ywe=(WW(),vr(XW)).default,{normalize:Mb,rgbaString:qc}=Kt(),Vwe=Pt(),Jh=or(),Hn=Jh.isArrayOrTypedArray,Wh=Sa(),rZ=hn(),tZ=eZ().formatColor,Zh=Ti(),Xwe=f7(),RA=bb(),Tp=(xp(),vr(bp)),Wwe=(zv(),vr(Nv)).DESELECTDIM,aZ={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},Zwe=_s().appendArrayPointValue;function Jwe(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=fZ(e,r),a.textSel=iZ(e,r,r.selected),a.textUnsel=iZ(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=tZ(a,a.opacity,t),b=tZ(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=aZ[v],m=aZ[d],y=f?f/.8+1:0,b=-m*y-m*.5;i.offset[o]=[p*y/c,b/c]}}return i}cZ.exports={style:Jwe,markerStyle:NA,markerSelection:PA,linePositions:$we,errorBarPositions:Kwe,textPosition:Qwe}});var hZ=B((gze,vZ)=>{"use strict";var Sb=or();vZ.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 e9e=kA(),jh=or(),dZ=hn(),r9e=uh().findExtremes,pZ=jw(),zA=Ch(),t9e=zA.calcMarkerSize,a9e=zA.calcAxisExpansion,n9e=zA.setFirstScatter,i9e=Q1(),$h=Mp(),o9e=hZ(),mZ=(Wn(),vr(ri)).BADNUM,l9e=(xp(),vr(bp)).TOO_MANY_POINTS;gZ.exports=function(r,t){var a=r._fullLayout,n=t._xA=dZ.getFromId(r,t.xaxis,"x"),i=t._yA=dZ.getFromId(r,t.yaxis,"y"),o=a._plots[t.xaxis+t.yaxis],l=t._length,s=l>=l9e,u=l*2,f={},c,v=n.makeCalcdata(t,"x"),d=i.makeCalcdata(t,"y"),p=pZ(t,n,"x",v),m=pZ(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((xze,_Z)=>{"use strict";var xZ=or(),u9e=Kt(),f9e=(zv(),vr(Nv)).DESELECTDIM;function c9e(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=xZ.extendFlat({},s),v,d;if(o.length||l.length){var p=u.color,m=f.color,y=s.color,b=xZ.isArrayOrTypedArray(y);for(c.color=new Array(t._length),v=0;v{"use strict";var wZ=Ti(),v9e=BA().styleTextSelection;AZ.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=wZ.hasText(l),m=wZ.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 h9e=xA();MZ.exports={moduleType:"trace",name:"scattergl",basePlotModule:ip(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:gb(),supplyDefaults:KX(),crossTraceDefaults:Jw(),colorbar:q5(),formatLabels:eW(),calc:bZ(),hoverPoints:h9e.hoverPoints,selectPoints:TZ(),meta:{}}});var CZ=B((Aze,SZ)=>{"use strict";SZ.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 qZ=B((Tze,EZ)=>{"use strict";var DZ=CZ();EZ.exports=d9e;var LZ={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function d9e(e){var r,t=[],a=1,n;if(typeof e=="string")if(e=e.toLowerCase(),DZ[e])t=DZ[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(LZ[v]!==void 0)return LZ[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 RZ=B((Mze,FZ)=>{"use strict";var p9e=qZ();FZ.exports=function(r){Array.isArray(r)&&r.raw&&(r=String.raw.apply(null,arguments));var t,a,n,i=p9e(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=m9e(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t};function m9e(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((kze,PZ)=>{"use strict";var y9e=RZ(),g9e=_b();PZ.exports=function(r,t){(t==="float"||!t)&&(t="array"),t==="uint"&&(t="uint8"),t==="uint_clamped"&&(t="uint8_clamped");var a=g9e(t),n=new a(4),i=t!=="uint8"&&t!=="uint8_clamped";return(!r.length||typeof r=="string")&&(r=y9e(r),r[0]/=255,r[1]/=255,r[2]/=255),b9e(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 b9e(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 zZ=B((Sze,Db)=>{"use strict";var Cb=AA();Db.exports=NZ;Db.exports.to=NZ;Db.exports.from=x9e;function NZ(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 x9e(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 IZ=B((Cze,BZ)=>{BZ.exports=function(e){typeof e=="string"&&(e=[e]);for(var r=[].slice.call(arguments,1),t=[],a=0;a{"use strict";OZ.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=_9e;var HZ=new Float32Array(1);function _9e(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 w9e=kp(),A9e=Dc(),T9e=zZ(),M9e=kA(),Eb=IZ(),k9e=Ns(),S9e=IA(),C9e=Lc(),qb=Lb(),D9e=Vh(),L9e=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; @@ -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)}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=` +`]),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=k9e(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(S9e(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=C9e(p,"float64");let w=m.count=Math.floor(p.length/2),k=m.bounds=w?A9e(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=M9e(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=>D9e(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 E9e=function(e,r){var t=new L9e(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};UZ.exports=E9e});var bi=B((qze,YZ)=>{"use strict";var GZ=Object.getOwnPropertySymbols,q9e=Object.prototype.hasOwnProperty,F9e=Object.prototype.propertyIsEnumerable;function R9e(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function P9e(){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}}YZ.exports=P9e()?Object.assign:function(e,r){for(var t,a=R9e(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=XZ(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=O9e(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 XZ(e,r,t,a,n){var i,o;if(n===GA(e,r,t,a)>0)for(i=r;i=r;i-=a)o=VZ(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&&V9e(e,a,n,i);for(var l=e,s,u;e.prev!==e.next;){if(s=e.prev,u=e.next,i?z9e(e,a,n,i):N9e(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=B9e(Fc(e),r,t),Cp(e,r,t,a,n,i,2)):o===2&&I9e(e,r,t,a,n,i):Cp(Fc(e),r,t,a,n,i,1);break}}}}function N9e(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 z9e(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 B9e(e,r,t){var a=e;do{var n=a.prev,i=a.next.next;!Nb(n,i)&&WZ(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 I9e(e,r,t,a,n,i){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&Z9e(o,l)){var s=ZZ(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 O9e(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&&Y9e(o,t)))&&(o=t,c=v)),t=t.next;while(t!==s);return o}function Y9e(e,r){return Un(e.prev,e,r.prev)<0&&Un(r.next,e,e.next)<0}function V9e(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,X9e(n)}function X9e(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 W9e(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 Z9e(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!J9e(e,r)&&(Dp(e,r)&&Dp(r,e)&&j9e(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 WZ(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 J9e(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&&WZ(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 j9e(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 ZZ(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 VZ(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 $Z=B((Rze,jZ)=>{"use strict";var $9e=Dc();jZ.exports=K9e;function K9e(e,r,t){if(!e||e.length==null)throw Error("Argument should be an array");r==null&&(r=1),t==null&&(t=$9e(e,r));for(var a=0;a{"use strict";KZ.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 rJ=B((Nze,eJ)=>{"use strict";eJ.exports=function(){}});var Wf=B((zze,tJ)=>{"use strict";var Q9e=rJ()();tJ.exports=function(e){return e!==Q9e&&e!==null}});var VA=B((Bze,nJ)=>{"use strict";var eAe=Object.create,rAe=Object.getPrototypeOf,aJ={};nJ.exports=function(){var e=Object.setPrototypeOf,r=arguments[0]||eAe;return typeof e!="function"?!1:rAe(e(r(null),aJ))===aJ}});var XA=B((Ize,iJ)=>{"use strict";var tAe=Wf(),aAe={function:!0,object:!0};iJ.exports=function(e){return tAe(e)&&aAe[typeof e]||!1}});var Su=B((Oze,oJ)=>{"use strict";var nAe=Wf();oJ.exports=function(e){if(!nAe(e))throw new TypeError("Cannot use null or undefined");return e}});var sJ=B((Hze,lJ)=>{"use strict";var WA=Object.create,zb;VA()()||(zb=ZA());lJ.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((Uze,uJ)=>{"use strict";var iAe=XA(),oAe=Su(),lAe=Object.prototype.isPrototypeOf,sAe=Object.defineProperty,uAe={configurable:!0,enumerable:!1,writable:!0,value:void 0},Bb;Bb=function(e,r){if(oAe(e),r===null||iAe(r))return e;throw new TypeError("Prototype must be null or an object")};uJ.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=lAe.call(a.nullPolyfill,n),o&&delete a.nullPolyfill.__proto__,i===null&&(i=a.nullPolyfill),n.__proto__=i,o&&sAe(a.nullPolyfill,"__proto__",uAe),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)})());sJ()});var Ib=B((Gze,fJ)=>{"use strict";fJ.exports=VA()()?Object.setPrototypeOf:ZA()});var vJ=B((Yze,cJ)=>{"use strict";var fAe=XA();cJ.exports=function(e){if(!fAe(e))throw new TypeError(e+" is not an Object");return e}});var dJ=B((Vze,hJ)=>{"use strict";var cAe=Object.create(null),vAe=Math.random;hJ.exports=function(){var e;do e=vAe().toString(36).slice(2);while(cAe[e]);return e}});var Rc=B((Xze,pJ)=>{"use strict";var hAe=void 0;pJ.exports=function(e){return e!==hAe&&e!==null}});var JA=B((Wze,mJ)=>{"use strict";var dAe=Rc(),pAe={object:!0,function:!0,undefined:!0};mJ.exports=function(e){return dAe(e)?hasOwnProperty.call(pAe,typeof e):!1}});var gJ=B((Zze,yJ)=>{"use strict";var mAe=JA();yJ.exports=function(e){if(!mAe(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(r){return!1}}});var xJ=B((Jze,bJ)=>{"use strict";var yAe=gJ();bJ.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!yAe(e)}});var jA=B((jze,_J)=>{"use strict";var gAe=xJ(),bAe=/^\s*class[\s{/}]/,xAe=Function.prototype.toString;_J.exports=function(e){return!(!gAe(e)||bAe.test(xAe.call(e)))}});var AJ=B(($ze,wJ)=>{"use strict";wJ.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 MJ=B((Kze,TJ)=>{"use strict";TJ.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var SJ=B((Qze,kJ)=>{"use strict";var _Ae=Wf(),wAe=Object.keys;kJ.exports=function(e){return wAe(_Ae(e)?Object(e):e)}});var DJ=B((eBe,CJ)=>{"use strict";CJ.exports=MJ()()?Object.keys:SJ()});var EJ=B((rBe,LJ)=>{"use strict";var AAe=DJ(),TAe=Su(),MAe=Math.max;LJ.exports=function(e,r){var t,a,n=MAe(arguments.length,2),i;for(e=Object(TAe(e)),i=function(o){try{e[o]=r[o]}catch(l){t||(t=l)}},a=1;a{"use strict";qJ.exports=AJ()()?Object.assign:EJ()});var $A=B((aBe,FJ)=>{"use strict";var kAe=Wf(),SAe=Array.prototype.forEach,CAe=Object.create,DAe=function(e,r){var t;for(t in e)r[t]=e[t]};FJ.exports=function(e){var r=CAe(null);return SAe.call(arguments,function(t){kAe(t)&&DAe(Object(t),r)}),r}});var PJ=B((nBe,RJ)=>{"use strict";var KA="razdwatrzy";RJ.exports=function(){return typeof KA.contains!="function"?!1:KA.contains("dwa")===!0&&KA.contains("foo")===!1}});var zJ=B((iBe,NJ)=>{"use strict";var LAe=String.prototype.indexOf;NJ.exports=function(e){return LAe.call(this,e,arguments[1])>-1}});var QA=B((oBe,BJ)=>{"use strict";BJ.exports=PJ()()?String.prototype.contains:zJ()});var Cu=B((lBe,UJ)=>{"use strict";var Hb=Rc(),IJ=jA(),OJ=Ob(),HJ=$A(),Ep=QA(),EAe=UJ.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?OJ(HJ(i),o):o};EAe.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)?IJ(r)?Hb(t)?IJ(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?OJ(HJ(i),o):o}});var qp=B((sBe,YJ)=>{"use strict";var GJ=Object.prototype.toString,qAe=GJ.call((function(){return arguments})());YJ.exports=function(e){return GJ.call(e)===qAe}});var Fp=B((uBe,XJ)=>{"use strict";var VJ=Object.prototype.toString,FAe=VJ.call("");XJ.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||VJ.call(e)===FAe)||!1}});var ZJ=B((fBe,WJ)=>{"use strict";WJ.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var $J=B((cBe,jJ)=>{var JJ=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 JJ()}try{return __global__||JJ()}finally{delete Object.prototype.__global__}})()});var Rp=B((vBe,KJ)=>{"use strict";KJ.exports=ZJ()()?globalThis:$J()});var ej=B((hBe,QJ)=>{"use strict";var RAe=Rp(),eT={object:!0,symbol:!0};QJ.exports=function(){var e=RAe.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 tj=B((dBe,rj)=>{"use strict";rj.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((pBe,aj)=>{"use strict";var PAe=tj();aj.exports=function(e){if(!PAe(e))throw new TypeError(e+" is not a symbol");return e}});var sj=B((mBe,lj)=>{"use strict";var nj=Cu(),NAe=Object.create,ij=Object.defineProperty,zAe=Object.prototype,oj=NAe(null);lj.exports=function(e){for(var r=0,t,a;oj[e+(r||"")];)++r;return e+=r||"",oj[e]=!0,t="@@"+e,ij(zAe,t,nj.gs(null,function(n){a||(a=!0,ij(this,t,nj(n)),a=!1)})),t}});var fj=B((yBe,uj)=>{"use strict";var ts=Cu(),Jn=Rp().Symbol;uj.exports=function(e){return Object.defineProperties(e,{hasInstance:ts("",Jn&&Jn.hasInstance||e("hasInstance")),isConcatSpreadable:ts("",Jn&&Jn.isConcatSpreadable||e("isConcatSpreadable")),iterator:ts("",Jn&&Jn.iterator||e("iterator")),match:ts("",Jn&&Jn.match||e("match")),replace:ts("",Jn&&Jn.replace||e("replace")),search:ts("",Jn&&Jn.search||e("search")),species:ts("",Jn&&Jn.species||e("species")),split:ts("",Jn&&Jn.split||e("split")),toPrimitive:ts("",Jn&&Jn.toPrimitive||e("toPrimitive")),toStringTag:ts("",Jn&&Jn.toStringTag||e("toStringTag")),unscopables:ts("",Jn&&Jn.unscopables||e("unscopables"))})}});var hj=B((gBe,vj)=>{"use strict";var cj=Cu(),BAe=rT(),Pp=Object.create(null);vj.exports=function(e){return Object.defineProperties(e,{for:cj(function(r){return Pp[r]?Pp[r]:Pp[r]=e(String(r))}),keyFor:cj(function(r){var t;BAe(r);for(t in Pp)if(Pp[t]===r)return t})})}});var mj=B((bBe,pj)=>{"use strict";var zs=Cu(),tT=rT(),Ub=Rp().Symbol,IAe=sj(),OAe=fj(),HAe=hj(),UAe=Object.create,aT=Object.defineProperties,Gb=Object.defineProperty,ao,ed,dj;if(typeof Ub=="function")try{String(Ub()),dj=!0}catch(e){}else Ub=null;ed=function(r){if(this instanceof ed)throw new TypeError("Symbol is not a constructor");return ao(r)};pj.exports=ao=function e(r){var t;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return dj?Ub(r):(t=UAe(ed.prototype),r=r===void 0?"":String(r),aT(t,{__description__:zs("",r),__name__:zs("",IAe(r))}))};OAe(ao);HAe(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((xBe,yj)=>{"use strict";yj.exports=ej()()?Rp().Symbol:mj()});var bj=B((_Be,gj)=>{"use strict";var GAe=Su();gj.exports=function(){return GAe(this).length=0,this}});var rd=B((wBe,xj)=>{"use strict";xj.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var wj=B((ABe,_j)=>{"use strict";var YAe=Rc(),VAe=JA(),XAe=Object.prototype.toString;_j.exports=function(e){if(!YAe(e))return null;if(VAe(e)){var r=e.toString;if(typeof r!="function"||r===XAe)return null}try{return""+e}catch(t){return null}}});var Tj=B((TBe,Aj)=>{"use strict";Aj.exports=function(e){try{return e.toString()}catch(r){try{return String(e)}catch(t){return null}}}});var kj=B((MBe,Mj)=>{"use strict";var WAe=Tj(),ZAe=/[\n\r\u2028\u2029]/g;Mj.exports=function(e){var r=WAe(e);return r===null?"":(r.length>100&&(r=r.slice(0,99)+"\u2026"),r=r.replace(ZAe,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 Cj=B((kBe,Sj)=>{"use strict";var JAe=wj(),jAe=kj();Sj.exports=function(e,r,t){t&&t.errorMessage&&(e=JAe(t.errorMessage));var a=e.indexOf("%v"),n=a>-1?jAe(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((SBe,Dj)=>{"use strict";var $Ae=Rc(),KAe=Cj();Dj.exports=function(e,r,t){if(t&&!$Ae(e)){if("default"in t)return t.default;if(t.isOptional)return null}var a=t&&t.Error||TypeError,n=new a(KAe(r,e,t));throw t&&t.errorCode&&(n.code=t.errorCode),n}});var Ej=B((CBe,Lj)=>{"use strict";var QAe=nT(),eTe=Rc();Lj.exports=function(e){if(eTe(e))return e;var r=arguments[1],t=r&&r.name?"Expected a value for %n, received %v":"Cannot use %v";return QAe(e,t,r)}});var Fj=B((DBe,qj)=>{"use strict";var rTe=nT(),tTe=jA();qj.exports=function(e){if(tTe(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 rTe(e,t,r)}});var Pj=B((LBe,Rj)=>{"use strict";Rj.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 zj=B((EBe,Nj)=>{"use strict";var aTe=Object.prototype.toString,nTe=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);Nj.exports=function(e){return typeof e=="function"&&nTe(aTe.call(e))}});var Ij=B((qBe,Bj)=>{"use strict";Bj.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var Hj=B((FBe,Oj)=>{"use strict";Oj.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var Gj=B((RBe,Uj)=>{"use strict";Uj.exports=Ij()()?Math.sign:Hj()});var Vj=B((PBe,Yj)=>{"use strict";var iTe=Gj(),oTe=Math.abs,lTe=Math.floor;Yj.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:iTe(e)*lTe(oTe(e)))}});var Wj=B((NBe,Xj)=>{"use strict";var sTe=Vj(),uTe=Math.max;Xj.exports=function(e){return uTe(0,sTe(e))}});var $j=B((zBe,jj)=>{"use strict";var fTe=Zf().iterator,cTe=qp(),vTe=zj(),hTe=Wj(),Zj=rd(),dTe=Su(),pTe=Wf(),mTe=Fp(),Jj=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(dTe(e)),pTe(r)&&Zj(r),!this||this===Array||!vTe(this)){if(!r){if(cTe(e))return l=e.length,l!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(Jj(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=hTe(e.length),a&&(o=new a(l)),n=0;n{"use strict";Kj.exports=Pj()()?Array.from:$j()});var r$=B((IBe,e$)=>{"use strict";var yTe=Qj(),gTe=Ob(),bTe=Su();e$.exports=function(e){var r=Object(bTe(e)),t=arguments[1],a=Object(arguments[2]);if(r!==e&&!t)return r;var n={};return t?yTe(t,function(i){(a.ensure||i in e)&&(n[i]=e[i])}):gTe(n,e),n}});var n$=B((OBe,a$)=>{"use strict";var xTe=rd(),_Te=Su(),wTe=Function.prototype.bind,t$=Function.prototype.call,ATe=Object.keys,TTe=Object.prototype.propertyIsEnumerable;a$.exports=function(e,r){return function(t,a){var n,i=arguments[2],o=arguments[3];return t=Object(_Te(t)),xTe(a),n=ATe(t),o&&n.sort(typeof o=="function"?wTe.call(o,t):void 0),typeof e!="function"&&(e=n[e]),t$.call(e,n,function(l,s){return TTe.call(t,l)?t$.call(a,i,t[l],l,t,s):r})}}});var o$=B((HBe,i$)=>{"use strict";i$.exports=n$()("forEach")});var s$=B((UBe,l$)=>{"use strict";var MTe=rd(),kTe=o$(),STe=Function.prototype.call;l$.exports=function(e,r){var t={},a=arguments[2];return MTe(r),kTe(e,function(n,i,o,l){t[i]=STe.call(r,a,n,i,o,l)}),t}});var v$=B((GBe,c$)=>{"use strict";var CTe=Rc(),DTe=Ej(),u$=Fj(),LTe=r$(),ETe=$A(),qTe=s$(),FTe=Function.prototype.bind,RTe=Object.defineProperty,PTe=Object.prototype.hasOwnProperty,f$;f$=function(e,r,t){var a=DTe(r)&&u$(r.value),n;return n=LTe(r),delete n.writable,delete n.value,n.get=function(){return!t.overwriteDefinition&&PTe.call(this,e)?a:(r.value=FTe.call(a,t.resolveContext?t.resolveContext(this):this),RTe(this,e,r),this[e])},n};c$.exports=function(e){var r=ETe(arguments[1]);return CTe(r.resolveContext)&&u$(r.resolveContext),qTe(e,function(t,a){return f$(a,t,r)})}});var lT=B((YBe,m$)=>{"use strict";var NTe=bj(),zTe=Ob(),BTe=rd(),ITe=Su(),Lo=Cu(),OTe=v$(),h$=Zf(),d$=Object.defineProperty,p$=Object.defineProperties,Np;m$.exports=Np=function(e,r){if(!(this instanceof Np))throw new TypeError("Constructor requires 'new'");p$(this,{__list__:Lo("w",ITe(e)),__context__:Lo("w",r),__nextIndex__:Lo("w",0)}),r&&(BTe(r.on),r.on("_add",this._onAdd),r.on("_delete",this._onDelete),r.on("_clear",this._onClear))};delete Np.prototype.constructor;p$(Np.prototype,zTe({_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__){d$(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__&&NTe.call(this.__redo__),this.__nextIndex__=0})})));d$(Np.prototype,h$.iterator,Lo(function(){return this}))});var _$=B((VBe,x$)=>{"use strict";var y$=Ib(),g$=QA(),sT=Cu(),HTe=Zf(),uT=lT(),b$=Object.defineProperty,td;td=x$.exports=function(e,r){if(!(this instanceof td))throw new TypeError("Constructor requires 'new'");uT.call(this,e),r?g$.call(r,"key+value")?r="key+value":g$.call(r,"key")?r="key":r="value":r="value",b$(this,"__kind__",sT("",r))};y$&&y$(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})});b$(td.prototype,HTe.toStringTag,sT("c","Array Iterator"))});var M$=B((XBe,T$)=>{"use strict";var w$=Ib(),Yb=Cu(),UTe=Zf(),fT=lT(),A$=Object.defineProperty,ad;ad=T$.exports=function(e){if(!(this instanceof ad))throw new TypeError("Constructor requires 'new'");e=String(e),fT.call(this,e),A$(this,"__length__",Yb("",e.length))};w$&&w$(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)})});A$(ad.prototype,UTe.toStringTag,Yb("c","String Iterator"))});var S$=B((WBe,k$)=>{"use strict";var GTe=qp(),YTe=Wf(),VTe=Fp(),XTe=Zf().iterator,WTe=Array.isArray;k$.exports=function(e){return YTe(e)?WTe(e)||VTe(e)||GTe(e)?!0:typeof e[XTe]=="function":!1}});var D$=B((ZBe,C$)=>{"use strict";var ZTe=S$();C$.exports=function(e){if(!ZTe(e))throw new TypeError(e+" is not iterable");return e}});var cT=B((JBe,q$)=>{"use strict";var JTe=qp(),jTe=Fp(),L$=_$(),$Te=M$(),KTe=D$(),E$=Zf().iterator;q$.exports=function(e){return typeof KTe(e)[E$]=="function"?e[E$]():JTe(e)?new L$(e):jTe(e)?new $Te(e):new L$(e)}});var R$=B((jBe,F$)=>{"use strict";var QTe=qp(),eMe=rd(),rMe=Fp(),tMe=cT(),aMe=Array.isArray,vT=Function.prototype.call,nMe=Array.prototype.some;F$.exports=function(e,r){var t,a=arguments[2],n,i,o,l,s,u,f;if(aMe(e)||QTe(e)?t="array":rMe(e)?t="string":e=tMe(e),eMe(r),i=function(){o=!0},t==="array"){nMe.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 N$=B(($Be,P$)=>{"use strict";P$.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var I$=B((KBe,B$)=>{"use strict";var iMe=Wf(),Xb=Ib(),Vb=vJ(),oMe=Su(),lMe=dJ(),Du=Cu(),sMe=cT(),uMe=R$(),fMe=Zf().toStringTag,z$=N$(),cMe=Array.isArray,dT=Object.defineProperty,hT=Object.prototype.hasOwnProperty,vMe=Object.getPrototypeOf,Jf;B$.exports=Jf=function(){var e=arguments[0],r;if(!(this instanceof Jf))throw new TypeError("Constructor requires 'new'");return r=z$&&Xb&&WeakMap!==Jf?Xb(new WeakMap,vMe(this)):this,iMe(e)&&(cMe(e)||(e=sMe(e))),dT(r,"__weakMapData__",Du("c","$weakMap$"+lMe())),e&&uMe(e,function(t){oMe(t),r.set(t[0],t[1])}),r};z$&&(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,fMe,Du("c","WeakMap"))});var pT=B((QBe,O$)=>{"use strict";O$.exports=QZ()()?WeakMap:I$()});var U$=B((eIe,H$)=>{"use strict";H$.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(),hMe=Dc(),yT=bi(),dMe=Ns(),pMe=Lc(),G$=JZ(),mMe=$Z(),{float32:yMe,fract32:mT}=Lb(),gMe=pT(),Y$=Vh(),bMe=U$(),xMe=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -261,7 +261,7 @@ void main() { fragColor = color / 255.; } -`,yMe=` +`,_Me=` 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; } -`,gMe=` +`,wMe=` precision highp float; attribute vec2 position, positionFract; @@ -307,14 +307,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,bMe=` +`,AMe=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,xMe=` +`,TMe=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -518,7 +518,7 @@ void main() { } } } -`,_Me=` +`,MMe=` 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; } -`;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:` +`;V$.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 gMe;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:xMe,frag:_Me,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:TMe,frag:MMe,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:wMe,frag:AMe,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=dMe(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=bMe(_,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=G$(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((tIe,J$)=>{"use strict";var kMe=Dc(),SMe=kp(),CMe=IA(),DMe=Ns(),X$=bi(),W$=Lc(),{float32:LMe,fract32:bT}=Lb();J$.exports=EMe;var Z$=[[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 EMe(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:Z$}),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:(y,b)=>[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[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:Z$.length}),X$(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=DMe(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=X$({},u,w)),CMe(M,w,[{lineWidth:C=>+C*.5,capSize:C=>+C*.5,opacity:parseFloat,errors:C=>(C=W$(C),T+=C.length,C),positions:(C,E)=>(C=W$(C,"float64"),E.count=Math.floor(C.length/2),E.bounds=kMe(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 _=LMe(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 Q$=B((aIe,K$)=>{var $$=/[\'\"]/;K$.exports=function(r){return r?($$.test(r.charAt(0))&&(r=r.substr(1)),$$.test(r.charAt(r.length-1))&&(r=r.substr(0,r.length-1)),r):""}});var xT=B((nIe,qMe)=>{qMe.exports=["inherit","initial","unset"]});var _T=B((iIe,FMe)=>{FMe.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var wT=B((oIe,RMe)=>{RMe.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var AT=B((lIe,PMe)=>{PMe.exports=["normal","italic","oblique"]});var TT=B((sIe,NMe)=>{NMe.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var aK=B((uIe,tK)=>{"use strict";function eK(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 rK(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)?rK(e,r):eK(e,r)}MT.parse=eK;MT.stringify=rK;tK.exports=MT});var oK=B((fIe,iK)=>{"use strict";var nK=aK();iK.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=nK.parse(r,{flat:!0,brackets:a.ignore}),i=n[0],o=i.split(t);if(a.escape){for(var l=[],s=0;s{zMe.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var kT=B((vIe,sK)=>{"use strict";var BMe=lK();sK.exports={isSize:function(r){return/^[\d\.]/.test(r)||r.indexOf("/")!==-1||BMe.indexOf(r)!==-1}}});var vK=B((hIe,cK)=>{"use strict";var IMe=Q$(),OMe=xT(),HMe=_T(),UMe=wT(),GMe=AT(),YMe=TT(),ST=oK(),VMe=kT().isSize;cK.exports=fK;var zp=fK.cache={};function fK(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(HMe.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(OMe.indexOf(a)!==-1)return["style","variant","weight","stretch"].forEach(function(i){r[i]=a}),zp[e]=r;if(GMe.indexOf(a)!==-1){r.style=a;continue}if(a==="normal"||a==="small-caps"){r.variant=a;continue}if(YMe.indexOf(a)!==-1){r.stretch=a;continue}if(UMe.indexOf(a)!==-1){r.weight=a;continue}if(VMe(a)){var n=ST(a,"/");if(r.size=n[0],n[1]!=null?r.lineHeight=uK(n[1]):t[0]==="/"&&(t.shift(),r.lineHeight=uK(t.shift())),!t.length)throw new Error("Missing required font-family.");return r.family=ST(t.join(" "),/\s*,\s*/).map(IMe),zp[e]=r}throw new Error("Unknown or unsupported font token: "+a)}throw new Error("Missing required font-size.")}function uK(e){var r=parseFloat(e);return r.toString()===e?r:e}});var DT=B((dIe,hK)=>{"use strict";var XMe=Ns(),WMe=kT().isSize,ZMe=Ip(xT()),JMe=Ip(_T()),jMe=Ip(wT()),$Me=Ip(AT()),KMe=Ip(TT()),QMe={normal:1,"small-caps":1},eke={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"};hK.exports=function(r){if(r=XMe(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,JMe),r.system;if(Bp(r.style,$Me),Bp(r.variant,QMe),Bp(r.weight,jMe),Bp(r.stretch,KMe),r.size==null&&(r.size=CT.size),typeof r.size=="number"&&(r.size+="px"),!WMe)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 eke[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]&&!ZMe[e])throw Error("Unknown keyword `"+e+"`");return e}function Ip(e){for(var r={},t=0;t{"use strict";dK.exports={parse:vK(),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,ae){for(var ie=Object.keys(ae),Be=0;Be1&&ae===ie&&(ae==='"'||ae==="'"))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>>>=ae,ie=(H>255)<<3,H>>>=ie,ae|=ie,ie=(H>15)<<2,H>>>=ie,ae|=ie,ie=(H>3)<<1,H>>>=ie,ae|=ie,ae|H>>1}function Y(){var H=C(8,function(){return[]});function ae(Qe){var Xe=G(Qe),yr=H[X(Xe)>>2];return yr.length>0?yr.pop():new ArrayBuffer(Xe)}function ie(Qe){H[X(Qe.byteLength)>>2].push(Qe)}function Be(Qe,Xe){var yr=null;switch(Qe){case E:yr=new Int8Array(ae(Xe),0,Xe);break;case F:yr=new Uint8Array(ae(Xe),0,Xe);break;case P:yr=new Int16Array(ae(2*Xe),0,Xe);break;case q:yr=new Uint16Array(ae(2*Xe),0,Xe);break;case z:yr=new Int32Array(ae(4*Xe),0,Xe);break;case I:yr=new Uint32Array(ae(4*Xe),0,Xe);break;case U:yr=new Float32Array(ae(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:ae,free:ie,allocType:Be,freeType:Ze}}var V=Y();V.zero=Y();var Z=3408,j=3410,ee=3411,me=3412,fe=3413,he=3414,te=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,ae){var ie=1;ae.ext_texture_filter_anisotropic&&(ie=H.getParameter($e));var Be=1,Ze=1;ae.webgl_draw_buffers&&(Be=H.getParameter(Yr),Ze=H.getParameter(mr));var Qe=!!ae.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=V.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),V.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=V.allocType(Ce,36);H.activeTexture(rt),H.bindTexture(Ee,Ct),H.texImage2D(Tr,0,ot,3,3,0,ot,Ce,mt),V.freeType(mt),H.bindTexture(Ee,null),H.deleteTexture(Ct),Fr=!H.getError()}return{colorBits:[H.getParameter(j),H.getParameter(ee),H.getParameter(me),H.getParameter(fe)],depthBits:H.getParameter(he),stencilBits:H.getParameter(te),subpixelBits:H.getParameter(Z),extensions:Object.keys(ae).filter(function(jr){return!!ae[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(ae){return H[ae]})},Mr={shape:le,flatten:lt};function rr(H,ae,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=V.allocType(xr.dtype,gr.length);za(Ur,gr),Kr(Ur,ht),V.freeType(Ur)}else if(Array.isArray(gr[0])||$r(gr[0])){Jr=si(gr);var Vr=gn(gr,Jr,xr.dtype);Kr(Vr,ht),V.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=V.allocType(Ot,Lt*Vt);Vn(Ht,gr.data,Lt,Vt,et,bt,gr.offset),Kr(Ht,ht),V.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&&(ae.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,ns={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,is=1,Ro=4,Kn=5120,kl=5121,Ys=5122,Po=5123,Sl=5124,Cl=5125,Pu=34963,Vc=35040,u0=35044;function f0(H,ae,ie,Be){var Ze={},Qe=0,Xe={uint8:kl,uint16:Po};ae.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=ae.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=is),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=ns[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 ae=V.allocType(xa,H.length),ie=0;ie>>31<<15,Qe=(Be<<1>>>24)-127,Xe=Be>>13&1023;if(Qe<-24)ae[ie]=Ze;else if(Qe<-14){var yr=-14-Qe;ae[ie]=Ze+(Xe+1024>>yr)}else Qe>15?ae[ie]=Ze+31744:ae[ie]=Ze+(Qe+15<<10)+Xe}return ae}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,os=32855,Nu=36194,rm=32819,Dx=32820,Wc=33635,gd=34042,v0=6402,h0=34041,ls=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[ls]=3,ho[no]=ho[Dl]=4;function ss(H){return"[object "+H+"]"}var ev=ss("HTMLCanvasElement"),us=ss("OffscreenCanvas"),b0=ss("CanvasRenderingContext2D"),Td=ss("ImageBitmap"),cm=ss("HTMLImageElement"),vm=ss("HTMLVideoElement"),zx=Object.keys(Te).concat([ev,us,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[os]=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 ae=H.length;return!(ae===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)===us}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 ae=$s(H);return zx.indexOf(ae)>=0?!0:hm(H)||dm(H)||tt(H)}function ym(H){return Te[Object.prototype.toString.call(H)]|0}function Ux(H,ae){var ie=ae.length;switch(H.type){case zu:case $c:case wd:case el:var Be=V.allocType(H.type,ie);Be.set(ae),H.data=Be;break;case No:H.data=Wr(ae);break;default:}}function gm(H,ae){return V.allocType(H.type===No?el:H.type,ae)}function kd(H,ae){H.type===No?(H.data=Wr(ae),V.freeType(ae)):H.data=ae}function bm(H,ae,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,ae,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":os,rgb565:Nu},cr={};ae.ext_srgb&&(jr.srgb=ls,jr.srgba=Dl),ae.oes_texture_float&&(mt.float32=mt.float=el),ae.oes_texture_half_float&&(mt.float16=mt["half float"]=No),ae.webgl_depth_texture&&(e(jr,{depth:v0,"depth stencil":h0}),e(mt,{uint16:$c,uint32:wd,"depth stencil":gd})),ae.webgl_compressed_texture_s3tc&&e(cr,{"rgb s3tc dxt1":Zc,"rgba s3tc dxt1":d0,"rgba s3tc dxt3":Ws,"rgba s3tc dxt5":Jc}),ae.webgl_compressed_texture_atc&&e(cr,{"rgb atc":tm,"rgba atc explicit alpha":bd,"rgba atc interpolated alpha":jc}),ae.webgl_compressed_texture_pvrtc&&e(cr,{"rgb pvrtc 4bppv1":am,"rgb pvrtc 2bppv1":nm,"rgba pvrtc 4bppv1":xd,"rgba pvrtc 2bppv1":im}),ae.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||ae.ext_srgb&&(Ke===ls||Ke===Dl)?ne[Ke]=Ke:Ke===os||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),ae.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(ae)),512+ae.length*8);return Hm(Yu(Ze.concat(Xe),768))}function Bm(H){for(var ae=Nm?"0123456789ABCDEF":"0123456789abcdef",ie="",Be,Ze=0;Ze>>4&15)+ae.charAt(Be&15);return ie}function Im(H){for(var ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie="",Be=H.length,Ze=0;ZeH.length*8?ie+=e_:ie+=ae.charAt(Qe>>>6*(3-Xe)&63);return ie}function Om(H,ae){var ie=ae.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+=ae.charAt(Be[Ze]);var Fr=Math.ceil(H.length*8/(Math.log(ae.length)/Math.log(2)));for(Ze=Er.length;Ze>>6&31,128|Be&63):Be<=65535?ae+=String.fromCharCode(224|Be>>>12&15,128|Be>>>6&63,128|Be&63):Be<=2097151&&(ae+=String.fromCharCode(240|Be>>>18&7,128|Be>>>12&63,128|Be>>>6&63,128|Be&63));return ae}function Rd(H){for(var ae=Array(H.length>>2),ie=0;ie>5]|=(H.charCodeAt(ie/8)&255)<<24-ie%32;return ae}function Hm(H){for(var ae="",ie=0;ie>5]>>>24-ie%32&255);return ae}function tl(H,ae){return H>>>ae|H<<32-ae}function Um(H,ae){return H>>>ae}function Gm(H,ae,ie){return H&ae^~H&ie}function Ym(H,ae,ie){return H&ae^H&ie^ae&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,ae){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[ae>>5]|=128<<24-ae%32,H[(ae+64>>9<<4)+15]=ae,mt=0;mt>16)+(ae>>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 ae=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},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:` +`),nr;if(ae&&(nr=r_(Pe),ae[nr]))return ae[nr].apply(null,Ze);var Sr=Function.apply(null,Be.concat(Pe));return ae&&(ae[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,cs=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",vs=Zu+mv,hs=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,ds=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,W=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(ae,ie){return ae===El?-1:ie===El?1:ae=1,Be>=2,ae)}else if(ie===uv){var Ze=H.data;return new ye(Ze.thisDep,Ze.contextDep,Ze.propDep,ae)}else{if(ie===Bd)return new ye(!1,!1,!1,ae);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 ye(Qe,Xe,yr,ae)}else return new ye(ie===sv,ie===Wm,ie===lv,ae)}}var Zr=new ye(!1,!1,!1,function(){});function ct(H,ae,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",[W,O,W,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:ae,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:ns,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=ae.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,"."+vs,de+".width"),Me.set(se,"."+hs,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,"."+vs,Ae+"."+Kd),Me.set(Ae,"."+hs,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,"."+vs,Oe+"?"+Oe+".width:"+ir+"."+Kd),Me.set(ir,"."+hs,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 ye(!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,".",vs,"-",Oe));var _t=qt;return"height"in Ae||(_t=Mt.def(Tt,".",hs,"-",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,".",vs,"-",_t,")"),vn=Mt.def('"height" in ',Tt,"?",Tt,".height|0:","(",ft,".",hs,"-",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 ye(oe.thisDep,oe.contextDep,oe.propDep,function(Et,Mt){var Tt=Et.shared.context;return[0,0,Mt.def(Tt,".",vs),Mt.def(Tt,".",hs)]}):null}var Ne=ze(El);if(Ne){var Me=Ne;Ne=new ye(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 ye(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===cs?Mt():qt===A0?Tt():(oe("if(",qt,"===",cs,"){"),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(ae.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 ae.onDone(null,bo),bo}return zi}))});var xK=B((mIe,bK)=>{"use strict";var rke=Ns();bK.exports=function(r){if(r?typeof r=="string"&&(r={container:r}):r={},yK(r)?r={container:r}:tke(r)?r={container:r}:ake(r)?r={gl:r}:r=rke(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}yK(r.container)?(r.canvas=r.container,r.container=r.canvas.parentNode):r.canvas||(r.canvas=gK(),r.container.appendChild(r.canvas),mK(r))}else if(!r.canvas)if(typeof document!="undefined")r.container=document.body||document.documentElement,r.canvas=gK(),r.container.appendChild(r.canvas),mK(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 mK(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 yK(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function tke(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function ake(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function gK(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var wK=B((yIe,_K)=>{"use strict";var nke=DT(),ike=[32,126];_K.exports=oke;function oke(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||ike;if(a&&typeof a!="string"&&(a=nke(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 AK(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=AK;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>>>AK(e)+1}});var kK=B((bIe,MK)=>{"use strict";function TK(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 lke(e|0,r);break;case"object":if(typeof e.length=="number")return TK(e,r,0);break}return[]}MK.exports=ske});var DK=B(Zb=>{"use strict";Zb.byteLength=fke;Zb.toByteArray=vke;Zb.fromByteArray=pke;var Bs=[],Al=[],uke=typeof Uint8Array!="undefined"?Uint8Array:Array,PT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Nc=0,SK=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 fke(e){var r=CK(e),t=r[0],a=r[1];return(t+a)*3/4-a}function cke(e,r,t){return(r+t)*3/4-t}function vke(e){var r,t=CK(e),a=t[0],n=t[1],i=new uke(cke(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 hke(e){return Bs[e>>18&63]+Bs[e>>12&63]+Bs[e>>6&63]+Bs[e&63]}function dke(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 LK=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 WK=B(ld=>{"use strict";var zT=DK(),id=LK(),EK=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ld.Buffer=br;ld.SlowBuffer=_ke;ld.INSPECT_MAX_BYTES=50;var Jb=2147483647;ld.kMaxLength=Jb;br.TYPED_ARRAY_SUPPORT=mke();!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 mke(){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 PK(e,r,t)}br.poolSize=8192;function PK(e,r,t){if(typeof e=="string")return gke(e,r);if(ArrayBuffer.isView(e))return bke(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=xke(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 PK(e,r,t)};Object.setPrototypeOf(br.prototype,Uint8Array.prototype);Object.setPrototypeOf(br,Uint8Array);function NK(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 yke(e,r,t){return NK(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 yke(e,r,t)};function HT(e){return NK(e),Lu(e<0?0:UT(e)|0)}br.allocUnsafe=function(e){return HT(e)};br.allocUnsafeSlow=function(e){return HT(e)};function gke(e,r){if((typeof r!="string"||r==="")&&(r="utf8"),!br.isEncoding(r))throw new TypeError("Unknown encoding: "+r);let t=zK(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 _ke(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 zK(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 XK(e).length;default:if(n)return a?-1:OT(e).length;r=(""+r).toLowerCase(),n=!0}}br.byteLength=zK;function wke(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 qke(this,r,t);case"utf8":case"utf-8":return IK(this,r,t);case"ascii":return Lke(this,r,t);case"latin1":case"binary":return Eke(this,r,t);case"base64":return Cke(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fke(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+=" ... "),""};EK&&(br.prototype[EK]=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:qK(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):qK(e,[r],t,a,n);throw new TypeError("val must be string, number or Buffer")}function qK(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 Ake(this,r,t,a);case"utf8":case"utf-8":return Tke(this,r,t,a);case"ascii":case"latin1":case"binary":return Mke(this,r,t,a);case"base64":return kke(this,r,t,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ske(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 Cke(e,r,t){return r===0&&t===e.length?zT.fromByteArray(e):zT.fromByteArray(e.slice(r,t))}function IK(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 Dke(a)}var FK=4096;function Dke(e){let r=e.length;if(r<=FK)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 OK(e,r,t,a,n){VK(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 HK(e,r,t,a,n){VK(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 OK(this,r,t,BigInt(0),BigInt("0xffffffffffffffff"))});br.prototype.writeBigUInt64BE=jf(function(r,t=0){return HK(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 OK(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});br.prototype.writeBigInt64BE=jf(function(r,t=0){return HK(this,r,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function UK(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 GK(e,r,t,a,n){return r=+r,t=t>>>0,n||UK(e,r,t,4,34028234663852886e22,-34028234663852886e22),id.write(e,r,t,a,23,4),t+4}br.prototype.writeFloatLE=function(r,t,a){return GK(this,r,t,!0,a)};br.prototype.writeFloatBE=function(r,t,a){return GK(this,r,t,!1,a)};function YK(e,r,t,a,n){return r=+r,t=t>>>0,n||UK(e,r,t,8,17976931348623157e292,-17976931348623157e292),id.write(e,r,t,a,52,8),t+8}br.prototype.writeDoubleLE=function(r,t,a){return YK(this,r,t,!0,a)};br.prototype.writeDoubleBE=function(r,t,a){return YK(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=RK(String(t)):typeof t=="bigint"&&(n=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(n=RK(n)),n+="n"),a+=` It must be ${r}. Received ${n}`,a},RangeError);function RK(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 Rke(e,r,t){od(r,"offset"),(e[r]===void 0||e[r+t]===void 0)&&Hp(r,e.length-(t+1))}function VK(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)}Rke(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 Pke=/[^+/0-9A-Za-z-_]/g;function Nke(e){if(e=e.split("=")[0],e=e.trim().replace(Pke,""),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 zke(e){let r=[];for(let t=0;t>8,n=t%256,i.push(n),i.push(a);return i}function XK(e){return zT.toByteArray(Nke(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 Ike=(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"?Oke:e}function Oke(){throw new Error("BigInt not supported")}});var sQ=B(Ma=>{"use strict";var $f=RT(),Gi=kK(),ZK=WK().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 Hke=typeof Uint8ClampedArray!="undefined",Uke=typeof BigUint64Array!="undefined",Gke=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(ZK.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 JK(e){if(e){var r=e.length||e.byteLength,t=$f.log2(r);$b[t].push(e)}}function Yke(e){JK(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=Yke;Ma.freeArrayBuffer=JK;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 $K(r);case"int8":return KK(r);case"int16":return QK(r);case"int32":return eQ(r);case"float":case"float32":return rQ(r);case"double":case"float64":return tQ(r);case"uint8_clamped":return aQ(r);case"bigint64":return iQ(r);case"biguint64":return nQ(r);case"buffer":return lQ(r);case"data":case"dataview":return oQ(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 $K(e){return new Uint32Array(qo(4*e),0,e)}Ma.mallocUint32=$K;function KK(e){return new Int8Array(qo(e),0,e)}Ma.mallocInt8=KK;function QK(e){return new Int16Array(qo(2*e),0,e)}Ma.mallocInt16=QK;function eQ(e){return new Int32Array(qo(4*e),0,e)}Ma.mallocInt32=eQ;function rQ(e){return new Float32Array(qo(4*e),0,e)}Ma.mallocFloat32=Ma.mallocFloat=rQ;function tQ(e){return new Float64Array(qo(8*e),0,e)}Ma.mallocFloat64=Ma.mallocDouble=tQ;function aQ(e){return Hke?new Uint8ClampedArray(qo(e),0,e):VT(e)}Ma.mallocUint8Clamped=aQ;function nQ(e){return Uke?new BigUint64Array(qo(8*e),0,e):null}Ma.mallocBigUint64=nQ;function iQ(e){return Gke?new BigInt64Array(qo(8*e),0,e):null}Ma.mallocBigInt64=iQ;function oQ(e){return new DataView(qo(e),0,e)}Ma.mallocDataView=oQ;function lQ(e){e=$f.nextPow2(e);var r=$f.log2(e),t=Kb[r];return t.length>0?t.pop():new ZK(e)}Ma.mallocBuffer=lQ;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 fQ=B((MIe,uQ)=>{"use strict";var Vke=Object.prototype.toString;uQ.exports=function(e){var r;return Vke.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var XT=B((kIe,cQ)=>{cQ.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 dQ=B((SIe,hQ)=>{"use strict";var Xke=XT();hQ.exports=vQ;var Up=96;function WT(e,r){var t=Xke(getComputedStyle(e).getPropertyValue(r));return t[0]*vQ(t[1],e)}function Wke(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 vQ(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 Wke(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 yQ=B((CIe,mQ)=>{"use strict";mQ.exports=rx;var Zke=rx.canvas=document.createElement("canvas"),Qb=Zke.getContext("2d"),pQ=ex([32,126]);rx.createPairs=ex;rx.ascii=pQ;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=pQ),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";xQ.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 gQ(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=bQ(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=bQ(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,gQ(d,l)}function gQ(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 MQ=B((LIe,TQ)=>{"use strict";var sd=pK(),Jke=Ns(),jke=qT(),$ke=xK(),Kke=pT(),ZT=kp(),Qke=wK(),Qf=sQ(),eSe=Vh(),rSe=fQ(),tSe=XT(),aSe=dQ(),nSe=yQ(),iSe=bi(),oSe=_Q(),lSe=Lc(),sSe=RT(),wQ=sSe.nextPow2,AQ=new Kke,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){uSe(r)?(r={regl:r},this.gl=r.regl._gl):this.gl=$ke(r),this.shader=AQ.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=r.regl||jke({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(),AQ.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(rSe(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=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();})(); + }`}),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=Jke(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=eSe(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=lSe(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 te=fe.style,Le=fe.weight,ce=fe.stretch,Fe=fe.variant;fe=sd.parse(sd.stringify(fe)),te&&(fe.style=te),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=tSe(fe.size),He=Math.round(ge[0]*aSe(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:oSe(ur,{origin:"top",fontSize:Na.baseFontSize,fontStyle:qe.join(" ")})},Na.fonts[Re]=t.font[he]}}),(a||n)&&this.font.forEach(function(fe,he){var te=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[te],!t.fontAtlas[he]){var Le=fe.metrics;t.shader.atlas[te]=t.fontAtlas[he]={fontString:te,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 te=="number")return te;switch(te){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 te=(t.font[he]||t.font[0]).metrics,Le=0;return Le+=te.bottom*.5,typeof fe=="number"?Le+=fe-te.baseline:Le+=-te[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 G=r.color.length;U=Qf.mallocUint8(G);for(var X=(r.color.subarray||r.color.slice).bind(r.color),Y=0;Y4||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 me=0;me1?this.counts[me]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[me]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(me*4,me*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[me]:this.opacity,baseline:this.baselineOffset[me]!=null?this.baselineOffset[me]:this.baselineOffset[0],align:this.align?this.alignOffset[me]!=null?this.alignOffset[me]:this.alignOffset[0]:0,atlas:this.fontAtlas[me]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(me*2,me*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 uSe(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}TQ.exports=Na});var CQ=B((EIe,SQ)=>{"use strict";var kQ=Kt(),fSe=function(){};SQ.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=fSe);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=kQ.defaults[0],a.style.position="absolute",a.style.left=a.style.top="0px",a.style.width=a.style.height="100%",a.style["background-color"]=kQ.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((qIe,DQ)=>{"use strict";var cSe=CQ(),vSe=qT();DQ.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=vSe({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||cSe({container:n._glcontainer.node()}),i}});var NQ=B((JT,PQ)=>{"use strict";var LQ=OA(),EQ=gT(),hSe=j$(),qQ=MQ(),FQ=or(),{rgbaString:dSe}=Kt(),pSe=Lf().selectMode,mSe=nx(),ySe=Ti(),gSe=c9(),bSe=BA().styleTextSelection,RQ={};function xSe(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;let d=(r._padStart||0)*a,p=(r._padEnd||0)*a,m=(t._padStart||0)*a,y=(t._padEnd||0)*a;return[l+r.domain[0]*c+d,s+t.domain[0]*v+y,i-u-(1-r.domain[1])*c-p,o-f-(1-t.domain[1])*v-m]}var JT=PQ.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=mSe(r,["ANGLE_instanced_arrays","OES_element_index_uint"],RQ);if(!f){i.init();return}var c=i.count,v=n._glcanvas.data()[0].regl;if(gSe(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=hSe(v)),i.line2d===!0&&(i.line2d=EQ(v)),i.scatter2d===!0&&(i.scatter2d=LQ(v)),i.fill2d===!0&&(i.fill2d=EQ(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(V[j])||isNaN(V[j+1]));)j-=2;Y.positions=V.slice(Z,j+2)}return Y}),i.line2d.update(i.lineOptions)),i.error2d){var y=(i.errorXOptions||[]).concat(i.errorYOptions||[]).map(function(Y){return Y||{positions:[],errors:[]}});i.error2d.update(y)}i.scatter2d&&i.scatter2d.update(i.markerOptions),i.fillOrder=FQ.repeat(null,c),i.fill2d&&(i.fillOptions=i.fillOptions.map(function(Y,V){var Z=a[V];if(!(!Y||!Z||!Z[0]||!Z[0].trace)){var j=Z[0],ee=j.trace,me=j.t,fe=i.lineOptions[V],he,te,Le=[];ee._ownfill&&Le.push(V),ee._nexttrace&&Le.push(V+1),Le.length&&(i.fillOrder[V]=Le);var ce=[],Fe=fe&&fe.positions||me.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,Y.splitNull=!0,te=0;te-1;for(let[Y]of a)if(Y){var x=Y.trace,w=Y.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 zQ=kZ();zQ.plot=NQ();BQ.exports=zQ});var HQ=B((RIe,OQ)=>{"use strict";OQ.exports=IQ()});var jT=B((PIe,VQ)=>{"use strict";var _Se=Nf(),YQ=Q0(),UQ=$2().axisHoverFormat,{hovertemplateAttrs:wSe,templatefallbackAttrs:ASe}=Hv(),Gp=gb(),TSe=(ni(),vr(ai)).idRegex,MSe=Ra().templatedArray,ud=Fn().extendFlat,Eu=_Se.marker,kSe=Eu.line,SSe=ud(YQ("marker.line",{editTypeOverride:"calc"}),{width:ud({},kSe.width,{editType:"calc"}),editType:"calc"}),ix=ud(YQ("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:SSe,editType:"calc"});ix.color.editType=ix.cmin.editType=ix.cmax.editType="style";function GQ(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:TSe[e],editType:"plot"}}}VQ.exports={dimensions:MSe("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:wSe(),hovertemplatefallback:ASe(),xhoverformat:UQ("x"),yhoverformat:UQ("y"),marker:ix,xaxes:GQ("x"),yaxes:GQ("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((NIe,XQ)=>{"use strict";XQ.exports=function(e,r,t,a){a||(a=1/0);var n,i;for(n=0;n{"use strict";var KT=or(),CSe=Oo(),WQ=jT(),DSe=Ti(),LSe=M5(),ESe=$T(),qSe=bb().isOpenSymbol;ZQ.exports=function(r,t,a,n){function i(d,p){return KT.coerce(r,t,WQ,d,p)}var o=CSe(r,t,{name:"dimensions",handleItemDefaults:FSe}),l=i("diagonal.visible"),s=i("showupperhalf"),u=i("showlowerhalf"),f=ESe(t,o,"values");if(!f||!l&&!s&&!u){t.visible=!1;return}i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback"),i("xhoverformat"),i("yhoverformat"),LSe(r,t,a,n,i,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=qSe(t.marker.symbol),v=DSe.isBubble(t);i("marker.line.width",c||v?1:0),RSe(r,t,n,i),KT.coerceSelectionMarkerOpacity(t,i)};function FSe(e,r){function t(n,i){return KT.coerce(e,r,WQ.dimensions,n,i)}t("label");var a=t("values");a&&a.length?t("visible"):r.visible=!1,t("axis.type"),t("axis.matches")}function RSe(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();$Q.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 ree=B((IIe,eee)=>{"use strict";var QT=or(),ox=hn(),PSe=Ch().calcMarkerSize,NSe=Ch().calcAxisExpansion,zSe=Q1(),QQ=Mp().markerSelection,BSe=Mp().markerStyle,ISe=KQ(),OSe=(Wn(),vr(ri)).BADNUM,HSe=(xp(),vr(bp)).TOO_MANY_POINTS;eee.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;kHSe,b;for(y?b=i.sizeAvg||Math.max(i.size,3):b=PSe(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(tee)});var iee=B((OIe,ux)=>{var USe=aee(),qu=window,lx=["moz","webkit"],cd="AnimationFrame",vd=qu["request"+cd],Vp=qu["cancel"+cd]||qu["cancelRequest"+cd];for(fd=0;!vd&&fd{oee.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 GSe=OA(),YSe=Ns(),VSe=Dc(),see=iee(),XSe=lee(),rM=Vh(),WSe=Lc();fee.exports=r0;function r0(e,r){if(!(this instanceof r0))return new r0(e,r);this.traces=[],this.passes={},this.regl=e,this.scatter=GSe(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=see(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,see(()=>{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 ZSe(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 uee(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 hee=B((GIe,vee)=>{"use strict";var JSe=cee(),tM=or(),cx=hn(),jSe=Lf().selectMode;vee.exports=function(r,t,a){if(a.length)for(var n=0;n(me||0)/fe;for(m=0;m-1,q=jSe(f)||!!n.selectedpoints||P,z=!0;if(q){var I=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var U=n.selectedpoints,G={};for(d=0;d{"use strict";dee.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 pee=aM(),KSe=xA().calcHover,mee=en().getFromId,QSe=Fn().extendFlat;function eCe(e,r,t,a,n){n||(n={});var i=(a||"").charAt(0)==="x",o=(a||"").charAt(0)==="y",l=yee(e,r,t);if((i||o)&&n.hoversubplots==="axis"&&l[0])for(var s=(i?e.xa:e.ya)._subplotsWith,u=n.gd,f=QSe({},e),c=0;c{"use strict";var Aee=or(),xee=Aee.pushUnique,_ee=Ti(),wee=aM();Tee.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=!_ee.hasMarkers(n)&&!_ee.hasText(n);if(n.visible!==!0||c)return f;var v=wee.getDimIndex(n,s),d=wee.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 kee=or(),rCe=Q1(),tCe=Mp().markerStyle;See.exports=function(r,t){var a=t.trace,n=r._fullLayout._splomScenes[a.uid];if(n){rCe(r,a),kee.extendFlat(n.matrixOptions,tCe(r,a));var i=kee.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(i,null)}}});var Lee=B((ZIe,Dee)=>{"use strict";var aCe=Pt(),nCe=sA();Dee.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:jT(),supplyDefaults:JQ(),colorbar:q5(),calc:ree(),plot:hee(),hoverPoints:bee().hoverPoints,selectPoints:Mee(),editStyle:Cee(),meta:{}};aCe.register(nCe)});var Nee=B((JIe,Pee)=>{"use strict";var iCe=gT(),oCe=Pt(),{rgbaString:lCe}=Kt(),sCe=nx(),uCe=W2().getModuleCalcData,t0=ip(),Eee=hn().getFromId,qee=en().shouldShowZeroLine,Fee="splom",Ree={};function fCe(e){var r=e._fullLayout,t=oCe.getModule(Fee),a=uCe(e.calcdata,t)[0],n=sCe(e,["ANGLE_instanced_arrays","OES_element_index_uint"],Ree);n&&(r._hasOnlyLargeSploms&&nM(e),t.plot(e,{},a))}function cCe(e){var r=e.calcdata,t=e._fullLayout;t._hasOnlyLargeSploms&&nM(e);for(var a=0;a{"use strict";var zee=Lee();zee.basePlotModule=Nee(),Bee.exports=zee});var Hee=B(($Ie,Oee)=>{"use strict";Oee.exports=Iee()});var lM=B((KIe,Uee)=>{"use strict";var pCe=Q0(),iM=sl(),oM=Di(),mCe=vb().attributes,vx=Fn().extendFlat,yCe=Ra().templatedArray;Uee.exports={domain:mCe({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:yCe("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"},pCe("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:()=>kCe,axisTitleOffset:()=>MCe,bar:()=>SCe,blockLineCount:()=>ACe,canvasPixelRatio:()=>wCe,cn:()=>CCe,id:()=>DCe,layers:()=>TCe,maxDimensionCount:()=>gCe,overdrag:()=>bCe,tickDistance:()=>_Ce,verticalPadding:()=>xCe});var gCe,bCe,xCe,_Ce,wCe,ACe,TCe,MCe,kCe,SCe,CCe,DCe,Wp=Ja(()=>{"use strict";gCe=60,bCe=45,xCe=2,_Ce=50,wCe=1,ACe=5e3,TCe=["contextLineLayer","focusLineLayer","pickLineLayer"],MCe=28,kCe=10,SCe={width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},CCe={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"},DCe={filterBarPattern:"filter-bar-pattern"}});var Zp=B((QIe,Yee)=>{"use strict";var LCe=eg();function Gee(e){return[e]}Yee.exports={keyFun:function(e){return e.key},repeat:Gee,descend:LCe,wrap:Gee,unwrap:function(e){return e[0]}}});var fM=B((eOe,rre)=>{"use strict";var Gn=(Wp(),vr(Xp)),as=la(),ECe=Zp().keyFun,hx=Zp().repeat,hd=or().sorterAsc,qCe=or().strTranslate,Vee=Gn.bar.snapRatio;function Xee(e,r){return e*(1-Vee)+r*Vee}var Wee=Gn.bar.snapClose;function FCe(e,r){return e*(1-Wee)+r*Wee}function px(e,r,t,a){if(RCe(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 PCe(e){e.attr("x",-Gn.bar.captureWidth/2).attr("width",Gn.bar.captureWidth)}function NCe(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function zCe(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var r=Zee(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 Jee(){as.select(document.body).style("cursor",null)}function uM(e){e.attr("stroke-dasharray",zCe)}function dx(e,r){var t=as.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=Zee(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 ICe(e,r){as.event.sourceEvent.stopPropagation();var t=r.height-as.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 $ee(e,r){as.event.sourceEvent.stopPropagation();var t=r.height-as.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 OCe(e,r){var t=r.brush,a=t.filter,n=t.svgBrush;n._dragging||(Kee(e,r),$ee(e,r),r.brush.svgBrush.wasDragged=!1),n._dragging=!1;var i=as.event;i.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,r.parent.inBrushDrag=!1,Jee(),!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 Kee(e,r){var t=r.height-as.mouse(e)[1]-2*Gn.verticalPadding,a=jee(r,t),n="crosshair";a.clickableOrdinalRange?n="pointer":a.region&&(n=a.region+"-resize"),as.select(document.body).style("cursor",n)}function HCe(e){e.on("mousemove",function(r){as.event.preventDefault(),r.parent.inBrushDrag||Kee(this,r)}).on("mouseleave",function(r){r.parent.inBrushDrag||Jee()}).call(as.behavior.drag().on("dragstart",function(r){ICe(this,r)}).on("drag",function(r){$ee(this,r)}).on("dragend",function(r){OCe(this,r)}))}function Qee(e,r){return e[0]-r[0]}function UCe(e,r,t){var a=t._context.staticPlot,n=e.selectAll(".background").data(hx);n.enter().append("rect").classed("background",!0).call(PCe).call(NCe).style("pointer-events",a?"none":"auto").attr("transform",qCe(0,Gn.verticalPadding)),n.call(HCe).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 GCe(e,r,t){var a=e.selectAll("."+Gn.cn.axisBrush).data(hx,ECe);a.enter().append("g").classed(Gn.cn.axisBrush,!0),UCe(a,r,t)}function YCe(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 VCe(e){return function(t){var a=t.brush,n=YCe(a),i=n.slice();a.filter.set(i),e()}}function ere(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 XCe(){var e=[],r,t;return{set:function(a){e=a.map(function(n){return n.slice().sort(hd)}).sort(Qee),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),r=ere(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 WCe(e,r,t,a,n,i){var o=XCe();return o.set(t),{filter:o,filterSpecified:r,svgBrush:{extent:[],brushStartCallback:a,brushCallback:VCe(n),brushEndCallback:i}}}function ZCe(e,r){if(Array.isArray(e[0])?(e=e.map(function(a){return a.sort(hd)}),r.multiselect?e=ere(e.sort(Qee)):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]}rre.exports={makeBrush:WCe,ensureAxisBrush:GCe,cleanRanges:ZCe}});var nre=B((rOe,are)=>{"use strict";var a0=or(),JCe=Ol().hasColorscale,jCe=th(),$Ce=vb().defaults,KCe=Oo(),QCe=en(),tre=lM(),eDe=fM(),cM=(Wp(),vr(Xp)).maxDimensionCount,rDe=$T();function tDe(e,r,t,a,n){var i=n("line.color",t);if(JCe(e,"line")&&a0.isArrayOrTypedArray(i)){if(i.length)return n("line.colorscale"),jCe(e,r,a,n,{prefix:"line.",cLetter:"c"}),i.length;r.line.color=t}return 1/0}function aDe(e,r,t,a){function n(u,f){return a0.coerce(e,r,tre.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},QCe.setConvert(r._ax,a.layout),n("multiselect");var s=n("constraintrange");s&&(r.constraintrange=eDe.cleanRanges(s,r))}}are.exports=function(r,t,a,n){function i(f,c){return a0.coerce(r,t,tre,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=KCe(r,t,{name:"dimensions",layout:n,handleItemDefaults:aDe}),s=tDe(r,t,a,n,i);$Ce(t,n,i),(!Array.isArray(l)||!l.length)&&(t.visible=!1),rDe(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 ore=B((tOe,ire)=>{"use strict";var nDe=or().isArrayOrTypedArray,vM=nh(),iDe=Zp().wrap;ire.exports=function(r,t){var a,n;return vM.hasColorscale(t,"line")&&nDe(t.line.color)?(a=t.line.color,n=vM.extractOpts(t.line).colorscale,vM.calc(r,t,{vals:a,containerStr:"line",cLetter:"c"})):(a=oDe(t._length),n=[[0,t.line.color],[1,t.line.color]]),iDe({lineColor:a,cscale:n})};function oDe(e){for(var r=new Array(e),t=0;t{"use strict";var lDe=or().isTypedArray;mx.convertTypedArray=function(e){return lDe(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 mre=B((nOe,pre)=>{"use strict";var sDe=["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(` +`),uDe=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),Jp=(Wp(),vr(Xp)).maxDimensionCount,vre=or(),lre=1e-6,yx=2048,fDe=new Uint8Array(4),sre=new Uint8Array(4),ure={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function cDe(e){e.read({x:0,y:0,width:1,height:1,data:fDe})}function hre(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 vDe(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],hre(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 pDe(e,r,t){for(var a=new Array(e*(Jp+4)),n=0,i=0;iG&&(G=C[q].dim1.canvasX,I=q);P===0&&hre(n,0,0,u.canvasWidth,u.canvasHeight);var X=_(t);for(q=0;q{"use strict";var ki=la(),Fu=or(),pM=Fu.isArrayOrTypedArray,wre=Fu.numberFormat,Are=Kt(),Tre=en(),xDe=Fu.strRotate,Hs=Fu.strTranslate,_De=Ei(),gx=Sa(),yre=nh(),gM=Zp(),Tl=gM.keyFun,Us=gM.repeat,Mre=gM.unwrap,dd=hM(),fa=(Wp(),vr(Xp)),kre=fM(),wDe=mre();function gre(e,r,t){return Fu.aggNums(e,null,r,t)}function Sre(e,r){return bM(gre(Math.min,e,r),gre(Math.max,e,r))}function bx(e){var r=e.range;return r?bM(r[0],r[1]):Sre(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 ADe(e,r){return r?function(t,a){var n=r[a];return n==null?e(t):n}:e}function TDe(e,r,t,a,n){var i=bx(t);return a?ki.scale.ordinal().domain(a.map(ADe(wre(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 MDe(e,r){return ki.scale.linear().range([r,e-r])}function kDe(e,r){return ki.scale.linear().domain(bx(e)).range([r,1-r])}function SDe(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 CDe(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){let[o,l,s]=Are.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 DDe(e,r,t){var a=Mre(r),n=a.trace,i=dd.convertTypedArray(a.lineColor),o=n.line,l={color:Are.normalize(n.unselected.line.color),opacity:n.unselected.line.opacity},s=yre.extractOpts(o),u=s.reversescale?yre.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:CDe(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 LDe(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=MDe(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=kDe(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(wre(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||Y>=U)return;var V=q.lineLayer.readPixel(X,U-1-Y),Z=V[3]!==0,j=Z?V[2]+256*(V[1]+256*V[0]):null,ee={x:X,y:Y,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=wDe(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,G){G===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(G){return dd.isOrdinal(q)?G:Cre(q.model.dimensions[q.visibleIndex],G)}).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),_De.convertToTspans(z,r)}).attr("transform",function(q){var z=xre(q.model.labelAngle,q.model.labelSide),I=fa.axisTitleOffset;return(z.dir>0?"":Hs(0,2*I+q.model.height))+xDe(z.degrees)+Hs(-I*z.dx,-I*z.dy)}).attr("text-anchor",function(q){var z=xre(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(bre),E.text(function(q){return _re(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(bre),P.text(function(q){return _re(q,!1)}).each(function(q){gx.font(ki.select(this),q.model.rangeFont)}),kre.ensureAxisBrush(_,f,r)}});var _M=B((xM,Rre)=>{"use strict";var FDe=Lre(),RDe=nx(),Ere=hM().isVisible,Fre={};function qre(e,r,t){var a=r.indexOf(t),n=e.indexOf(a);return n===-1&&(n+=r.length),n}function PDe(e,r){return function(a,n){return qre(e,r,a)-qre(e,r,n)}}var xM=Rre.exports=function(r,t){var a=r._fullLayout,n=RDe(r,[],Fre);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=PDe(p,o[d].filter(Ere));i[d].sort(m),o[d].filter(function(y){return!Ere(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]]])};FDe(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=Fre});var Nre=B(jp=>{"use strict";var Pre=la(),NDe=W2().getModuleCalcData,zDe=_M(),BDe=(xf(),vr(bf));jp.name="parcoords";jp.plot=function(e){var r=NDe(e.calcdata,"parcoords")[0];r.length&&zDe(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=Pre.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:BDe.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:i.style.width,height:i.style.height})}a.each(n),window.setTimeout(function(){Pre.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var Bre=B((lOe,zre)=>{"use strict";zre.exports={attributes:lM(),supplyDefaults:nre(),calc:ore(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:Nre(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var Hre=B((sOe,Ore)=>{"use strict";var Ire=Bre();Ire.plot=_M();Ore.exports=Ire});var Gre=B((uOe,Ure)=>{"use strict";Ure.exports=Hre()});var Yi=B((fOe,Vre)=>{var _x=bi();function Yre(){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(Yre.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=Vre.exports=new Yre;ea.cdate=wM;ea.baseCalendar=AM;ea.calendars.gregorian=TM});var Xre=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],G=new RegExp("^-?\\d{1,"+U+"}"),X=r.substring(C).match(G);if(!X)throw(Si.local.missingNumberAt||Si.regionalOptions[""].missingNumberAt).replace(/\{0\}/,C);return C+=X[0].length,parseInt(X[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 G=b(q,U)?I:z,X=0;X-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 Wre=B(()=>{var n0=Yi(),IDe=bi(),kM=n0.instance();function wx(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wx.prototype=new n0.baseCalendar;IDe(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(HDe);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(UDe);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(GDe);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=VDe(e,i,t,n);return kM.toJD(o.year,o.month,o.day)},fromJD:function(e){var r=kM.fromJD(e),t=YDe(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(ODe),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 ODe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,HDe=/^\d?\d[iI]?/m,UDe=/^闰?十?[一二三四五六七八九]?月/m,GDe=/^闰?十?[一二三四五六七八九]?/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 YDe(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 Zre=B(()=>{var Bc=Yi(),XDe=bi();function SM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SM.prototype=new Bc.baseCalendar;XDe(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 Jre=B(()=>{var Ru=Yi(),WDe=bi();function CM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CM.prototype=new Ru.baseCalendar;WDe(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:ZDe[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 ZDe={20:"Fruitbat",21:"Anchovy"};Ru.calendars.discworld=CM});var jre=B(()=>{var Ic=Yi(),JDe=bi();function DM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}DM.prototype=new Ic.baseCalendar;JDe(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 $re=B(()=>{var l0=Yi(),jDe=bi();function LM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LM.prototype=new l0.baseCalendar;jDe(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 Kre=B(()=>{var $p=Yi(),$De=bi();function EM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EM.prototype=new $p.baseCalendar;$De(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 Qre=B(()=>{var Kp=Yi(),KDe=bi();function qM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qM.prototype=new Kp.baseCalendar;KDe(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 rte=B(()=>{var Ml=Yi(),QDe=bi();function RM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RM.prototype=new Ml.baseCalendar;QDe(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,[ete(e+20,20),ete(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 ete(e,r){return FM(e-1,r)+1}Ml.calendars.mayan=RM});var ate=B(()=>{var Oc=Yi(),eLe=bi();function PM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PM.prototype=new Oc.baseCalendar;var tte=Oc.instance("gregorian");eLe(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 tte.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 nte=B(()=>{var Hc=Yi(),rLe=bi();function NM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}NM.prototype=new Hc.baseCalendar;rLe(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(),tLe=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;tLe(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 ote=B(()=>{var Uc=Yi(),aLe=bi(),kx=Uc.instance();function zM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zM.prototype=new Uc.baseCalendar;aLe(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 lte=B(()=>{var Gc=Yi(),nLe=bi(),Sx=Gc.instance();function BM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BM.prototype=new Gc.baseCalendar;nLe(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 ste=B(()=>{var Yc=Yi(),iLe=bi();function IM(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}IM.prototype=new Yc.baseCalendar;iLe(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 fte=B((HOe,ute)=>{"use strict";ute.exports=Yi();Xre();Wre();Zre();Jre();jre();$re();Kre();Qre();rte();ate();nte();ite();ote();lte();ste()});var yte=B((UOe,mte)=>{"use strict";var vte=fte(),Qp=or(),hte=(Wn(),vr(ri)),oLe=hte.EPOCHJD,lLe=hte.ONEDAY,UM={valType:"enumerated",values:Qp.sortObjectKeys(vte.calendars),editType:"calc",dflt:"gregorian"},dte=function(e,r,t,a){var n={};return n[t]=UM,Qp.coerce(e,r,n,t,a)},sLe=function(e,r,t,a){for(var n=0;n{"use strict";gte.exports=yte()});var dLe=B((YOe,_te)=>{var xte=UX();xte.register([HQ(),Hee(),Gre(),bte()]);_te.exports=xte});return dLe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-gl3d.js b/dist/plotly-gl3d.js index d4ca9ab3a46..c36bceb50bd 100644 --- a/dist/plotly-gl3d.js +++ b/dist/plotly-gl3d.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl3d) v4.2.0 +* plotly.js (gl3d) v4.3.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.2.0"; + exports.version = "4.3.0"; } }); @@ -9261,7 +9261,7 @@ var Plotly = (() => { for (var i = 1; i < length; i++) { input = inputs[i]; for (key in input) { - src = target[key]; + src = Object.prototype.hasOwnProperty.call(target, key) ? target[key] : void 0; copy = input[key]; if (noArrayCopies && isArray(copy)) { target[key] = copy; @@ -19641,8 +19641,8 @@ var Plotly = (() => { }; var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/; var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/; - function notValid(prop) { - return prop.slice(0, 2) === "__"; + function notValid(obj, prop) { + return prop in obj && !Object.prototype.hasOwnProperty.call(obj, prop); } lib.expandObjectPaths = function(data) { var match, key, prop, datum, idx, dest, trailingPath; @@ -19652,7 +19652,7 @@ var Plotly = (() => { if (match = key.match(dottedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; delete data[key]; data[prop] = lib.extendDeepNoArrays( data[prop] || {}, @@ -19661,7 +19661,7 @@ var Plotly = (() => { } else if (match = key.match(indexedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; idx = parseInt(match[2]); delete data[key]; data[prop] = data[prop] || []; @@ -19670,11 +19670,11 @@ var Plotly = (() => { dest = data[prop][idx] = data[prop][idx] || {}; lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum))); } else { - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; data[prop][idx] = lib.expandObjectPaths(datum); } } else { - if (notValid(key)) continue; + if (notValid(data, key)) continue; data[key] = lib.expandObjectPaths(data[key]); } } @@ -22229,7 +22229,7 @@ var Plotly = (() => { ax._counterAxes.sort(axisIDs.idSort); ax._subplotsWith.sort(Lib.subplotSort); ax._mainSubplot = findMainSubplot(ax, newFullLayout); - if (ax._counterAxes.length && (ax.spikemode && ax.spikemode.indexOf("across") !== -1 || ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { + if (ax._counterAxes.length && (ax.automargin && ax.mirror && ax.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax))) { var min = 1; var max = 0; for (j = 0; j < ax._counterAxes.length; j++) { @@ -25421,6 +25421,33 @@ var Plotly = (() => { dflt: [0, 1], editType: "plot" }, + domainpad: { + left: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + right: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + top: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + bottom: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + editType: "plot" + }, position: { valType: "number", min: 0, @@ -29097,6 +29124,12 @@ var Plotly = (() => { function isValidCategory(v) { return v !== null && v !== void 0; } + var MIN_PADDED_LENGTH = 2; + function padFactor(wanted, bandLength) { + if (wanted <= 0) return 0; + const room = Math.max(0, bandLength - MIN_PADDED_LENGTH); + return wanted > room ? room / wanted : 1; + } module.exports = function setConvert(ax, fullLayout) { fullLayout = fullLayout || {}; var axId = ax._id || "x"; @@ -29467,6 +29500,7 @@ var Plotly = (() => { if (ax.overlaying) { var ax2 = axisIds.getFromId({ _fullLayout: fullLayout }, ax.overlaying); ax.domain = ax2.domain; + ax.domainpad = ax2.domainpad; } var rangeAttr = usePrivateRange && ax._r ? "_r" : "range"; var calendar = ax.calendar; @@ -29474,14 +29508,26 @@ var Plotly = (() => { var rl0 = ax.r2l(ax[rangeAttr][0], calendar); var rl1 = ax.r2l(ax[rangeAttr][1], calendar); var isY2 = axLetter === "y"; + const bandLength = (isY2 ? gs.h : gs.w) * (ax.domain[1] - ax.domain[0]); + const pad = ax.domainpad; + let padStart = 0; + let padEnd = 0; + if (pad) { + padStart = (isY2 ? pad.top : pad.left) || 0; + padEnd = (isY2 ? pad.bottom : pad.right) || 0; + const fits = padFactor(padStart + padEnd, bandLength); + padStart *= fits; + padEnd *= fits; + } + ax._length = bandLength - padStart - padEnd; + ax._padStart = padStart; + ax._padEnd = padEnd; if (isY2) { - ax._offset = gs.t + (1 - ax.domain[1]) * gs.h; - ax._length = gs.h * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.t + (1 - ax.domain[1]) * gs.h + padStart; ax._m = ax._length / (rl0 - rl1); ax._b = -ax._m * rl1; } else { - ax._offset = gs.l + ax.domain[0] * gs.w; - ax._length = gs.w * (ax.domain[1] - ax.domain[0]); + ax._offset = gs.l + ax.domain[0] * gs.w + padStart; ax._m = ax._length / (rl1 - rl0); ax._b = -ax._m * rl0; } @@ -31338,7 +31384,7 @@ var Plotly = (() => { for (var i = 0; i < vals.length; i++) { var vali = tickVal2l(vals[i]); if (vali > tickMin && vali < tickMax) { - var obj = axes.tickText(ax, vali, false, String(text[i]), { + const obj = axes.tickText(ax, vali, false, text[i] !== void 0, { first: i === firstIdx, last: i === lastIdx }); @@ -33427,6 +33473,7 @@ var Plotly = (() => { var noSwapAttrs = [ "anchor", "domain", + "domainpad", "overlaying", "position", "side", @@ -38012,6 +38059,30 @@ var Plotly = (() => { } return d; } + function getAcrossSpikeSpan(gd, ax, gs) { + const isY = ax._id.charAt(0) === "y"; + let start = Infinity; + let end = -Infinity; + for (const counterId of ax._counterAxes || []) { + const counterAx = Axes.getFromId(gd, counterId); + if (!counterAx) continue; + const padStart = counterAx._padStart || 0; + const padEnd = counterAx._padEnd || 0; + if (isY) { + start = Math.min(start, gs.l + counterAx.domain[0] * gs.w + padStart); + end = Math.max(end, gs.l + counterAx.domain[1] * gs.w - padEnd); + } else { + start = Math.min(start, gs.t + (1 - counterAx.domain[1]) * gs.h + padStart); + end = Math.max(end, gs.t + (1 - counterAx.domain[0]) * gs.h - padEnd); + } + } + if (ax.anchor === "free") { + const position = isY ? gs.l + ax.position * gs.w : gs.t + (1 - ax.position) * gs.h; + start = Math.min(start, position); + end = Math.max(end, position); + } + return [start, end]; + } function createSpikelines(gd, closestPoints, opts) { var container = opts.container; var fullLayout = opts.fullLayout; @@ -38048,14 +38119,9 @@ var Plotly = (() => { xEndSpike = hLinePointX; } if (yMode.indexOf("across") !== -1) { - var xAcross0 = ya._counterDomainMin; - var xAcross1 = ya._counterDomainMax; - if (ya.anchor === "free") { - xAcross0 = Math.min(xAcross0, ya.position); - xAcross1 = Math.max(xAcross1, ya.position); - } - xBase = gs.l + xAcross0 * gs.w; - xEndSpike = gs.l + xAcross1 * gs.w; + const xSpan = getAcrossSpikeSpan(gd, ya, gs); + xBase = xSpan[0]; + xEndSpike = xSpan[1]; } container.insert("line", ":first-child").attr({ x1: xBase, @@ -38109,14 +38175,9 @@ var Plotly = (() => { yEndSpike = vLinePointY; } if (xMode.indexOf("across") !== -1) { - var yAcross0 = xa._counterDomainMin; - var yAcross1 = xa._counterDomainMax; - if (xa.anchor === "free") { - yAcross0 = Math.min(yAcross0, xa.position); - yAcross1 = Math.max(yAcross1, xa.position); - } - yBase = gs.t + (1 - yAcross1) * gs.h; - yEndSpike = gs.t + (1 - yAcross0) * gs.h; + const ySpan = getAcrossSpikeSpan(gd, xa, gs); + yBase = ySpan[0]; + yEndSpike = ySpan[1]; } container.insert("line", ":first-child").attr({ x1: vLinePointX, @@ -42772,7 +42833,7 @@ var Plotly = (() => { var outerMax = rangeCenter + halfRange * factor * 1.0001; var getPadMin = autorange.makePadFn(fullLayout, ax, 0); var getPadMax = autorange.makePadFn(fullLayout, ax, 1); - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); var m = Math.abs(ax._m); var extremes = autorange.concatExtremes(gd, ax); var minArray = extremes.min; @@ -42797,7 +42858,7 @@ var Plotly = (() => { rangeMax = ax.l2r(rangeMax); ax.range = ax._input.range = rl0 < rl1 ? [rangeMin, rangeMax] : [rangeMax, rangeMin]; } - updateDomain(ax, factor); + updateDomain(ax, factor, fullLayout); } } } @@ -42828,13 +42889,26 @@ var Plotly = (() => { } } }; - function updateDomain(ax, factor) { + function domainPadFraction(ax, fullLayout) { + const pad = ax.domainpad; + if (!pad) return 0; + const gs = fullLayout._size; + return ax._id.charAt(0) === "y" ? ((pad.top || 0) + (pad.bottom || 0)) / gs.h : ((pad.left || 0) + (pad.right || 0)) / gs.w; + } + function updateDomain(ax, factor, fullLayout) { var inputDomain = ax._inputDomain; var centerFraction = FROM_BL2[ax.constraintoward]; var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction; + let divisor = factor; + const padFraction = domainPadFraction(ax, fullLayout); + if (padFraction > 0) { + const inputSpan = inputDomain[1] - inputDomain[0]; + const drawnSpan = inputSpan - padFraction; + if (drawnSpan > 0) divisor = inputSpan / (drawnSpan / factor + padFraction); + } ax.domain = ax._input.domain = [ - center + (inputDomain[0] - center) / factor, - center + (inputDomain[1] - center) / factor + center + (inputDomain[0] - center) / divisor, + center + (inputDomain[1] - center) / divisor ]; ax.setScale(); } @@ -50063,6 +50137,10 @@ var Plotly = (() => { if (!newType || newType === "-") newType = "linear"; Registry.getComponentMethod("annotations", "convertCoords")(gd, fullProp, newType, doextra); Registry.getComponentMethod("images", "convertCoords")(gd, fullProp, newType, doextra); + if (!ptrunk && fullProp && vi && (vi.range !== void 0 || vi.autorange !== void 0)) { + recordAlteredAxis(`${pleaf}.range`); + fullProp._inputRange = null; + } } var containerArrayMatch = manageArrays.containerArrayMatch(ai); if (containerArrayMatch) { @@ -50576,6 +50654,14 @@ var Plotly = (() => { newFullLayout[key]._inputDomain = null; } } + const newRange = newFullLayout[key].range; + const oldRange = oldFullLayout[key].range; + const oldInputRange = oldFullLayout[key]._inputRange; + if (oldInputRange && newRange && oldRange) { + const isInputRange = newRange[0] === oldInputRange[0] && newRange[1] === oldInputRange[1]; + const isOldRange = newRange[0] === oldRange[0] && newRange[1] === oldRange[1]; + if (!isInputRange && !isOldRange) newFullLayout[key]._inputRange = null; + } } var diffOpts = { getValObject: getLayoutValObject, @@ -55824,6 +55910,13 @@ var Plotly = (() => { var domain = coerce("domain", dfltDomain); if (domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain; Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain); + if (letter === "x") { + coerce("domainpad.left"); + coerce("domainpad.right"); + } else { + coerce("domainpad.top"); + coerce("domainpad.bottom"); + } if (containerOut.tickmode === "sync") { containerOut.tickmode = "auto"; } @@ -61200,9 +61293,8 @@ var Plotly = (() => { } axisOpts.cleanRange("rangeslider.range"); var gs = fullLayout._size; - var domain = axisOpts.domain; - opts2._width = gs.w * (domain[1] - domain[0]); - var x = Math.round(gs.l + gs.w * domain[0]); + opts2._width = axisOpts._length; + const x = Math.round(axisOpts._offset); var y = Math.round( gs.t + gs.h * (1 - axisOpts._counterDomainMin) + (axisOpts.side === "bottom" ? axisOpts._depth : 0) + opts2._offsetShift + constants2.extraPad ); diff --git a/dist/plotly-gl3d.min.js b/dist/plotly-gl3d.min.js index e5afdd154af..8518f1335f6 100644 --- a/dist/plotly-gl3d.min.js +++ b/dist/plotly-gl3d.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (gl3d - minified) v4.2.0 +* plotly.js (gl3d - minified) v4.3.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 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+` +"use strict";var Plotly=(()=>{var HY=Object.create;var sf=Object.defineProperty,VY=Object.defineProperties,GY=Object.getOwnPropertyDescriptor,YY=Object.getOwnPropertyDescriptors,XY=Object.getOwnPropertyNames,Vv=Object.getOwnPropertySymbols,WY=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)=>VY(e,YY(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 XY(r))!sg.call(e,a)&&a!==t&&sf(e,a,{get:()=>r[a],enumerable:!(n=GY(r,a))||n.enumerable});return e};var Q_=(e,r,t)=>(t=e!=null?HY(WY(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.3.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,x,M){return Object.defineProperty(k,S,{value:x,writable:!0,configurable:M!==!1})}}catch(m){r=function(S,x,M){return S[x]=M,S}}n=(function(){var k,S,x;function M(d,w){this.fn=d,this.self=w,this.next=void 0}return{add:function(w,y){x=new M(w,y),S?S.next=x:k=x,S=x,x=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(x){c.call(new b(S),x)}}}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,x){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 x,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 x;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?P:_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:F(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,UY),ma.push(Mi);for(var On=e.event.changedTouches,ja=0,ji=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,ji,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 $i(C){return el(C)+""}var Ki=nn.prototype=new qt;Ki.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(I);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(;Wr24?(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 GV(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-ZV(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 ZV(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 JV(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(eG(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 $V;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 KV(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 QV(C){for(var N=g0,U=KV(C[0][0],C[0][1],C[1][0],C[1][1]),H=N.length,Y;H--;)Y=N[H],(!jV(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 iG(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=oG.get(U)||J6,H=lG.get(H)||I,sG(H(U.apply(null,r.call(arguments,1))))};function sG(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 uG(C){return C*C}function fG(C){return C*C*C}function cG(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 vG(C){return function(N){return Math.pow(N,C)}}function hG(C){return 1-Math.cos(C*Ce)}function dG(C){return Math.pow(2,10*(C-1))}function pG(C){return 1-Math.sqrt(1-C*C)}function gG(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 yG(C){return C||(C=1.70158),function(N){return N*N*((C+1)*N-C)}}function mG(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=bG;function bG(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=xG;function xG(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=_G;function _G(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:MG)})(C)};function j6(C){var N=[C.a,C.b],U=[C.c,C.d],H=r_(N),Y=e_(N,U),W=r_(wG(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 kG(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 SG(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),TG(C.translate,N.translate,U,H),AG(C.rotate,N.rotate,U,H),kG(C.skew,N.skew,U,H),SG(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 Qi(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)}),Qi(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=HG,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 Qi(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 JG(C){return C.reduce($G,0)}function $G(C,N){return C+N[1]}e.layout.histogram=function(){var C=!0,N=Number,U=QG,H=KG;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 KG(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 QG(C){return[e.min(C),e.max(C)]}e.layout.pack=function(){var C=e.layout.hierarchy().sort(jG),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,Qi(ce,function(Ge){Ge.r=+De(Ge.value)}),Qi(ce,u_),N){var Fe=N*(H?1:Math.max(2*ce.r/_e,2*ce.r/Me))/2;Qi(ce,function(Ge){Ge.r+=Fe}),Qi(ce,u_),Qi(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 jG(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(eY),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&&(tY(aY(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 tY(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 nY(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 aY(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;Qi(ce,function(Ie){var Ne=Ie.children;Ne&&Ne.length?(Ie.x=oY(Ne),Ie.y=iY(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 Qi(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 iY(C){return 1+e.max(C,function(N){return N.y})}function oY(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?uY:lY,_e=H?EG:CG;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 fY={s:1,g:1,p:1,r:1,e:1};function x_(C){return-Math.floor(Math.log(C)/Math.LN10+.01)}function Pbe(C,N){var U=x_(N[2]);return C in fY?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:cY);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 cY={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 x;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 xY(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 EY(C){return C.length<3?wi(C):C[0]+Nv(C,CY(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 LY(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(DY(N=H)):N},C};function DY(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=FY,N=RY;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 RY(){return 64}function FY(){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:cG,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 x,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):I: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=zY,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=NY,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 IY?_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",IY={top:1,right:1,bottom:1,left:1};function zY(C,N,U){C.attr("transform",function(H){var Y=N(H);return"translate("+(isFinite(Y)?Y:U(H))+",0)"})}function NY(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,I);Ze.exit().remove(),Ze.enter().append("g").attr("class",function(hr){return"resize "+hr}).style("cursor",function(hr){return qY[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,b=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=b.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 x=S(0),M=S(1),d=S(2),w=S(3),y=S(4),v=S(5),A=S(6),p=x.range,D=M.range,E=d.range,R=w.range,I=y.range,z=v.range,F=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()}),P=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=b,e.timeMinutes=h,e.timeMonday=M,e.timeMondays=D,e.timeMonth=L,e.timeMonths=P,e.timeSaturday=A,e.timeSaturdays=F,e.timeSecond=c,e.timeSeconds=g,e.timeSunday=x,e.timeSundays=p,e.timeThursday=y,e.timeThursdays=I,e.timeTuesday=d,e.timeTuesdays=E,e.timeWednesday=w,e.timeWednesdays=R,e.timeWeek=x,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=b(wr),ot=g(Xr),Ir=b(Xr),Jr=g(Tr),Xt=b(Tr),tt=g(Pr),Kr=b(Pr),qt=g(at),lr=b(at),Dr={a:$a,A:_i,b:nn,B:el,c:null,d:L,e:L,f:J,g:ee,G:fe,H:P,I:B,j:O,L:G,m:j,M:V,p:$i,q:Ki,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:x,G:S,H:A,I:A,j:v,L:E,m:w,M:p,p:vt,q:d,Q:z,s:F,S:D,u:_,U:T,V:m,w:h,W:k,x:xi,X:tn,y:x,Y:S,Z:M,"%":I};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 $i(Sr){return wr[+(Sr.getHours()>=12)]}function Ki(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 I(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 F(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 P(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],I=0;p>0&&R>0&&(I+R+1>A&&(R=Math.max(1,A-I)),D.push(v.substring(p-=R,p+R)),!((I+=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 b={"%":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+"",I=w.nan===void 0?"NaN":w.nan+"";function z(L){L=l(L);var P=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"):b[re]||(q===void 0&&(q=12),Z=!0,re="g"),(J||P==="0"&&B==="=")&&(J=!0,P="0",B="=");var $=G==="$"?v:G==="#"&&/[boxX]/.test(re)?"0"+re.toLowerCase():"",ae=G==="$"?A:/[%p]/.test(re)?E:"",Q=b[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)?I: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 F(L,P){var B=z((L=l(L),L.type="f",L)),O=Math.max(-8,Math.min(8,Math.floor(n(P)/3)))*3,G=Math.pow(10,-O),J=T[8+O/3];return function(j){return B(G*j)+J}}return{format:z,formatPrefix:F}}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 x(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=x,e.precisionPrefix=M,e.precisionRound=d,Object.defineProperty(e,"__esModule",{value:!0})}))});var l7=xe((qbe,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((Bbe,s7)=>{"use strict";var ZY=l7();s7.exports=function(e){var r=typeof e;if(r==="string"){var t=e;if(e=+e,e===0&&ZY(t))return!1}else if(r!=="number")return!1;return e-e<1}});var Rn={};Ht(Rn,{ALMOST_EQUAL:()=>hX,BADNUM:()=>cg,EPOCHJD:()=>vX,FP_SAFE:()=>JY,LOG_CLIP:()=>dX,MINUS_SIGN:()=>pX,ONEAVGMONTH:()=>nX,ONEAVGQUARTER:()=>eX,ONEAVGYEAR:()=>KY,ONEDAY:()=>oX,ONEHOUR:()=>lX,ONEMAXMONTH:()=>tX,ONEMAXQUARTER:()=>jY,ONEMAXYEAR:()=>$Y,ONEMICROSEC:()=>cX,ONEMILLI:()=>fX,ONEMIN:()=>sX,ONEMINMONTH:()=>aX,ONEMINQUARTER:()=>rX,ONEMINYEAR:()=>QY,ONESEC:()=>uX,ONEWEEK:()=>iX});var cg,JY,$Y,KY,QY,jY,eX,rX,tX,nX,aX,iX,oX,lX,sX,uX,fX,cX,vX,hX,dX,pX,wn=Ut(()=>{"use strict";cg=void 0,JY=Number.MAX_VALUE*1e-4,$Y=316224e5,KY=315576e5,QY=31536e6,jY=79488e5,eX=78894e5,rX=76896e5,tX=26784e5,nX=26298e5,aX=24192e5,iX=6048e5,oX=864e5,lX=36e5,sX=6e4,uX=1e3,fX=1,cX=.001,vX=24405875e-1,hX=1-1e-6,dX=10,pX="\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,b,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|b>>2,T[f++]=(b&3)<<6|h&63;return _};e.decode=o,e.encode=a,Object.defineProperty(e,"__esModule",{value:!0})}))});var ss=xe((Obe,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 gX=vg().decode,yX=ss(),hg=Array.isArray,mX=ArrayBuffer,bX=DataView;function c7(e){return mX.isView(e)&&!(e instanceof bX)}Ti.isTypedArray=c7;function $v(e){return hg(e)||c7(e)}Ti.isArrayOrTypedArray=$v;function xX(e){return!$v(e[0])}Ti.isArray1D=xX;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=_X(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=gX(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,b=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(),kX=/^\w*$/,SX=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[b]=u[b]|Qv,c.set(g,null);if(f){for(o=b;o{"use strict";var CX=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,EX=/^[^\.\[\]]+$/;w7.exports=function(e,r){for(;r;){var t=e.match(CX);if(t)e=t[1];else if(e.match(EX))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((Ybe,T7)=>{"use strict";var LX=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 LX(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}});var S7=xe((Xbe,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;lDX,modHalf:()=>RX});function DX(e,r){let t=e%r;return t<0?t+r:t}function RX(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 FX(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:()=>IX,HOVERFONT:()=>qX,HOVERFONTSIZE:()=>NX,HOVERID:()=>OX,HOVERMINTIME:()=>BX,HOVERTEXTPAD:()=>zX,YANGLE:()=>PX});var PX,IX,zX,NX,qX,BX,OX,pf=Ut(()=>{"use strict";PX=60,IX=6,zX=3,NX=13,qX="Arial, sans-serif",BX=50,OX="-hover"});var fs=xe((Jbe,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(($be,F7)=>{"use strict";var UX=Wn(),gf=fs().hoverlabel,yf=Rt().extendFlat;F7.exports={hoverlabel:{bgcolor:yf({},gf.bgcolor,{arrayOk:!0}),bordercolor:yf({},gf.bordercolor,{arrayOk:!0}),font:UX({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((Kbe,P7)=>{"use strict";var HX=Wn(),VX=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:HX({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:VX.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var k8=xe((axe,A8)=>{var u3=Object.defineProperty,GX=Object.getOwnPropertyDescriptor,YX=Object.getOwnPropertyNames,XX=Object.prototype.hasOwnProperty,WX=(e,r)=>{for(var t in r)u3(e,t,{get:r[t],enumerable:!0})},ZX=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of YX(r))!XX.call(e,a)&&a!==t&&u3(e,a,{get:()=>r[a],enumerable:!(n=GX(r,a))||n.enumerable});return e},JX=e=>ZX(u3({},"__esModule",{value:!0}),e),G7={};WX(G7,{a98:()=>O$,average:()=>YW,averageAngle:()=>to,averageNumber:()=>lw,blend:()=>GJ,blerp:()=>Vg,clampChroma:()=>f$,clampGamut:()=>z3,clampRgb:()=>u$,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:()=>U$,differenceCie76:()=>qW,differenceCie94:()=>BW,differenceCiede2000:()=>OW,differenceCmc:()=>UW,differenceEuclidean:()=>L0,differenceHueChroma:()=>Tf,differenceHueNaive:()=>ow,differenceHueSaturation:()=>Mf,differenceHyab:()=>HW,differenceItp:()=>GW,differenceKotsarenkoRamos:()=>VW,displayable:()=>I3,dlab:()=>H$,dlch:()=>V$,easingGamma:()=>x8,easingInOutSine:()=>q$,easingMidpoint:()=>h8,easingSmootherstep:()=>z$,easingSmoothstep:()=>F$,easingSmoothstepInverse:()=>P$,filterBrightness:()=>b$,filterContrast:()=>x$,filterDeficiencyDeuter:()=>D$,filterDeficiencyProt:()=>L$,filterDeficiencyTrit:()=>R$,filterGrayscale:()=>M$,filterHueRotate:()=>A$,filterInvert:()=>T$,filterSaturate:()=>w$,filterSepia:()=>_$,fixupAlpha:()=>Tn,fixupHueDecreasing:()=>FW,fixupHueIncreasing:()=>RW,fixupHueLonger:()=>DW,fixupHueShorter:()=>ro,formatCss:()=>NJ,formatHex:()=>qJ,formatHex8:()=>BJ,formatHsl:()=>UJ,formatRgb:()=>OJ,getMode:()=>la,hsi:()=>G$,hsl:()=>Y$,hsv:()=>X$,hwb:()=>W$,inGamut:()=>Th,interpolate:()=>jJ,interpolateWith:()=>p8,interpolateWithPremultipliedAlpha:()=>e$,interpolatorLinear:()=>_r,interpolatorPiecewise:()=>tw,interpolatorSplineBasis:()=>y8,interpolatorSplineBasisClosed:()=>m8,interpolatorSplineMonotone:()=>n$,interpolatorSplineMonotone2:()=>a$,interpolatorSplineMonotoneClosed:()=>i$,interpolatorSplineNatural:()=>r$,interpolatorSplineNaturalClosed:()=>t$,itp:()=>Z$,jab:()=>J$,jch:()=>$$,lab:()=>K$,lab65:()=>Q$,lch:()=>j$,lch65:()=>eK,lchuv:()=>rK,lerp:()=>vs,lrgb:()=>tK,luv:()=>nK,mapAlphaDivide:()=>v8,mapAlphaMultiply:()=>c8,mapTransferGamma:()=>JJ,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:()=>h$,okhsl:()=>aK,okhsv:()=>iK,oklab:()=>oK,oklch:()=>lK,p3:()=>sK,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:()=>uK,random:()=>ZJ,rec2020:()=>fK,removeParser:()=>uW,rgb:()=>cK,round:()=>l8,samples:()=>s$,serializeHex:()=>D3,serializeHex8:()=>s8,serializeHsl:()=>f8,serializeRgb:()=>u8,toGamut:()=>c$,trilerp:()=>xW,unlerp:()=>bW,useMode:()=>Mt,useParser:()=>K7,wcagContrast:()=>B$,wcagLuminance:()=>s3,xyb:()=>vK,xyz50:()=>hK,xyz65:()=>dK,yiq:()=>pK});A8.exports=JX(G7);var $X=(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=$X,KX={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=KX,QX=e=>Y7(X7[e.toLowerCase()],6),W7=QX,jX=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,eW=e=>{let r;return(r=e.match(jX))?Y7(parseInt(r[1],16),r[1].length):void 0},Z7=eW,ka="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",Qbe=`(?:${ka}|none)`,xf=`${ka}%`,jbe=`(?:${ka}%|none)`,f3=`(?:${ka}%|${ka})`,rW=`(?:${ka}%|${ka}|none)`,tW=`(?:${ka}(deg|grad|rad|turn)|${ka})`,exe=`(?:${ka}(deg|grad|rad|turn)|${ka}|none)`,C0="\\s*,\\s*",rxe=new RegExp("^"+rW+"$"),nW=new RegExp(`^rgba?\\(\\s*${ka}${C0}${ka}${C0}${ka}\\s*(?:,\\s*${f3}\\s*)?\\)$`),aW=new RegExp(`^rgba?\\(\\s*${xf}${C0}${xf}${C0}${xf}\\s*(?:,\\s*${f3}\\s*)?\\)$`),iW=e=>{let r={mode:"rgb"},t;if(t=e.match(nW))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(aW))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=iW,oW=(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=oW,lW=(e="rgb")=>r=>(r=Ai(r,e))!==void 0?r.mode===e?r:eo[r.mode][e]?eo[r.mode][e](r):e==="rgb"?eo[r.mode].rgb(r):eo.rgb[e](eo[r.mode].rgb(r)):void 0,Ft=lW,eo={},$7={},E0=[],c3={},sW=e=>e,Mt=e=>(eo[e.mode]=wt(wt({},eo[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(r=>{eo[r]||(eo[r]={}),eo[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=sW)}),$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)},uW=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_]/,fW=/[^\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 cW={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*cW[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<4)){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 pW(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 gW=e=>{if(typeof e!="string")return;let r=hW(e),t=r?pW(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=mW,vs=(e,r,t)=>e+t*(r-e),bW=(e,r,t)=>(t-e)/(r-e),Vg=(e,r,t,n,a,o)=>vs(vs(e,r,a),vs(t,n,a),o),xW=(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),_W=e=>{let r=[];for(let t=0;tr=>{let t=_W(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},wW={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=wW,mg=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),MW=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=MW,bg=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),TW=({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=TW,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)},AW=({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=AW,kW=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=kW,_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},SW=({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=SW,CW=({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=CW,EW=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=EW,LW=e=>(e=e%360)<0?e+360:e,Jn=LW,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),[]),ro=e=>dh(e,r=>Math.abs(r)<=180?r:r-360*Math.sign(r)),DW=e=>dh(e,r=>Math.abs(r)>=180||r===0?r:r-360*Math.sign(r)),RW=e=>dh(e,r=>r>=0?r:r+360),FW=e=>dh(e,r=>r<=0?r:r-360),Un=[-.14861,1.78277,-.29227,-.90649,1.97294,0],PW=Math.PI/180,IW=180/Math.PI,I7=Un[3]*Un[4],z7=Un[1]*Un[4],N7=Un[1]*Un[2]-Un[0]*Un[3],zW=({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)*IW-120),n!==void 0&&(l.alpha=n),l},aw=zW,NW=({h:e,s:r,l:t,alpha:n})=>{let a={mode:"rgb"};e=(e===void 0?0:e+120)*PW,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=NW,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 b=a[c]?a[c](u,s):u[c]-s[c];return f+(r[g]||0)*Math.pow(isNaN(b)?0:b,2)},0))}},qW=()=>L0("lab65"),BW=(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,b=l.a,h=l.b,_=Math.sqrt(b*b+h*h),T=Math.pow(u-g,2),m=Math.pow(c-_,2),k=Math.pow(s-b,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))}},OW=(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,b=l.a,h=l.b,_=Math.sqrt(b*b+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=b*(1+m),x=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-x,A=x*M===0?0:w-d;A-=(A>Math.PI)*2*Math.PI,A+=(A<-Math.PI)*2*Math.PI;let p=2*Math.sqrt(x*M)*Math.sin(A/2),D=(u+g)/2,E=(x+M)/2,R;x*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 I=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),F=1+.015*I/Math.sqrt(20+I),L=1+.045*E,P=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*F),2)+Math.pow(v/(r*L),2)+Math.pow(p/(t*P),2)+G*v/(r*L)*p/(t*P))}},UW=(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,b=c.a,h=c.b,_=Math.sqrt(b*b+h*h),T=Math.pow(i-g,2),m=Math.pow(s-_,2),k=Math.pow(l-b,2)+Math.pow(u-h,2)-m,S=Math.sqrt(Math.pow(s,4)/(Math.pow(s,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=i<16?.511:.040975*i/(1+.01765*i),d=.0638*s/(1+.0131*s)+.638,w=d*(S*x+1-S);return Math.sqrt(T/Math.pow(e*M,2)+m/Math.pow(r*d,2)+k/Math.pow(w,2))}},HW=()=>{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)}},VW=()=>L0("yiq",[.5053,.299,.1957]),GW=()=>L0("itp",[518400,129600,518400]),to=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 YW(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 XW={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:ro},s:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Mf},average:{h:to}},sw=XW,WW=({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=WW,ZW=({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=ZW,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},txe=Math.pow(29,3)/Math.pow(3,3),nxe=Math.pow(6,3)/Math.pow(29,3),Mg=e=>Math.pow(e,3)>fw?Math.pow(e,3):(116*e-16)/uw,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=(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=JW,$W=e=>il(v3(e)),Af=$W,Tg=e=>e>fw?Math.cbrt(e):(uw*e+16)/116,KW=({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=KW,QW=e=>{let r=h3(al(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},kf=QW,oh=1,cw=1,wf=26/180*Math.PI,lh=Math.cos(wf),sh=Math.sin(wf),vw=100/Math.log(139/100),jW=({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=jW,eZ=({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=eZ,q7=e=>uh(Eo(e,"dlch")),B7=e=>Lo(fh(e),"dlab"),rZ={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=rZ,tZ={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:ro},alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:to}},dw=tZ;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}},iZ=aZ,oZ=new RegExp(`^hsla?\\(\\s*${tW}${C0}${xf}${C0}${xf}\\s*(?:,\\s*${f3}\\s*)?\\)$`),lZ=e=>{let r=e.match(oZ);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=iZ(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=lZ;function sZ(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=sZ,uZ={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:ro},s:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Mf},average:{h:to}},d3=uZ;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 cZ(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=cZ,vZ={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:ro},w:_r,b:_r,alpha:{use:_r,fixup:Tn}},difference:{h:ow},average:{h:to}},Aw=vZ,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),hZ=({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=hZ,Cg=(e=0)=>Math.max(e*kw,0),dZ=({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,b={mode:"itp",i:f,t:c,p:g};return n!==void 0&&(b.alpha=n),b},Wg=dZ,pZ={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=pZ,gZ=134.03437499999998,yZ=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),gZ)},Lg=(e=0)=>Math.max(e*203,0),mZ=({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)-yZ,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=mZ,bZ=134.03437499999998,O7=16295499532821565e-27,Dg=e=>{if(e<0)return 0;let r=Math.pow(e,1/bZ);return 1e4*Math.pow((gh-r)/(mh*r-yh),1/ph)},Rg=e=>e/203,xZ=({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=xZ,_Z=e=>{let r=m3(al(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},x3=_Z,wZ=e=>il(b3(e)),_3=wZ,MZ={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=MZ,TZ=({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=TZ,AZ=({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=AZ,kZ={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:ro},c:_r,j:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:to}},Lw=kZ,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,SZ=({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=SZ,CZ=({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=CZ,EZ=e=>D0(xh(e)),M3=EZ,LZ=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=LZ,Pg=e=>e>w3?Math.cbrt(e):(bh*e+16)/116,DZ=({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=DZ,RZ=e=>{let r=_h(R0(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},T3=RZ;function FZ(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=FZ,PZ={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=PZ,IZ=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=IZ;function zZ(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=zZ,NZ={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:ro},c:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:to}},Mh=NZ,qZ=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=qZ,BZ=({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=BZ,OZ=({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=OZ,Iw=(e,r,t)=>4*e/(e+15*r+3*t),zw=(e,r,t)=>9*r/(e+15*r+3*t),UZ=Iw(Mn.X,Mn.Y,Mn.Z),HZ=zw(Mn.X,Mn.Y,Mn.Z),VZ=e=>e<=w3?bh*e:116*Math.cbrt(e)-16,GZ=({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=VZ(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-UZ),i=13*a*(i-HZ));let l={mode:"luv",l:a,u:o,v:i};return n!==void 0&&(l.alpha=n),l},ch=GZ,YZ=(e,r,t)=>4*e/(e+15*r+3*t),XZ=(e,r,t)=>9*r/(e+15*r+3*t),WZ=YZ(Mn.X,Mn.Y,Mn.Z),ZZ=XZ(Mn.X,Mn.Y,Mn.Z),JZ=({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)+WZ,o=t/(13*e)+ZZ,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=JZ,$Z=e=>A3(ch(R0(e))),KZ=e=>D0(vh(k3(e))),QZ={mode:"lchuv",toMode:{luv:k3,rgb:KZ},fromMode:{rgb:$Z,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:ro},c:_r,l:_r,alpha:{use:_r,fixup:Tn}},difference:{h:Tf},average:{h:to}},Nw=QZ,jZ=Ot(wt({},ps),{mode:"lrgb",toMode:{rgb:ys},fromMode:{rgb:gs},parse:["srgb-linear"],serialize:"srgb-linear"}),qw=jZ,eJ={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=eJ,rJ=({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=rJ,tJ=e=>{let r=S3(gs(e));return e.r===e.b&&e.b===e.g&&(r.a=r.b=0),r},Sf=tJ,nJ=({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=nJ,aJ=e=>ys(F0(e)),Cf=aJ;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 iJ(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,b=-.0894841775*e-1.291485548*r;{let h=1+f*c,_=1+f*g,T=1+f*b,m=h*h*h,k=_*_*_,S=T*T*T,x=3*c*h*h,M=3*g*_*_,d=3*b*T*T,w=6*c*c*h,y=6*g*g*_,v=6*b*b*T,A=l*m+u*k+s*S,p=l*x+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=iJ(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 oJ(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,b=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,x=m*m*m,M=k*k*k,d=S*S*S,w=3*g*m*m,y=3*b*k*k,v=3*h*S*S,A=6*g*g*m,p=6*b*b*k,D=6*h*h*S,E=4.0767416621*x-3.3077115913*M+.2309699292*d-1,R=4.0767416621*w-3.3077115913*y+.2309699292*v,I=4.0767416621*A-3.3077115913*p+.2309699292*D,z=R/(R*R-.5*E*I),F=-E*z,L=-1.2684380046*x+2.6097574011*M-.3413193965*d-1,P=-1.2684380046*w+2.6097574011*y-.3413193965*v,B=-1.2684380046*A+2.6097574011*p-.3413193965*D,O=P/(P*P-.5*L*B),G=-L*O,J=-.0041960863*x-.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;F=z>=0?F:1e6,G=O>=0?G:1e6,Z=q>=0?Z:1e6,i+=Math.min(F,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=oJ(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=lJ;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,b=c*a,h=hh(g),_=b*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)*b/(u*s+u*f*b):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),b=hh(c),h=g*b/c,_=F0({l:b,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 sJ=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=sJ;function uJ(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=uJ,fJ=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=fJ;function cJ(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=cJ,vJ=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=vJ,hJ=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=hJ,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=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=dJ,pJ=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=pJ,Ig=e=>{let r=Math.abs(e);return r>=1/512?Math.sign(e)*Math.pow(r,1/1.8):16*e},gJ=({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=gJ,zg=(e=0)=>{let r=Math.abs(e);return r>=16/512?Math.sign(e)*Math.pow(r,1.8):e/16},yJ=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=yJ,mJ=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=mJ,U7=1.09929682680944,bJ=.018053968510807,Ng=e=>{let r=Math.abs(e);return r>bJ?(Math.sign(e)||1)*(U7*Math.pow(r,.45)-(U7-1)):4.5*e},xJ=({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=xJ,H7=1.09929682680944,_J=.018053968510807,qg=(e=0)=>{let r=Math.abs(e);return r<_J*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((r+H7-1)/H7,1/.45)},wJ=e=>{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=wJ,MJ=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=MJ,hs=.0037930732552754493,$w=Math.cbrt(hs),Bg=e=>Math.cbrt(e)-$w,TJ=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=TJ,Og=e=>Math.pow(e+$w,3),AJ=({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=AJ,kJ={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=kJ,SJ={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=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:"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=CJ,EJ=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=EJ,LJ={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=LJ,DJ=({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=DJ,RJ=({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=RJ,FJ={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=FJ,PJ=(e,r)=>Math.round(e*(r=Math.pow(10,r)))/r,IJ=(e=4)=>r=>typeof r=="number"?PJ(r,e):r,l8=IJ,bf=l8(2),_f=e=>Math.max(0,Math.min(1,e||0)),ds=e=>Math.round(_f(e)*255),L3=Ft("rgb"),zJ=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))})`},NJ=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)},qJ=e=>D3(L3(e)),BJ=e=>s8(L3(e)),OJ=e=>u8(L3(e)),UJ=e=>f8(zJ(e)),HJ={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},VJ=(e,r="normal",t="rgb")=>{let n=typeof r=="function"?r:HJ[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})})},GJ=VJ,YJ=([e,r])=>e+Math.random()*(r-e),XJ=e=>Object.keys(e).reduce((r,t)=>{let n=e[t];return r[t]=Array.isArray(n)?n:[n,n],r},{}),WJ=(e="rgb",r={})=>{let t=la(e),n=XJ(r);return t.channels.reduce((a,o)=>((n.alpha||o!=="alpha")&&(a[o]=YJ(n[o]||t.ranges[o])),a),{mode:e})},ZJ=WJ,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,JJ=(e=1,r=1,t=0)=>(n,a)=>a!=="alpha"?e*Math.pow(n,r)+t:n,$J=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=QJ,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))}),KJ(l);let s=a.channels.reduce((g,b)=>{let h;return cs(t)&&cs(t[b])&&t[b].fixup?h=t[b].fixup:cs(a.interpolate[b])&&a.interpolate[b].fixup?h=a.interpolate[b].fixup:h=_=>_,g[b]=h(i.map(_=>_[b])),g},{});if(n){let g=i.map((b,h)=>a.channels.reduce((_,T)=>(_[T]=s[T][h],_),{mode:r}));s=a.channels.reduce((b,h)=>(b[h]=g.map(_=>{let T=n(_[h],h,_,r);return isNaN(T)?void 0:T}),b),{})}let f=a.channels.reduce((g,b)=>{let h;return nh(t)?h=t:cs(t)&&nh(t[b])?h=t[b]:cs(t)&&cs(t[b])&&t[b].use?h=t[b].use:nh(a.interpolate[b])?h=a.interpolate[b]:cs(a.interpolate[b])&&(h=a.interpolate[b].use),g[b]=h(s[b]),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 b=0;for(;l[b]{let M=f[x](k);return M!==void 0&&(S[x]=M),S},{mode:r})}},jJ=(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},e$=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},r$=e=>y8(b8(e)),t$=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]}},n$=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)},a$=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)},i$=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)},o$=(e=1)=>e===1?r=>r:r=>Math.pow(r,e),x8=o$,l$=(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 u$(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 f$(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 c$(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,b=c.c,h=(s.c[1]-s.c[0])/4e3,_=l(c);for(;b-g>h;)c.c=(g+b)*.5,_=l(c),i(c)||t&&n>0&&t(c,_)<=n?g=c.c:b=c.c;return a(i(c)?c:_)}}var v$=(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]))},h$=v$,N3=e=>Math.max(e,0),q3=e=>Math.max(Math.min(e,1),0),d$=(e,r,t)=>e===void 0||r===void 0?void 0:e+t*(r-e),p$=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]},g$=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]},y$=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]},m$=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)},x$=(e=1,r="rgb")=>{let t=N3(e);return Ef(R3(t,(1-t)/2),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")=>Ah(y$(e),r,!0),T$=(e=1,r="rgb")=>{let t=q3(e);return Ef((n,a)=>a==="alpha"?n:d$(t,1-t,n),r,!0)},A$=(e=0,r="rgb")=>Ah(m$(e),r,!0),k$=Ft("rgb"),S$=[[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]],C$=[[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]],E$=[[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}=k$(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)}},L$=(e=1)=>B3(S$,e),D$=(e=1)=>B3(C$,e),R$=(e=1)=>B3(E$,e),F$=e=>e*e*(3-2*e),P$=e=>.5-Math.sin(Math.asin(1-2*e)/3),I$=e=>e*e*e*(e*(e*6-15)+10),z$=I$,N$=e=>(1-Math.cos(e*Math.PI))/2,q$=N$;function s3(e){let r=Ft("lrgb")(e);return .2126*r.r+.7152*r.g+.0722*r.b}function B$(e,r){let t=s3(e),n=s3(r);return(Math.max(t,n)+.05)/(Math.min(t,n)+.05)}var O$=Mt(nw),U$=Mt(sw),H$=Mt(hw),V$=Mt(dw),G$=Mt(yw),Y$=Mt(d3),X$=Mt(y3),W$=Mt(Aw),Z$=Mt(Cw),J$=Mt(Ew),$$=Mt(Lw),K$=Mt(wh),Q$=Mt(Rw),j$=Mt(Mh),eK=Mt(Pw),rK=Mt(Nw),tK=Mt(qw),nK=Mt(Bw),aK=Mt(Uw),iK=Mt(Hw),oK=Mt(Gw),lK=Mt(Xw),sK=Mt(Ww),uK=Mt(Zw),fK=Mt(Jw),cK=Mt(ps),vK=Mt(jw),hK=Mt(e8),dK=Mt(n8),pK=Mt(o8)});var O3={};Ht(O3,{default:()=>yK});var gK,yK,U3=Ut(()=>{"use strict";gK={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(" ")}},yK=gK});var ol=xe((lxe,D8)=>{"use strict";var{format:mK,width:bK,height:xK,scale:_K}=(U3(),or(O3)).default,S8=_K,{dflt:oxe}=S8,wK=$_(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:mK,filename:{valType:"string"},width:bK,height:xK,scale:wK},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((uxe,R8)=>{"use strict";var H3=lt(),MK=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;MK(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 no=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((vxe,H8)=>{"use strict";var{converter:P8,formatHex:TK,formatRgb:AK,wcagContrast:kK,wcagLuminance:SK}=k8(),{isArrayOrTypedArray:I8}=ba(),{warn:CK}=ll(),{background:Rf,defaultLine:Z3,defaults:EK,lightLine:LK}=no(),z8=P8("rgb"),DK=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,RK={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=>AK(q8(e)),FK=e=>TK(q8(e)),PK=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&&CK(`Invalid color specifier: ${PK(e)}. Defaulting to "#000"`),RK)},Df=e=>Na(Ot(wt({},Kt(e)),{alpha:1})),IK=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]),zK=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}},NK=(e,r)=>{let t=B8(e)?zK(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},qK=(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)})},BK=(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=DK(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)=>kK(Kt(e),Kt(r)),U8=e=>kh(e,Rf)>kh(e,Z3),OK=Na(Kt(Rf)),UK=Na(Kt(Z3)),HK=(e,r,t)=>(Kt(e).alpha!==1&&(e=O8(e,Rf)),U8(e)?r?W3(e,r):OK:t?W3(e,-t):UK),VK=(e,r)=>{e.style({stroke:Df(r),"stroke-opacity":Kt(r).alpha})},GK=(e,r)=>{e.style({fill:Df(r),"fill-opacity":Kt(r).alpha})},YK=(e,r)=>!!(e&&r&&Df(e)===Df(r)),XK=e=>N8(e)!==void 0,WK=(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)}))},ZK=(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})},JK=(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},$K=e=>Na(Kt(e)),KK=e=>FK(Kt(e)).toUpperCase(),QK=e=>{let r=Kt(e);return[sa(r.r)*255,sa(r.g)*255,sa(r.b)*255,sa(r.alpha)]},jK=([e,r,t,n])=>Na({mode:"rgb",r:e/255,g:r/255,b:t/255,alpha:n}),eQ=e=>{let r=Kt(e);return SK({mode:"rgb",r:sa(r.r),g:sa(r.g),b:sa(r.b)})};H8.exports={addOpacity:qK,adjustLightness:W3,background:Rf,brighten:WK,combine:O8,contrast:HK,defaultLine:Z3,defaults:EK,equals:YK,fill:GK,hexString:KK,interpolate:BK,isChannelArray:B8,isDark:U8,isValid:XK,lightLine:LK,luminosity:eQ,mix:ZK,mostReadable:JK,normalize:NK,opacity:IK,parse:Kt,rgb:Df,rgbaArray:QK,rgbaArrayToString:jK,rgbaString:$K,stroke:VK,wcagContrast:kh}});var bs=xe((dxe,Y8)=>{"use strict";var rQ=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 tQ(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;toQ,HIDE_PLACEHOLDER:()=>iQ,SHOW_PLACEHOLDER:()=>aQ});var aQ,iQ,oQ,Eh=Ut(()=>{"use strict";aQ=100,iQ=1e3,oQ=.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,lQ=Zn(),sQ=bs(),K3=Zr(),uQ=(Eh(),or(Ch)).DESELECTDIM,z0=Kv(),W8=(I0(),or(Ff)).counter,fQ=(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(sQ.get(e,t))}},angle:{coerceFunction:function(e,r,t){sl(e)&&(e=ul(e)),e==="auto"?r.set("auto"):$3(e)?r.set(fQ(+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((yxe,$8)=>{"use strict";$8.exports=function(r,t){if(t instanceof RegExp){for(var n=t.toString(),a=0;a{K8.exports=cQ;function cQ(){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((bxe,j8)=>{j8.exports=vQ;function vQ(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((xxe,r9)=>{r9.exports=hQ;function hQ(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((_xe,n9)=>{n9.exports=dQ;function dQ(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((wxe,a9)=>{a9.exports=pQ;function pQ(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((Mxe,o9)=>{o9.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],b=r[11],h=r[12],_=r[13],T=r[14],m=r[15],k=t*l-n*i,S=t*u-a*i,x=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-b*h,p=c*T-g*_,D=c*m-b*_,E=g*m-b*T,R=k*E-S*D+x*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-b*M)*R,e[4]=(u*A-i*E-s*v)*R,e[5]=(t*E-a*A+o*v)*R,e[6]=(T*x-h*w-m*S)*R,e[7]=(f*w-g*x+b*S)*R,e[8]=(i*D-l*A+s*y)*R,e[9]=(n*A-t*D-o*y)*R,e[10]=(h*d-_*x+m*k)*R,e[11]=(c*x-f*d-b*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((Txe,s9)=>{s9.exports=yQ;function yQ(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],b=r[11],h=r[12],_=r[13],T=r[14],m=r[15];return e[0]=l*(g*m-b*T)-c*(u*m-s*T)+_*(u*b-s*g),e[1]=-(n*(g*m-b*T)-c*(a*m-o*T)+_*(a*b-o*g)),e[2]=n*(u*m-s*T)-l*(a*m-o*T)+_*(a*s-o*u),e[3]=-(n*(u*b-s*g)-l*(a*b-o*g)+c*(a*s-o*u)),e[4]=-(i*(g*m-b*T)-f*(u*m-s*T)+h*(u*b-s*g)),e[5]=t*(g*m-b*T)-f*(a*m-o*T)+h*(a*b-o*g),e[6]=-(t*(u*m-s*T)-i*(a*m-o*T)+h*(a*s-o*u)),e[7]=t*(u*b-s*g)-i*(a*b-o*g)+f*(a*s-o*u),e[8]=i*(c*m-b*_)-f*(l*m-s*_)+h*(l*b-s*c),e[9]=-(t*(c*m-b*_)-f*(n*m-o*_)+h*(n*b-o*c)),e[10]=t*(l*m-s*_)-i*(n*m-o*_)+h*(n*s-o*l),e[11]=-(t*(l*b-s*c)-i*(n*b-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((Axe,f9)=>{f9.exports=mQ;function mQ(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],b=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,x=t*l-n*i,M=t*u-a*i,d=n*u-a*l,w=s*h-f*b,y=s*_-c*b,v=s*T-g*b,A=f*_-c*h,p=f*T-g*h,D=c*T-g*_;return m*D-k*p+S*A+x*v-M*y+d*w}});var h9=xe((kxe,v9)=>{v9.exports=bQ;function bQ(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],b=r[10],h=r[11],_=r[12],T=r[13],m=r[14],k=r[15],S=t[0],x=t[1],M=t[2],d=t[3];return e[0]=S*n+x*l+M*c+d*_,e[1]=S*a+x*u+M*g+d*T,e[2]=S*o+x*s+M*b+d*m,e[3]=S*i+x*f+M*h+d*k,S=t[4],x=t[5],M=t[6],d=t[7],e[4]=S*n+x*l+M*c+d*_,e[5]=S*a+x*u+M*g+d*T,e[6]=S*o+x*s+M*b+d*m,e[7]=S*i+x*f+M*h+d*k,S=t[8],x=t[9],M=t[10],d=t[11],e[8]=S*n+x*l+M*c+d*_,e[9]=S*a+x*u+M*g+d*T,e[10]=S*o+x*s+M*b+d*m,e[11]=S*i+x*f+M*h+d*k,S=t[12],x=t[13],M=t[14],d=t[15],e[12]=S*n+x*l+M*c+d*_,e[13]=S*a+x*u+M*g+d*T,e[14]=S*o+x*s+M*b+d*m,e[15]=S*i+x*f+M*h+d*k,e}});var p9=xe((Sxe,d9)=>{d9.exports=xQ;function xQ(e,r,t){var n=t[0],a=t[1],o=t[2],i,l,u,s,f,c,g,b,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],b=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]=b,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+b*a+m*o+r[15]),e}});var y9=xe((Cxe,g9)=>{g9.exports=_Q;function _Q(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((Exe,m9)=>{m9.exports=wQ;function wQ(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,b,h,_,T,m,k,S,x,M,d,w,y,v,A,p,D,E,R,I;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],b=r[2],h=r[3],_=r[4],T=r[5],m=r[6],k=r[7],S=r[8],x=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,I=i*i*f+s,e[0]=c*w+_*y+S*v,e[1]=g*w+T*y+x*v,e[2]=b*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+x*D,e[6]=b*A+m*p+M*D,e[7]=h*A+k*p+d*D,e[8]=c*E+_*R+S*I,e[9]=g*E+T*R+x*I,e[10]=b*E+m*R+M*I,e[11]=h*E+k*R+d*I,r!==e&&(e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15]),e)}});var _9=xe((Lxe,x9)=>{x9.exports=MQ;function MQ(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((Dxe,w9)=>{w9.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[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((Rxe,T9)=>{T9.exports=AQ;function AQ(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((Fxe,k9)=>{k9.exports=kQ;function kQ(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((Pxe,C9)=>{C9.exports=SQ;function SQ(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,b=a*u,h=a*s,_=o*s,T=i*l,m=i*u,k=i*s;return e[0]=1-(b+_),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+b),e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var D9=xe((Ixe,L9)=>{L9.exports=CQ;function CQ(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((zxe,R9)=>{R9.exports=EQ;function EQ(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((Nxe,P9)=>{P9.exports=LQ;function LQ(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((qxe,z9)=>{z9.exports=DQ;function DQ(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((Bxe,q9)=>{q9.exports=RQ;function RQ(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((Oxe,O9)=>{O9.exports=FQ;function FQ(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,b=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]=b+_,e[7]=0,e[8]=g+T,e[9]=b-_,e[10]=1-s-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var V9=xe((Uxe,H9)=>{H9.exports=PQ;function PQ(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((Hxe,G9)=>{G9.exports=IQ;function IQ(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((Vxe,X9)=>{X9.exports=zQ;function zQ(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((Gxe,Z9)=>{Z9.exports=NQ;function NQ(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((Yxe,$9)=>{var qQ=j3();$9.exports=BQ;function BQ(e,r,t,n){var a,o,i,l,u,s,f,c,g,b,h=r[0],_=r[1],T=r[2],m=n[0],k=n[1],S=n[2],x=t[0],M=t[1],d=t[2];return Math.abs(h-x)<1e-6&&Math.abs(_-M)<1e-6&&Math.abs(T-d)<1e-6?qQ(e):(f=h-x,c=_-M,g=T-d,b=1/Math.sqrt(f*f+c*c+g*g),f*=b,c*=b,g*=b,a=k*g-S*c,o=S*f-m*g,i=m*c-k*f,b=Math.sqrt(a*a+o*o+i*i),b?(b=1/b,a*=b,o*=b,i*=b):(a=0,o=0,i=0),l=c*i-g*o,u=g*a-f*i,s=f*o-c*a,b=Math.sqrt(l*l+u*u+s*s),b?(b=1/b,l*=b,u*=b,s*=b):(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((Xxe,Q9)=>{Q9.exports=OQ;function OQ(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((Wxe,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 UQ=ey();on.init2dArray=function(e,r){for(var t=new Array(e),n=0;n{"use strict";var HQ=lt(),rM=ll(),VQ=Rh(),GQ=ey();function YQ(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 XQ(e){var r=HQ.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 WQ(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 ZQ(e){var r="plotly.js-style-"+e,t=document.getElementById(r);t&&tM(t)}function JQ(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 $Q(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=VQ.convertCssMatrix(a);t=GQ.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=[];KQ(e);)r.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return r}function KQ(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function QQ(e,r){return e&&r&&e.top===r.top&&e.left===r.left&&e.right===r.right&&e.bottom===r.bottom}oM.exports={getGraphDiv:YQ,isPlotDiv:XQ,removeElement:tM,addStyleRule:WQ,addRelatedStyleRule:nM,deleteRelatedStyleRule:ZQ,setStyleOnHover:JQ,getFullTransformMatrix:$Q,getElementTransformMatrix:aM,getElementAndAncestors:iM,equalDomRects:QQ}});var If=xe(($xe,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((Kxe,dM)=>{"use strict";var uM=Rt().extendFlat,jQ=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"]},ej=fM.flags.slice().concat(["fullReplot"]),rj=cM.flags.slice().concat("layoutReplot");dM.exports={traces:fM,layout:cM,traceFlags:function(){return sM(ej)},layoutFlags:function(){return sM(rj)},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:()=>nj,FORMAT_LINK:()=>tj});var tj,nj,ny=Ut(()=>{"use strict";tj="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",nj="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Si=xe(N0=>{"use strict";var{DATE_FORMAT_LINK:aj,FORMAT_LINK:ij}=(ny(),or(ty)),oj=["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 lj({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}".`,ij,"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}".`,aj,"for details on the date formatting syntax.",oj].join(" ")}N0.templateFormatStringDescription=lj;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((r4e,xM)=>{"use strict";function cl(e,r){return r?r.d2l(e):e}function pM(e,r){return r?r.l2d(e):e}function sj(e){return e.x0}function uj(e){return e.x1}function fj(e){return e.y0}function cj(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 vj(e,r){return Math.abs(Fh(e,r))}function hj(e,r,t){return Math.abs(Ph(e,r,t))}function dj(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 pj(e,r){return pM((cl(e.x1,r)+yM(e)+cl(e.x0,r)+gM(e))/2,r)}function gj(e,r,t){return pM((cl(e.y1,t)+bM(e)+cl(e.y0,t)+mM(e))/2,t)}function yj(e,r,t){return e.type!=="line"?void 0:Ph(e,r,t)/Fh(e,r)}var mj=["x0","x1","y0","y1","dy","height","ycenter"],bj=["x0","x1","y0","y1","dx","width","xcenter"];xM.exports={x0:sj,x1:uj,y0:fj,y1:cj,slope:yj,dx:Fh,dy:Ph,width:vj,height:hj,length:dj,xcenter:pj,ycenter:gj,simpleXVariables:mj,simpleYVariables:bj}});var MM=xe((t4e,wM)=>{"use strict";var xj=ua().overrideAll,_s=Zn(),_M=Wn(),_j=fl().dash,vl=Rt().extendFlat,{shapeTexttemplateAttrs:wj,templatefallbackAttrs:Mj}=Si(),Tj=Ih();wM.exports=xj({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({},_j,{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:wj({newshape:!0},{keys:Object.keys(Tj)}),texttemplatefallback:Mj({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((n4e,TM)=>{"use strict";var Aj=fl().dash,kj=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:kj({},Aj,{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((a4e,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((i4e,LM)=>{"use strict";var ay=Wn(),Sj=If(),Nh=no(),SM=MM(),CM=AM(),Cj=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(Cj({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({},Sj.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(),s4e=Pf().addStyleRule,PM=Rt(),Ej=Zn(),Lj=q0(),Dj=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 zj=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,Nj=/^\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,qj=/^\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=Bj(e,!!r);if(r<2)return t;var n=ln.dateTime2ms(t,e);return n+=Ca*(r-1),ln.ms2DateTime(n,0,e)};function Bj(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?qj:Nj);if(!u)return ri;var s=u[1],f=u[3]||"1",c=Number(u[5]||1),g=Number(u[7]||0),b=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+b*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,b));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(b){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=zj("%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 Oj=/%\d?f/g,Uj=/%h/g,Hj={1:"1",2:"1",3:"2",4:"2"};function VM(e,r,t,n){e=e.replace(Oj,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(Uj,function(){return Hj[t("%q")(a)]}),Ro(n))try{e=Do.getComponentMethod("calendars","worldCalFmt")(e,r,n)}catch(o){return"Invalid"}return t(e)(a)}var Vj=[59,59.9,59.99,59.999,59.9999];function Gj(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),Vj[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 Gj(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 Yj=ut(),Xj=ll(),Wj=sy(),Zj=(wn(),or(Rn)).BADNUM,uy=1e-9;Fo.findBin=function(e,r,t){if(Yj(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?Jj:$j:u=t?Qj:Kj,e+=i*uy*(t?-1:1)*(i>=0?1:-1);n90&&Xj.log("Long binary search..."),n-1};function Jj(e,r){return er}function Qj(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]===Zj;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||Wj;for(var t=1/0,n,a=0;aeee});function jj(e){return Object.keys(e).sort()}var eee,Vh=Ut(()=>{"use strict";eee=jj});var JM=xe(sn=>{"use strict";var qf=ut(),ree=ba().isArrayOrTypedArray;sn.aggNums=function(e,r,t,n){var a,o;if((!n||n>t.length)&&(n=t.length),qf(r)||(r=!1),ree(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((d4e,jM)=>{"use strict";var $M=(A0(),or(T0)),cy=$M.mod,tee=$M.modHalf,Bf=Math.PI,pl=2*Bf;function nee(e){return e/180*Bf}function aee(e){return e/Bf*180}function vy(e){return Math.abs(e[1]-e[0])>pl-1e-14}function KM(e,r){return tee(r-e,pl)}function iee(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 oee(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,b=l-o,h=u*b-f*c;if(h===0)return null;var _=(s*b-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,b=s*s+f*f,h=c*c+g*g,_=Math.min(Gh(s,f,b,o-r,i-t),Gh(s,f,b,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 b(_){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=b(u);h;){if(u+=h+n,u>f)return;h=b(u)}for(h=b(f);h;){if(f-=h+n,u>f)return;h=b(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,b,h;s0?c=g:f=g,s++}return b}});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((m4e,oT)=>{"use strict";oT.exports=function(r){r._clearResponsive&&(r._clearResponsive(),delete r._clearResponsive)}});var sT=xe((b4e,Wh)=>{"use strict";Wh.exports=gy;Wh.exports.isMobile=gy;Wh.exports.default=gy;var fee=/(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,cee=/CrOS/,vee=/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=fee.test(r)&&!cee.test(r)||!!e.tablet&&vee.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((x4e,uT)=>{"use strict";var hee=ut(),dee=sT();uT.exports=function(r){var t;if(r&&r.hasOwnProperty("userAgent")?t=r.userAgent:t=pee(),typeof t!="string")return!0;var n=dee({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(hee(s)&&(s=+s),s>=13)return!0}}}return n};function pee(){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((_4e,cT)=>{"use strict";var gee=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]=gee.select(this)}),a}});var dT=xe((w4e,hT)=>{"use strict";var yee=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=yee.localeRegistry}var s=n.split("-")[0];if(s===n)break;n=s}return t}});var gT=xe((M4e,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=xee(r)?bee:mee,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:()=>Mee});function wee(e){return typeof e=="string"&&(e=e.replace(_ee,"")),(0,_T.default)(e)?Number(e):void 0}var _T,_ee,Mee,MT=Ut(()=>{"use strict";_T=Q_(ut());wn();_ee=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Mee=wee});var kT=xe((S4e,AT)=>{"use strict";var Tee=/<[^>]*>/g,Aee=/[\p{S}\p{P}]/gu,kee=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,See=/�/g,Cee=/\s+/g,Zh="-",TT=Zh.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Eee=new RegExp(TT+"{3,}","g"),Lee=new RegExp(TT+"$","g"),Dee=60;function Ree(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}AT.exports=function(r,t=Dee){var n=Ree(r!=null?r:"").replace(See,"").replace(Tee," ").replace(Aee,a=>a===Zh?a:"").toLowerCase().trim().replace(Cee,Zh).replace(kee,"").replace(Eee,Zh);return n.length<=t?n:Array.from(n).slice(0,t).join("").replace(Lee,"")}});var tr=xe((C4e,qT)=>{"use strict";var Uf=lt(),Fee=w0().utcFormat,Pee=fg().format,RT=ut(),FT=(wn(),or(Rn)),PT=FT.FP_SAFE,Iee=-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=Pee(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 ao=eT();Oe.deg2rad=ao.deg2rad;Oe.rad2deg=ao.rad2deg;Oe.angleDelta=ao.angleDelta;Oe.angleDist=ao.angleDist;Oe.isFullCircle=ao.isFullCircle;Oe.isAngleInsideSector=ao.isAngleInsideSector;Oe.isPtInsideSector=ao.isPtInsideSector;Oe.pathArc=ao.pathArc;Oe.pathSector=ao.pathSector;Oe.pathAnnulus=ao.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 zee=(I0(),or(Ff));Oe.counterRegex=zee.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;aBee.test(window.navigator.userAgent);var Oee=/Firefox\/(\d+)\.\d+/;Oe.getFirefoxVersion=function(){var e=Oee.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 Vee={max:10,count:0,name:"hovertemplate"};Oe.hovertemplateString=e=>by(Ot(wt({},e),{opts:Vee}));var Gee={max:10,count:0,name:"texttemplate"};Oe.texttemplateString=e=>by(Ot(wt({},e),{opts:Gee}));var Yee=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Xee(e){var r=e.match(Yee);return r?{key:r[1],op:r[2],number:Number(r[3])}:{key:e,op:null,number:null}}var Wee={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Oe.texttemplateStringForShapes=e=>by(Ot(wt({},e),{opts:Wee}));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),b=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=Xee(l);l=T.key,h=T.op,_=T.number}let m;if(b){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(),Zee=DT!==null&&DT<86;Oe.getPositionFromD3Event=function(){return Zee?[Uf.event.layerX,Uf.event.layerY]:[Uf.event.offsetX,Uf.event.offsetY]}});var UT=xe(()=>{"use strict";var Jee=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"),Jee.addStyleRule(OT,BT[xy]);var OT,xy});var _y=xe((R4e,HT)=>{HT.exports=!0});var My=xe((F4e,VT)=>{"use strict";var $ee=_y(),wy;typeof window.matchMedia=="function"?wy=!window.matchMedia("(hover: none)").matches:wy=$ee;VT.exports=wy});var e1=xe((P4e,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 Kee(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=rre;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,Kee(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 Qee(){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=Qee.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():jee(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?ere(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,nre={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(),are=ol().dfltConfig;function ire(e,r){for(var t=[],n,a=0;aare.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(),ore=ky(),lre=If(),sre=ol().configAttributes,iA=ua(),Li=Vf.extendDeepAll,X0=Vf.isPlainObject,ure=Vf.isArrayOrTypedArray,n1=Vf.nestedProperty,fre=Vf.valObjectMeta,Cy="_isSubplotObj",a1="_isLinkedToArray",cre="_arrayAttrRegexps",lA="_deprecated",Ey=[Cy,a1,cre,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]=hre(r)}),{defs:{valObjects:fre,metaKeys:Ey.concat(["description","role","editType","impliedEdits"]),editType:{traces:iA.traces,layout:iA.layout},impliedEdits:{}},traces:e,layout:dre(),frames:pre(),animation:W0(lre),config:W0(sre)}};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)ure(c)&&r.push(o+g);else if(n[s]){if(Array.isArray(c))for(var b=0;b=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 hre(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 dre(){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(),xre=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,{},xre,"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(b,h){l[b]=h}function f(b,h){o?J0.nestedProperty(l[i],b).set(h):l[i+"."+b]=h}function c(){var b=l;return u(),b}function g(b,h){b&&f(b,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:()=>Are,AX_NAME_PATTERN:()=>kre,DFLTRANGEX:()=>Pre,DFLTRANGEY:()=>Ire,DRAGGERSIZE:()=>Rre,HOUR_PATTERN:()=>Cre,MINDRAG:()=>Lre,MINZOOM:()=>Dre,REDRAWDELAY:()=>Fre,SUBPLOT_PATTERN:()=>Sre,WEEKDAY_PATTERN:()=>Ere,attrRegex:()=>wre,clipOnAxisFalseQuery:()=>Nre,idRegex:()=>_re,layerValue2layerClass:()=>qre,traceLayerClasses:()=>zre,xAxisMatch:()=>Mre,yAxisMatch:()=>Tre,zindexSeparator:()=>Bre});var _re,wre,Mre,Tre,Are,kre,Sre,Cre,Ere,Lre,Dre,Rre,Fre,Pre,Ire,zre,Nre,qre,Bre,kn=Ut(()=>{"use strict";I0();_re={x:xs("x","( domain)?"),y:xs("y","( domain)?")},wre=xs("[xy]axis"),Mre=xs("xaxis"),Tre=xs("yaxis"),Are=/^[xyz][0-9]*( domain)?$/,kre=/^[xyz]axis[0-9]*$/,Sre=/^x([0-9]*)y([0-9]*)$/,Cre="hour",Ere="day of week",Lre=8,Dre=20,Rre=20,Fre=50,Pre=[-1,6],Ire=[-1,4],zre=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],Nre=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],qre={"above traces":"above","below traces":"below"},Bre="z"});var mn=xe(Ea=>{"use strict";var Ore=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 Ure(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".outline-controllers").remove()}function Hre(e){var r=e._fullLayout._zoomlayer;r&&r.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}vA.exports={clearOutlineControllers:Ure,clearOutline:Hre}});var i1=xe((V4e,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(),G4e=(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 Vre=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((Z4e,SA)=>{"use strict";var W4e=lt(),Yre=w0().timeFormatLocale,Xre=fg().formatLocale,Yf=ut(),Wre=vg(),Zre=uf().version,ft=Cr(),Jre=Z0(),$re=Tt(),mr=tr(),Kre=Zr(),mA=(wn(),or(Rn)).BADNUM,La=mn(),Qre=xl().clearOutline,jre=i1(),Fy=If(),ete=ky(),rte=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=Zre;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 tte=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],nte=["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,tte);if(n._initialAutoSizeIsDone){var b=n.width,h=n.height;fr.supplyLayoutGlobalDefaults(o,a,g),o.width||(a.width=b),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=ote(g,a.separators),a._extraFormat=xA(e,nte),a._initialAutoSizeIsDone=!0,a._dataLength=u.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var S=a._subplots=ite(),x=a._splomAxes={x:{},y:{}},M=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=ate(i,u),fr.supplyDataDefaults(u,l,o,a);var d=Object.keys(x.x),w=Object.keys(x.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,I=E;R&&!I?n._bgLayer.remove():I&&!R&&(a._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&Qre({_fullLayout:n}),lte(l,a),bA(a,n),ft.getComponentMethod("colorscale","crossTraceDefaults")(l,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var z=a._tracePreGUI,F={},L;for(L in z)F[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||b)&&(b&&(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,x=t.yt!==void 0?t.yt:t.y,M=t.yb!==void 0?t.yb:t.y;b[r]={l:{val:k,size:t.l+_},r:{val:S,size:t.r+_},b:{val:M,size:t.b+_},t:{val:x,size:t.t+_}},h[r]=1}if(!n._replotting)return fr.doAutoMargin(e)}};function ute(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,b=r._pushmarginIds,h=r.minreducedwidth,_=r.minreducedheight;if(o.autoexpand!==!1){for(var T in g)b[T]||delete g[T];var m=e._fullLayout._reservedMargin;for(var k in m)for(var S in m[k]){var x=m[k][S];i[S]=Math.max(i[S],x)}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,I=p.size,z=t-i.r-i.l,F=n-i.t-i.b;for(var L in g){if(Yf(E)&&g[L].r){var P=g[L].r.val,B=g[L].r.size;if(P>D){var O=(E*P+(B-z)*D)/(P-D),G=(B*(1-D)+(E-z)*(1-P))/(P-D);O+G>u+s&&(u=O,s=G)}}if(Yf(I)&&g[L].t){var J=g[L].t.val,j=g[L].t.size;if(J>R){var V=(I*J+(j-F)*R)/(J-R),q=(j*(1-R)+(I-F)*(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)||ute(e))){"_redrawFromAutoMarginCount"in r?r._redrawFromAutoMarginCount++:r._redrawFromAutoMarginCount=1;var ue=3*(1+Object.keys(b).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 b={};return Object.keys(c).sort().forEach(function(m){if(["_","["].indexOf(m.charAt(0))===-1){if(typeof c[m]=="function"){g&&(b[m]="_function");return}b[m]=u(c[m],g)}}),b}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)?Wre.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,b=0;function h(){return g++,function(){b++,!n&&b===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:()=>pte,xlink:()=>EA,xmlns:()=>dte});var dte,CA,EA,pte,wl=Ut(()=>{"use strict";dte="http://www.w3.org/2000/xmlns/",CA="http://www.w3.org/2000/svg",EA="http://www.w3.org/1999/xlink",pte={xmlns:CA,"xmlns:xlink":EA}});var $n={};Ht($n,{CAP_SHIFT:()=>xte,FROM_BL:()=>gte,FROM_BR:()=>mte,FROM_TL:()=>yte,LINE_SPACING:()=>bte,MID_SHIFT:()=>_te,OPPOSITE_SIDE:()=>wte});var gte,yte,mte,bte,xte,_te,wte,Kn=Ut(()=>{"use strict";gte={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},yte={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},mte={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},bte=1.3,xte=.7,_te=.35,wte={left:"right",right:"left",top:"bottom",bottom:"top"}});var Qn=xe(fa=>{"use strict";var jt=lt(),ni=tr(),Mte=ni.strTranslate,Py=(wl(),or(_l)),Tte=(Kn(),or($n)).LINE_SPACING,Ate=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,Ny=e=>e?e.match(Ate):null;fa.matchTex=Ny;var kte=e=>{var r=Ny(e);return!!r&&!r[1]&&!r[3]};fa.isPureTex=kte;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,b=l===void 0?c:l;(f>g||c>b)&&(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,_]+")"+Mte(-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 Ste(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&&!Dte()&&(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=Ute(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");Rte(a[2],f,function(g,b,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()),Ste(_),b&&b.node()&&_.node().insertBefore(b.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",x=_.select("g");x.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 Cte=/(<|<|<)/g,Ete=/(>|>|>)/g;function Lte(e){return e.replace(Cte,"\\lt ").replace(Ete,"\\gt ")}var Iy=null,zA=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,LA=!1,DA=!1;function Dte(){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 Rte(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=Lte(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"},Fte={sub:"0.3em",sup:"-0.6em"},Pte={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,Ite=//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,zte=/(^|[\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 Nte=/(^|;)\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 qte={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Bte=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function f1(e){return e.replace(Bte,function(r,t){var n;return t.charAt(0)==="#"?n=Ote(t.charAt(1)==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10)):n=qte[t],n||r})}fa.convertEntities=f1;function Ote(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 Ute(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*Tte+"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=Ite.test(r);f?i():(a=e,n=[{node:e}]);for(var c=r.split(qy),g=0;g{"use strict";var Hte=lt(),Wf=ut(),c1=tr(),Es=Zr(),Vte=bs().isValid;function Gte(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)),Xte=ZA.FORMAT_LINK,Wte=ZA.DATE_FORMAT_LINK;function Zte(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: "+Xte+"."].join(" ")}function JA(e,r){return Uy(e,r)+[" And for dates see: "+Wte+".","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:Zte,descriptionOnlyNumbers:Uy,descriptionWithDates:JA}});var ai=xe((j4e,hk)=>{"use strict";var KA=Wn(),K0=no(),vk=fl().dash,Vy=Rt().extendFlat,QA=Tt().templatedArray,Q4e=Si().templateFormatStringDescription,jA=No().descriptionWithDates,Jte=(wn(),or(Rn)).ONEDAY,oo=(kn(),or(An)),$te=oo.HOUR_PATTERN,Kte=oo.WEEKDAY_PATTERN,Hy={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Qte=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:[oo.idRegex.x.toString(),oo.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:[oo.idRegex.x.toString(),oo.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:[Kte,$te,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:Jte},editType:"calc"}),tickmode:Qte,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",oo.idRegex.x.toString(),oo.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",oo.idRegex.x.toString(),oo.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"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},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((e6e,pk)=>{"use strict";var It=ai(),dk=Wn(),Gy=Rt().extendFlat,jte=ua().overrideAll;pk.exports=jte({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((t6e,yk)=>{"use strict";var ene=v1(),rne=(I0(),or(Ff)).counter,tne=(Vh(),or(Hh)).default,gk=bs().scales,r6e=tne(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.":"",b=n+"auto",h=n+"min",_=n+"max",T=n+"mid",m=h1(s+b),k=h1(s+h),S=h1(s+_),x=k+" and "+S,M={};M[h]=M[_]=void 0;var d={};d[b]=!1;var w={};return f==="color"&&(w.color={valType:"color",arrayOk:!0,editType:u||"style"},t.anim&&(w.color.anim=!0)),w[b]={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=ene),t.noColorAxis||(w.coloraxis={valType:"subplotid",regex:rne("coloraxis"),dflt:null,editType:"calc"}),w}});var Xy=xe((n6e,mk)=>{"use strict";var nne=Rt().extendFlat,ane=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:nne({_isSubplotObj:!0,editType:"calc"},ane("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var Wy=xe((a6e,bk)=>{"use strict";var ine=tr();bk.exports=function(r){return ine.isPlainObject(r.colorbar)}});var $y=xe(Jy=>{"use strict";var Zy=ut(),xk=tr(),_k=(wn(),or(Rn)),one=_k.ONEDAY,lne=_k.ONEWEEK;Jy.dtick=function(e,r){var t=r==="log",n=r==="date",a=r==="category",o=n?one: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%lne===0?1:0));if(!(n==="D1"||n==="D2"))return Zy(e)?Number(e):0}});var Ky=xe((o6e,Mk)=>{"use strict";var wk=$y(),sne=tr().isArrayOrTypedArray,une=ba().isTypedArraySpec,fne=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(x){var M=l[x];return une(M)&&(M=fne(M)),M!==void 0?M:(u._template||{})[x]}var c=f("tick0"),g=f("dtick"),b=f("tickvals"),h=f("overlaying"),_=a==="category"||a==="multicategory",T;sne(b)?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((l6e,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),b=n(s+"ticks",!o&&a.outerTicks||f||c||g?"outside":"");b||(delete l.ticklen,delete l.tickwidth,delete l.tickcolor)}});var em=xe((s6e,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((u6e,Sk)=>{"use strict";var d1=tr(),cne=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=cne.arrayTemplater(t,a,o),f,c;for(f=0;f{"use strict";var rm=tr(),vne=Zr().contrast,Ck=ai(),hne=em(),dne=Ri();Ek.exports=function(r,t,n,a,o){o||(o={});var i=n("labelalias");rm.isPlainObject(i)||delete t.labelalias;var l=hne(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?vne(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 b=n("tickangle");!o.noAutotickangles&&b==="auto"&&n("autotickangles")}if(a!=="category"){var h=n("tickformat");dne(r,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:pne}),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 pne(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((c6e,Lk)=>{"use strict";var gne=em();Lk.exports=function(r,t,n,a,o){o||(o={});var i=o.tickSuffixDflt,l=gne(r),u=n("tickprefix");u&&n("showtickprefix",l);var s=n("ticksuffix",i);s&&n("showticksuffix",l)}});var am=xe((v6e,Dk)=>{"use strict";var Ml=tr(),yne=Tt(),mne=Ky(),bne=jy(),xne=tm(),_ne=nm(),wne=v1();Dk.exports=function(r,t,n){var a=yne.newContainer(t,"colorbar"),o=r.colorbar||{};function i(p,D){return Ml.coerce(o,a,wne,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 b=i("lenmode");i("len",b==="fraction"?1:c?s:u);var h=i("yref"),_=i("xref"),T=h==="paper",m=_==="paper",k,S,x,M="left";c?(x="middle",M=m?"left":"right",k=m?1.02:1,S=.5):(x=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",x),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"),mne(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"),_ne(o,a,i,"linear",y),xne(o,a,i,"linear",y),bne(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 lo=xe((h6e,Pk)=>{"use strict";var Rk=ut(),om=tr(),Mne=Wy(),Tne=am(),Fk=bs().isValid,Ane=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 b=n._colorAxes||{},h=a(i+"coloraxis");if(h){var _=Ane(t,"contour")&&om.nestedProperty(t,"contours.coloring").get()||"heatmap",T=b[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(" ")))):b[h]=[_,t,[g]];return}}var m=s[l+"min"],k=s[l+"max"],S=Rk(m)&&Rk(k)&&m{"use strict";var Ik=tr(),kne=Tt(),zk=Xy(),Sne=lo();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=kne.newContainer(t,u,"coloraxis"),i._name=u,Sne(o,i,t,l,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var Cne=tr(),Ene=io().hasColorscale,Lne=io().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?Cne.nestedProperty(f,c.container).get():f;if(g)if(g.coloraxis)g._colorAx=t[g.coloraxis];else{var b=Lne(g),h=b.auto;(h||b.min===void 0)&&n(g,c.min),(h||b.max===void 0)&&n(g,c.max),b.autocolorscale&&n(g,"colorscale")}}for(var o=0;o{"use strict";var Uk=ut(),lm=tr(),Dne=io().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=Dne(l),s=u.auto!==!1,f=u.min,c=u.max,g=u.mid,b=function(){return lm.aggNums(Math.min,null,o)},h=function(){return lm.aggNums(Math.max,null,o)};if(f===void 0?f=b():s&&(l._colorAx&&Uk(f)?f=Math.min(f,b()):f=b()),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 so=xe((y6e,Vk)=>{"use strict";var p1=bs(),Q0=io();Vk.exports={moduleType:"component",name:"colorscale",attributes:Di(),layoutAttributes:Xy(),supplyLayoutDefaults:qk(),handleDefaults:lo(),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((m6e,Yk)=>{"use strict";var Gk=tr(),Rne=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)||Rne(r.size))}}});var sm=xe((b6e,Xk)=>{"use strict";var Fne=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 Fne(u)&&u>0?Math.max(u,o):0}}});var uo=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},Nne=/([astvzqmhlc])([^astvzqmhlc]*)/gi,qne=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function Bne(e){let r=[];return e.replace(Nne,(t,n,a)=>{let o=n.toLowerCase(),i=n,l=One(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 Une=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),x=m[0],M=m[1]+(r||0);return[x*k-M*S,x*S+M*k]}for(var a=e/180*cm,o=0,i=0,l=Une(t),u="",s=0;s{"use strict";var Cn=lt(),xt=tr(),Hne=xt.numberFormat,kl=ut(),y1=Cr(),bn=Zr(),Vne=so(),$f=xt.strTranslate,m1=Qn(),Gne=(wl(),or(_l)),Yne=(Kn(),or($n)),Xne=Yne.LINE_SPACING,vS=(Eh(),or(Ch)).DESELECTDIM,Wne=Da(),Zne=sm(),Jne=uo().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(Kne(f))),u&&e.style("text-shadow",u==="auto"?m1.makeTextShadow(bn.contrast(o)):dm(u)),s&&e.style("text-decoration-line",dm(Qne(s)))};function dm(e){return e==="none"?void 0:e}var $ne={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function Kne(e){return $ne[e]}function Qne(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),b=r.uid;ur.pattern(e,"point",t,b,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 jne=ur.symbolNames.length,eae="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>=jne||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?eae:"")}var aS=Hne("~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),b=0;b=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,b,h,_;if(e.so)_=l.outlierwidth,h=l.outliercolor,b=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)&&(b=bn.defaultLine,g=!0),"mc"in e?b=e.mcc=n.markerScale(e.mc):b=i.color||i.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(b=n.selectedColorFn(e))}let m=e.mld||(l||{}).dash;if(m&&ur.dashLine(r,m,_),e.om)r.call(bn.stroke,b).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 x=i.pattern,M=ur.getPatternAttr,d=x&&(M(x.shape,e.i,"")||M(x.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,b]],"fill")}else if(d){var v=!1,A=x.fgcolor;!A&&o&&o.color&&(A=o.color,v=!0);var p=M(A,e.i,o&&o.color||null),D=M(x.bgcolor,e.i,null),E=x.fgopacity,R=M(x.size,e.i,8),I=M(x.solidity,e.i,.3);v=v||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 z=t.uid;v&&(z+="-"+e.i),ur.pattern(r,"point",a,z,d,R,I,e.mcc,x.fillmode,D,p,E)}else xt.isArrayOrTypedArray(b)?bn.fill(r,b[e.i]):bn.fill(r,b);_&&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=Wne.isBubble(e)?Zne(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(x){var M=x.mo===void 0?a.opacity:x.mo;return x.selected?f?u:M:c?s:vS*M});var g=a.color,b=o.color,h=i.color;(b||h)&&(r.selectedColorFn=function(x){var M=x.mcc||g;return x.selected?b||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(x){var M=x.mrc||_/2;return x.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={};Jne(g,r,l.i),s=xt.texttemplateString({data:[g,l,r._meta],fallback:r.texttemplatefallback,labels:c,locale:i._d3locale,template:s})}var b=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,b,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||x>=f&&x<=u)&&(M<=c&&M>=s||M>=c&&M<=s)&&(e=[x,M])}return e}ur.applyBackoff=_S;ur.makeTester=function(){var e=xt.ensureSingleById(Cn.select("body"),"svg","js-plotly-tester",function(t){t.attr(Gne.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,nae=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 b={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>=nae&&(ur.savedBBoxes={},gm=0),t&&(ur.savedBBoxes[t]=b),gm++,xt.extendFlat({},b)};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 aae=/\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(aae,"");a+=n,a=a.trim(),this.setAttribute("transform",a)})}};var iae=/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(iae);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]),b=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,x=k-T,M=Ls(S)*eu(x),d=eu(S)*Ls(m)-Ls(S)*eu(m)*Ls(x);_=-Jf(M,d)-Math.PI,sS=s,uS=f}var w=lS(b,[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((T6e,kS)=>{"use strict";var ru=lt(),oae=ut(),lae=Sn(),wm=Cr(),Fs=tr(),MS=Fs.strTranslate,b1=At(),x1=Zr(),tu=Qn(),TS=(Eh(),or(Ch)),sae=(Kn(),or($n)).OPPOSITE_SIDE,AS=/ [XY][0-9]* /,Mm=1.6,Tm=1.6;function uae(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,b=a.title,h=(b&&b.text?b.text:"").trim(),_=!1,T=b&&b.font?b.font:{},m=T.family,k=T.size,S=T.color,x=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(),I=!1,z=1,F=E.font,L=F.family,P=F.size,B=F.color,O=F.weight,G=F.style,J=F.variant,j=F.textcase,V=F.lineposition,q=F.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,I=!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*P;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:x,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*P:de.y+de.height+Tm*P,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(P,2),family:L,weight:O,style:G,variant:J,textcase:j,shadow:q,lineposition:V}).attr(Se).call(tu.convertToTspans,e)}return lae.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=sae[u.side],ye=u.side==="left"||u.side==="top"?-1:1,oe=oae(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*P;ue.attr("y",Ee)}R?ue.on(".opacity",null):(ke(ue,D),I=!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",I),c}kS.exports={draw:uae,SUBTITLE_PADDING_EM:Tm,SUBTITLE_PADDING_MATHJAX_EM:Mm}});var C1=xe((A6e,DS)=>{"use strict";var fae=lt(),cae=w0().utcFormat,kt=tr(),vae=kt.numberFormat,fo=ut(),Sl=kt.cleanNumber,hae=kt.ms2DateTime,SS=kt.dateTime2ms,co=kt.ensureNumber,CS=kt.isArrayOrTypedArray,Cl=(wn(),or(Rn)),_1=Cl.FP_SAFE,Fi=Cl.BADNUM,dae=Cl.LOG_CLIP,pae=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}var gae=2;function yae(e,r){if(e<=0)return 0;let t=Math.max(0,r-gae);return e>t?t/e:1}DS.exports=function(r,t){t=t||{};var n=r._id||"x",a=n.charAt(0);function o(x,M){if(x>0)return Math.log(x)/Math.LN10;if(x<=0&&M&&r.range&&r.range.length===2){var d=r.range[0],w=r.range[1];return .5*(d+w-2*dae*Math.abs(d-w))}else return Fi}function i(x,M,d,w){if((w||{}).msUTC&&fo(x))return+x;var y=SS(x,d||r.calendar);if(y===Fi)if(fo(x)){x=+x;var v=Math.floor(kt.mod(x+.05,1)*10),A=Math.round(x-v/10);y=SS(new Date(A))+v/10}else return Fi;return y}function l(x,M,d){return hae(x,M,d||r.calendar)}function u(x){return r._categories[Math.round(x)]}function s(x){if(Am(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 Fi}function f(x,M){for(var d=new Array(M),w=0;wr.range[1]&&(d=!d);for(var w=d?-1:1,y=w*x,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(x,r._m2,E):0},m=function(x){var M=r._rangebreaks.length;if(!M)return _(x,r._m,r._b);for(var d=0,w=0;wr._rangebreaks[w].pmax&&(d=w+1);return _(x,r._m2,r._B[d])}}r.c2l=r.type==="log"?o:co,r.l2c=r.type==="log"?Qf:co,r.l2p=T,r.p2l=m,r.c2p=r.type==="log"?function(x,M){return T(o(x,M))}:T,r.p2c=r.type==="log"?function(x){return Qf(m(x))}: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=co,r.d2p=r.r2p=function(x){return r.l2p(Sl(x))},r.p2d=r.p2r=m,r.cleanPos=co):r.type==="log"?(r.d2r=r.d2l=function(x,M){return o(Sl(x),M)},r.r2d=r.r2c=function(x){return Qf(Sl(x))},r.d2c=r.r2l=Sl,r.c2d=r.l2r=co,r.c2r=o,r.l2d=Qf,r.d2p=function(x,M){return r.l2p(r.d2r(x,M))},r.p2d=function(x){return Qf(m(x))},r.r2p=function(x){return r.l2p(Sl(x))},r.p2r=m,r.cleanPos=co):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(x,M,d){return r.l2p(i(x,0,d))},r.p2d=r.p2r=function(x,M,d){return l(m(x),M,d)},r.cleanPos=function(x){return kt.cleanDate(x,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(x){var M=b(x);return M!==void 0?M:r.fraction2r(.5)},r.l2r=r.c2r=co,r.r2l=b,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(m(x))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(x){return typeof x=="string"&&x!==""?x:co(x)}):r.type==="multicategory"&&(r.r2d=r.c2d=r.l2d=u,r.d2r=r.d2l_noadd=g,r.r2c=function(x){var M=g(x);return M!==void 0?M:r.fraction2r(.5)},r.r2c_just_indices=c,r.l2r=r.c2r=co,r.r2l=g,r.d2p=function(x){return r.l2p(r.r2c(x))},r.p2d=function(x){return u(m(x))},r.r2p=r.d2p,r.p2r=m,r.cleanPos=function(x){return Array.isArray(x)||typeof x=="string"&&x!==""?x:co(x)},r.setupMultiCategory=function(x){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(x,M){r._cleanRange(x,M),r.limitRange(x)},r._cleanRange=function(x,M){M||(M={}),x||(x="range");var d=kt.nestedProperty(r,x).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,x).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[x]=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(!fo(d[w]))if(!(v||A)&&fo(d[1-w]))d[w]=d[1-w]*(w?10:.1);else{r[x]=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(x){var M=t._size;if(r.overlaying){var d=T1.getFromId({_fullLayout:t},r.overlaying);r.domain=d.domain,r.domainpad=d.domainpad}var w=x&&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";let D=(p?M.h:M.w)*(r.domain[1]-r.domain[0]),E=r.domainpad,R=0,I=0;if(E){R=(p?E.top:E.left)||0,I=(p?E.bottom:E.right)||0;let B=yae(R+I,D);R*=B,I*=B}if(r._length=D-R-I,r._padStart=R,r._padEnd=I,p?(r._offset=M.t+(1-r.domain[1])*M.h+R,r._m=r._length/(v-A),r._b=-r._m*A):(r._offset=M.l+r.domain[0]*M.w+R,r._m=r._length/(A-v),r._b=-r._m*v),r._rangebreaks=[],r._lBreaks=0,r._m2=0,r._B=[],r.rangebreaks){var z,F;if(r._rangebreaks=r.locateBreaks(Math.min(v,A),Math.max(v,A)),r._rangebreaks.length){for(z=0;zA&&(L=!L),L&&r._rangebreaks.reverse();var P=L?-1:1;for(r._m2=P*r._length/(Math.abs(A-v)-r._lBreaks),r._B.push(-r._m2*(p?A:v)),z=0;zy&&(y+=7,vy&&(y+=24,v=w&&v=w&&x=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(),mae=(wn(),or(Rn)).BADNUM,E1=km.isArrayOrTypedArray,bae=km.isDateTime,xae=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&&Aae(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 Tae(e,r){for(var t=e.length,n=PS(t),a=0,o=0,i={},l=0;la*2}function Aae(e){return E1(e[0])&&E1(e[1])}});var nu=xe((S6e,VS)=>{"use strict";var kae=lt(),BS=ut(),El=tr(),L1=(wn(),or(Rn)).FP_SAFE,Sae=Cr(),Cae=At(),OS=mn(),Eae=OS.getFromId,Lae=OS.isLinked;VS.exports={applyAutorangeOptions:HS,getAutoRange:Cm,makePadFn:Em,doAutoRange:Rae,findExtremes:Fae,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>x?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(F,L){return Math.max(F,l(L))}if(c===g){var E=c-1,R=c+1;if(m)if(c===0)a=[0,1];else{var I=(c>0?f:s).reduce(D,0),z=c/(1-Math.min(.5,I/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=x((e._m>0?t.ppadminus:t.ppadplus)||t.ppad||0),w=x(t.vpadplus||t.vpad),y=x(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,Pae)}function Dm(e,r,t,n){US(e,r,t,n,Iae)}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 zae(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 Nae(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=zae(t,r),n=Nae(n,r),[t,n]}});var Vt=xe((E6e,cC)=>{"use strict";var ii=lt(),un=ut(),au=Sn(),ec=Cr(),Er=tr(),iu=Er.strTranslate,Ps=Qn(),qae=Kf(),rc=Zr(),Ba=At(),Bae=ai(),GS=$y(),C6e=(kn(),or(An)),Vn=(wn(),or(Rn)),Oae=Vn.ONEMAXYEAR,P1=Vn.ONEAVGYEAR,I1=Vn.ONEMINYEAR,Uae=Vn.ONEMAXQUARTER,zm=Vn.ONEAVGQUARTER,z1=Vn.ONEMINQUARTER,Hae=Vn.ONEMAXMONTH,ou=Vn.ONEAVGMONTH,N1=Vn.ONEMINMONTH,Oa=Vn.ONEWEEK,ca=Vn.ONEDAY,Ll=ca/2,ho=Vn.ONEHOUR,tc=Vn.ONEMIN,q1=Vn.ONESEC,Vae=Vn.ONEMILLI,Gae=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,Yae=U1.OPPOSITE_SIDE,B1=3,ar=cC.exports={};ar.setConvert=C1();var Xae=Sm(),po=mn(),Wae=po.idSort,Zae=po.isLinked;ar.id2name=po.id2name;ar.name2id=po.name2id;ar.cleanId=po.cleanId;ar.list=po.list;ar.listIds=po.listIds;ar.getFromId=po.getFromId;ar.getFromTrace=po.getFromTrace;var tC=nu();ar.getAutoRange=tC.getAutoRange;ar.findExtremes=tC.findExtremes;var Jae=1e-4;function Vm(e){var r=(e[1]-e[0])*Jae;return[e[0]-r,e[1]+r]}function $ae(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<=Oae?c=s:c=P1:t===zm&&f>=z1?s>=z1&&s<=Uae?c=s:c=zm:f>=N1?s>=N1&&s<=Hae?c=s:c=ou:t===Oa&&f>=Oa?c=Oa:f>=ca?c=ca:t===Ll&&f>=Ll?c=Ll:t===ho&&f>=ho&&(c=ho);var g;c>=s&&(c=s,g=!0);var b=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]=(x?0:1);M--){var d=!M;M?(r._dtickInit=r.dtick,r._tick0Init=r.tick0):x&&(r.minor._dtickInit=r.minor.dtick,r.minor._tick0Init=r.minor.tick0);var w=M?r:Er.extendFlat({},r,x?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=tie(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:I<=A;I=ar.tickIncrement(I,L,f,a)){if(M&&z++,w.rangebreaks&&!f){if(I=g)break}if(T.length>b||I===R)break;R=I;var B={value:$ae(I,P,L)};M?(I===E&&(B.first=!0),D&&I!==(I|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*vo(r,n,R1);else if(o>ou)r/=ou,e.dtick="M"+vo(r,1,KS);else if(o>ca){if(e.dtick=vo(r,ca,e._hasDayOfWeekBreaks?[1,2,7,14]:nie),!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>ho?e.dtick=vo(r,ho,KS):o>tc?e.dtick=vo(r,tc,QS):o>q1?e.dtick=vo(r,q1,QS):(n=a(10),e.dtick=vo(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"+vo(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=vo(r,n,aie)):(e.tick0=0,n=a(10),e.dtick=vo(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>=ho)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&&x<=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 oie(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],b=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],b>0&&(r.text+="x10"),r.text==="1x10"&&(r.text="10"),g!==0&&g!==1&&(r.text+=""+(g>0?"":Is)+b+""),r.fontSize*=1.25):(h==="e"||h==="E")&&b>2?r.text=c[0]+h+(g>0?"+":Is)+b:(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 lie(e,r){var t=e._categories[Math.round(r.x)];t===void 0&&(t=""),r.text=String(t)}function sie(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 uie(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 fie(e,r,t,n,a){if(e.thetaunit==="radians"&&!t){var o=r.x/180;if(o===0)r.text="0";else{var i=cie(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 cie(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"],vie=["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 hie(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"?vie[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],b=s[1];return(!g&&typeof g!="number"||c(g)<=c(u))&&(!b&&typeof b!="number"||c(b)>=c(u))}function o(u,s){var f=s[0]===null,c=s[1]===null,g=n(u,s[0])>=0,b=n(u,s[1])<=0;return(f||g)&&(c||b)}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],b=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=kie(r,n));var _=g[f+"axislayer"],T=r._mainLinePosition,m=T+=r._shift,k=r._mainMirrorPosition,S=r._vals=ar.calcTicks(r),x=[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 die(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 mie(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,b=e.tickfont?e.tickfont.size:12;return(l||a)&&(c+=b*zs,g+=(e.linewidth||0)/2),(o||i)&&(c+=(e.linewidth||0)/2,g+=B1),u&&f==="top"&&(g-=b*(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",b=0,h=0,_=g?e.ticklen:0;if(c?_*=-1:f&&(_=0),g&&(b+=_,t)){var T=Er.deg2rad(t);b=_*Math.cos(T)+1,h=_*Math.sin(T)}e.showticklabels&&(g||e.showline)&&(b+=.2*e.tickfont.size),b+=(e.linewidth||1)/2*(c?-1:1);var m={labelStandoff:b,labelShift:h},k,S,x,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+b*M,x=A?1:-.2,Math.abs(v)===90&&(c?x+=jf:v===-90&&w==="bottom"?x=zs:v===90&&w==="top"?x=jf:x=.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*x},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,I){return R<-60||R>60?-.5*I:e.side==="top"!==c?-I:0};else if(y==="y"){if(A=!c&&w==="left"||c&&w==="right",M=A?1:-1,c&&(M*=-1),k=b,S=h*M,x=0,!c&&Math.abs(v)===90&&(v===-90&&w==="left"||v===90&&w==="right"?x=zs:x=.5),c){var p=un(v)?+v:0;if(p!==0){var D=Er.deg2rad(p);d=Math.abs(Math.sin(D))*zs*M,x=0}}m.xFn=function(E){return E.dx+r-(k+E.fontSize*x)*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,I){return e.side==="right"&&(R*=-1),R<-30?-I:R<30?-.5*I: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:b;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 Wae(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(P){return P.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(P){var B=ii.select(this),O=e._promises.length;B.call(Ps.positionText,u.xFn(P),u.yFn(P)).call(Ba.font,{family:P.font,size:P.fontSize,color:P.fontColor,weight:P.fontWeight,style:P.fontStyle,variant:P.fontVariant,textcase:P.fontTextcase,lineposition:P.fontLineposition,shadow:P.fontShadow}).text(P.text).call(Ps.convertToTspans,e),e._promises[O]?g.push(e._promises.pop().then(function(){b(B,s)})):b(B,s)}),V1(r,[YS]),c.exit().remove(),t.repositionOnUpdate&&c.each(function(P){ii.select(this).select("text").call(Ps.positionText,u.xFn(P),u.yFn(P))});function b(P,B){P.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 P=r.ticklabeloverflow;if(!(!P||P==="allow")){var B=P.indexOf("hide")!==-1,O=r._id.charAt(0)==="x",G=0,J=O?e._fullLayout.width:e._fullLayout.height;if(P.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)})})})})},b(c,f+1?f:s);function h(){return g.length&&Promise.all(g)}var _=null;function T(){if(b(c,s),l.length&&r.autotickangles&&(r.type!=="log"||String(r.dtick).charAt(0)!=="D")){_=r.autotickangles[0];var P=0,B=[],O,G=1;c.each(function(K){P=Math.max(P,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:P*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*I&&(D=I,v[y]=A[y]=E[y])}var F=Math.abs(D-p);F-M>0?(F-=M,M*=1+M/F):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 bie(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 xie(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,b;a==="x"?(g=r._offset+r._length/2,b=r.side==="top"?f-i:f+i):(b=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,qae.draw(e,n+"title",{propContainer:r,propName:r._name+".title.text",placeholder:t._dfltTitle[a],avoid:h,transform:c,attributes:{x:g,y:b,"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)||!_ie(e,r,t,n)||wie(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=Gae:/%L/.test(r)?e>=Vae:/%[SX]/.test(r)?e>=q1:/%M/.test(r)?e>=tc:/%[HI]/.test(r)?e>=ho:/%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((L6e,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((D6e,dC)=>{"use strict";var Cie=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&&(Cie(n,f,l),(i==="linear"||i==="-")&&n("rangemode")),t.cleanRange()}});var gC=xe((R6e,pC)=>{var Eie={left:0,top:0};pC.exports=Lie;function Lie(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=Die(r);return t[0]=n-o.left,t[1]=a-o.top,t}function Die(e){return e===window||e===document||e===document.body?Eie:e.getBoundingClientRect()}});var G1=xe((F6e,yC)=>{"use strict";var Rie=_y();function Fie(){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=Rie&&Fie()});var bC=xe((P6e,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((I6e,_C)=>{"use strict";var xC=tr(),Pie=[["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),Pie[t][r]}});var TC=xe((z6e,MC)=>{"use strict";var Iie=Hf(),zie=Xh(),Nie=Pf().getGraphDiv,qie=(pf(),or(df)),$m=MC.exports={};$m.wrapped=function(e,r,t){var o;e=Nie(e),e._fullLayout&&zie.clear(e._fullLayout._uid+qie.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&&Iie.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((N6e,CC)=>{"use strict";var Bie=gC(),Km=My(),Oie=G1(),Uie=tr().removeElement,Hie=(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,b;t._mouseDownTime||(t._mouseDownTime=0),o.style.pointerEvents="all",o.onmousedown=T,Oie?(o._ontouchstart&&o.removeEventListener("touchstart",o._ontouchstart),o._ontouchstart=T,o.addEventListener("touchstart",T,{passive:!1})):o.ontouchstart=T;function h(S,x,M){return Math.abs(S)a&&(n=Math.max(n-1,1)),t._dragged)r.doneFn&&r.doneFn();else{var x;c.target===g?x=c:(x={target:g,srcElement:g,toElement:g},Object.keys(c).concat(Object.keys(c.__proto__)).forEach(M=>{var d=c[M];!x[M]&&typeof d!="function"&&(x[M]=d)})),r.clickFn&&r.clickFn(n,x),b||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 Bie(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Dl=xe((q6e,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((B6e,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;o$ie,itemGap:()=>Jie,itemHeightPad:()=>Qie,itemMinHeight:()=>Kie,scrollBarColor:()=>Yie,scrollBarEnterAttrs:()=>Wie,scrollBarMargin:()=>Xie,scrollBarMinHeight:()=>Gie,scrollBarWidth:()=>Vie,titlePad:()=>Zie});var Vie,Gie,Yie,Xie,Wie,Zie,Jie,$ie,Kie,Qie,X1=Ut(()=>{"use strict";Vie=6,Gie=20,Yie="#808BA4",Xie=4,Wie={rx:20,ry:3,width:0,height:0},Zie=2,Jie=5,$ie=6,Kie=16,Qie=3});var e5=xe((O6e,PC)=>{"use strict";var jm=Wn(),jie=no(),{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:jie.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((H6e,IC)=>{"use strict";var W1=Cr(),Ua=tr(),eoe=Tt(),roe=Zn(),toe=e5(),noe=q0(),r5=sc();function aoe(e,r,t,n,a){var o=r[e]||{},i=eoe.newContainer(t,e);function l(B,O){return Ua.coerce(o,i,toe,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,roe,B,O)},g=t.font||{},b=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,I,z="left";A?(E=0,W1.getComponentMethod("rangeslider","isVisible")(r.xaxis)?p?(R=1.1,I="bottom"):(R=1,I="top"):p?(R=-.1,I="top"):(R=0,I="bottom")):(R=1,I="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 F=l("groupclick");l("groupdoubleclick",F),l("xanchor",z),l("yanchor",I),l("maxheight"),l("valign"),Ua.noneOrAll(o,i,["x","y"]);var L=l("title.text");if(L){l("title.side",A?"left":"top");var P=Ua.extendFlat({},u,{size:Ua.bigFont(u.size)});Ua.coerceFont(l,"title.font",P);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(),ioe=n5.pushUnique,ooe=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 b=c.concat(g),h=l.trace;h._isShape&&(h=i.shapes[h.index]);var _=h.legendgroup,T,m,k,S,x,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 I=h.legend;if(!h._isShape&&Rl.traceIs(h,"pie-like")){var z=l.label,F=f.indexOf(z);if(a==="toggle")F===-1?f.push(z):f.splice(F,1);else if(a==="toggleothers"){var L=F!==-1,P=[];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:[]},b=[],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,b,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(b=0;bE&&(p=E)}v[b][0]._groupMinRank=p,v[b][0]._preGroupSort=b}var R=function(B,O){return B[0]._groupMinRank-O[0]._groupMinRank||B[0]._preGroupSort-O[0]._preGroupSort},I=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),b=0;b{"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 loe=At(),soe=Zr();UC.exports=function(r,t,n,a){var o=n.marker.pattern;o&&o.shape?loe.pointStyle(r,n,a,t):soe.fill(r,t.color)}});var XC=xe((W6e,YC)=>{"use strict";var VC=Zr(),GC=s5().castOption,uoe=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(uoe,t,n,a).style("stroke-width",l).call(VC.stroke,i)}});var h5=xe((Z6e,KC)=>{"use strict";var va=lt(),u5=Cr(),jn=tr(),f5=jn.strTranslate,Ha=At(),oi=Zr(),c5=io().extractOpts,$1=Da(),foe=XC(),coe=s5().castOption,WC=(X1(),or(Y1)),ZC=12,JC=5,Bs=2,voe=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 I={top:1,bottom:-1}[D],z=I*(.5*(E-R+3))||0,F=n.indentation;A.attr("transform",f5(F,z))}var L=A.selectAll("g.legendfill").data([y]);L.enter().append("g").classed("legendfill",!0);var P=A.selectAll("g.legendlines").data([y]);P.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(b).each(_).each(h).each(m).each(M).each(x).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,I=v.anyLine,z=y[0],F=z.trace,L,P,B=c5(F),O=B.colorscale,G=B.reversescale,J=function(Q){if(Q.size())if(A)Ha.fillGroupStyle(Q,t,!0);else{var te="legendfill-"+F.uid;Ha.gradient(Q,t,te,v5(G),O,"fill")}},j=function(Q){if(Q.size()){var te="legendline-"+F.uid;Ha.lineGroupStyle(Q),Ha.gradient(Q,t,te,v5(G),O,"stroke")}},V=$1.hasMarkers(F)||!R?"M5,0":I?"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,F.line,voe,JC);P=jn.minExtend(F,{line:{width:$}}),L=[jn.minExtend(z,{trace:P})]}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],I=R.trace,z=!E&&!p&&!A&&$1.hasText(I),F,L;function P(re,$,ae,Q){var te=jn.nestedProperty(I,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=P("marker.color",B);var J=I.type==="scattermap";O.mx=J?"circle":P("marker.symbol",B),O.mo=P("marker.opacity",jn.mean,[.2,1]),O.mlc=P("marker.line.color",B),O.mlw=P("marker.line.width",jn.mean,[0,5],Bs),O.mld=P("marker.line.dash",B),G.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var j=P("marker.size",jn.mean,[2,16],ZC);O.ms=j,G.marker.size=j}D&&(G.line={width:P("line.width",B,[0,10],JC)}),z&&(O.tx="Aa",O.tp=P("textposition",B),O.ts=10,O.tc=P("textfont.color",B),O.tf=P("textfont.family",B),O.tw=P("textfont.weight",B),O.ty=P("textfont.style",B),O.tv=P("textfont.variant",B),O.tC=P("textfont.textcase",B),O.tE=P("textfont.lineposition",B),O.tS=P("textfont.shadow",B)),F=[jn.minExtend(R,O)],L=jn.minExtend(I,G),L.selectedpoints=null,L.texttemplate=null}var V=va.select(this).select("g.legendpoints"),q=V.selectAll("path.scatterpts").data(E?F:[]);q.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",s),q.exit().remove(),q.call(Ha.pointStyle,L,t),E&&(F[0].mrc=3);var Z=V.selectAll("g.pointtext").data(z?F:[]);Z.enter().append("g").classed("pointtext",!0).append("text").attr("transform",s),Z.exit().remove(),Z.selectAll("text").call(Ha.textPointStyle,L,t)}function b(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 I=va.select(this),z=v[R[0]].marker,F=f(void 0,z.line,su,Bs);I.attr("d",R[1]).style("stroke-width",F+"px").call(oi.fill,z.color),F&&I.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",I=A?p.visible&&p.type===A:u5.traceIs(p,"bar"),z=va.select(v).select("g.legendpoints").selectAll("path.legend"+A).data(I?[y]:[]);z.enter().append("path").classed("legend"+A,!0).attr("d",R).attr("transform",s),z.exit().remove(),z.each(function(F){var L=va.select(this),P=F[0],B=f(P.mlw,D.line,su,Bs);L.style("stroke-width",B+"px");var O=P.mcc;if(!n._inHover&&"mc"in P){var G=c5(D),J=G.mid;J===void 0&&(J=(G.max+G.min)/2),O=Ha.tryColorscale(D,"")(J)}var j=O||P.mc||D.color,V=D.pattern,q=Ha.getPatternAttr;let Z=0;n._inHover&&P._distinct&&P.index!=null&&(Z=P.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,P.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"],I=f(void 0,R.line,su,Bs);E.style("stroke-width",I+"px").call(oi.fill,R.fillcolor),I&&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"],I=f(void 0,R.line,su,Bs);E.style("fill","none").call(Ha.dashLine,R.line.dash,I),I&&oi.stroke(E,R.line.color)})}function x(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 I=D.marker||{},z=f(coe(I.line.width,p.pts),I.line,su,Bs),F="pieLike",L=jn.minExtend(D,{marker:{line:{width:z}}},F),P=jn.minExtend(p,{trace:L},F);foe(R,P,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 I=va.select(this),z=c5(v),F=z.colorscale,L=z.reversescale,P=function(J){if(J.size()){var j="legendfill-"+v.uid;Ha.gradient(J,t,j,v5(L,A==="radial"),F,"fill")}},B;if(F){if(!A){var G=F.length;B=R===0?F[L?G-1:0][1]:R===1?F[L?0:G-1][1]:F[Math.floor((G-1)/2)][1]}}else{var O=v.vertexcolor||v.facecolor||v.color;B=jn.isArrayOrTypedArray(O)?O[R]||O[0]:O}I.attr("d",E[0]),B?I.call(oi.fill,B):I.call(P)})}};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((J6e,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(),hoe=h5(),cu=sc(),uu=1,doe=/^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(doe)&&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 x;S.text?(x=fn.ensureSingle(k,"text",a+"titletext"),x.attr("text-anchor","start").call(cn.font,S.font).text(S.text),Q1(x,k,e,t,uu),!l&&(t.titleclick||t.titledoubleclick)&&moe(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(goe,e,t)}).call(hoe,e,t).each(function(y){l||y[0].groupTitle&&t.groupclick==="toggleitem"||ha.select(this).call(yoe,e,a)}),fn.syncOrAsync([p5.previousPromises,function(){return _oe(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});x.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=woe(e,a,D,E);if(R)return;if(n.margin.autoexpand){var I=D,z=E;D=A?fn.constrain(D,0,n.width-t._width):I,E=p?fn.constrain(E,0,n.height-t._effHeight):z,D!==I&&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 F=t._effHeight;l&&(F=t._height),m.attr({width:t._width-v,height:F-v,x:v/2,y:v/2}),cn.setTranslate(k,0,0),T.select("rect").attr({width:t._width-2*v,height:F-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),P=t._effHeight-L-2*Wt.scrollBarMargin,B=t._height-t._effHeight,O=P/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*P,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 goe(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(b){this.text(nE(b,u)).call(Q1,e,r,t);var h={};return h.name=b,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 yoe(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 moe(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(){boe(r,t,n,a)})}function boe(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,b;if(l){var h=cn.bBox(l);g=h.height,b=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,b=k?cn.bBox(k).width:0,n===uu)t.title.side==="left"&&(b+=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,b-=t.indentation+t.itemwidth),qo.positionText(T,S,-c*((m-1)/2-.3))}}if(n===uu)t._titleWidth=b,t._titleHeight=g;else{a.lineHeight=c;let x=Wt.itemMinHeight+t.itemheight-Wt.dfltFillHeight;a.height=Math.max(g,Wt.itemMinHeight,x)+Wt.itemHeightPad,a.width=b}}function xoe(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 _oe(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,b=Wt.itemGap,h=n.indentation+n.itemwidth+b*2,_=2*(c+b),T=r2(n),m=n.y<0||n.y===0&&T==="top",k=n.y>1||n.y===1&&T==="bottom",S=n.tracegroupgap,x={};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=xoe(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+b),n._height+=fe,n._width=Math.max(n._width,ie[0].width)}),A=h+n._width,n._width+=b+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",I=k||m,z=o.width/2;n._maxWidth=Math.max(E?I&&D==="left"?l.l+l.w:z:R?I&&D==="right"?l.r+l.w:z:l.w,2*h);var F=0,L=0;t.each(function(ie){var fe=K1(ie,n,h);F=Math.max(F,fe),L+=fe}),A=null;var P=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+b+ge/2+fe),fe+=ge,ie=Math.max(ie,ke),x[Te[0].trace.legendgroup]=ie});var we=ie+b;O>0&&we+c+O>n._maxWidth?(P=Math.max(P,O),O=0,G+=B+S,B=fe):B=Math.max(B,fe),cn.setTranslate(this,O,G),O+=we}),n._width=Math.max(P,O)+c,n._height=G+B+_}else{var J=t.size(),j=L+g+(J-1)*b=n._maxWidth&&(P=Math.max(P,re),q=0,Z+=V,n._height+=V,V=0),cn.setTranslate(this,p[0]+c+q,p[1]+c+Z+fe/2+b),re=q+we+b,q+=Te,V=Math.max(V,fe)}),j?(n._width=q+g,n._height=V+_):(n._width=Math.max(P,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=x[Te]);var ge=ae?h:A||ke;!u&&!f&&(ge+=b/2),cn.setRect(fe,0,-we/2,ge,we)}),n._inHover){let ie=n._width-g-b-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()&&poe(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 woe(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(),Moe=Zt.pushUnique,m5=Zt.strTranslate,Toe=Zt.strRotate,Aoe=Hf(),Gt=Qn(),koe=RC(),go=At(),dn=Zr(),t2=Pi(),Ii=Vt(),Soe=(kn(),or(An)).zindexSeparator,Us=Cr(),Va=uo(),Hs=(pf(),or(df)),Coe=t5(),Eoe=y5(),gE=Hs.YANGLE,x5=Math.PI*gE/180,Loe=1/Math.sin(x5),Doe=Math.cos(x5),Roe=Math.sin(x5),zt=Hs.HOVERARROWSIZE,et=Hs.HOVERTEXTPAD,lE={box:!0,ohlc:!0,violin:!0,candlestick:!0},Foe={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(){Ioe(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=xE(a),i=_E(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 x=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;x+=A,M+=A,d+=p,w+=p}S.bbox={x0:x+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=mE(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,b=a._fullLayout._invScaleY;return c(),a2(f,u,g,b),s.mathjaxPromise&&s.mathjaxPromise.then(function(){c(),a2(f,u,g,b),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 Poe(e,r){return!!(e!=null&&e.showspikes&&e.spikesnap!=="hovered data"||r!=null&&r.showspikes&&r.spikesnap!=="hovered data")}function Ioe(e,r,t,n,a){t||(t="xy"),typeof t=="string"&&(t=t.split(Soe)[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"),b=r.hovermode||l.hovermode,h=(b||"").charAt(0)==="x",_=(b||"").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?F=Va.flat(o,r.xval):F=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(F[0])||!Bo(L[0]))return Zt.warn("Fx.hover failed",r,e),t2.unhoverRaw(e,r)}l.clickanywhere&&(e._hoverXVals=F,e._hoverYVals=L,e._hoverXAxes=y,e._hoverYAxes=v);var ke=1/0;function ge(lr,Dr){for(B=0;B$&&(I.splice(0,$),ke=I[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&&I.length===0&&R!==0&&Poe(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],F&&F[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):I=[Re];var Pe=I.length,Ye=pE("x",Re,l),Ve=pE("y",Re,l);ge(Ye,Ve);var Ue=[],qe={},We=0,Xe=function(lr){var Dr=lE[lr.trace.type]?yE(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(I[er]);I=Ue,oe()}var nr=e._hoverdata,rr=[],Qe=xE(e),Ce=_E(e);for(let lr of I){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=b==="y"&&(z.length>1||I.length>1)||b==="closest"&&te&&I.length>1,Ir=dn.combine(l.plot_bgcolor||dn.background,l.paper_bgcolor),Jr=mE(I,{gd:e,hovermode:b,rotateLabels:ot,bgColor:Ir,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance}),Xt=Jr.hoverLabels;if(Va.isUnifiedHover(b)||(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);koe(Oo.select(a),tt?"pointer":"")}var Kr=Boe(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,F),yvals:Va.c2dApply(v,L),xPixel:r.pointerX,yPixel:r.pointerY})}}function yE(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 zoe=/([\s\S]*)<\/extra>/;function b5(e,r){return n2(e,Gt.getMathOrTextNode(r))}function mE(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,b=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],x=S.xa,M=S.ya,d=a.charAt(0),w=d+"Label",y=S[w];if(y===void 0&&x.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,x.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=x._offset+x._length):(ze="end",Ke=-1,je="-",er=x._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};Coe(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?Toe(gE):""))}}),{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=dE(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 b=e.hovertemplateLabels||e;e[u+"Label"]!==a&&(b[u+"other"]=b[u+"Val"],b[u+"otherLabel"]=b[u+"Label"]),l=Zt.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:b,locale:n._d3locale,template:f}),l=l.replace(zoe,(h,_)=>(i=dE(_,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,b=n.minY,h=n.maxY,_=function(z){return z*t._invScaleX},T=function(z){return z*t._invScaleY};e.each(function(z){var F=z[a],L=z[o],P=F._id.charAt(0)==="x",B=F.range;f===0&&B&&B[0]>B[1]!==P&&(l=-1);var O=0,G=P?t.width:t.height;if(t.hovermode==="x"||t.hovermode==="y"){var J=bE(z,r),j=z.anchor,V=j==="end"?-1:1,q,Z;if(j==="middle")q=z.crossPos+(P?T(J.y-z.by/2):_(z.bx/2+z.tx2width/2)),Z=q+(P?T(z.by):_(z.bx));else if(P)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,$)}P?b!==void 0&&h!==void 0&&Math.min(Z,h)-Math.max(q,b)>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*(P?Loe:1)/2,pmin:O,pmax:G}]}),s.sort(function(z,F){return z[0].posref-F[0].posref||l*(F[0].traceIndex-z[0].traceIndex)});var m,k,S,x,M,d,w;function y(z){var F=z[0],L=z[z.length-1];if(k=F.pmin-F.pos-F.dp+F.size,S=L.pos+L.dp+L.size-F.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 P=0;for(x=0;xF.pmax&&P++;for(x=z.length-1;x>=0&&!(P<=0);x--)d=z[x],d.pos>F.pmax-1&&(d.del=!0,P--);for(x=0;x=0;M--)z[M].dp-=S;for(x=z.length-1;x>=0&&!(P<=0);x--)d=z[x],d.pos+d.dp+d.size>F.pmax&&(d.del=!0,P--)}}}for(;!m&&i<=u;){for(i++,m=!0,x=0;x.01){for(M=A.length-1;M>=0;M--)A[M].dp+=k;for(v.push.apply(v,A),s.splice(x+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 x++}s.forEach(y)}for(x=s.length-1;x>=0;x--){var E=s[x];for(M=E.length-1;M>=0;M--){var R=E[M],I=R.datum;I.offset=R.dp,I.del=R.del}}}function bE(e,r){var t=0,n=e.offset;return r&&(n*=-Roe,t=e.offset*Doe),{x:t,y:n}}function Noe(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=Noe(i),g=bE(i,r),b=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+b)+","+o(zt+h)+"v"+o(i.by/2-zt)+"h"+a(f*i.bx)+"v-"+o(i.by)+"H"+a(f*zt+b)+"V"+o(h-zt)+"Z":m="M"+a(f*zt+b)+","+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=b+c.textShiftX,S=h+i.ty0-i.by/2+et,x=i.textAlign||"auto";x!=="auto"&&(x==="left"&&s!=="start"?(u.attr("text-anchor","start"),k=_?-i.bx/2-i.tx2width/2+et:-i.bx-et):x==="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+b),o(h+i.ty0-i.by/2+et)),l.select("rect").call(go.setRect,a(c.text2ShiftX+(c.alignShift-1)*i.tx2width/2+b),o(h-i.by/2-1),a(i.tx2width),o(i.by+2)))})}function qoe(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,b){var h=Zt.castOption(a,t,g);return i(h)?h:Zt.extractOption({},n,"",b)}:function(g,b){return Zt.extractOption(o,n,g,b)};function u(g,b,h){var _=l(b,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:Ii.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:Ii.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=Ii.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+s+" / -"+Ii.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=Ii.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Ii.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){let n=r._id.charAt(0)==="y",a=1/0,o=-1/0;for(let i of r._counterAxes||[]){let l=Ii.getFromId(e,i);if(!l)continue;let u=l._padStart||0,s=l._padEnd||0;n?(a=Math.min(a,t.l+l.domain[0]*t.w+u),o=Math.max(o,t.l+l.domain[1]*t.w-s)):(a=Math.min(a,t.t+(1-l.domain[1])*t.h+u),o=Math.max(o,t.t+(1-l.domain[0])*t.h-s))}if(r.anchor==="free"){let i=n?t.l+r.position*t.w:t.t+(1-r.position)*t.h;a=Math.min(a,i),o=Math.max(o,i)}return[a,o]}function vE(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,b,h;s=g&&g.xa,f=g&&g.ya;var _=f.spikesnap;_==="cursor"?(b=i.pointerX,h=i.pointerY):(b=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,x=Ii.getPxPosition(e,f),M,d;if(m.indexOf("toaxis")!==-1||m.indexOf("across")!==-1){if(m.indexOf("toaxis")!==-1&&(M=x,d=b),m.indexOf("across")!==-1){let L=cE(e,f,o);M=L[0],d=L[1]}n.insert("line",":first-child").attr({x1:M,x2:d,y1:h,y2:h,"stroke-width":k,stroke:S,"stroke-dasharray":go.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:x+(f.side!=="right"?k:-k),cy:h,r:k,fill:S}).classed("spikeline",!0)}if(u){var w=r.vLinePoint,y,v;s=w&&w.xa,f=w&&w.ya;var A=s.spikesnap;A==="cursor"?(y=i.pointerX,v=i.pointerY):(y=s._offset+w.x,v=f._offset+w.y);var p=dn.wcagContrast(w.color,c)<1.5?dn.contrast(c):w.color,D=s.spikemode,E=s.spikethickness,R=s.spikecolor||p,I=Ii.getPxPosition(e,s),z,F;if(D.indexOf("toaxis")!==-1||D.indexOf("across")!==-1){if(D.indexOf("toaxis")!==-1&&(z=I,F=v),D.indexOf("across")!==-1){let L=cE(e,s,o);z=L[0],F=L[1]}n.insert("line",":first-child").attr({x1:y,x2:y,y1:z,y2:F,"stroke-width":E,stroke:R,"stroke-dasharray":go.dashStyle(s.spikedash,E)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:y,x2:y,y1:z,y2:F,"stroke-width":E+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}D.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:y,cy:I-(s.side!=="top"?E:-E),r:E,fill:R}).classed("spikeline",!0)}}}function Boe(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 hE(e,r){return!r||r.vLinePoint!==e._spikepoints.vLinePoint||r.hLinePoint!==e._spikepoints.hLinePoint}function dE(e,r){return Gt.plainText(e||"",{len:r,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Ooe(e,r){for(var t=r.charAt(0),n=[],a=[],o=[],i=0;ie.offsetTop+e.clientTop,_E=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],b=s[1];return{x:f,y:c,width:g-f,height:b-c,top:Math.min(c,b),left:Math.min(f,g),right:Math.max(f,g),bottom:Math.max(c,b)}}});var i2=xe((K6e,wE)=>{"use strict";var Uoe=tr(),Hoe=Zr(),Voe=uo().isUnifiedHover;wE.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&&Voe(t.hovermode)&&(a.font||(a.font={}),i("size"),i("family"),i("color"),i("weight"),i("style"),i("variant"),o?(a.bgcolor||(a.bgcolor=Hoe.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),Uoe.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}});var TE=xe((Q6e,ME)=>{"use strict";var Goe=tr(),Yoe=i2(),Xoe=fs();ME.exports=function(r,t){function n(a,o){return Goe.coerce(r,t,Xoe,a,o)}Yoe(r,t,n)}});var SE=xe((j6e,kE)=>{"use strict";var AE=tr(),Woe=eh(),Zoe=i2();kE.exports=function(r,t,n,a){function o(l,u){return AE.coerce(r,t,Woe,l,u)}var i=AE.extendFlat({},a.hoverlabel);t.hovertemplate&&(i.namelength=-1),Zoe(r,t,o,i)}});var M5=xe((e_e,CE)=>{"use strict";var Joe=tr(),$oe=fs();CE.exports=function(r,t){function n(a,o){return t[a]!==void 0?t[a]:Joe.coerce(r,t,$oe,a,o)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var DE=xe((r_e,LE)=>{"use strict";var EE=tr(),Koe=fs(),Qoe=M5(),joe=i2();LE.exports=function(r,t){function n(s,f){return EE.coerce(r,t,Koe,s,f)}var a=Qoe(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"),joe(r,t,n),EE.coerceFont(n,"hoverlabel.grouptitlefont",t.hoverlabel.font)}});var PE=xe((t_e,FE)=>{"use strict";var T5=tr(),RE=Cr();FE.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 rle=Cr(),IE=uo(),tle=w5().hover;zE.exports=function(r,t,n){var a=rle.getComponentMethod("annotations","onClick")(r,r._hoverdata),o=r._fullLayout;n!==void 0&&tle(r,t,n,!0);function i(){var u,s,f,c,g,b;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&&IE.c2dApply(r._hoverXAxes,r._hoverXVals)),(c=l.yvals)!=null||(l.yvals=r._hoverYVals&&IE.c2dApply(r._hoverYAxes,r._hoverYVals)),(g=l.xPixel)!=null||(l.xPixel=r._hoverPointerX),(b=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((a_e,OE)=>{"use strict";var nle=lt(),o2=tr(),ale=Pi(),fc=uo(),qE=fs(),BE=w5();OE.exports={moduleType:"component",name:"fx",constants:(pf(),or(df)),schema:{layout:qE},attributes:eh(),layoutAttributes:qE,supplyLayoutGlobalDefaults:TE(),supplyDefaults:SE(),supplyLayoutDefaults:DE(),calc:PE(),getDistanceFunction:fc.getDistanceFunction,getClosest:fc.getClosest,inbox:fc.inbox,quadrature:fc.quadrature,appendArrayPointValue:fc.appendArrayPointValue,castHoverOption:ole,castHoverinfo:lle,hover:BE.hover,unhover:ale.unhover,loneHover:BE.loneHover,loneUnhover:ile,click:NE()};function ile(e){var r=o2.isD3Selection(e)?e:nle.select(e);r.selectAll("g.hovertext").remove(),r.selectAll(".spikeline").remove()}function ole(e,r,t){return o2.castOption(e,r,"hoverlabel."+t)}function lle(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((o_e,UE)=>{"use strict";UE.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((l_e,HE)=>{"use strict";HE.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:()=>sle,SQRT2:()=>ple,cos45:()=>hle,i000:()=>ule,i090:()=>fle,i180:()=>cle,i270:()=>vle,sin45:()=>dle});var sle,ule,fle,cle,vle,hle,dle,ple,f2=Ut(()=>{"use strict";sle=32,ule=0,fle=8,cle=16,vle=24,hle=Math.cos(Math.PI/4),dle=Math.sin(Math.PI/4),ple=Math.sqrt(2)});var c2=xe((s_e,GE)=>{"use strict";var gle=tr().strTranslate;function VE(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 yle(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 mle(e){var r=e._id.charAt(0)==="y"?1:0;return function(t){return VE(e,t[r])}}function ble(e){return gle(e.xaxis._offset,e.yaxis._offset)}GE.exports={p2r:VE,r2p:yle,axValue:mle,getTransform:ble}});var Fl=xe(Ho=>{"use strict";var xle=fm(),WE=(f2(),or(u2)),hu=WE.CIRCLE_SIDES,A5=WE.SQRT2,ZE=c2(),YE=ZE.p2r,XE=ZE.r2p,_le=[0,3,4,5,6,1,2],wle=[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 JE=mn(),eL=vu(),Mle=eL.drawMode,Tle=eL.openMode,du=(f2(),or(u2)),$E=du.i000,KE=du.i090,QE=du.i180,jE=du.i270,Ale=du.cos45,kle=du.sin45,rL=c2(),h2=rL.p2r,Pl=rL.r2p,Sle=xl(),Cle=Sle.clearOutline,d2=Fl(),Ele=d2.readPaths,Lle=d2.writePaths,Dle=d2.ellipseOver,Rle=d2.fixDatesForPaths;function Fle(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(!Mle(o)&&a!==void 0){var l=n._fullLayout._activeShapeIndex;if(l{"use strict";var Ple=vu(),Ile=Ple.selectMode,zle=xl(),Nle=zle.clearOutline,k5=Fl(),qle=k5.readPaths,Ble=k5.writePaths,Ole=k5.fixDatesForPaths;aL.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(!Ile(c)&&f!==void 0){var b=o._fullLayout._activeSelectionIndex;if(bYle,paramIsX:()=>Vle,paramIsY:()=>Gle,paramRE:()=>Hle,segmentRE:()=>Ule});var Ule,Hle,Vle,Gle,Yle,hc=Ut(()=>{"use strict";Ule=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,Hle=/[^\s,]+/g,Vle={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:{}},Gle={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:{}},Yle={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)),iL=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,b,h,_,T,m;function k(A,p,D,E){var R;if(A)if(p==="domain")E?R=function(I){return A._offset+A._length*(1-I)}:R=function(I){return A._offset+A._length*I};else{let I=Pn.shapePositionToRange(A);R=function(z){return A._offset+A.r2p(I(z,!0))},D==="path"&&A.type==="date"&&(R=Pn.decodeDate(R))}else E?R=function(I){return o.t+o.h*(1-I)}:R=function(I){return o.l+o.w*I};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"?(b=[],l=r.yref.map(function(A){return Il.getFromId(e,A)}),b=r.yref.map(function(A,p){return k(l[p],Il.getRefType(A),t,!0)})):(l=Il.getFromId(e,r.yref),b=k(l,a,t,!0)),t==="path")return Xle(r,g,b);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=b[0](r.y0)+f,m=b[1](r.y1)+c;else if(f=mo(l,r.y0shift),c=mo(l,r.y1shift),r.ysizemode==="pixel"){let A=b(r.yanchor);T=A-r.y0+f,m=A-r.y1+c}else T=b(r.y0)+f,m=b(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,x=(T+m)/2,M=Math.abs(S-h),d=Math.abs(x-T),w="A"+M+","+d,y=S+M+","+x,v=S+","+(x-d);return"M"+y+w+" 0 1,1 "+v+w+" 0 0,1 "+y+"Z"};function Xle(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 b=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,x=u?r[f]:r,M=s?t[c]:t;var d=g.slice(1).replace(bo.paramRE,function(w){return _[b]?a==="pixel"?w=x(i)+Number(w):w=x(w):T[b]&&(o==="pixel"?w=M(l)-Number(w):w=M(w)),b++,b>m&&(w="X"),w});return b>m&&(d=d.replace(/[\s,]*X.*/,""),iL.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((h_e,sL)=>{"use strict";var Wle=tr(),xo=Vt(),oL=Qn(),lL=At(),Zle=Fl().readPaths,Vs=zl(),Jle=Vs.getPathString,dc=Ih(),$le=(Kn(),or($n)).FROM_TL;sL.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 b=dc[s](n,l,u);b!==void 0&&(i[s]=b)}}}o=Wle.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,x,M,d;if(n.path){var w=Jle(r,n),y=Zle(w,r);S=1/0,M=1/0,x=-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,x=ue+n.x1+ie}else S=Q(n.x0,n.x0shift,J,Z),x=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 I=n.label.textangle;I==="auto"&&(n.type==="line"?I=Kle(S,M,x,d):I=0),k.call(function(O){return O.call(lL.font,_).attr({}),oL.convertToTspans(O,r),O});var z=lL.bBox(k.node()),F=Qle(S,M,x,d,n,I,z),L=F.textx,P=F.texty,B=F.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[B],y:P,x:L,transform:"rotate("+I+","+L+","+P+")"}).call(oL.positionText,L,P)}};function Kle(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 Qle(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),b=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 jle=tr(),ese=jle.strTranslate,uL=Pi(),vL=vu(),rse=vL.drawMode,hL=vL.selectMode,dL=Cr(),fL=Zr(),y2=(f2(),or(u2)),tse=y2.i000,nse=y2.i090,ase=y2.i180,ise=y2.i270,ose=xl(),pL=ose.clearOutlineControllers,L5=Fl(),g2=L5.pointsOnRectangle,E5=L5.pointsOnEllipse,lse=L5.writePaths,sse=p2().newShapes,use=p2().createShapeObj,fse=S5(),cse=C5();gL.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(F){var L={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,L=sse(t,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,L=fse(t,n),o._fullLayout._reselect=!0),Object.keys(L).length&&dL.call((F||{}).redrawing?"relayout":"_guiRelayout",o,L)}var u=o._fullLayout,s=u._zoomlayer,f=n.dragmode,c=rse(f),g=hL(f);(c||g)&&(o._fullLayout._outlining=!0),pL(o),t.attr("d",lse(r));var b,h,_,T,m;if(!a&&(n.isActiveShape||n.isActiveSelection)){m=vse([],r);var k=s.append("g").attr("class","outline-controllers");A(k),z()}if(c&&n.hasText){var S=s.select(".label-temp"),x=use(t,n,n.dragmode);cse(o,"label-temp",x,S)}function M(F){_=+F.srcElement.getAttribute("data-i"),T=+F.srcElement.getAttribute("data-j"),b[_][T].moveFn=d}function d(F,L){if(r.length){var P=m[_][T][1],B=m[_][T][2],O=r[_],G=O.length;if(g2(O)){var J=F,j=L;if(n.isActiveSelection){var V=cL(O,T);V[1]===O[T][1]?j=0:J=0}for(var q=0;q1&&!(F.length===2&&F[1][0]==="Z")&&(T===0&&(F[0][0]="M"),r[_]=F,i(),l())}}function v(F,L){if(F===2){_=+L.srcElement.getAttribute("data-i"),T=+L.srcElement.getAttribute("data-j");var P=r[_];!g2(P)&&!E5(P)&&y()}}function A(F){b=[];for(var L=0;L{"use strict";var dse=lt(),wL=Cr(),R5=tr(),Gs=Vt(),pse=Fl().readPaths,gse=m2(),x2=C5(),ML=xl().clearOutlineControllers,D5=Zr(),_2=At(),yse=Tt().arrayEditor,yL=Pi(),mL=yo(),bL=Dl(),Ys=(hc(),or(vc)),Ra=zl(),F5=Ra.getPathString;kL.exports={draw:P5,drawOne:TL,eraseActiveShape:wse,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&&mL.hover(e,i,t.id)}}),n.addEventListener("click",o=>{if(!e._dragged&&e._fullLayout.clickanywhere){let i=a(o);i&&mL.click(e,i,t.id)}})}function AL(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=bse(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 bse(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 xse(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,b,h,_,T,m,k,S,x,M,d,w,y,v,A,p,D=dse.select(r.node().parentNode),E=Gs.getFromId(e,t.xref),R=Gs.getRefType(t.xref),I=Gs.getFromId(e,t.yref),z=Gs.getRefType(t.yref),F=t.x0shift,L=t.x1shift,P=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,I,ge,!0,z);return Ee(ke)},J=Ra.getPixelToData(e,E,!1,R),j=Ra.getPixelToData(e,I,!0,z),V=re(),q={element:V.node(),gd:e,prepFn:Q,doneFn:te,clickFn:ue},Z;yL.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,F),cy:s?G(t.yanchor)-t.y0:G(t.y0,P),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?yL.getCursor(se/Ee,1-X/Le):"move";bL(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:(b=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)),b<_?(M=b,v="x0",d=_,A="x1"):(M=_,v="x1",d=b,A="x0"),!s&&hT?(S=h,w="y0",x=T,y="y1"):(S=T,w="y1",x=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)||(bL(r),we(a),AL(r,e,t),wL.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)},I&&I.type==="date"&&(se=Ra.encodeDate(se))),g("path",t.path=xL(p,Le,se))}else u?g("xanchor",t.xanchor=J(m+ke)):(g("x0",t.x0=J(b+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)},I&&I.type==="date"&&(se=Ra.encodeDate(se))),g("path",t.path=xL(p,Le,se))}else if(f){if(Z==="resize-over-start-point"){var X=b+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?x+ge:x,Ae=Se?M+ke:M,Re=ve?d+ke:d;s&&(pe&&(he=S-ge),me&&(be=x-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 xL(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 _se(e,r){if(w2(e)){var t=r.node(),n=+t.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){_L(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=_L,P5(e)}}}function _L(e){if(w2(e)){var r=e._fullLayout._activeShapeIndex;r>=0&&(ML(e),delete e._fullLayout._activeShapeIndex,P5(e))}}function wse(e){if(w2(e)){ML(e);var r=e._fullLayout._activeShapeIndex,t=(e.layout||{}).shapes||[];if(r{"use strict";var pu=tr()._,Mse=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")}};SL.exports=Mse});var DL=xe((y_e,LL)=>{"use strict";var EL=lt(),{dfltConfig:Tse}=ol(),Ase=CL(),kse=(e,r,t,n,a)=>{let o=Ase(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===Tse.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],b=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(b),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],b=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(b)}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)},Sse=(e,r,t)=>{let n=EL.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",()=>{EL.event.target===a.node()&&o()}),kse(e,a,r,()=>{o(),t()},o)};LL.exports=Sse});var N5=xe((m_e,qL)=>{"use strict";var Ga=Cr(),Cse=Sn(),FL=mn(),ht=s2(),Ese=M2().eraseActiveShape,Lse=DL(),gu=tr(),rt=gu._,ct={};qL.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}Lse(e,r,function(){Cse.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:Ese};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=FL.list(e,null,!0),u=o._cartesianSpikesEnabled,s,f;if(n==="zoom"){var c=a==="in"?.5:2,g=(1+c)/2,b=(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),x=Math.max(m,k),M=a==="in"?RL*g:1/RL*g;M>x?M=x:M{"use strict";var BL=N5(),Pse=Object.keys(BL),OL=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],UL=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(OL,["downloadJson"]),yu=[],Ise=function(e){if(UL.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)}};Pse.forEach(function(e){Ise(BL[e])});yu.sort();HL.exports={DRAW_MODES:OL,backButtons:UL,foreButtons:yu}});var O5={};Ht(O5,{default:()=>Nse});var B5,zse,Nse,U5=Ut(()=>{"use strict";B5=Q_(q5()),zse={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(" ")}},Nse=zse});var GL=xe((x_e,VL)=>{"use strict";var qse=tr(),pc=Zr(),Bse=Tt(),Ose=(U5(),or(O5)).default;VL.exports=function(r,t){var n=r.modebar||{},a=Bse.newContainer(t,"modebar");function o(l,u){return qse.coerce(n,a,Ose,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 ZL=xe((__e,WL)=>{"use strict";var H5=lt(),Use=ut(),k2=tr(),YL=s2(),Hse=uf().version,Vse=new DOMParser;function XL(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var _o=XL.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||YL.question)),t.setAttribute("data-gravity",e.gravity||"n"),t};_o.createIcon=function(e){var r=Use(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=Vse.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 b=r.modebar,h=c.querySelector(".icon path");h&&(g||c.matches(":hover")?h.style.fill=b.activecolor:h.style.fill=b.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 Xse=mn(),JL=Da(),V5=Cr(),Wse=uo().isUnifiedHover,Zse=ZL(),S2=N5(),Jse=q5().DRAW_MODES,$se=tr().extendDeep;$L.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=t0e(o):!n.displayModeBar&&n.watermark?i=[]:i=Kse(r),a?a.update(r,i):t._modeBar=Zse(r,i)};function Kse(e){var r=e._fullLayout,t=e._fullData,n=e._context;function a(L,P){if(typeof P=="string"){if(P.toLowerCase()===L.toLowerCase())return!0}else{var B=P.name,O=P._cat||P.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 P=0;P1?(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"),(e0e(t)||x)&&(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"]),jse(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=[],I=0;I{"use strict";QL.exports={moduleType:"component",name:"modebar",layoutAttributes:(U5(),or(O5)).default,supplyLayoutDefaults:GL(),manage:KL()}});var Y5=xe((T_e,jL)=>{"use strict";var n0e=(Kn(),or($n)).FROM_BL;jL.exports=function(r,t,n){n===void 0&&(n=n0e[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(),zi=mn().id2name,a0e=ai(),eD=Y5(),i0e=C1(),o0e=(wn(),or(Rn)).ALMOST_EQUAL,l0e=(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,b,h;for(l=0;lo?t.slice(o):n.slice(a))+i}function u0e(e,r){for(var t=r._size,n=t.h/t.w,a={},o=Object.keys(e),i=0;io0e*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=d0){let u=n[1]-n[0],s=u-l;s>0&&(i=u/(s/r+l))}e.domain=e._input.domain=[o+(n[0]-o)/i,o+(n[1]-o)/i],e.setScale()}});var L2=xe(En=>{"use strict";var E2=lt(),pa=Cr(),Ya=Sn(),li=tr(),J5=Qn(),$5=l2(),mc=Zr(),mu=At(),aD=Kf(),uD=G5(),bc=Vt(),Vo=(Kn(),or($n)),fD=yc(),c0e=fD.enforce,v0e=fD.clean,iD=nu().doAutoRange,cD="start",h0e="middle",vD="end",d0e=(kn(),or(An)).zindexSeparator;En.layoutStyles=function(e){return li.syncOrAsync([Ya.doAutoMargin,g0e],e)};function p0e(e,r,t){for(var n=0;n=e[1]||a[1]<=e[0])&&o[0]r[0])return!0}return!1}function g0e(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),uD.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){x0e(e,o,s,u),l.attr({x:i,y:o,"text-anchor":n,dy:sD(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 b=l.node().getBBox(),h=b.y+b.height,_=h+aD.SUBTITLE_PADDING_EM*r.subtitle.font.size;g.attr({x:i,y:_,"text-anchor":n,dy:sD(r.yanchor)}).call(J5.positionText,i,_)}}}};function y0e(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=m0e(o,n,a,e._fullLayout.height,t)+r.pad.t+r.pad.b),l>i?l:0}function x0e(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"&&y0e(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 _0e(e,r){var t=e.title,n=e._size,a=0;return r===cD?a=t.pad.l:r===vD&&(a=-t.pad.r),t.xref==="paper"?n.l+n.w*t.x+a:e.width*t.x+a}function w0e(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 sD(e){return e==="top"?Vo.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Vo.MID_SHIFT+"em"}function M0e(e){var r=e.title,t=h0e;return li.isRightAnchor(r)?t=vD:li.isLeftAnchor(r)&&(t=cD),t}function T0e(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 A0e=Fl().readPaths,k0e=m2(),hD=xl().clearOutlineControllers,K5=Zr(),dD=At(),S0e=Tt().arrayEditor,pD=zl(),C0e=pD.getPathString;yD.exports={draw:D2,drawOne:gD,activateLastSelection:D0e};function D2(e){var r=e._fullLayout;hD(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(dD.dashLine,T?"solid":b,T?4+g:g);if(E0e(m,e,n),h){var k=S0e(e.layout,"selections",n);m.style({cursor:"move"});var S={element:m.node(),plotinfo:a,gd:e,editHelpers:k,isActiveSelection:!0},x=A0e(l,e);k0e(x,m,S)}else m.style("pointer-events",T?"all":"none");_[T]=m}var M=_[0],d=_[1];d.node().addEventListener("click",function(){return L0e(e,M)})}}function E0e(e,r,t){var n=t.xref+t.yref;dD.setClipUrl(e,"clip"+r._fullLayout._uid+n,r)}function L0e(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 D0e(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&&(hD(e),delete e._fullLayout._activeSelectionIndex,D2(e))}}});var bD=xe((C_e,mD)=>{function R0e(){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}mD.exports=R0e});var _D=xe((E_e,xD)=>{function F0e(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}xD.exports=F0e});var MD=xe((L_e,wD)=>{var P0e={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}};wD.exports=P0e});var AD=xe((D_e,TD)=>{var xc=MD();function I0e(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 x=r.pointsCompare(_,k);return x!==0?x: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 b(h,_){var T=xc.create();function m(I,z){var F=I.seg.start,L=I.seg.end,P=z.seg.start,B=z.seg.end;return r.pointsCollinear(F,P,B)?r.pointsCollinear(L,P,B)||r.pointAboveOrOnLine(L,P,B)?1:-1:r.pointAboveOrOnLine(F,P,B)?1:-1}function k(I){return T.findTransition(function(z){var F=m(I,z.ev);return F>0})}function S(I,z){var F=I.seg,L=z.seg,P=F.start,B=F.end,O=L.start,G=L.end;t&&t.checkIntersection(F,L);var J=r.linesIntersect(P,B,O,G);if(J===!1){if(!r.pointsCollinear(P,B,O)||r.pointsSame(P,G)||r.pointsSame(B,O))return!1;var j=r.pointsSame(P,O),V=r.pointsSame(B,G);if(j&&V)return z;var q=!j&&r.pointBetween(P,O,G),Z=!V&&r.pointBetween(B,O,G);if(j)return Z?g(z,B):g(I,G),z;q&&(V||(Z?g(z,B):g(I,G)),g(z,P))}else J.alongA===0&&(J.alongB===-1?g(I,O):J.alongB===0?g(I,J.pt):J.alongB===1&&g(I,G)),J.alongB===0&&(J.alongA===-1?g(z,P):J.alongA===0?g(z,J.pt):J.alongA===1&&g(z,B));return!1}for(var x=[];!o.isEmpty();){var M=o.getHead();if(t&&t.vert(M.pt[0]),M.isStart){let I=function(){if(w){var z=S(M,w);if(z)return z}return y?S(M,y):!1};var R=I;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=I();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}x.push(M.seg)}o.getHead().remove()}return t&&t.done(),x}return e?{addRegion:function(h){for(var _,T=h[h.length-1],m=0;m{function z0e(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,I,z){return f.index=R,f.matches_head=I,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 N0e={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)}};CD.exports=N0e});var DD=xe((P_e,LD)=>{var q0e={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 B0e=bD(),O0e=_D(),RD=AD(),U0e=SD(),wc=ED(),FD=DD(),si=!1,Mc=O0e(),Fa;Fa={buildLog:function(e){return e===!0?si=B0e():e===!1&&(si=!1),si===!1?!1:si.list},epsilon:function(e){return Mc.epsilon(e)},segments:function(e){var r=RD(!0,Mc,si);return e.regions.forEach(r.addRegion),{segments:r.calculate(e.inverted),inverted:e.inverted}},combine:function(e,r){var t=RD(!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:U0e(e.segments,Mc,si),inverted:e.inverted}},polygonFromGeoJSON:function(e){return FD.toPolygon(Fa,e)},polygonToGeoJSON:function(e){return FD.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);PD.exports=Fa});var ND=xe((z_e,zD)=>{zD.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<(b-c)*(i-g)/(h-g)+c;_&&(l=!l)}return l}});var rb=xe((N_e,qD)=>{"use strict";var eb=Rh().dot,F2=(wn(),or(Rn)).BADNUM,P2=qD.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],x=t[0][1],M=0,d,w,y,v,A;for(d=1;dMath.max(w,S)||m>Math.max(y,x)))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 BD={};Ht(BD,{BENDPX:()=>H0e,MINSELECT:()=>V0e,SELECTDELAY:()=>G0e,SELECTID:()=>Y0e});var H0e,V0e,G0e,Y0e,OD=Ut(()=>{"use strict";H0e=1.5,V0e=12,G0e=100,Y0e="-select"});var sR=xe((q_e,lR)=>{"use strict";var UD=ID(),X0e=ND(),Sc=Cr(),W0e=At().dashStyle,Ac=Zr(),Z0e=yo(),J0e=uo().makeEventData,Rc=vu(),$0e=Rc.freeMode,K0e=Rc.rectMode,Cc=Rc.drawMode,ib=Rc.openMode,ob=Rc.selectMode,HD=zl(),VD=(hc(),or(vc)),ZD=m2(),JD=xl().clearOutline,$D=Fl(),tb=$D.handleEllipse,Q0e=$D.readPaths,j0e=p2().newShapes,eue=S5(),rue=j5().activateLastSelection,z2=tr(),tue=z2.sorterAsc,KD=rb(),kc=Xh(),ui=mn().getFromId,nue=l2(),aue=L2().redrawReglTraces,N2=(OD(),or(BD)),wo=N2.MINSELECT,iue=KD.filter,lb=KD.tester,sb=c2(),GD=sb.p2r,oue=sb.axValue,lue=sb.getTransform;function ub(e){return e.subplot!==void 0}function sue(e,r,t,n,a){var o=!ub(n),i=$0e(a),l=K0e(a),u=ib(a),s=Cc(a),f=ob(a),c=a==="drawline",g=a==="drawcircle",b=c||g,h=n.gd,_=h._fullLayout,T=f&&_.newselection.mode==="immediate"&&o,m=_._zoomlayer,k=n.element.getBoundingClientRect(),S=n.plotinfo,x=lue(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],I=E._length,z=R._length,F=e.altKey&&!(Cc(a)&&u),L,P,B,O,G,J,j;jD(e,h,n),i&&(L=iue([[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":W0e(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",x).attr("d",D+"Z");var $=m.append("path").attr("class","zoombox-corners").style({fill:Ac.background,stroke:Ac.defaultLine,"stroke-width":1}).attr("transform",x).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;aR(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&&QD(fe,h,n.xaxes,n.yaxes,n.subplot,n,V),we==="event"&&Dc(h,void 0);Z0e.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=F,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 QD(e,r,t,n,a,o,i){var l=r._hoverdata,u=r._fullLayout,s=u.clickmode,f=s.indexOf("event")>-1,c=[],g,b,h,_,T,m,k,S,x,M;if(hue(l)){jD(e,r,o),g=q2(r,t,n,a);var d=due(l,g),w=d.pointNumbers.length>0;if(w?pue(g,d):gue(g)&&(k=XD(d))){for(i&&i.remove(),M=0;M=0}function vue(e){return e._fullLayout._activeSelectionIndex>=0}function Ec(e,r){var t=e.dragmode,n=e.plotinfo,a=e.gd;cue(a)&&a._fullLayout._deactivateShape(a),vue(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=eue(s,e)),c&&(a._fullLayout._noEmitSelectedAtStart=!0,Sc.call("_guiRelayout",a,{selections:c}).then(function(){r&&rue(a)})),a._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function YD(e){return e._id}function q2(e,r,t,n){if(!e.calcdata)return[];var a=[],o=r.map(YD),i=t.map(YD),l,u,s;for(s=0;s0,o=a?n[0]:t;return r.selectedpoints?r.selectedpoints.indexOf(o)>-1:!1}function pue(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=WD(e,!0);if(ie.length){var fe=ie[0].xref,we=ie[0].yref;if(fe&&we){var Te=iR(ie),ke=oR([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,bue(l,u,f)||aR(e,l,u,n),ee&&(te.points.length?Dc(e,te):vb(e)),g._deselect=!1}return{eventData:te,selectionTesters:t}}function mue(e){var r=e.calcdata;if(r)for(var t=0;t{"use strict";uR.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:()=>Tue});function Tue(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((U_e,vR)=>{"use strict";var fR=hb(),cR=Wn(),B2=(kn(),or(An)),Aue=Tt().templatedArray,O_e=(Pc(),or(Fc));vR.exports=Aue("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:cR({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:fR.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:fR.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:cR({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var O2={};Ht(O2,{PTS_LINESONLY:()=>kue,eventDataKeys:()=>Lue,maxScreensAway:()=>Eue,minTolerance:()=>Sue,toleranceGrowth:()=>Cue});var kue,Sue,Cue,Eue,Lue,U2=Ut(()=>{"use strict";kue=20,Sue=.2,Cue=10,Eue=20,Lue=[]});var dR=xe((H_e,hR)=>{"use strict";hR.exports=function(r){return{valType:"color",editType:"style",anim:!0}}});var Ws=xe((V_e,wR)=>{"use strict";var pR=No().axisHoverFormat,{hovertemplateAttrs:Due,texttemplateAttrs:Rue,templatefallbackAttrs:gR}=Si(),yR=Di(),Fue=Wn(),mR=fl().dash,Pue=fl().pattern,Iue=At(),zue=(U2(),or(O2)),Ic=Rt().extendFlat,Nue=dR();function bR(e){return{valType:"any",dflt:0,editType:"calc"}}function xR(e){return{valType:"any",editType:"calc"}}function _R(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}wR.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:bR("x"),yperiod:bR("y"),xperiod0:xR("x0"),yperiod0:xR("y0"),xperiodalignment:_R("x"),yperiodalignment:_R("y"),xhoverformat:pR("x"),yhoverformat:pR("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:Rue(),texttemplatefallback:gR({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:Due({},{keys:zue.eventDataKeys}),hovertemplatefallback:gR(),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({},mR,{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:Nue(!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:Pue,marker:Ic({symbol:{valType:"enumerated",values:Iue.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({},mR,{arrayOk:!0}),editType:"calc"},yR("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"},yR("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:Fue({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var db=xe((Y_e,AR)=>{"use strict";var MR=bu(),TR=Ws().line,que=fl().dash,H2=Rt().extendFlat,Bue=ua().overrideAll,Oue=Tt().templatedArray,G_e=(Pc(),or(Fc));AR.exports=Bue(Oue("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:H2({},MR.xref,{}),yref:H2({},MR.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:TR.color,width:H2({},TR.width,{min:1,dflt:1}),dash:H2({},que,{dflt:"dot"})}}),"arraydraw","from-root")});var ER=xe((X_e,CR)=>{"use strict";var kR=tr(),V2=Vt(),Uue=Ri(),Hue=db(),SR=zl();CR.exports=function(r,t){Uue(r,t,{name:"selections",handleItemDefaults:Vue});for(var n=t.selections,a=0;a{"use strict";LR.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((Z_e,PR)=>{"use strict";var Gue=Cr(),RR=tr(),FR=mn();PR.exports=function(r){return function(n,a){var o=n[r];if(Array.isArray(o))for(var i=Gue.subplotsRegistry.cartesian,l=i.idRegex,u=a._subplots,s=u.xaxis,f=u.yaxis,c=u.cartesian,g=a._has("cartesian"),b=0;b{"use strict";var IR=j5(),Nc=sR();zR.exports={moduleType:"component",name:"selections",layoutAttributes:db(),supplyLayoutDefaults:ER(),supplyDrawNewSelectionDefaults:DR(),includeBasePlot:zc()("selections"),draw:IR.draw,drawOne:IR.drawOne,reselect:Nc.reselect,prepSelect:Nc.prepSelect,clearOutline:Nc.clearOutline,clearSelectionsCache:Nc.clearSelectionsCache,selectOnClick:Nc.selectOnClick}});var tF=xe(($_e,rF)=>{"use strict";var xb=lt(),fi=tr(),NR=fi.numberFormat,Yue=G1(),G2=Cr(),YR=fi.strTranslate,Xue=Qn(),gb=Zr(),ql=At(),Wue=yo(),qR=Vt(),Zue=Dl(),Jue=Pi(),XR=vu(),Y2=XR.selectingOrDrawing,$ue=XR.freeMode,Kue=(Kn(),or($n)).FROM_TL,Que=l2(),jue=L2().redrawReglTraces,efe=Sn(),yb=mn().getFromId,rfe=xu().prepSelect,tfe=xu().clearOutline,nfe=xu().selectOnClick,pb=Y5(),_b=(kn(),or(An)),BR=_b.MINDRAG,xa=_b.MINZOOM,OR=!0;function afe(e,r,t,n,a,o,i,l){var u=e._fullLayout._zoomlayer,s=i+l==="nsew",f=(i+l).length===1,c,g,b,h,_,T,m,k,S,x,M,d,w,y,v,A,p,D,E,R,I,z,F;t+=r.yaxis._shift;function L(){if(c=r.xaxis,g=r.yaxis,S=c._length,x=g._length,m=c._offset,k=g._offset,b={},b[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&&nfe(he,be,_,T,r.id,O),Ae.indexOf("event")>-1&&Wue.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=ife(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(Xue.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)})}}Jue.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"+x+"H0V0",$=!1,ae="xy",ue=!1,Q=JR(u,Z,m,k,re),te=$R(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(x,F*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/x?(Pe=Re*x/S,V>Ae?q.t=V-Pe:q.b=V+Pe):(Re=Pe*S/x,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,(x-q.b)/x),Ue=Math.max(q.r/S,(x-q.t)/x);q.l=Ve*S,q.r=Ue*S,q.b=(1-Ve)*x,q.t=(1-Ue)*x,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/x);ve=he*S/x,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 lfe(e,r,t){return e?e==="nsew"?t?"":r==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function JR(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",YR(t,n)).attr("d",a+"Z")}function $R(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",YR(r,t)).attr("d","M0,0Z")}function KR(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"),QR(e,r,a,o)}function QR(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 jR(e){OR&&e.data&&e._context.showTips&&(fi.notifier(fi._(e,"Double-click to zoom back out"),"long",e),OR=!1)}function sfe(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 ufe(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 VR(e,r,t,n,a){for(var o=!1,i={},l={},u,s,f,c,g=(a||{}).xaHash,b=(a||{}).yaHash,h=0;h{"use strict";var ffe=lt(),W2=yo(),cfe=Pi(),vfe=Dl(),Ni=tF().makeDragBox,Ln=(kn(),or(An)).DRAGGERSIZE;Z2.initInteractions=function(r){var t=r._fullLayout;if(r._context.staticPlot){ffe.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=Ni(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,cfe.unhover(r,g))},r._context.showAxisDragHandles&&(Ni(r,i,l._offset-Ln,u._offset-Ln,Ln,Ln,"n","w"),Ni(r,i,l._offset+l._length,u._offset-Ln,Ln,Ln,"n","e"),Ni(r,i,l._offset-Ln,u._offset+u._length,Ln,Ln,"s","w"),Ni(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),Ni(r,i,l._offset+l._length*.1,f,l._length*.8,Ln,"","ew"),Ni(r,i,l._offset,f,l._length*.1,Ln,"","w"),Ni(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),Ni(r,i,c,u._offset+u._length*.1,Ln,u._length*.8,"ns",""),Ni(r,i,c,u._offset+u._length*.9,Ln,u._length*.1,"s",""),Ni(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";vfe(r._draggers,t)}});var iF=xe((Q_e,aF)=>{"use strict";var nF=Cr();aF.exports=function(r){for(var t=nF.layoutArrayContainers,n=nF.layoutArrayRegexes,a=r.split("[")[0],o,i,l=0;l{"use strict";var hfe=ss(),Mb=Dh(),qc=ll(),dfe=fy().sorterAsc,Tb=Cr();Bc.containerArrayMatch=iF();var pfe=Bc.isAddVal=function(r){return r==="add"||hfe(r)},oF=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 b=n[""][""];if(oF(b))t.set(null);else if(Array.isArray(b))t.set(b);else return qc.warn("Unrecognized full array edit value",i,b),!0;return f?!1:(l(c,g),u(r),!0)}var h=Object.keys(n).map(Number).sort(dfe),_=t.get(),T=_||[],m=o(g,i).get(),k=[],S=-1,x=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),oF(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(x=Math.max(T.length,x),E=[],M=0;M=S));M++)E.push(w);for(M=S;M{"use strict";var cF=ut(),vF=Cr(),ga=tr(),Oc=Sn(),hF=mn(),Uc=hF.cleanId,gfe=hF.getFromTrace,Ab=vF.traceIs,yfe=["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=fF(r);t;){if(t in e)return!0;t=fF(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(),xfe=ut(),_fe=My(),vr=tr(),Et=vr.nestedProperty,Cb=Hf(),_a=nA(),vi=Cr(),od=Z0(),Rr=Sn(),ya=Vt(),wfe=Jm(),Mfe=ai(),K2=At(),Tfe=Zr(),Afe=wb().initInteractions,kfe=(wl(),or(_l)),Sfe=xu().clearOutline,bF=ol().dfltConfig,$2=lF(),vn=dF(),_t=L2(),Bl=ua(),Cfe=(kn(),or(An)).AX_NAME_PATTERN,Sb=0,pF=5;function Efe(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)}_F(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 b=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 Dfe(e){return vr.extendFlat(bF,e)}function xF(e,r){try{e._fullLayout._paper.style("background",r)}catch(t){vr.error(t)}}function Rfe(e,r){var t=Tfe.combine(r,"white");xF(e,t)}function _F(e,r){if(!e._context){e._context=vr.extendDeep({},bF);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 wF(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 Ife(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("."),I=Et(e.layout,R).get(),z=Et(n,R).get(),F=y.get();if(v!==void 0){m[w]=v,k[w]=D==="reverse"?v:Go(F);var L=od.getLayoutValObject(n,y.parts);if(L&&L.impliedEdits&&v!==null)for(var P in L.impliedEdits)S(vr.relativeAttr(w,P),L.impliedEdits[P]);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(DF))d(E),Et(n,R+"._inputRange").set(null);else if(E.match(RF)){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(Bfe)&&Et(n,R+"._inputDomain").set(null);if(D==="type"){M=I;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(Cfe)){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),!R&&q&&v&&(v.range!==void 0||v.autorange!==void 0)&&(d(`${D}.range`),q._inputRange=null)}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"?(I.range?I.range.reverse():(S(R+".autorange",!0),I.range=[1,0]),z.autorange?T.calc=!0:T.plot=!0):(w==="dragmode"&&(v===!1&&F!==!1||v!==!1&&F===!1)||n._has("scatter-like")&&n._has("regl")&&w==="dragmode"&&(v==="lasso"||v==="select")&&!(F==="lasso"||F==="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 x){M=ya.getFromId(e,ue);var ee=M&&M._constraintGroup;if(ee){T.calc=!0;for(var ie in ee)x[ie]||(ya.getFromId(e,ie)._constraintShrinkable=!0)}}(PF(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 Hfe(e,r){for(var t=0;t[R,e._ev.listeners(R)]);o=nt.newPlot(e,r,t,n).then(()=>{for(let[R,I]of E)I.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),Gfe(e.data,e.layout,l,u),Rr.supplyDefaults(e,{skipUpdateCalc:!0});var c=e._fullData,g=e._fullLayout,b=g.datarevision===void 0,h=g.transition,_=Wfe(e,u,g,b,h),T=_.newDataRevision,m=Xfe(e,l,c,b,h,T);if(PF(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 Xfe(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(b){var h=od.getTraceValObject(s,b);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,x=[],M=r==null,d=Array.isArray(r),w=!M&&!d&&vr.isPlainObject(r);if(w)x.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);x=p}}x.length>0?g(x):(e.emit("plotly_animated"),s())})}function Jfe(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,b=(u[g]||c[g]||{}).name,h=r[n].name,_=u[b]||c[b];b&&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 Kfe(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 Qfe(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=Qfe,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(kfe.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=Zfe;nt.addFrames=Jfe;nt.deleteFrames=$fe;nt.addTraces=SF;nt.deleteTraces=CF;nt.extendTraces=AF;nt.moveTraces=Eb;nt.prependTraces=kF;nt.newPlot=Pfe;nt._doPlot=Efe;nt.purge=Kfe;nt.react=Yfe;nt.redraw=Ffe;nt.relayout=Hc;nt.restyle=td;nt.setPlotConfig=Dfe;nt.update=ad;nt._guiRelayout=Lb(Hc);nt._guiRestyle=Lb(td);nt._guiUpdate=Lb(ad);nt._storeDirectGUIEdit=qfe});var Zs=xe(hi=>{"use strict";var ece=Cr();hi.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};hi.getRedrawFunc=function(e){return function(){ece.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 IF=window.URL||window.webkitURL;hi.createObjectURL=function(e){return IF.createObjectURL(e)};hi.revokeObjectURL=function(e){return IF.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=rce(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 rce(e){for(var r=e.length,t=new ArrayBuffer(r),n=new Uint8Array(t),a=0;a{"use strict";var Fb=lt(),a7e=tr(),tce=At(),nce=Zr(),i7e=(wl(),or(_l)),Rb=/"/g,Js="TOBESTRIPPED",ace=new RegExp(`("${Js})|(${Js}")|("${Js})|(${Js}")`,"g"),ice=["&","&","&",""",""",""","'","'","'"],oce=["<","<","<"],lce=[">",">",">"];function sce(e){let r=Fb.select("body").append("div").style({display:"none"}).html(""),t=e.replace(/(&[^;]*;)/gi,n=>{let a=n.toLowerCase();return ice.includes(a)?n:oce.includes(a)?"<":lce.includes(a)?">":n.includes("<")||n.includes(">")?"":r.html(n).text()});return r.remove(),t}function uce(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}zF.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(tce.setRect,0,0,l,u).call(nce.fill,a.paper_bgcolor);var f=a._basePlotModules||[];for(s=0;s{"use strict";var fce=tr(),cce=e1().EventEmitter,Gc=Zs();function vce(e){var r=e.emitter||new cce,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,b=s*c,h=u.getContext("2d",{willReadFrequently:!0}),_=new o,T,m;l==="svg"||fce.isSafari()?m=Gc.encodeSVG(i):(T=Gc.createBlob(i,"svg"),m=Gc.createObjectURL(T)),u.width=g,u.height=b,_.onload=function(){var k;switch(T=null,Gc.revokeObjectURL(m),l!=="svg"&&h.drawImage(_,0,0,g,b),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}NF.exports=vce});var Ib=xe((s7e,OF)=>{"use strict";var qF=ut(),BF=Db(),hce=Sn(),Mo=tr(),Yc=Zs(),dce=sd(),pce=ud(),gce=uf().version,Pb=(U3(),or(O3)).default;function yce(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"),b=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&&qF(o.width)&&(T.width=o.width),c?T.height=c:r.height===null&&qF(o.height)&&(T.height=o.height);var m=Mo.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:b}),k=Yc.getRedrawFunc(_);function S(){return new Promise(function(d){setTimeout(d,Yc.getDelay(_._fullLayout))})}function x(){return new Promise(function(d,w){var y=dce(_,s,g),v=_._fullLayout.width,A=_._fullLayout.height;function p(){BF.purge(_),document.body.removeChild(_)}if(s==="full-json"){var D=hce.graphJson(_,!1,"object",!0,!0);return D.version=gce,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(),pce({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){BF.newPlot(_,t,T,m).then(k).then(S).then(x).then(function(y){d(M(y))}).catch(function(y){w(y)})})}OF.exports=yce});var VF=xe((u7e,HF)=>{"use strict";var di=tr(),mce=Sn(),bce=Z0(),xce=ol().dfltConfig,qi=di.isPlainObject,Ks=Array.isArray,zb=di.isArrayOrTypedArray;HF.exports=function(r,t){r===void 0&&(r=[]),t===void 0&&(t={});var n=bce.get(),a=[],o={_context:di.extendFlat({},xce)},i,l;Ks(r)?(o.data=di.extendDeep([],r),i=r):(o.data=[],i=[],a.push(Dn("array","data"))),qi(t)?(o.layout=di.extendDeep({},t),l=t):(o.layout={},l={},arguments.length>1&&a.push(Dn("object","layout"))),mce.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,x,M,d,w;if(g.dimensions===2)for(x=0;xc[x].length&&n.push(Dn("unused",a,s.concat(x,c[x].length)));var y=c[x].length;for(S=0;S<(k?Math.min(y,T[x].length):y);S++)M=k?T[x][S]:T,d=f[x][S],w=c[x][S],di.validate(d,M)?w!==d&&w!==+d&&n.push(Dn("dynamic",a,s.concat(x,S),d,w)):n.push(Dn("value",a,s.concat(x,S),d))}else n.push(Dn("array",a,s.concat(x),f[x]));else for(x=0;x{"use strict";var Sce=tr(),cd=Zs();function Cce(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(Sce.isSafari()){var f=t==="svg"?",":";base64,";return cd.octetStream(f+encodeURIComponent(e)),i(r)}l(new Error("download error"))});return o}GF.exports=Cce});var Nb=xe((c7e,JF)=>{"use strict";var vd=tr(),XF=Qn(),Ece=Ib(),Lce=YF(),WF=Zs(),ZF=40;function Dce(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=Ece(e,r),i=r.filename||e.fn;if(!i){let u=WF.getPlotTitle(e);if(u&&!XF.matchTex(u))i=vd.slugify(u,ZF);else{let s=WF.getPlotSubtitle(e);s&&!XF.matchTex(s)&&(i=vd.slugify(s,ZF))}}var l=i||"plot-image";l+="."+r.format.replace("-","."),o.then(function(u){return t&&(t._snapshotInProgress=!1),Lce(u,l,r.format)}).then(function(u){n(u)}).catch(function(u){t&&(t._snapshotInProgress=!1),a(u)})})}JF.exports=Dce});var eP=xe(qb=>{"use strict";var Pa=tr(),Ia=Pa.isPlainObject,$F=Z0(),KF=Sn(),Rce=Zn(),QF=Tt(),jF=ol().dfltConfig;qb.makeTemplate=function(e){e=Pa.isPlainObject(e)?e:Pa.getGraphDiv(e),e=Pa.extendDeep({_context:jF},{data:e.data,layout:e.layout}),KF.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(b){var h={};Xc(b,h,Pce.bind(null,b));var _=Pa.coerce(b,{},Rce,"type"),T=n.data[_];T||(T=n.data[_]=[]),T.push(h)}),Xc(t,n.layout,Fce.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:b,templateCount:T,dataCount:m}):m>T&&i.push({code:"reused",traceType:b,templateCount:T,dataCount:m})}}function k(S,x){for(var M in S)if(M.charAt(0)!=="_"){var d=S[M],w=pi(S,M,x);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)&&Ice(d)&&k(d,w)}}if(k({data:u,layout:l},""),i.length)return i.map(zce)};function Ice(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 Nce=Pf().getGraphDiv,qce=M2().eraseActiveShape;Nt.deleteActiveShape=function(e){return qce(Nce(e))};Nt.toImage=Ib();Nt.validate=VF();Nt.downloadImage=Nb();var rP=eP();Nt.makeTemplate=rP.makeTemplate;Nt.validateTemplate=rP.validateTemplate});var aP=xe((d7e,nP)=>{"use strict";var Bb=tr(),Bce=Cr();nP.exports=function(r,t,n,a){var o=a("x"),i=a("y"),l,u=Bce.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 sP=xe((p7e,lP)=>{"use strict";var iP=tr().dateTick0,Oce=(wn(),or(Rn)),Uce=Oce.ONEWEEK;function oP(e,r){return e%Uce===0?iP(r,1):iP(r,0)}lP.exports=function(r,t,n,a,o){if(o||(o={x:!0,y:!0}),o.x){var i=a("xperiod");i&&(a("xperiod0",oP(i,t.xcalendar)),a("xperiodalignment"))}if(o.y){var l=a("yperiod");l&&(a("yperiod0",oP(l,t.ycalendar)),a("yperiodalignment"))}}});var cP=xe((g7e,fP)=>{"use strict";var uP=["orientation","groupnorm","stackgaps"];fP.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 vP=Zr(),hP=io().hasColorscale,dP=lo(),Hce=Da();pP.exports=function(r,t,n,a,o,i={}){var l=Hce.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),hP(r,"marker")&&dP(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=vP.background:s=vP.defaultLine,o("marker.line.color",s),hP(r,"marker.line")&&dP(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((m7e,gP)=>{"use strict";var Vce=tr().isArrayOrTypedArray,Gce=io().hasColorscale,Yce=lo();gP.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),Gce(r,"line"))Yce(r,t,a,o,{prefix:"line.",cLetter:"c"});else{var u=(Vce(l)?!1:l)||n;o("line.color",u)}o("line.width"),i.noDash||o("line.dash"),i.backoff&&o("line.backoff")}});var mP=xe((b7e,yP)=>{"use strict";yP.exports=function(r,t,n){var a=n("line.shape");a==="spline"&&n("line.smoothing")}});var Hb=xe((x7e,bP)=>{"use strict";var Xce=tr();bP.exports=function(e,r,t,n,a){a=a||{},n("textposition"),Xce.coerceFont(n,"textfont",a.font||t.font,a),a.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var wP=xe((_7e,_P)=>{"use strict";var pd=Zr(),xP=tr().isArrayOrTypedArray;function Wce(e){for(var r=pd.interpolate(e[0][1],e[1][1],.5),t=2;t{"use strict";var MP=tr(),Zce=Cr(),Jce=Ws(),$ce=(U2(),or(O2)),wu=Da(),Kce=aP(),Qce=sP(),jce=cP(),eve=Ob(),rve=Ub(),TP=mP(),tve=Hb(),nve=wP(),ave=tr().coercePattern;AP.exports=function(r,t,n,a){function o(b,h){return MP.coerce(r,t,Jce,b,h)}var i=Kce(r,t,a,o);if(i||(t.visible=!1),!!t.visible){Qce(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<$ce.PTS_LINESONLY?"lines+markers":"lines";o("text"),o("hovertext"),o("mode",u),wu.hasMarkers(t)&&eve(r,t,n,a,o,{gradient:!0}),wu.hasLines(t)&&(rve(r,t,n,a,o,{backoff:!0}),TP(r,t,o),o("connectgaps"),o("line.simplify")),wu.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),tve(r,t,a,o));var s=[];(wu.hasMarkers(t)||wu.hasText(t))&&(o("cliponaxis"),o("marker.maxdisplayed"),s.push("points")),o("fill",l?l.fillDflt:"none"),t.fill!=="none"&&(nve(r,t,n,o,{moduleHasFillgradient:!0}),wu.hasLines(t)||TP(r,t,o),ave(o,"fillpattern",t.fillcolor,!1));var f=(t.line||{}).color,c=(t.marker||{}).color;(t.fill==="tonext"||t.fill==="toself")&&s.push("fills"),o("hoveron",s.join("+")||"points"),t.hoveron!=="fills"&&(o("hovertemplate"),o("hovertemplatefallback"));var g=Zce.getComponentMethod("errorbars","supplyDefaults");g(r,t,f||c||n,{axis:"y"}),g(r,t,f||c||n,{axis:"x",inherit:"y"}),MP.coerceSelectionMarkerOpacity(t,o)}}});var CP=xe((M7e,SP)=>{"use strict";var ive=yc().getAxisGroup;SP.exports=function(r,t,n,a,o){var i=t.orientation,l=t[{v:"x",h:"y"}[i]+"axis"],u=ive(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 b=a("offsetgroup")||"",h=g.offsetGroups,_=h[b];t._offsetIndex=0,(o!=="group"||b)&&(_||(_=h[b]={offsetIndex:Object.keys(h).length}),t._offsetIndex=_.offsetIndex)}});var LP=xe((T7e,EP)=>{"use strict";var ove=tr(),lve=CP(),sve=Ws();EP.exports=function(r,t){var n,a,o,i=t.scattermode;function l(g){return ove.coerce(a._input,a,sve,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 RP=xe((A7e,DP)=>{"use strict";var uve=tr(),fve=i1();DP.exports=function(e,r){function t(a,o){return uve.coerce(e,r,fve,a,o)}var n=r.barmode==="group";r.scattermode==="group"&&t("scattergap",n?r.bargap:.2)}});var IP=xe((k7e,PP)=>{"use strict";var cve=ut(),FP=tr(),vve=FP.dateTime2ms,gd=FP.incrementMonth,hve=(wn(),or(Rn)),dve=hve.ONEAVGMONTH;PP.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(cve(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"],b=vve(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(x=Math.round((S-b)/i),d=b+x*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((S7e,NP)=>{"use strict";var Vb=io().hasColorscale,Gb=Tl(),zP=Da();NP.exports=function(r,t){zP.hasLines(t)&&Vb(t,"line")&&Gb(r,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),zP.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((C7e,qP)=>{"use strict";var Qt=tr();qP.exports=function(r,t){for(var n=0;n{"use strict";var BP=tr();OP.exports=function(r,t){BP.isArrayOrTypedArray(t.selectedpoints)&&BP.tagSelected(r,t)}});var $b=xe((L7e,ZP)=>{"use strict";var HP=ut(),Wb=tr(),Wc=Vt(),VP=IP(),Xb=(wn(),or(Rn)).BADNUM,Zb=Da(),pve=Yb(),gve=yd(),yve=UP();function mve(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=VP(r,n,"x",o),u=VP(r,a,"y",i),s=l.vals,f=u.vals,c=r._length,g=new Array(c),b=r.ids,h=Jb(r,t,n,a),_=!1,T,m,k,S,x,M;XP(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"),x=h.stackgaps==="interpolate";else{var v=YP(r,c);GP(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";JP.exports=md;var bve=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;oxve,eventDataKeys:()=>_ve});var xve,_ve,QP=Ut(()=>{"use strict";xve=3,_ve=["value","label"]});var nI=xe((R7e,tI)=>{"use strict";var gi=ut(),{isArrayOrTypedArray:Yo}=tr(),{BADNUM:Mu}=(wn(),or(Rn)),wve=Cr(),Zc=Vt(),{getAxisGroup:Mve}=yc(),bd=$P(),{TEXTPAD:Tve}=(QP(),or(KP)),{LINE_SPACING:Ave}=(Kn(),or($n)),{BR_TAG_ALL:kve}=Qn();function Sve(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*Ave*t+Tve;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 Nve(e,r,t,n){for(var a=Tu(n),o=0;o{"use strict";var aI=$b(),iI=nI().setGroupPositions;function Bve(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 Uve=At(),cI=(wn(),or(Rn)),Jc=cI.BADNUM,vI=cI.LOG_CLIP,sI=vI+.5,uI=vI-.5,xd=tr(),Hve=xd.segmentsIntersect,fI=xd.constrain,nx=(U2(),or(O2));hI.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,b=t.baseTolerance,h=t.shape,_=h==="linear",T=n.fill&&n.fill!=="none",m=[],k=nx.minTolerance,S=r.length,x=new Array(S),M=0,d,w,y,v,A,p,D,E,R,I,z,F,L,P,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?sI:uI)/(o._m*u*(o._m>0?sI:uI)))),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[fI(qe[0],$,ae),fI(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===x[M-1][0],nr=Xe===x[M-1][1];if(!(er&&nr))if(M>1){var rr=We===x[M-2][0],Qe=Xe===x[M-2][1];er&&(We===$||We===ae)&&rr?Qe?M--:x[M-1]=qe:nr&&(Xe===Q||Xe===te)&&Qe?rr?M--:x[M-1]=qe:x[M++]=qe}else x[M++]=qe}function de(qe){x[M-1][0]!==qe[0]&&x[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)x[M++]=[ee||qe[0],ie||qe[1]];else if(Te){var We=K(Te,qe);We.length>1&&(de(We[0]),x[M++]=We[1])}else ke=K(x[M-1],qe)[0],x[M++]=ke;var Xe=x[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]),x[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(x.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 pI={tonextx:1,tonexty:1,tonext:1};gI.exports=function(r,t,n){var a,o,i,l,u,s={},f=!1,c=-1,g=0,b=-1;for(o=0;o=0?u=b:(u=b=g,g++),u{"use strict";var Bi=lt(),Vve=Cr(),$c=tr(),Au=$c.ensureSingle,bI=$c.identity,en=At(),ku=Da(),Gve=dI(),Yve=yI(),_d=rb().tester;xI.exports=function(r,t,n,a,o,i){var l,u,s=!o,f=!!o&&o.duration>0,c=Yve(r,t,n);if(l=a.selectAll("g.trace").data(c,function(b){return b[0].trace.uid}),l.enter().append("g").attr("class",function(b){return"trace scatter trace"+b[0].trace.uid}).style("stroke-miterlimit",2),l.order(),Xve(r,l,t),f){i&&(u=i());var g=Bi.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(b,h){mI(r,h,t,b,c,this,o)})})}else l.each(function(b,h){mI(r,h,t,b,c,this,o)});s&&l.exit().remove(),a.selectAll("path:not([d])").remove()};function Xve(e,r,t){r.each(function(n){var a=Au(Bi.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,bI);l.enter().append("g"),l.exit().remove(),l.order().each(function(u){o[u]=Au(Bi.select(this),"path","js-fill")})})}function mI(e,r,t,n,a,o,i){var l=e._context.staticPlot,u;Wve(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,b=n[0].trace,h=b.line,_=Bi.select(o),T=Au(_,"g","errorbars"),m=Au(_,"g","lines"),k=Au(_,"g","points"),S=Au(_,"g","text");if(Vve.getComponentMethod("errorbars","plot")(e,T,t,i),b.visible!==!0)return;f(_).style("opacity",b.opacity);var x,M,d=b.fill.charAt(b.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=b._prevtrace,D=null,E=null;p&&(v=p._prevRevpath||"",M=p._nextFill,A=p._ownPolygons,D=p._fillsegments,E=p._fillElement);var R,I,z="",F="",L,P,B,O,G,J,j=[];b._polygons=[];var V=[],q=[],Z=$c.noop;if(x=b._ownFill,ku.hasLines(b)||b.fill!=="none"){M&&M.datum(n),["hv","vh","hvh","vhv"].indexOf(h.shape)!==-1?(L=en.steps(h.shape),P=en.steps(h.shape.split("").reverse().join(""))):h.shape==="spline"?L=P=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=P=function(X){return"M"+X.join("L")},B=function(X){return P(X.reverse())},q=Gve(n,{xaxis:c,yaxis:g,trace:b,connectGaps:b.connectgaps,baseTolerance:Math.max(h.width||1,3)/4,shape:h.shape,backoff:h.backoff,simplify:h.simplify,fill:b.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),b=0;a.forEach(function(_,T){var m=_[0].trace;ku.hasMarkers(m)&&m.marker.maxdisplayed>0&&T{"use strict";wI.exports={container:"marker",min:"cmin",max:"cmax"}});var AI=xe((q7e,TI)=>{"use strict";var wd=Vt();TI.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((B7e,kI)=>{"use strict";var ax=lt(),Su=At(),Zve=Cr();function Jve(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),Zve.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 $ve(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))}kI.exports={style:Jve,stylePoints:ix,styleText:ox,styleOnSelect:$ve}});var CI=xe((O7e,SI)=>{"use strict";var Cu=Zr(),Kve=Da();SI.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)&&Kve.hasLines(r)&&r.line.width?n:r.fillcolor)}});var DI=xe((U7e,LI)=>{"use strict";var Md=tr(),EI=yo(),Qve=Cr(),jve=CI(),sx=Zr(),ehe=Md.fillText;LI.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||"",b=i.mode.indexOf("markers")!==-1?3:.5,h=!!i.xperiodalignment,_=!!i.yperiodalignment;if(g.indexOf("points")!==-1){var T=function(F){if(h){var L=l.c2p(F.xStart),P=l.c2p(F.xEnd);return s>=Math.min(L,P)&&s<=Math.max(L,P)?0:1/0}var B=Math.max(3,F.mrc||0),O=1-1/B,G=Math.abs(l.c2p(F.x)-s);return G=Math.min(L,P)&&f<=Math.max(L,P)?0:1/0}var B=Math.max(3,F.mrc||0),O=1-1/B,G=Math.abs(u.c2p(F.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 I=E(i._polygons);I===null&&(I={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:I.x0,x1:I.x1,y0:I.y0,y1:I.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 PI=xe((H7e,FI)=>{"use strict";var RI=Da();FI.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&&!RI.hasMarkers(l)&&!RI.hasText(l);if(g)return[];if(t===!1)for(u=0;u{"use strict";II.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var fx=xe((G7e,BI)=>{"use strict";var Td=Cr().traceIs,ux=Sm();BI.exports=function(r,t,n,a){n("autotypenumbers",a.autotypenumbersDflt);var o=n("type",(a.splomStash||{}).type);o==="-"&&(rhe(t,a.data),t.type==="-"?t.type="linear":r.type=t.type)};function rhe(e,r){if(e.type==="-"){var t=e._id,n=t.charAt(0),a;t.indexOf("scene")!==-1&&(t=n);var o=the(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,qI(o,n)){var s=NI(o),f=[];for(a=0;a0&&(a["_"+t+"axes"]||{})[r])return a;if((a[t+"axis"]||t)===r){if(qI(a,t))return a;if((a[t]||[]).length||a[t+"0"])return a}}}function NI(e){return{v:"x",h:"y"}[e.orientation||"v"]}function qI(e,r){var t=NI(e),n=Td(e,"box-violin");return n&&r===t&&e[t]===void 0&&e[t+"0"]===void 0}});var UI=xe((Y7e,OI)=>{"use strict";var nhe=ba().isTypedArraySpec;function ahe(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||nhe(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=ahe(t,a).sort(),u==="category ascending"?t._initialCategories=s:u==="category descending"&&(t._initialCategories=s.reverse()))}}});var GI=xe((X7e,VI)=>{"use strict";var HI=Zr(),ihe=no(),ohe=tr();VI.exports=function(r,t,n,a){a=a||{};var o=a.dfltColor;function i(y,v){return ohe.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=HI.mix(o,a.bgColor,a.blend||ihe.lightFraction),c=i("gridcolor",f),g=i("gridwidth"),b=i("griddash"),h=n("showgrid",a.showGrid||!!c||!!g||!!b);if(h||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),a.hasMinor){var _=HI.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 x=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((W7e,$I)=>{"use strict";var YI=ut(),lhe=Cr(),Kc=tr(),she=Tt(),uhe=Ri(),cx=ai(),XI=Ky(),WI=jy(),fhe=tm(),che=nm(),vhe=UI(),hhe=GI(),dhe=Jm(),ZI=C1(),Ad=(kn(),or(An)).WEEKDAY_PATTERN,phe=(kn(),or(An)).HOUR_PATTERN;$I.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 b=lhe.getComponentMethod("calendars","handleDefaults");b(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"),ZI(t,o),dhe(r,t,n,a),vhe(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(che(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}}),XI(r,t,n,c);var k=a.hasMinor;if(k&&(she.newContainer(t,"minor"),XI(r,t,n,c,{isMinor:!0})),fhe(r,t,n,c,a),WI(r,t,n,a),k){var S=a.isMinor;a.isMinor=!0,WI(r,t,n,a),a.isMinor=S}hhe(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 x=c==="multicategory";if(!a.noTickson&&(c==="category"||x)&&(t.ticks||t.showgrid)&&(x?(n("tickson","boundaries"),delete t.ticklabelposition):n("tickson")),x){var M=n("showdividers");M&&(n("dividercolor"),n("dividerwidth"))}if(c==="date")if(uhe(r,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:ghe}),!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=JI(o[l]),u){i=Ad;break}}var s=n("pattern",i);if(s===Ad)for(l=0;l<2;l++)u=JI(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(!YI(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 phe:if(!YI(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 mhe=ut(),Sd=tr();KI.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,b,h,_;u&&(c=u._domains[l][u._axisMap[t._id]],f=u._anchors[t._id],c&&(g=u[l+"side"].split(" ")[0],b=u.domain[l][g==="right"||g==="top"?1:0])),c=c||[0,1],f=f||(mhe(r.position)?"free":o[0]||"free"),g=g||(l==="x"?"bottom":"left"),b=b||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&&(b=m==="left"?s[0]:s[1],_=t.automargin?t.automargin:!0,h=m==="left"?-3:3),n("shift",h)}n("position",b)}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 x=n("domain",c);x[0]>x[1]-1/4096&&(t.domain=c),Sd.noneOrAll(r.domain,t.domain,c),l==="x"?(n("domainpad.left"),n("domainpad.right")):(n("domainpad.top"),n("domainpad.bottom")),t.tickmode==="sync"&&(t.tickmode="auto")}return n("layer"),t}});var oz=xe((J7e,iz)=>{"use strict";var Qs=tr(),QI=Zr(),bhe=uo().isUnifiedHover,xhe=M5(),jI=Tt(),_he=q0(),ez=ai(),whe=fx(),rz=kd(),Mhe=yc(),tz=vx(),dx=mn(),To=dx.id2name,nz=dx.name2id,The=(kn(),or(An)).AX_ID_PATTERN,az=Cr(),Cd=az.traceIs,hx=az.getComponentMethod;function Ed(e,r,t){Array.isArray(e[r])?e[r].push(t):e[r]=[t]}iz.exports=function(r,t,n){var a=t.autotypenumbers,o={},i={},l={},u={},s={},f={},c={},g={},b={},h={},_,T;for(_=0;_{"use strict";var Ahe=lt(),lz=Cr(),Ld=tr(),Xa=At(),Dd=Vt();sz.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,x=k.yaxis,M=S._length,d=x._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,x.r2l),I=Ld.simpleMap(T.yr1,x.r2l),z=R[1]-R[0],F=I[1]-I[0];v[1]=(R[1]*(1-m)+m*I[1]-R[1])/(R[0]-R[1])*d,v[3]=d*(1-m+m*F/z),x.range[0]=S.l2r(R[0]*(1-m)+m*I[0]),x.range[1]=x.l2r(R[1]*(1-m)+m*I[1])}else v[1]=0,v[3]=d;Dd.drawOne(r,S,{skipTitle:!0}),Dd.drawOne(r,x,{skipTitle:!0}),Dd.redrawComponents(r,[S._id,x._id]);var L=w?M/v[2]:1,P=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=x._offset-J;k.clipRect.call(Xa.setTranslate,B,O).call(Xa.setScale,1/L,1/P),k.plot.call(Xa.setTranslate,j,V).call(Xa.setScale,L,P),Xa.setPointGroupScale(k.zoomScalePts,1/L,1/P),Xa.setTextPointsScale(k.zoomScaleTxt,1/L,1/P)}var u;a&&(u=a());function s(){for(var T={},m=0;mn.duration?(s(),b=window.cancelAnimationFrame(_)):b=window.requestAnimationFrame(_)}return c=Date.now(),b=window.requestAnimationFrame(_),Promise.resolve()}});var px=xe(ea=>{"use strict";var Fd=lt(),fz=Cr(),js=tr(),khe=Sn(),She=At(),cz=Gf().getModuleCalcData,Ol=mn(),Oi=(kn(),or(An)),Che=(wl(),or(_l)),dt=js.ensureSingle;function Rd(e,r,t){return js.ensureSingle(e,r,t,function(n){n.datum(t)})}var e0=Oi.zindexSeparator;ea.name="cartesian";ea.attr=["xaxis","yaxis"];ea.idRoot=["x","y"];ea.idRegex=Oi.idRegex;ea.attrRegex=Oi.attrRegex;ea.attributes=zI();ea.layoutAttributes=ai();ea.supplyLayoutDefaults=oz();ea.transitionAxes=uz();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 b=g.id;if(b.indexOf(e0)!==-1)continue;b+=e0+(s+1),g=js.extendFlat({},g,{id:b,plot:a._cartesianlayer.selectAll(".subplot").select("."+b)})}for(var h=[],_,T=0;T1&&(M+=e0+x),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 b=dt(n,"g","layer-between");r.shapelayerBetween=dt(b,"g","shapelayer"),r.imagelayerBetween=dt(b,"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 dz(e,r){if(e){var t={};e.each(function(u){var s=u[0],f=Fd.select(this);f.remove(),pz(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();gz.exports={hasLines:Pd.hasLines,hasMarkers:Pd.hasMarkers,hasText:Pd.hasText,isBubble:Pd.isBubble,attributes:Ws(),layoutAttributes:i1(),supplyDefaults:kP(),crossTraceDefaults:LP(),supplyLayoutDefaults:RP(),calc:$b().calc,crossTraceCalc:lI(),arraysToCalcdata:yd(),plot:_I(),colorbar:MI(),formatLabels:AI(),style:lx().style,styleOnSelect:lx().styleOnSelect,hoverPoints:DI(),selectPoints:PI(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:px(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var xz=xe((j7e,bz)=>{"use strict";var Lhe=lt(),Dhe=Zr(),mz=hb(),gx=tr(),Rhe=gx.strScale,Fhe=gx.strRotate,Phe=gx.strTranslate;bz.exports=function(r,t,n){var a=r.node(),o=mz[n.arrowhead||0],i=mz[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,b,h,_,T;if(a.nodeName==="line"){b={x:+r.attr("x1"),y:+r.attr("y1")},h={x:+r.attr("x2"),y:+r.attr("y2")};var m=b.x-h.x,k=b.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(_),x=c*Math.sin(_);h.x+=S,h.y+=x,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(_);b.x-=M,b.y-=d,r.attr({x1:b.x,y1:b.y})}}else if(a.nodeName==="path"){var w=a.getTotalLength(),y="";if(w{"use strict";var _z=lt(),yx=Cr(),Ihe=Sn(),Hl=tr(),mx=Hl.strTranslate,jc=Vt(),r0=Zr(),Xo=At(),wz=yo(),bx=Qn(),xx=Dl(),Qc=Pi(),zhe=Tt().arrayEditor,Nhe=xz();Az.exports={draw:qhe,drawOne:Mz,drawRaw:Tz};function qhe(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(Nhe(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),b("x",Ul(a,vt,"x",l,r)),b("y",Ul(o,Bt,"y",l,r)),r.axref===r.xref&&b("ax",Ul(a,vt,"ax",l,r)),r.ayref===r.yref&&b("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),x){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?b("ax",Ul(a,er,"ax",l,r)):b("ax",r.ax+er),r.ayref===r.yref?b("ay",Ul(o,nr,"ay",l.w,r)):b("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)}b("x",Qe),b("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(F).on("edit",function(P){r.text=P,this.call(F),b("text",P),a&&a.autorange&&g(a._name+".autorange",!0),o&&o.autorange&&g(o._name+".autorange",!0),yx.call("_guiRelayout",e,h())}):z.call(F)}});var Dz=xe((rwe,Lz)=>{"use strict";var kz=tr(),Bhe=Cr(),Sz=Tt().arrayEditor;Lz.exports={hasClickToShow:Ohe,onClick:Uhe};function Ohe(e,r){var t=Ez(e,r);return t.on.length>0||t.explicitOff.length>0}function Uhe(e,r){var t=Ez(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();Rz.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,b;c.indexOf("end")!==-1&&(g=a("arrowhead"),b=a("arrowsize")),c.indexOf("start")!==-1&&(a("startarrowhead",g),a("startarrowsize",b)),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 Pz=xe((nwe,Fz)=>{"use strict";var Mx=tr(),t0=Vt(),Hhe=Ri(),Vhe=wx(),Ghe=bu();Fz.exports=function(r,t){Hhe(r,t,{name:"annotations",handleItemDefaults:Yhe})};function Yhe(e,r,t){function n(S,x){return Mx.coerce(e,r,Ghe,S,x)}var a=n("visible"),o=n("clicktoshow");if(a||o){Vhe(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 b=t0.getFromId(s,g);b._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 Nz=xe((awe,zz)=>{"use strict";var Tx=tr(),n0=Vt(),Xhe=Id().draw;zz.exports=function(r){var t=r._fullLayout,n=Tx.filterVisible(t.annotations);if(n.length&&r._fullData.length)return Tx.syncOrAsync([Xhe,Whe],r)};function Whe(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"&&Iz(t,n),i==="range"&&Iz(t,a)})}function Iz(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,b=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:b}),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,b,T)});e._extremes[t]=m}});var Bz=xe((iwe,qz)=>{"use strict";var Zhe=ut(),Jhe=jv();qz.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(b){var h=s[b],_=null;o?_=Jhe(h,t.range):_=Math.pow(10,h),Zhe(_)||(_=null),a(f+b,_)}for(var g=0;g{"use strict";var Ax=Id(),Oz=Dz();Uz.exports={moduleType:"component",name:"annotations",layoutAttributes:bu(),supplyLayoutDefaults:Pz(),includeBasePlot:zc()("annotations"),calcAutorange:Nz(),draw:Ax.draw,drawOne:Ax.drawOne,drawRaw:Ax.drawRaw,hasClickToShow:Oz.hasClickToShow,onClick:Oz.onClick,convertCoords:Bz()}});var zd=xe((lwe,Vz)=>{"use strict";var Lt=bu(),$he=ua().overrideAll,Khe=Tt().templatedArray;Vz.exports=$he(Khe("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 Yz=xe((swe,Gz)=>{"use strict";var kx=tr(),Qhe=Vt(),jhe=Ri(),e1e=wx(),r1e=zd();Gz.exports=function(r,t,n){jhe(r,t,{name:"annotations",handleItemDefaults:t1e,fullLayout:n.fullLayout})};function t1e(e,r,t,n){function a(l,u){return kx.coerce(e,r,r1e,l,u)}function o(l){var u=l+"axis",s={_fullLayout:{}};return s._fullLayout[u]=t[u],Qhe.coercePosition(r,s,a,l,l,.5)}var i=a("visible");i&&(e1e(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 Jz=xe((uwe,Zz)=>{"use strict";var Xz=tr(),Wz=Vt();Zz.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 a1e(e,r){var t=Sx(e.projection,Sx(e.view,Sx(e.model,[r[0],r[1],r[2],1])));return t}$z.exports=a1e});var Qz=xe((cwe,Kz)=>{"use strict";var i1e=Id().drawRaw,o1e=Cx(),l1e=["x","y","z"];Kz.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=o1e(r.glplot.cameraParams,[t.xaxis.r2l(i.x)*n[0],t.yaxis.r2l(i.y)*n[1],t.zaxis.r2l(i.z)*n[2]]),i1e(r.graphDiv,i,o,r.id,i._xa,i._ya))}}});var rN=xe((vwe,eN)=>{"use strict";var s1e=Cr(),jz=tr();eN.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:zd()}}},layoutAttributes:zd(),handleDefaults:Yz(),includeBasePlot:u1e,convert:Jz(),draw:Qz()};function u1e(e,r){var t=s1e.subplotsRegistry.gl3d;if(t)for(var n=t.attrRegex,a=Object.keys(e),o=0;o{"use strict";var hwe=(kn(),or(An)),tN=Wn(),nN=Ws().line,f1e=fl().dash,Ui=Rt().extendFlat,c1e=Tt().templatedArray,dwe=(Pc(),or(Fc)),Lu=Zn(),aN=bu(),{shapeTexttemplateAttrs:v1e,templatefallbackAttrs:h1e}=Si(),d1e=Ih();iN.exports=c1e("shape",{visible:Ui({},Lu.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Ui({},Lu.legend,{editType:"calc+arraydraw"}),legendgroup:Ui({},Lu.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Ui({},Lu.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:tN({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Ui({},Lu.legendrank,{editType:"calc+arraydraw"}),legendwidth:Ui({},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:Ui({},aN.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:Ui({},aN.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:Ui({},nN.color,{editType:"arraydraw"}),width:Ui({},nN.width,{editType:"calc+arraydraw"}),dash:Ui({},f1e,{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:v1e({},{keys:Object.keys(d1e)}),texttemplatefallback:h1e({editType:"arraydraw"}),font:tN({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 lN=xe((gwe,oN)=>{"use strict";var Du=tr(),Wa=Vt(),p1e=Ri(),g1e=Ex(),ev=zl();oN.exports=function(r,t){p1e(r,t,{name:"shapes",handleItemDefaults:m1e})};function y1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}function m1e(e,r,t){function n(S,x){return Du.coerce(e,r,g1e,S,x)}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 b=[.25,.75],h=[0,10];["x","y"].forEach(S=>{var x=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,F=e[z];if(e[z]=y(e[z],!0),M==="pixel"?n(z,h[E]):Wa.coercePosition(r,d,n,R,z,b[E]),r[z]=v(r[z]),e[z]=F,E===0&&M==="pixel"){let L=e[x];e[x]=y(e[x],!0),Wa.coercePosition(r,d,n,R,x,.25),r[x]=v(r[x]),e[x]=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",I=S+"1",z=e[R],F=e[I];e[R]=y(e[R],!0),e[I]=y(e[I],!0),M==="pixel"?(n(R,h[0]),n(I,h[1])):(Wa.coercePosition(r,d,n,A,R,b[0]),Wa.coercePosition(r,d,n,A,I,b[1])),r[R]=v(r[R]),r[I]=v(r[I]),e[R]=z,e[I]=F}if(M==="pixel"){let R=e[x];e[x]=y(e[x],!0),Wa.coercePosition(r,d,n,A,x,.25),r[x]=v(r[x]),e[x]=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",y1e(_,k)),n("label.padding"),Du.coerceFont(n,"label.font",t.font)}}});var fN=xe((ywe,uN)=>{"use strict";var b1e=Zr(),sN=tr();function x1e(e,r){return e?"bottom":r.indexOf("top")!==-1?"top":r.indexOf("bottom")!==-1?"bottom":"middle"}uN.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"),sN.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",b1e.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",x1e(i,s)),n("newshape.label.padding"),sN.coerceFont(n,"newshape.label.font",t.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var yN=xe((mwe,gN)=>{"use strict";var Lx=tr(),yi=Vt(),Ao=(hc(),or(vc)),Dx=zl();gN.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,vN(o))})}else o.xref!=="paper"&&u!=="domain"&&(i=yi.getFromId(r,o.xref),l=dN(i,o,Ao.paramIsX),l&&(o._extremes[i._id]=yi.findExtremes(i,l,vN(o))));if(s==="array"){let f=cN(r,o,"y");Object.entries(f).forEach(([c,g])=>{i=yi.getFromId(r,c),o._extremes[i._id]=yi.findExtremes(i,g,hN(o))})}else o.yref!=="paper"&&s!=="domain"&&(i=yi.getFromId(r,o.yref),l=dN(i,o,Ao.paramIsY),l&&(o._extremes[i._id]=yi.findExtremes(i,l,hN(o))))}};function cN(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 vN(e){return pN(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function hN(e){return pN(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function pN(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 dN(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,b=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 xN=xe((bwe,bN)=>{"use strict";var mN=M2();bN.exports={moduleType:"component",name:"shapes",layoutAttributes:Ex(),supplyLayoutDefaults:lN(),supplyDrawNewShapeDefaults:fN(),includeBasePlot:zc()("shapes"),calcAutorange:yN(),draw:mN.draw,drawOne:mN.drawOne}});var Rx=xe((_we,wN)=>{"use strict";var _N=(kn(),or(An)),_1e=Tt().templatedArray,xwe=(Pc(),or(Fc));wN.exports=_1e("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",_N.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",_N.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var TN=xe((wwe,MN)=>{"use strict";var w1e=tr(),Fx=Vt(),M1e=Ri(),T1e=Rx(),A1e="images";MN.exports=function(r,t){var n={name:A1e,handleItemDefaults:k1e};M1e(r,t,n)};function k1e(e,r,t){function n(g,b){return w1e.coerce(e,r,T1e,g,b)}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 CN=xe((Mwe,SN)=>{"use strict";var AN=lt(),S1e=At(),Ru=Vt(),kN=mn(),C1e=(wl(),or(_l));SN.exports=function(r){var t=r._fullLayout,n=[],a={},o=[],i,l;for(l=0;l{"use strict";var EN=ut(),E1e=jv();LN.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";RN.exports={moduleType:"component",name:"images",layoutAttributes:Rx(),supplyLayoutDefaults:TN(),includeBasePlot:zc()("images"),draw:CN(),convertCoords:DN()}});var Nd={};Ht(Nd,{activeColor:()=>e2e,arrowOffsetX:()=>K1e,arrowPadX:()=>X1e,arrowSymbol:()=>t2e,autoMarginIdRoot:()=>U1e,blankHeaderOpts:()=>H1e,buttonClassName:()=>N1e,containerClassName:()=>D1e,dropdownButtonClassName:()=>z1e,dropdownButtonGroupClassName:()=>I1e,gapButton:()=>j1e,gapButtonHeader:()=>Q1e,headerArrowClassName:()=>P1e,headerClassName:()=>F1e,headerGroupClassName:()=>R1e,hoverColor:()=>r2e,itemRectClassName:()=>q1e,itemTextClassName:()=>B1e,menuIndexAttrName:()=>O1e,minHeight:()=>G1e,minWidth:()=>V1e,name:()=>L1e,rx:()=>W1e,ry:()=>Z1e,textOffsetX:()=>J1e,textOffsetY:()=>$1e,textPadX:()=>Y1e});var L1e,D1e,R1e,F1e,P1e,I1e,z1e,N1e,q1e,B1e,O1e,U1e,H1e,V1e,G1e,Y1e,X1e,W1e,Z1e,J1e,$1e,K1e,Q1e,j1e,e2e,r2e,t2e,qd=Ut(()=>{"use strict";L1e="updatemenus",D1e="updatemenu-container",R1e="updatemenu-header-group",F1e="updatemenu-header",P1e="updatemenu-header-arrow",I1e="updatemenu-dropdown-button-group",z1e="updatemenu-dropdown-button",N1e="updatemenu-button",q1e="updatemenu-item-rect",B1e="updatemenu-item-text",O1e="updatemenu-active-index",U1e="updatemenu-",H1e={label:" "},V1e=30,G1e=30,Y1e=24,X1e=16,W1e=2,Z1e=2,J1e=12,$1e=3,K1e=4,Q1e=5,j1e=2,e2e="#F4FAFF",r2e="#F4FAFF",t2e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var Px=xe((kwe,IN)=>{"use strict";var n2e=Wn(),a2e=no(),i2e=Rt().extendFlat,o2e=ua().overrideAll,l2e=zh(),PN=Tt().templatedArray,s2e=PN("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}});IN.exports=o2e(PN("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:s2e,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:i2e(l2e({editType:"arraydraw"}),{}),font:n2e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:a2e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var BN=xe((Swe,qN)=>{"use strict";var Bd=tr(),zN=Ri(),NN=Px(),u2e=(qd(),or(Nd)),f2e=u2e.name,c2e=NN.buttons;qN.exports=function(r,t){var n={name:f2e,handleItemDefaults:v2e};zN(r,t,n)};function v2e(e,r,t){function n(i,l){return Bd.coerce(e,r,NN,i,l)}var a=zN(e,r,{name:"buttons",handleItemDefaults:h2e}),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 h2e(e,r){function t(a,o){return Bd.coerce(e,r,c2e,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 HN=xe((Cwe,UN)=>{"use strict";UN.exports=Jt;var Hi=lt(),ON=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",b=c==="left",h=c==="right",_=c==="up",T=u,m=f,k,S,x,M;!g&&!b&&!h&&!_&&(this.position.direction="down",g=!0);var d=g||_;d?(k=l,S=k+T,g?(x=s,M=Math.min(x+m,i),m=M-x):(M=s+m,x=Math.max(M-m,0),m=M-x)):(x=s,M=x+m,b?(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:x,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(ON.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,I=Jt.barLength+2*Jt.barPad,z=l+u,F=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(ON.fill,Jt.barColor),E?(this.vbar=L.attr({rx:Jt.barRadius,ry:Jt.barRadius,x:z,y:F,width:R,height:I}),this._vbarYMin=F+I/2,this._vbarTranslateMax=m-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var P=this.id,B=k-.5,O=E?S+R+.5:S+.5,G=x-.5,J=w?M+v+.5:M+.5,j=a._topdefs.selectAll("#"+P).data(w||E?[0]:[]);if(j.exit().remove(),j.enter().append("clipPath").attr("id",P).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,P,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=Hi.behavior.drag().on("dragstart",function(){Hi.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=Hi.behavior.drag().on("dragstart",function(){Hi.event.sourceEvent.preventDefault(),Hi.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-=Hi.event.dx),this.vbar&&(t-=Hi.event.dy),this.setTranslate(r,t)};Jt.prototype._onBoxWheel=function(){var r=this.translateX,t=this.translateY;this.hbar&&(r+=Hi.event.deltaY),this.vbar&&(t+=Hi.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(Hi.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(Hi.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 QN=xe((Ewe,KN)=>{"use strict";var Pu=lt(),rv=Sn(),tv=Zr(),Iu=At(),Za=tr(),Ud=Qn(),d2e=Tt().arrayEditor,GN=(Kn(),or($n)).LINE_SPACING,Lr=(qd(),or(Nd)),p2e=HN();KN.exports=function(r){var t=r._fullLayout,n=Za.filterVisible(t[Lr.name]);function a(g){rv.autoMargin(r,JN(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,g2e);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 M2e=(qd(),or(Nd));jN.exports={moduleType:"component",name:M2e.name,layoutAttributes:Px(),supplyLayoutDefaults:BN(),draw:QN()}});var av={};Ht(av,{arrowOffsetX:()=>V2e,autoMarginIdRoot:()=>B2e,containerClassName:()=>A2e,currentValueClass:()=>z2e,currentValueInset:()=>gde,currentValuePadding:()=>pde,gripBgActiveColor:()=>ide,gripBgColor:()=>ade,gripBorder:()=>rde,gripBorderColor:()=>nde,gripBorderWidth:()=>tde,gripHeight:()=>ede,gripRadius:()=>Q2e,gripRectClass:()=>L2e,gripWidth:()=>j2e,groupClassName:()=>k2e,inputAreaClass:()=>S2e,inputProxyClass:()=>R2e,labelClass:()=>I2e,labelGroupClass:()=>P2e,labelOffset:()=>lde,labelPadding:()=>ode,labelsClass:()=>F2e,menuIndexAttrName:()=>q2e,minHeight:()=>U2e,minWidth:()=>O2e,minorTickColor:()=>hde,minorTickLength:()=>dde,minorTickOffset:()=>vde,name:()=>T2e,railBgColor:()=>J2e,railBorder:()=>X2e,railBorderColor:()=>Z2e,railBorderWidth:()=>W2e,railHeight:()=>N2e,railInset:()=>$2e,railRadius:()=>G2e,railRectClass:()=>C2e,railTouchRectClass:()=>E2e,railWidth:()=>Y2e,stepInset:()=>K2e,textPadX:()=>H2e,tickColor:()=>ude,tickLength:()=>cde,tickOffset:()=>fde,tickRectClass:()=>D2e,tickWidth:()=>sde});var 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,hde,dde,pde,gde,iv=Ut(()=>{"use strict";T2e="sliders",A2e="slider-container",k2e="slider-group",S2e="slider-input-area",C2e="slider-rail-rect",E2e="slider-rail-touch-rect",L2e="slider-grip-rect",D2e="slider-tick-rect",R2e="slider-input-proxy",F2e="slider-labels",P2e="slider-label-group",I2e="slider-label",z2e="slider-current-value",N2e=5,q2e="slider-active-index",B2e="slider-",O2e=30,U2e=30,H2e=40,V2e=4,G2e=2,Y2e=5,X2e=4,W2e=1,Z2e="#bec8d9",J2e="#f8fafc",$2e=8,K2e=10,Q2e=10,j2e=20,ede=20,rde=20,tde=1,nde="#bec8d9",ade="#f6f8fa",ide="#dbdde0",ode=8,lde=0,sde=1,ude="#333",fde=25,cde=7,vde=25,hde="#333",dde=4,pde=8,gde=0});var qx=xe((Dwe,nq)=>{"use strict";var rq=Wn(),yde=zh(),mde=Rt().extendDeepAll,bde=ua().overrideAll,xde=If(),tq=Tt().templatedArray,a0=(iv(),or(av)),_de=tq("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}});nq.exports=bde(tq("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:_de,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:mde(yde({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:xde.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:rq({})},font:rq({}),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 lq=xe((Rwe,oq)=>{"use strict";var zu=tr(),aq=Ri(),iq=qx(),wde=(iv(),or(av)),Mde=wde.name,Tde=iq.steps;oq.exports=function(r,t){aq(r,t,{name:Mde,handleItemDefaults:Ade})};function Ade(e,r,t){function n(c,g){return zu.coerce(e,r,iq,c,g)}for(var a=aq(e,r,{name:"steps",handleItemDefaults:kde}),o=0,i=0;i{"use strict";var Vi=lt(),Hd=Sn(),Vl=Zr(),Gi=At(),Ja=tr(),Sde=Ja.strTranslate,ov=Qn(),Cde=Tt().arrayEditor,Yr=(iv(),or(av)),Ux=(Kn(),or($n)),fq=Ux.LINE_SPACING,Bx=Ux.FROM_TL,Ox=Ux.FROM_BR;gq.exports=function(r){var t=r._context.staticPlot,n=r._fullLayout,a=Ede(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,cq(f))}if(o.exit().each(function(){Vi.select(this).selectAll("g."+Yr.groupClassName).each(i)}).remove(),a.length!==0){var l=o.selectAll("g."+Yr.groupClassName).data(a,Lde);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",Sde(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 uq(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 Nde(e,r,t){var n=t._dims,a=Ja.ensureSingle(e,"rect",Yr.railTouchRectClass,function(o){o.call(dq,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),Gi.setTranslate(a,0,n.currentValueTotalHeight)}function qde(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"),Gi.setTranslate(a,Yr.railInset,(t.inputAreaWidth-Yr.railWidth)*.5+t.currentValueTotalHeight)}});var bq=xe((Pwe,mq)=>{"use strict";var Bde=(iv(),or(av));mq.exports={moduleType:"component",name:Bde.name,layoutAttributes:qx(),supplyLayoutDefaults:lq(),draw:yq()}});var Gd=xe((Iwe,_q)=>{"use strict";var xq=no();_q.exports={bgcolor:{valType:"color",dflt:xq.background,editType:"plot"},bordercolor:{valType:"color",dflt:xq.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((zwe,wq)=>{"use strict";wq.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:()=>Hde,containerClassName:()=>Ude,extraPad:()=>cpe,grabAreaCursor:()=>ope,grabAreaFill:()=>ipe,grabAreaMaxClassName:()=>Kde,grabAreaMinClassName:()=>Zde,grabAreaWidth:()=>lpe,grabberMaxClassName:()=>$de,grabberMinClassName:()=>Wde,handleMaxClassName:()=>Qde,handleMinClassName:()=>Jde,handleRadius:()=>upe,handleStrokeWidth:()=>fpe,handleWidth:()=>spe,maskColor:()=>rpe,maskMaxClassName:()=>Yde,maskMaxOppAxisClassName:()=>epe,maskMinClassName:()=>Gde,maskMinOppAxisClassName:()=>jde,maskOppAxisColor:()=>tpe,name:()=>Ode,rangePlotClassName:()=>Vde,slideBoxClassName:()=>Xde,slideBoxCursor:()=>ape,slideBoxFill:()=>npe});var Ode,Ude,Hde,Vde,Gde,Yde,Xde,Wde,Zde,Jde,$de,Kde,Qde,jde,epe,rpe,tpe,npe,ape,ipe,ope,lpe,spe,upe,fpe,cpe,Xd=Ut(()=>{"use strict";Ode="rangeslider",Ude="rangeslider-container",Hde="rangeslider-bg",Vde="rangeslider-rangeplot",Gde="rangeslider-mask-min",Yde="rangeslider-mask-max",Xde="rangeslider-slidebox",Wde="rangeslider-grabber-min",Zde="rangeslider-grabarea-min",Jde="rangeslider-handle-min",$de="rangeslider-grabber-max",Kde="rangeslider-grabarea-max",Qde="rangeslider-handle-max",jde="rangeslider-mask-min-opp-axis",epe="rangeslider-mask-max-opp-axis",rpe="rgba(0,0,0,0.4)",tpe="rgba(0,0,0,0.2)",npe="transparent",ape="ew-resize",ipe="transparent",ope="col-resize",lpe=10,spe=4,upe=1,fpe=1,cpe=15});var Aq=xe(Zd=>{"use strict";var vpe=mn(),hpe=Qn(),Mq=(Xd(),or(Yd)),dpe=(Kn(),or($n)).LINE_SPACING,Wd=Mq.name;function Tq(e){var r=e&&e[Wd];return r&&r.visible}Zd.isVisible=Tq;Zd.makeData=function(e){for(var r=vpe.list({_fullLayout:e},"x",!0),t=e.margin,n=[],a=0;a{"use strict";var Jd=tr(),kq=Tt(),Sq=mn(),ppe=Gd(),gpe=Vx();Cq.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=kq.newContainer(o,"rangeslider");function u(M,d){return Jd.coerce(i,l,ppe,M,d)}var s,f;function c(M,d){return Jd.coerce(s,f,gpe,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 b=t._subplots;if(b)for(var h=b.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===Sq.name2id(n)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),_=Jd.simpleMap(h,Sq.id2name),T=0;T<_.length;T++){var m=_[T];s=i[m]||{},f=kq.newContainer(l,m,"yaxis");var k=t[m],S;s.range&&k.isValidRange(s.range)&&(S="fixed");var x=c("rangemode",S);x!=="match"&&c("range",k.range.slice())}l._input=i}}});var Dq=xe((Bwe,Lq)=>{"use strict";var ype=mn().list,mpe=nu().getAutoRange,bpe=(Xd(),or(Yd));Lq.exports=function(r){for(var t=ype(r,"x",!0),n=0;n{"use strict";var $d=lt(),xpe=Cr(),_pe=Sn(),rn=tr(),Kd=rn.strTranslate,Fq=At(),Gl=Zr(),wpe=Kf(),Mpe=px(),Gx=mn(),Tpe=Pi(),Ape=Dl(),jr=(Xd(),or(Yd));Pq.exports=function(e){for(var r=e._fullLayout,t=r._rangeSliderData,n=0;n=F.max)I=A[z+1];else if(R=F.pmax)I=A[z+1];else if(R0?e.touches[0].clientX:0}function kpe(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=Rq(u),c=f-e.node().getBoundingClientRect().left,g=n.d2p(t._rl[0]),b=n.d2p(t._rl[1]),h=Tpe.coverSlip();this.addEventListener("touchmove",_),this.addEventListener("touchend",T),h.addEventListener("mousemove",_),h.addEventListener("mouseup",T);function _(m){var k=Rq(m),S=+k-f,x,M,d;switch(s){case a:if(d="ew-resize",g+S>t._length||b+S<0)return;x=g+S,M=b+S;break;case o:if(d="col-resize",g+S>t._length)return;x=g+S,M=b;break;case i:if(d="col-resize",b+S<0)return;x=g,M=b+S;break;default:d="ew-resize",x=c,M=c+S;break}if(M{"use strict";var zpe=tr(),Npe=Gd(),qpe=Vx(),Yx=Aq();zq.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:zpe.extendFlat({},Npe,{yaxis:qpe})}}},layoutAttributes:Gd(),handleDefaults:Eq(),calcAutorange:Dq(),draw:Iq(),isVisible:Yx.isVisible,makeData:Yx.makeData,autoMarginOpts:Yx.autoMarginOpts}});var Qd=xe((Hwe,Bq)=>{"use strict";var Bpe=Wn(),qq=no(),Ope=Tt().templatedArray,Upe=Ope("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"});Bq.exports={visible:{valType:"boolean",editType:"plot"},buttons:Upe,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:Bpe({editType:"plot"}),bgcolor:{valType:"color",dflt:qq.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:qq.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var Xx={};Ht(Xx,{darkAmount:()=>Wpe,lightAmount:()=>Xpe,minButtonWidth:()=>Vpe,rx:()=>Gpe,ry:()=>Ype,yPad:()=>Hpe});var Hpe,Vpe,Gpe,Ype,Xpe,Wpe,Wx=Ut(()=>{"use strict";Hpe=.02,Vpe=30,Gpe=3,Ype=3,Xpe=25,Wpe=10});var Hq=xe((Vwe,Uq)=>{"use strict";var jd=tr(),Zpe=Zr(),Jpe=Tt(),$pe=Ri(),Oq=Qd(),Zx=(Wx(),or(Xx));Uq.exports=function(r,t,n,a,o){var i=r.rangeselector||{},l=Jpe.newContainer(t,"rangeselector");function u(b,h){return jd.coerce(i,l,Oq,b,h)}var s=$pe(i,l,{name:"buttons",handleItemDefaults:Kpe,calendar:o}),f=u("visible",s.length>0);if(f){var c=Qpe(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",Zpe.contrast(g,Zx.lightAmount,Zx.darkAmount)),u("bordercolor"),u("borderwidth")}};function Kpe(e,r,t,n){var a=n.calendar;function o(u,s){return jd.coerce(e,r,Oq.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 Qpe(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(),ege=tr().titleCase;Vq.exports=function(r,t){var n=r._name,a={};if(t.step==="all")a[n+".autorange"]=!0;else{var o=rge(r,t);a[n+".range[0]"]=o[0],a[n+".range[1]"]=o[1]}return a};function rge(e,r){var t=e.range,n=new Date(e.r2l(t[1])),a=r.step,o=jpe["utc"+ege(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 Qq=xe((Ywe,Kq)=>{"use strict";var rp=lt(),tge=Cr(),nge=Sn(),Yq=Zr(),$q=At(),Wo=tr(),Xq=Wo.strTranslate,ep=Qn(),age=mn(),Kx=(Kn(),or($n)),Wq=Kx.LINE_SPACING,Zq=Kx.FROM_TL,Jq=Kx.FROM_BR,$x=(Wx(),or(Xx)),ige=Gq();Kq.exports=function(r){var t=r._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(oge(r),lge);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=ige(i,s);s._isActive=sge(i,s,c),f.call(Jx,l,s),f.call(fge,l,s,r),f.on("click",function(){r._dragged||tge.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)})}),vge(r,u,l,i._name,o)})};function oge(e){for(var r=age.list(e,"x",!0),t=[],n=0;n{"use strict";jq.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:Qd()}}},layoutAttributes:Qd(),handleDefaults:Hq(),draw:Qq()}});var tp=xe(Qx=>{"use strict";var rB=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:rB({},t,{}),y:rB({},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 hge=tr(),dge=(I0(),or(Ff)).counter,pge=tp().attributes,tB=(kn(),or(An)).idRegex,gge=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:[dge("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[tB.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[tB.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:pge({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 yge(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=gge.newContainer(r,"grid");function g(d,w){return hge.coerce(t,c,jx,d,w)}var b=g("rows",s),h=g("columns",f);if(!(b*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,x,M;u&&r._splomGridDflt&&(x=r._splomGridDflt.xside,M=r._splomGridDflt.yside),c._domains={x:nB("x",g,k,x,h),y:nB("y",g,S,M,b,m)}}function nB(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";lB.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 fB=xe(($we,uB)=>{"use strict";var sB=ut(),bge=Cr(),xge=tr(),_ge=Tt(),wge=e4();uB.exports=function(e,r,t,n){var a="error_"+n.axis,o=_ge.newContainer(r,a),i=e[a]||{};function l(h,_){return xge.coerce(i,o,wge,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 b=r["error_"+n.inherit];(b||{}).visible&&l(g,!(i.color||sB(i.thickness)||sB(i.width)))}(!n.inherit||!o[g])&&(l("color",t),l("thickness"),l("width",bge.traceIs(r,"gl3d")?0:4))}}});var r4=xe((Kwe,vB)=>{"use strict";vB.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=cB(t,r.value),l=cB(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 cB(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 pB=xe((Qwe,dB)=>{"use strict";var t4=ut(),Mge=Cr(),n4=Vt(),Tge=tr(),Age=r4();dB.exports=function(r){for(var t=r.calcdata,n=0;n{"use strict";var gB=lt(),Yl=ut(),kge=At(),Sge=Da();yB.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||{},b=c.error_y||{},h;c.ids&&(h=function(k){return k.id});var _=Sge.hasMarkers(c)&&c.marker.maxdisplayed>0;!b.visible&&!g.visible&&(f=[]);var T=gB.select(this).selectAll("g.errorbar").data(f,h);if(T.exit().remove(),!!f.length){g.visible||T.selectAll("path.xerror").remove(),b.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),kge.setClipUrl(T,n.layerClipId,r),T.each(function(k){var S=gB.select(this),x=Cge(k,i,l);if(!(_&&!k.vis)){var M,d=S.select("path.yerror");if(b.visible&&Yl(x.x)&&Yl(x.yh)&&Yl(x.ys)){var w=b.width;M="M"+(x.x-w)+","+x.yh+"h"+2*w+"m-"+w+",0V"+x.ys,x.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(x.y)&&Yl(x.xh)&&Yl(x.xs)){var v=(g.copy_ystyle?b:g).width;M="M"+x.xh+","+(x.y-v)+"v"+2*v+"m0,-"+v+"H"+x.xs,x.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 Cge(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 _B=xe((e8e,xB)=>{"use strict";var Ege=lt(),bB=Zr();xB.exports=function(r){r.each(function(t){var n=t[0].trace,a=n.error_y||{},o=n.error_x||{},i=Ege.select(this);i.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(bB.stroke,a.color),o.copy_ystyle&&(o=a),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(bB.stroke,o.color)})}});var TB=xe((r8e,MB)=>{"use strict";var lv=tr(),wB=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;MB.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:i0,bar:i0,histogram:i0,scatter3d:wB(uv,"calc","nested"),scattergl:wB(i0,"calc","nested")}},supplyDefaults:fB(),calc:pB(),makeComputeError:r4(),plot:mB(),style:_B(),hoverInfo:Lge};function Lge(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 AB={};Ht(AB,{cn:()=>Dge});var Dge,kB=Ut(()=>{"use strict";Dge={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 PB=xe((t8e,FB)=>{"use strict";var Xl=lt(),ip=Sn(),SB=Cr(),Zo=Vt(),ap=Pi(),mi=tr(),Xi=mi.strTranslate,RB=Rt().extendFlat,a4=Dl(),Yi=At(),Nu=Zr(),Rge=Kf(),Fge=Qn(),Pge=io().flipScale,Ige=kd(),zge=vx(),Nge=ai(),o4=(Kn(),or($n)),CB=o4.LINE_SPACING,EB=o4.FROM_TL,LB=o4.FROM_BR,Yt=(kB(),or(AB)).cn;function qge(e){var r=e._fullLayout,t=r._infolayer.selectAll("g."+Yt.colorbar).data(Bge(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=Oge(a,n,e);o&&o.then&&(e._promises||[]).push(o),e._context.edits.colorbarPosition&&Uge(a,n,e)}),t.exit().each(function(n){ip.autoMargin(e,n._id)}).remove(),t.order()}function Bge(e){var r=e._fullLayout,t=e.calcdata,n=[],a,o,i,l;function u(S){return RB(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?Pge(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]],DB=(e,r)=>[e[0],Math.max(e[1]-r,e[0])];function Oge(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,b=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,x=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=Hge(t,r,v),R=E.fill,I=E.line,z=Math.round(i*(l==="fraction"?n?x.w:x.h:1)),F=z/(n?x.w:x.h),L=Math.round(a*(o==="fraction"?n?x.h:x.w:1)),P=L/(n?x.h:x.w),B=k?x.w:t._fullLayout.width,O=m?x.h:t._fullLayout.height,G=Math.round(n?_*B+b:T*O+h),J={center:.5,right:1}[c]||0,j={top:1,middle:.5}[g]||0,V=n?_-J*F:T-j*F,q=n?T-j*P:_-J*P,Z=Math.round(n?O*(1-q):B*q);r._lenFrac=P,r._thickFrac=F,r._uFrac=V,r._vFrac=q;var re=r._axis=Vge(t,r,v);re.position=F+(n?_+b/x.w:T+h/x.h);var $=["top","bottom"].indexOf(y)!==-1;if(n&&$&&(re.title.side=y,re.titlex=_+b/x.w,re.titley=q+(w.side==="top"?P-h/x.h:h/x.h)),!n&&!$&&(re.title.side=y,re.titley=T+h/x.h,re.titlex=q+b/x.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/x.h:b/x.w;re.domain=DB(i4([q,q+P],ee),ee),re.setScale(),e.attr("transform",Xi(Math.round(x.l),Math.round(x.t)));var ie=e.select("."+Yt.cbtitleunshift).attr("transform",Xi(-Math.round(x.l),-Math.round(x.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(),Rge.draw(t,oe,RB(pe,de||{}))}function se(){if(n&&$||!n&&!$){var oe,de;y==="top"&&(oe=b+x.l+B*_,de=h+x.t+O*(1-q-P)+3+we*.75),y==="bottom"&&(oe=b+x.l+B*_,de=h+x.t+O*(1-q)-3-we*.25),y==="right"&&(de=h+x.t+O*T+3+we*.75,oe=b+x.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=x.l+B*oe+10+we*(re.showticklabels?1:.5);else if(pe=de,y==="bottom"&&(me=x.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=x.t+O*oe+10-z-CB*we*Se}Le((n?"h":"v")+re._id+"title",{avoid:{selection:Xl.select(t).selectAll("g."+re._id+"tick"),side:y,offsetTop:n?0:x.t,offsetLeft:n?x.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)*CB);var ve;if(me?(ve=Yi.bBox(me),Ee=ve.width,ge=ve.height,ge>Se&&(pe[1]-=(ge-Se)/2)):de.node()&&!de.classed(Yt.jsPlaceholder)&&(ve=Yi.bBox(de.node()),Ee=ve.width,ge=ve.height),n){if(ge){if(ge+=5,y==="top")re.domain=DB(re.domain,ge/x.h),pe[1]*=-1;else{re.domain=i4(re.domain,ge/x.h);var he=Fge.lineCount(de);pe[1]+=(1-he)*Se}oe.attr("transform",Xi(pe[0],pe[1])),re.setScale()}}else Ee&&(y==="right"&&(re.domain=i4(re.domain,(Ee+we/2)/x.w)),oe.attr("transform",Xi(pe[0],pe[1])),re.setScale())}e.selectAll("."+Yt.cbfills+",."+Yt.cblines).attr("transform",n?Xi(0,Math.round(x.h*(1-re.domain[1]))):Xi(Math.round(x.w*re.domain[0]),0)),Te.attr("transform",n?Xi(0,Math.round(-x.t)):Xi(Math.round(-x.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)Yi.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?I:[]);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(Yi.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=Yi.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=Yi.bBox(be),pe=oe.width,he=oe.height):(oe=Yi.bBox(ie.node()),pe=oe.right-x.l-(n?G:Z),he=oe.bottom-x.t-(n?Z:G),!n&&y==="top"&&(de+=oe.height,ve=oe.height)),Se&&(ke.attr("transform",Xi(pe/2+we/2,0)),pe*=2),de=Math.max(de,n?pe:he)}var Ae=(n?b: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?b: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+b)+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*b+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?x.l-qe:-qe,We=m?x.t-We:-We,e.attr("transform",Xi(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=Yi.bBox(nr),Qe=Yi.getTranslate(e),Ce=2;Xe.each(function(Hr,ot){var Ir=0,Jr=er-1;if(ot===Ir||ot===Jr){var Xt=Yi.bBox(this),tt=Yi.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=EB[c],je=LB[c],wr=EB[g],Xr=LB[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 Uge(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+Xi(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?SB.call("_guiRestyle",t,s,r._traceIndex):SB.call("_guiRelayout",t,s)}}})}function Hge(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";IB.exports={moduleType:"component",name:"colorbar",attributes:v1(),supplyDefaults:am(),draw:PB().draw,hasColorbar:Wy()}});var qB=xe((a8e,NB)=>{"use strict";NB.exports={moduleType:"component",name:"legend",layoutAttributes:e5(),supplyLayoutDefaults:t5(),draw:y5(),style:h5()}});var OB=xe((i8e,BB)=>{"use strict";BB.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 HB=xe((o8e,UB)=>{"use strict";UB.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((l8e,XB)=>{"use strict";var Gge=Cr(),YB=tr(),l4=YB.extendFlat,VB=YB.extendDeep;function GB(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 Yge(e){var r=["xaxis","yaxis","zaxis"];return r.indexOf(e.slice(0,5))>-1}XB.exports=function(r,t){var n,a=r.data,o=r.layout,i=VB([],a),l=VB({},o,GB(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 Xge=e1().EventEmitter,Wge=Cr(),Zge=tr(),WB=Zs(),Jge=s4(),$ge=sd(),Kge=ud();function Qge(e,r){var t=new Xge,n=Jge(e,{format:"png"}),a=n.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function o(){var l=WB.getDelay(a._fullLayout);setTimeout(function(){var u=$ge(a),s=document.createElement("canvas");s.id=Zge.randstr(),t=Kge({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=WB.getRedrawFunc(a);return Wge.call("_doPlot",a,n.data,n.layout,n.config).then(i).then(o).catch(function(l){t.emit("error",l)}),t}ZB.exports=Qge});var QB=xe((u8e,KB)=>{"use strict";var $B=Zs(),jge={getDelay:$B.getDelay,getRedrawFunc:$B.getRedrawFunc,clone:s4(),toSVG:sd(),svgToImg:ud(),toImage:JB(),downloadImage:Nb()};KB.exports=jge});var eO=xe(Jo=>{"use strict";Jo.version=uf().version;t7();UT();var e3e=Cr(),fv=Jo.register=e3e.register,f4=tP(),jB=Object.keys(f4);for(op=0;op{"use strict";rO.exports=eO()});var In=xe((v8e,nO)=>{"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(b,h){this._controllerNames=Object.keys(b),this._controllerList=this._controllerNames.map(function(_){return b[_]}),this._mode=h,this._active=b[h],this._active||(this._mode="turntable",this._active=b.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(b){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=x);var d=M===x?0:4-M%4;return[M,d]}function b(S){var x=g(S),M=x[0],d=x[1];return(M+d)*3/4-d}function h(S,x,M){return(x+M)*3/4-M}function _(S){var x,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++]=x>>8&255,y[v++]=x&255;return w===2&&(x=l[S.charCodeAt(p)]<<2|l[S.charCodeAt(p+1)]>>4,y[v++]=x&255),w===1&&(x=l[S.charCodeAt(p)]<<10|l[S.charCodeAt(p+1)]<<4|l[S.charCodeAt(p+2)]>>2,y[v++]=x>>8&255,y[v++]=x&255),y}function T(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function m(S,x,M){for(var d,w=[],y=x;yA?A:v+y));return d===1?(x=S[M-1],w.push(i[x>>2]+i[x<<4&63]+"==")):d===2&&(x=(S[M-2]<<8)+S[M-1],w.push(i[x>>10]+i[x>>4&63]+i[x<<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=b;function b(h,_){if(l(h))return _?g(h,b(_)):[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 b=0;b20?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),b=u(c);if(g===0)return[l(0),l(1)];if(b===0)return[l(0),l(0)];b<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 b=c.abs().divmod(g.abs()),h=b.div,_=l(h),T=b.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 x=g.bitLength()-T.bitLength()+53,S=l(T.ushln(x).divRound(g));return x<1023?m*S*Math.pow(2,-x):(S*=Math.pow(2,-1023),m*S*Math.pow(2,1023-x))}}},2478(a){"use strict";function o(c,g,b,h,_){for(var T=_+1;h<=_;){var m=h+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S>=0?(T=m,_=m-1):h=m+1}return T}function i(c,g,b,h,_){for(var T=_+1;h<=_;){var m=h+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S>0?(T=m,_=m-1):h=m+1}return T}function l(c,g,b,h,_){for(var T=h-1;h<=_;){var m=h+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S<0?(T=m,h=m+1):_=m-1}return T}function u(c,g,b,h,_){for(var T=h-1;h<=_;){var m=h+_>>>1,k=c[m],S=b!==void 0?b(k,g):k-g;S<=0?(T=m,h=m+1):_=m-1}return T}function s(c,g,b,h,_){for(;h<=_;){var T=h+_>>>1,m=c[T],k=b!==void 0?b(m,g):m-g;if(k===0)return T;k<=0?h=T+1:_=T-1}return-1}function f(c,g,b,h,_,T){return typeof b=="function"?T(c,g,b,h===void 0?0:h|0,_===void 0?c.length-1:_|0):T(c,g,void 0,b===void 0?0:b|0,h===void 0?c.length-1:h|0)}a.exports={ge:function(c,g,b,h,_){return f(c,g,b,h,_,o)},gt:function(c,g,b,h,_){return f(c,g,b,h,_,i)},lt:function(c,g,b,h,_){return f(c,g,b,h,_,l)},le:function(c,g,b,h,_){return f(c,g,b,h,_,u)},eq:function(c,g,b,h,_){return f(c,g,b,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,b=7;for(c>>>=1;c;c>>>=1)g<<=1,g|=c&1,--b;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(F,L){if(!F)throw new Error(L||"Assertion failed")}function f(F,L){F.super_=L;var P=function(){};P.prototype=L.prototype,F.prototype=new P,F.prototype.constructor=F}function c(F,L,P){if(c.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((L==="le"||L==="be")&&(P=L,L=10),this._init(F||0,L||10,P||"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(F){}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,P){return L.cmp(P)>0?L:P},c.min=function(L,P){return L.cmp(P)<0?L:P},c.prototype._init=function(L,P,B){if(typeof L=="number")return this._initNumber(L,P,B);if(typeof L=="object")return this._initArray(L,P,B);P==="hex"&&(P=16),s(P===(P|0)&&P>=2&&P<=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 b(F,L){var P=F.charCodeAt(L);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function h(F,L,P){var B=b(F,P);return P-1>=L&&(B|=b(F,P-1)<<4),B}c.prototype._parseHex=function(L,P,B){this.length=Math.ceil((L.length-P)/6),this.words=new Array(this.length);for(var O=0;O=P;O-=2)j=h(L,P,O)<=18?(G-=18,J+=1,this.words[J]|=j>>>26):G+=8;else{var V=L.length-P;for(O=V%2===0?P+1:P;O=18?(G-=18,J+=1,this.words[J]|=j>>>26):G+=8}this.strip()};function _(F,L,P,B){for(var O=0,G=Math.min(F.length,P),J=L;J=49?O+=j-49+10:j>=17?O+=j-17+10:O+=j}return O}c.prototype._parseBase=function(L,P,B){this.words=[0],this.length=1;for(var O=0,G=1;G<=67108863;G*=P)O++;O--,G=G/P|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,P){L=L||10,P=P|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%P!==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%P!==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,P){return s(typeof g!="undefined"),this.toArrayLike(g,L,P)},c.prototype.toArray=function(L,P){return this.toArrayLike(Array,L,P)},c.prototype.toArrayLike=function(L,P,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=P==="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,P>>>=13),P>=64&&(B+=7,P>>>=7),P>=8&&(B+=4,P>>>=4),P>=2&&(B+=2,P>>>=2),B+P},c.prototype._zeroBits=function(L){if(L===0)return 26;var P=L,B=0;return(P&8191)===0&&(B+=13,P>>>=13),(P&127)===0&&(B+=7,P>>>=7),(P&15)===0&&(B+=4,P>>>=4),(P&3)===0&&(B+=2,P>>>=2),(P&1)===0&&B++,B},c.prototype.bitLength=function(){var L=this.words[this.length-1],P=this._countBits(L);return(this.length-1)*26+P};function S(F){for(var L=new Array(F.bitLength()),P=0;P>>O}return L}c.prototype.zeroBits=function(){if(this.isZero())return 0;for(var L=0,P=0;PL.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 P;this.length>L.length?P=L:P=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 P,B;this.length>L.length?(P=this,B=L):(P=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 P=Math.ceil(L/26)|0,B=L%26;this._expand(P),B>0&&P--;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),P?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 P=this.iadd(L);return L.negative=1,P._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]=P&67108863;for(;J!==0&&j>26,this.words[j]=P&67108863;if(J===0&&j>>26,re=V&67108863,$=Math.min(q,L.length-1),ae=Math.max(0,q-F.length+1);ae<=$;ae++){var Q=q-ae|0;O=F.words[Q]|0,G=L.words[ae]|0,J=O*G+re,Z+=J/67108864|0,re=J&67108863}P.words[q]=re|0,V=Z|0}return V!==0?P.words[q]=V|0:P.length--,P.strip()}var M=function(L,P,B){var O=L.words,G=P.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^P.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 $i=(j+V|0)+((q&8191)<<13)|0;j=(Z+(q>>>13)|0)+($i>>>26)|0,$i&=67108863,V=Math.imul(Re,lr),q=Math.imul(Re,Dr),q=q+Math.imul(Pe,lr)|0,Z=Math.imul(Pe,Dr);var Ki=(j+V|0)+((q&8191)<<13)|0;return j=(Z+(q>>>13)|0)+(Ki>>>26)|0,Ki&=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]=$i,J[18]=Ki,j!==0&&(J[19]=j,B.length++),B};Math.imul||(M=x);function d(F,L,P){P.negative=L.negative^F.negative,P.length=F.length+L.length;for(var B=0,O=0,G=0;G>>26)|0,O+=J>>>26,J&=67108863}P.words[G]=j,B=J,J=O}return B!==0?P.words[G]=B:P.length--,P.strip()}function w(F,L,P){var B=new y;return B.mulp(F,L,P)}c.prototype.mulTo=function(L,P){var B,O=this.length+L.length;return this.length===10&&L.length===10?B=M(this,L,P):O<63?B=x(this,L,P):O<1024?B=d(this,L,P):B=w(this,L,P),B};function y(F,L){this.x=F,this.y=L}y.prototype.makeRBT=function(L){for(var P=new Array(L),B=c.prototype._countBits(L)-1,O=0;O>=1;return O},y.prototype.permute=function(L,P,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*P;J>=26,P+=O/67108864|0,P+=G>>>26,this.words[B]=G&67108863}return P!==0&&(this.words[B]=P,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 P=S(L);if(P.length===0)return new c(1);for(var B=this,O=0;O=0);var P=L%26,B=(L-P)/26,O=67108863>>>26-P<<26-P,G;if(P!==0){var J=0;for(G=0;G>>26-P}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;P?O=(P-P%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,P,B){return s(this.negative===0),this.iushrn(L,P,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 P=L%26,B=(L-P)/26,O=1<=0);var P=L%26,B=(L-P)/26;if(s(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(P!==0&&B++,this.length=Math.min(B,this.length),P!==0){var O=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+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 P=0;P>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,P){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(P!=="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(),P!=="div"&&B!==0&&O.iushrn(B),{div:q||null,mod:O}},c.prototype.divmod=function(L,P,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,P),P!=="mod"&&(O=J.div.neg()),P!=="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(),P),P!=="mod"&&(O=J.div.neg()),{div:O,mod:J.mod}):(this.negative&L.negative)!==0?(J=this.neg().divmod(L.neg(),P),P!=="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?P==="div"?{div:this.divn(L.words[0]),mod:null}:P==="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,P)},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 P=this.divmod(L);if(P.mod.isZero())return P.div;var B=P.mod.abs(),O=L.abs().iushrn(1),G=L.words[0]&1,J=B.cmp(O);if(J<0||G===1&&J===0)return P.div;var j=new c(1);return j.negative=this.negative^L.negative,P.div.iadd(j)},c.prototype.modn=function(L){s(L<=67108863);for(var P=(1<<26)%L,B=0,O=this.length-1;O>=0;O--)B=(P*B+(this.words[O]|0))%L;return B},c.prototype.idivn=function(L){s(L<=67108863);for(var P=0,B=this.length-1;B>=0;B--){var O=(this.words[B]|0)+P*67108864;this.words[B]=O/L|0,P=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 P=this,B=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var O=new c(1),G=new c(0),J=new c(0),j=new c(1),V=0;P.isEven()&&B.isEven();)P.iushrn(1),B.iushrn(1),++V;for(var q=B.clone(),Z=P.clone();!P.isZero();){for(var re=0,$=1;(P.words[0]&$)===0&&re<26;++re,$<<=1);if(re>0)for(P.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);P.cmp(B)>=0?(P.isub(B),O.isub(J),G.isub(j)):(B.isub(P),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 P=this,B=L.clone();P.negative!==0?P=P.umod(L):P=P.clone();for(var O=new c(1),G=new c(0),J=B.clone();P.cmpn(1)>0&&B.cmpn(1)>0;){for(var j=0,V=1;(P.words[0]&V)===0&&j<26;++j,V<<=1);if(j>0)for(P.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);P.cmp(B)>=0?(P.isub(B),O.isub(G)):(B.isub(P),G.isub(O))}var re;return P.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 P=this.clone(),B=L.clone();P.negative=0,B.negative=0;for(var O=0;P.isEven()&&B.isEven();O++)P.iushrn(1),B.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;B.isEven();)B.iushrn(1);var G=P.cmp(B);if(G<0){var J=P;P=B,B=J}else if(G===0||B.cmpn(1)===0)break;P.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 P=L%26,B=(L-P)/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 P=L<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var B;if(this.length>1)B=1;else{P&&(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&&(P=1);break}}return P},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 I(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(F,L){this.name=F,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 P=L,B;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),B=P.bitLength();while(B>this.n);var O=B0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},A.prototype.split=function(L,P){L.iushrn(this.n,0,P)},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,P){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 P=0,B=0;B>>=26,L.words[B]=G,P=O}return P!==0&&(L.words[L.length++]=P),L},c._prime=function(L){if(v[L])return v[L];var P;if(L==="k256")P=new p;else if(L==="p224")P=new D;else if(L==="p192")P=new E;else if(L==="p25519")P=new R;else throw new Error("Unknown prime "+L);return v[L]=P,P};function I(F){if(typeof F=="string"){var L=c._prime(F);this.m=L.p,this.prime=L}else s(F.gtn(1),"modulus must be greater than 1"),this.m=F,this.prime=null}I.prototype._verify1=function(L){s(L.negative===0,"red works only with positives"),s(L.red,"red works only with red numbers")},I.prototype._verify2=function(L,P){s((L.negative|P.negative)===0,"red works only with positives"),s(L.red&&L.red===P.red,"red works only with red numbers")},I.prototype.imod=function(L){return this.prime?this.prime.ireduce(L)._forceRed(this):L.umod(this.m)._forceRed(this)},I.prototype.neg=function(L){return L.isZero()?L.clone():this.m.sub(L)._forceRed(this)},I.prototype.add=function(L,P){this._verify2(L,P);var B=L.add(P);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},I.prototype.iadd=function(L,P){this._verify2(L,P);var B=L.iadd(P);return B.cmp(this.m)>=0&&B.isub(this.m),B},I.prototype.sub=function(L,P){this._verify2(L,P);var B=L.sub(P);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},I.prototype.isub=function(L,P){this._verify2(L,P);var B=L.isub(P);return B.cmpn(0)<0&&B.iadd(this.m),B},I.prototype.shl=function(L,P){return this._verify1(L),this.imod(L.ushln(P))},I.prototype.imul=function(L,P){return this._verify2(L,P),this.imod(L.imul(P))},I.prototype.mul=function(L,P){return this._verify2(L,P),this.imod(L.mul(P))},I.prototype.isqr=function(L){return this.imul(L,L.clone())},I.prototype.sqr=function(L){return this.mul(L,L)},I.prototype.sqrt=function(L){if(L.isZero())return L.clone();var P=this.m.andln(3);if(s(P%2===1),P===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=P.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},I.prototype.convertTo=function(L){var P=L.umod(this.m);return P===L?P.clone():P},I.prototype.convertFrom=function(L){var P=L.clone();return P.red=null,P},c.mont=function(L){return new z(L)};function z(F){I.call(this,F),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,I),z.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},z.prototype.convertFrom=function(L){var P=this.imod(L.mul(this.rinv));return P.red=null,P},z.prototype.imul=function(L,P){if(L.isZero()||P.isZero())return L.words[0]=0,L.length=1,L;var B=L.imul(P),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,P){if(L.isZero()||P.isZero())return new c(0)._forceRed(this);var B=L.mul(P),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 P=this.imod(L._invmp(this.m).mul(this.r2));return P._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,x,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,x,0,d,A,p,0,w,D,E):v=s(y,x,M,d,A,p,w,D,E),l.free(D),l.free(E))}l.free(A),l.free(p)}return v}}}var b;function h(k,S){b.push([k,S])}function _(k){return b=[],g(k,k,h,!0),b}function T(k,S){return b=[],g(k,S,h,!1),b}function m(k,S,x){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,x,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455(a,o){"use strict";function i(){function s(g,b,h,_,T,m,k,S,x,M,d){for(var w=2*g,y=_,v=w*_;yx-S?s(g,b,h,_,T,m,k,S,x,M,d):f(g,b,h,_,T,m,k,S,x,M,d)}return c}function l(){function s(h,_,T,m,k,S,x,M,d,w,y){for(var v=2*h,A=m,p=v*m;Aw-d?m?s(h,_,T,k,S,x,M,d,w,y,v):f(h,_,T,k,S,x,M,d,w,y,v):m?c(h,_,T,k,S,x,M,d,w,y,v):g(h,_,T,k,S,x,M,d,w,y,v)}return b}function u(s){return s?i():l()}o.partial=u(!1),o.full=u(!0)},7150(a,o,i){"use strict";a.exports=F;var l=i(1888),u=i(8828),s=i(2455),f=s.partial,c=s.full,g=i(855),b=i(3545),h=i(8105),_=128,T=1<<22,m=1<<22,k=h("!(lo>=p0)&&!(p1>=hi)"),S=h("lo===p0"),x=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=x(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+b]>M;--d,w-=k){for(var y=w,v=w+k,A=0;A>>1,M=2*g,d=x,w=T[M*x+b];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 F=M*(S-1),L=M*d,I=0;I=p0)&&!(p1>=hi)":b};function i(h){return o[h]}function l(h,_,T,m,k,S,x){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===x)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 I=S[p];S[p]=S[y],S[y++]=I}}return y}function u(h,_,T,m,k,S,x){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 I=S[p];S[p]=S[y],S[y++]=I}}return y}function s(h,_,T,m,k,S,x){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<=x)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 I=S[p];S[p]=S[y],S[y++]=I}}return y}function f(h,_,T,m,k,S,x){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<=x)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 I=S[p];S[p]=S[y],S[y++]=I}}return y}function c(h,_,T,m,k,S,x){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<=x&&x<=E)if(y===p)y+=1,w+=M;else{for(var R=0;M>R;++R){var I=k[d+R];k[d+R]=k[w],k[w++]=I}var z=S[p];S[p]=S[y],S[y++]=z}}return y}function g(h,_,T,m,k,S,x){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 I=k[d+R];k[d+R]=k[w],k[w++]=I}var z=S[p];S[p]=S[y],S[y++]=z}}return y}function b(h,_,T,m,k,S,x,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>=x)&&!(M>=R))if(v===D)v+=1,y+=d;else{for(var I=0;d>I;++I){var z=k[w+I];k[w+I]=k[y],k[y++]=z}var F=S[D];S[D]=S[v],S[v++]=F}}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 x=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 b(_,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=x,E=_+1,R=T-1,I=0;g(y,v,m)&&(I=y,y=v,v=I),g(p,D,m)&&(I=p,p=D,D=I),g(y,A,m)&&(I=y,y=A,A=I),g(v,A,m)&&(I=v,v=A,A=I),g(y,p,m)&&(I=y,y=p,p=I),g(A,p,m)&&(I=A,A=p,p=I),g(v,D,m)&&(I=v,v=D,D=I),g(v,A,m)&&(I=v,v=A,A=I),g(p,D,m)&&(I=p,p=D,D=I);for(var z=m[2*v],F=m[2*v+1],L=m[2*p],P=m[2*p+1],B=2*y,O=2*A,G=2*D,J=2*S,j=2*M,V=2*x,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(b(ae,z,F,m))ae!==E&&u(ae,E,m),++E;else if(!b(ae,L,P,m))for(;;)if(b(R,L,P,m)){b(R,z,F,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,x(h,_,ae--,Q);else if(Q>=0)x(g,b,$--,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?x(g,b,$--,ee):ue===1?x(h,_,ae--,ee):ue===2&&x(T,m,Q--,ee)}}}function y(A,p,D,E,R,I,z,F,L,P,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,b,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=P[ue+p+1],ie=P[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?b(se):X!==void 0?typeof K=="string"?b(se).fill(X,K):b(se).fill(X):b(se)}h.alloc=function(se,X,K){return m(se,X,K)};function k(se){return T(se),b(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=b(K),oe=ye.write(se,X);return oe!==K&&(ye=ye.slice(0,oe)),ye}function x(se){for(var X=se.length<0?0:y(se.length)|0,K=b(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 I(this,X,K,ye);case"utf8":case"utf-8":return z(this,X,K,ye);case"ascii":case"latin1":case"binary":return F(this,X,K,ye);case"base64":return L(this,X,K,ye);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(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 b(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),x=!!h(k,"interior",!0),M=!!h(k,"exterior",!0),d=!!h(k,"infinity",!1);if(!x&&!M||T.length===0)return[];var w=l(T,m);if(S||x!==M||d){for(var y=u(T.length,b(m)),v=0;v0;){for(var S=b.pop(),T=b.pop(),x=-1,M=-1,m=_[T],w=1;w=0||(g.flip(T,S),s(c,g,b,x,T,M),s(c,g,b,T,M,x),s(c,g,b,M,S,x),s(c,g,b,S,x,M))}}},5023(a,o,i){"use strict";var l=i(2478);a.exports=b;function u(h,_,T,m,k,S,x){this.cells=h,this.neighbor=_,this.flags=m,this.constraint=T,this.active=k,this.next=S,this.boundary=x}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,x=m;return T0||x.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]?x.push(D):(S.push(D),M[D]=k))}}}var E=x;x=S,S=E,x.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=x;function g(M,d,w,y,v){this.a=M,this.b=d,this.idx=w,this.lowerIds=y,this.upperIds=v}function b(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 I=E.upperIds,z=I.length;z>1&&u(w[I[z-2]],w[I[z-1]],y)<0;)M.push([I[z-2],I[z-1],v]),z-=1;I.length=z,I.push(v)}}function m(M,d){var w;return M.a[0]E[0]&&v.push(new b(E,D,c,A),new b(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),I=[new g([R,1],[R,0],-1,[],[],[],[])],z=[],A=0,F=v.length;A=0}})(),s.removeTriangle=function(g,b,h){var _=this.stars;f(_[g],b,h),f(_[b],h,g),f(_[h],g,b)},s.addTriangle=function(g,b,h){var _=this.stars;_[g].push(b,h),_[b].push(h,g),_[h].push(g,b)},s.opposite=function(g,b){for(var h=this.stars[b],_=1,T=h.length;_=0;--L){var Z=z[L];P=Z[0];var re=R[P],$=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(F&&(ie=re[2]);L>0&&z[L-1][0]===P;){var Z=z[--L],fe=Z[1];F?R.push([ee,fe,ie]):R.push([ee,fe]),ee=fe}F?R.push([ee,ae,ie]):R.push([ee,ae])}return B}function d(E,R,I){for(var z=R.length,F=new l(z),L=[],P=0;PR[2]?1:0)}function v(E,R,I){if(E.length!==0){if(R)for(var z=0;z0||P.length>0}function D(E,R,I){var z;if(I){z=R;for(var F=new Array(R.length),L=0;LM+1)throw new Error(S+" map requires nshades to be at least size "+k.length);Array.isArray(b.alpha)?b.alpha.length!==2?d=[1,1]:d=b.alpha.slice():typeof b.alpha=="number"?d=[b.alpha,b.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,I=k[E].rgb.slice();return I.length===4&&I[3]>=0&&I[3]<=1||(I[3]=d[0]+(d[1]-d[0])*R),I}),v=[];for(w=0;w=0}function b(h,_,T,m){var k=l(_,T,m);if(k===0){var S=u(l(h,_,T)),x=u(l(h,_,m));if(S===x){if(S===0){var M=g(h,_,T),d=g(h,_,m);return M===d?0:M?1:-1}return 0}else{if(x===0)return S>0||g(h,_,m)?-1:1;if(S===0)return x>0||g(h,_,T)?1:-1}return u(x-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],b=s[0]+s[1];if(c=g+u[2]-(b+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],b);case 4:var T=u[0],m=u[1],k=u[2],S=u[3],x=s[0],M=s[1],d=s[2],w=s[3];return T+m+k+S-(x+M+d+w)||o(T,m,k,S)-o(x,M,d,w,x)||o(T+m,T+k,T+S,m+k,m+S,k+S)-o(x+M,x+d,x+w,M+d,M+w,d+w)||o(T+m+k,T+m+S,T+k+S,m+k+S)-o(x+M+d,x+M+w,x+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),b=f[c-1],h=0;h=b[x]&&(S+=1);m[k]=S}}return g}function c(g,b){try{return l(g,!0)}catch(m){var h=u(g);if(h.length<=b)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 b=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]=b*l[m]+h*u[m]+_*s[m]+T*f[m];return g}return b*l+h*u+_*s[m]+T*f}function i(l,u,s,f,c,g){var b=c-1,h=c*c,_=b*b,T=(1+2*c)*_,m=c*_,k=h*(3-2*c),S=h*b;if(l.length){g||(g=new Array(l.length));for(var x=l.length-1;x>=0;--x)g[x]=T*l[x]+m*u[x]+k*s[x]+S*f[x];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(b,h){this.point=b,this.index=h}function f(b,h){for(var _=b.point,T=h.point,m=_.length,k=0;k=2)return!1;I[F]=L}return!0}):R=R.filter(function(I){for(var z=0;z<=T;++z){var F=A[I[z]];if(F<0)return!1;I[z]=F}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),x=a.exports.hi(k),M=x&(1<<20)-1;return x&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),b;if(f===u.length-1)for(b=0;b0)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,x=this.bounds,M=x[0],d=x[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,x=h-_,M=this.bounds,d=M[0],w=M[1],y=x>1e-6?1/x: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],x[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,x=this.bounds,M=x[0],d=x[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,x=this.bounds,M=x[0],d=x[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 I=A[E-2];if(I.left===R)if(R.left===v){var z=I.right;if(z&&z._color===o)R._color=i,I.right=s(i,z),I._color=o,E-=1;else{if(I._color=o,I.left=R.right,R._color=i,R.right=I,A[E-2]=R,A[E-1]=v,f(I),f(R),E>=3){var F=A[E-3];F.left===I?F.left=R:F.right=R}break}}else{var z=I.right;if(z&&z._color===o)R._color=i,I.right=s(i,z),I._color=o,E-=1;else{if(R.right=v.left,I._color=o,I.left=v.right,v._color=i,v.left=R,v.right=I,A[E-2]=v,A[E-1]=R,f(I),f(R),f(v),E>=3){var F=A[E-3];F.left===I?F.left=v:F.right=v}break}}else if(R.right===v){var z=I.left;if(z&&z._color===o)R._color=i,I.left=s(i,z),I._color=o,E-=1;else{if(I._color=o,I.right=R.left,R._color=i,R.left=I,A[E-2]=R,A[E-1]=v,f(I),f(R),E>=3){var F=A[E-3];F.right===I?F.right=R:F.left=R}break}}else{var z=I.left;if(z&&z._color===o)R._color=i,I.left=s(i,z),I._color=o,E-=1;else{if(R.left=v.right,I._color=o,I.right=v.left,v._color=i,v.right=R,v.left=I,A[E-2]=v,A[E-1]=R,f(I),f(R),f(v),E>=3){var F=A[E-3];F.right===I?F.right=v:F.left=v}break}}}return A[0]._color=i,new c(y,A[0])};function b(d,w){if(w.left){var y=b(d,w.left);if(y)return y}var y=d(w.key,w.value);if(y)return y;if(w.right)return b(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 b(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 x(d,w){return dw?1:0}function M(d){return new c(d||x,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]),b=ArrayBuffer,h=DataView;function _(R){return b.isView(R)&&!(R instanceof h)}function T(R){return Array.isArray(R)||_(R)}function m(R,I){return R[0]=I[0],R[1]=I[1],R[2]=I[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 I($,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=I.bind(this,!1,Number),F=I.bind(this,!1,Boolean),L=I.bind(this,!1,String),P=I.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}F("tickEnable"),L("tickFont")&&(O=!0),L("tickFontStyle")&&(O=!0),L("tickFontWeight")&&(O=!0),L("tickFontVariant")&&(O=!0),z("tickSize"),z("tickAngle"),z("tickPad"),P("tickColor");var q=L("labels");L("labelFont")&&(q=!0),L("labelFontStyle")&&(q=!0),L("labelFontWeight")&&(q=!0),L("labelFontVariant")&&(q=!0),F("labelEnable"),z("labelSize"),z("labelPad"),P("labelColor"),F("lineEnable"),F("lineMirror"),z("lineWidth"),P("lineColor"),F("lineTickEnable"),F("lineTickMirror"),z("lineTickLength"),z("lineTickWidth"),P("lineTickColor"),F("gridEnable"),z("gridWidth"),P("gridColor"),F("zeroEnable"),P("zeroLineColor"),z("zeroLineWidth"),F("backgroundEnable"),P("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 x(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var M=[new x,new x,new x];function d(R,I,z,F,L){for(var P=R.primalOffset,B=R.primalMinor,O=R.mirrorOffset,G=R.mirrorMinor,J=F[I],j=0;j<3;++j)if(I!==j){var V=P,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,I=R.model||g,z=R.view||g,F=R.projection||g,L=this.bounds,P=R._ortho||!1,B=f(I,z,F,L,P),O=B.cubeEdges,G=B.axis,J=z[12],j=z[13],V=z[14],q=z[15],Z=P?2:1,re=Z*this.pixelRatio*(F[3]*J+F[7]*j+F[11]*V+F[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(I,z,F,L,te,this.backgroundColor),this._lines.bind(I,z,F,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/I[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(I,z,F,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)/I[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]/I[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]/I[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,I){var z=new k(R);return z.update(I),z}},5304(a,o,i){"use strict";a.exports=g;var l=i(2762),u=i(8116),s=i(1879).bg;function f(b,h,_,T){this.gl=b,this.buffer=h,this.vao=_,this.shader=T}var c=f.prototype;c.draw=function(b,h,_,T,m,k){for(var S=!1,x=0;x<3;++x)S=S||m[x];if(S){var M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:b,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(b){for(var h=[],_=[],T=0,m=0;m<3;++m)for(var k=(m+1)%3,S=(m+2)%3,x=[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),x[m]=d,M[m]=d;for(var w=-1;w<=1;w+=2){x[k]=w;for(var y=-1;y<=1;y+=2)x[S]=y,h.push(x[0],x[1],x[2],M[0],M[1],M[2]),T+=1}var v=k;k=S,S=v}var A=l(b,new Float32Array(h)),p=l(b,new Uint16Array(_),b.ELEMENT_ARRAY_BUFFER),D=u(b,[{buffer:A,type:b.FLOAT,size:3,offset:0,stride:24},{buffer:A,type:b.FLOAT,size:3,offset:12,stride:24}],p),E=s(b);return E.attributes.position.location=0,E.attributes.normal.location=1,new f(b,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),b=new Array(8),h=new Array(3),_=[0,0,0];(function(){for(var w=0;w<8;++w)g[w]=[1,1,1,1],b[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<b[E][1])&&(ae=E);for(var Q=-1,E=0;E<3;++E){var te=ae^1<b[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=x,we=z,P=0;P<3;++P)we&1<=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; +}`]);o.bg=function(_){return u(_,b,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 b=3;function h(S,x,M,d){this.gl=S,this.shader=x,this.buffer=M,this.vao=d,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var _=h.prototype,T=[0,0];_.bind=function(S,x,M,d){this.vao.bind(),this.shader.bind();var w=this.shader.uniforms;w.model=S,w.view=x,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,x,M,d,w){var y=[];function v(P,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],P)}}for(var A=[0,0,0],p=[0,0,0],D=[0,0,0],E=[0,0,0],R=1.25,I={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},z=0;z<3;++z){D[z]=y.length/b|0,v(.5*(S[0][z]+S[1][z]),x[z],M[z],12,R,I),E[z]=(y.length/b|0)-D[z],A[z]=y.length/b|0;for(var F=0;F=0&&(b=c.length-g-1);var h=Math.pow(10,b),_=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),b){for(var x=""+k;x.length=s[0][g];--_)b.push({x:_*f[g],text:i(f[g],_)});c.push(b)}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),x=m.length,M=0;M=0;--x){if(k[x]!==S)return!1;S*=m[x]}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 x=gl.getExtension("OES_element_index_uint");x&&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=b(this.gl,this.type,this.length,this.usage,m.data,k):this.length=b(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=b(this.gl,this.type,this.length,this.usage,M,k):this.length=b(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=b(this.gl,this.type,this.length,this.usage,w,k):this.length=b(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=b(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,x){if(S=S||m.ARRAY_BUFFER,x=x||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(x!==m.DYNAMIC_DRAW&&x!==m.STATIC_DRAW&&x!==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,x);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,b={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]),b;for(var h=0,_=1/0,T=-1/0,m=1/0,k=-1/0,S=1/0,x=-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 I=[_,m,S],z=[T,k,x];f&&(f[0]=I,f[1]=z),h===0&&(h=1);var F=1/h;isFinite(y)||(y=1),b.vectorScale=y;var L=s.coneSize||(A?1:.5);s.absoluteConeSize&&(L=s.absoluteConeSize*F),b.coneScale=L;for(var p=0,P=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 b(v,[256,256,4],[4,0,1])}function S(w){for(var y=w.length,v=new Array(y),A=0;A0){var P=this.triShader;P.bind(),P.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},I=this.pickShader;I.bind(),I.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 x(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=x(w,A),D=M(w,A),E=f(w,b(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),I=u(w),z=u(w),F=u(w),L=u(w),P=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:F,type:w.FLOAT,size:2},{buffer:I,type:w.FLOAT,size:4}]),B=new T(w,E,p,D,R,I,L,z,F,P,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=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; +}`]);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,x){this.gl=m,this.shader=x,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 x=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=x[12],w=x[13],y=x[14],v=x[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 b(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=[],x=1;x<=2;++x)for(var M=-1;M<=1;M+=2){var d=(x+k)%3,w=[0,0,0];w[d]=M,S.push(w)}m[k]=S}return m})();function _(m,k,S,x){for(var M=h[x],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),b(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),x=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,x,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=w;var u=null,s,f,c,g;function x(y){var v=y.getParameter(y.FRAMEBUFFER_BINDING),A=y.getParameter(y.RENDERBUFFER_BINDING),p=y.getParameter(y.TEXTURE_BINDING_2D);return[v,A,p]}function h(y,v){y.bindFramebuffer(y.FRAMEBUFFER,v[0]),y.bindRenderbuffer(y.RENDERBUFFER,v[1]),y.bindTexture(y.TEXTURE_2D,v[2])}function _(y,v){var A=y.getParameter(v.MAX_COLOR_ATTACHMENTS_WEBGL);u=new Array(A+1);for(var p=0;p<=A;++p){for(var D=new Array(A),E=0;E1&&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: +}`]);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=w;var u=null,s,f,c,g;function b(y){var v=y.getParameter(y.FRAMEBUFFER_BINDING),A=y.getParameter(y.RENDERBUFFER_BINDING),p=y.getParameter(y.TEXTURE_BINDING_2D);return[v,A,p]}function h(y,v){y.bindFramebuffer(y.FRAMEBUFFER,v[0]),y.bindRenderbuffer(y.RENDERBUFFER,v[1]),y.bindTexture(y.TEXTURE_2D,v[2])}function _(y,v){var A=y.getParameter(v.MAX_COLOR_ATTACHMENTS_WEBGL);u=new Array(A+1);for(var p=0;p<=A;++p){for(var D=new Array(A),E=0;E1&&I.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):F&&(y.depth=m(A,D,E,A.UNSIGNED_SHORT,A.DEPTH_COMPONENT,A.DEPTH_ATTACHMENT)):F&&z?y._depth_rb=k(A,D,E,A.DEPTH_STENCIL,A.DEPTH_STENCIL_ATTACHMENT):F?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 P=0;PD||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=b(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 I=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");I=y.FLOAT}else p.preferFloat&&R>0&&z&&(I=y.FLOAT);var F=!0;"depth"in p&&(F=!!p.depth);var L=!1;return"stencil"in p&&(L=!!p.stencil),new x(y,v,A,I,R,F,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,b,h){"use strict";var _=s(b)||"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 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; +}`]),g=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];o.createShader=function(b){return u(b,s,f,null,g)},o.createPickShader=function(b){return u(b,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 b=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 x(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:x(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:x(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=[],I=[],z=0,F=0,L=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],P=v.position||v.positions;if(P){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]);F+=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]);F+=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]),F+=4}}if(this.buffer.update(E),R.push(z),I.push(P[P.length-1].slice()),this.bounds=L,this.vertexCount=F,this.points=I,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; @@ -1037,7 +1037,7 @@ void main() { gl_PointSize = pointSize; f_color = color; f_uv = uv; -}`]),x=l([`precision highp float; +}`]),b=l([`precision highp float; #define GLSLIFY 1 uniform sampler2D texture; @@ -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: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; +`]);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:b,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),b=i(8406),h=i(6760),_=i(7608),T=i(9618),m=i(6729),k=i(7765),S=i(1888),x=i(840),M=i(7626),d=x.meshShader,w=x.wireShader,y=x.pointShader,v=x.pickShader,A=x.pointPickShader,p=x.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 I(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*I($/255,q):re[4*$+3]=255*ae[3]}return T(re,[256,256,4],[4,0,1])}function F(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),g=i(2260),x=i(7169),h=i(351),_=i(4772),T=i(4040),m=i(799),k=i(2431)({tablet:!0,featureDetect:!0});a.exports={createScene:w,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 p=null;try{p=v.getContext("webgl",A),p||(p=v.getContext("experimental-webgl",A))}catch(D){return null}return p}function M(v){var A=Math.round(Math.log(Math.abs(v))/Math.log(10));if(A<0){var p=Math.round(Math.pow(10,-A));return Math.ceil(v*p)/p}else if(A>0){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;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=x(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,I=g(D,D.drawingBufferWidth,D.drawingBufferHeight,{preferFloat:!k}),z=m(D),F=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:F},P=v.axes||{},B=u(D,P);B.enable=!P.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),x=Math.sin(k),M=Math.sin((1-s)*k)/x,d=Math.sin(s*k)/x):(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*b+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 b=[c.style,c.weight,c.variant,c.family].join("_"),h=u[b];if(h||(h=u[b]={}),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:$}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;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],I=_.slice(),z=[0,0,0],F=[[0,0,0],[0,0,0]];function L($){return $[0]=$[1]=$[2]=0,$}function P($,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=F,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=I,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,P(E,oe)),me=M(Te,we,fe,P(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=b(ue,{family:ie,weight:fe,style:we,variant:Te},te),ke=b(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)),x=0;xS)for(m=S;mk)for(m=k;m=0){for(var F=z.type.charAt(z.type.length-1)|0,L=new Array(F),P=0;P=0;)B+=1;R[I]=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,b){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],I);break;case"v":g["uniform"+O+"fv"](_[R],I);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,I);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 x(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;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; +}`]);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(x,M,d,w){for(var y=x.points,v=x.velocities,A=x.divergences,p=[],D=[],E=[],R=[],I=[],z=[],F=0,L=0,P=u.create(),B=u.create(),O=8,G=0;G0)for(var q=0;qM)return w-1}return w},b=function(x,M,d){return xd?d:x},h=function(x,M,d){var w=M.vectors,y=M.meshgrid,v=x[0],A=x[1],p=x[2],D=y[0].length,E=y[1].length,R=y[2].length,I=g(y[0],v),z=g(y[1],A),F=g(y[2],p),L=I+1,P=z+1,B=F+1;if(I=b(I,0,D-1),L=b(L,0,D-1),z=b(z,0,E-1),P=b(P,0,E-1),F=b(F,0,R-1),B=b(B,0,R-1),I<0||z<0||F<0||L>D-1||P>E-1||B>R-1)return l.create();var O=y[0][I],G=y[0][L],J=y[1][z],j=y[1][P],V=y[2][F],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&&(I=D-1-I,L=D-1-L),d.reversedY&&(z=E-1-z,P=E-1-P),d.reversedZ&&(F=R-1-F,B=R-1-B),d.filled){case 5:ee=F,ie=B,te=z*R,ue=P*R,ae=I*R*E,Q=L*R*E;break;case 4:ee=F,ie=B,ae=I*R,Q=L*R,te=z*R*D,ue=P*R*D;break;case 3:te=z,ue=P,ee=F*E,ie=B*E,ae=I*E*R,Q=L*E*R;break;case 2:te=z,ue=P,ae=I*E,Q=L*E,ee=F*E*D,ie=B*E*D;break;case 1:ae=I,Q=L,ee=F*D,ie=B*D,te=z*D*R,ue=P*D*R;break;default:ae=I,Q=L,te=z*D,ue=P*D,ee=F*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(x,M){var d=M[0],w=M[1],y=M[2];return x[0]=d<0?-d:d,x[1]=w<0?-w:w,x[2]=y<0?-y:y,x},T=function(x){var M=1/0;x.sort(function(v,A){return v-A});for(var d=x.length,w=1;wL||seP||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,x.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(x,M){return S(x,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; @@ -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 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();})(); +`]);o.createShader=function(b){var h=l(b,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(b){var h=l(b,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(b){var h=l(b,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(b){var h=l(b,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),b=i(5298),h=i(9994),_=i(9618),T=i(3711),m=i(6760),k=i(7608),S=i(2478),x=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 I=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 F=z.prototype;F.genColormap=function(Q,te){var ue=!1,ee=h([g({colormap:Q,nshades:I,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 b.divseq(ee,255),this.hasAlphaScale=ue,ee},F.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},F.isOpaque=function(){return!this.isTransparent()},F.pickSlots=1,F.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 P=[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||P,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},F.padField=function(Q,te){var ue=te.shape.slice(),ee=Q.shape.slice();b.assign(Q.lo(1,1).hi(ue[0],ue[1]),te),b.assign(Q.lo(1).hi(ue[0],1),te.hi(ue[0],1)),b.assign(Q.lo(1,ee[1]-1).hi(ue[0],1),te.lo(0,ue[1]-1).hi(ue[0],1)),b.assign(Q.lo(0,1).hi(1,ue[1]),te.hi(1)),b.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()]}}F.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,I){this.gl=A,this.handle=p,this.format=R,this.type=I,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,F=[this._wrapS,this._wrapT];Object.defineProperties(F,[{get:function(){return z._wrapS},set:function(P){return z.wrapS=P}},{get:function(){return z._wrapT},set:function(P){return z.wrapT=P}}]),this._wrapVector=F;var L=[this._shape[0],this._shape[1]];Object.defineProperties(L,[{get:function(){return z._shape[0]},set:function(P){return z.width=P}},{get:function(){return z._shape[1]},set:function(P){return z.height=P}}]),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 I=h(A)?A:A.raw;if(I){var z=this._mipLevels.indexOf(E)<0;z?(R.texImage2D(R.TEXTURE_2D,0,this.format,this.format,this.type,I),this._mipLevels.push(E)):R.texSubImage2D(R.TEXTURE_2D,E,p,D,this.format,this.type,I)}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");x(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 x(A,p,D,E,R,I,z,F){var L=F.dtype,P=F.shape.slice();if(P.length<2||P.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var B=0,O=0,G=S(P,F.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(P.length===2)O=A.LUMINANCE,P=[P[0],P[1],1],F=l(F.data,P,[F.stride[0],F.stride[1],1],F.offset);else if(P.length===3){if(P[2]===1)O=A.ALPHA;else if(P[2]===2)O=A.LUMINANCE_ALPHA;else if(P[2]===3)O=A.RGB;else if(P[2]===4)O=A.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");J=P[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=F.size,V=z.indexOf(E)<0;if(V&&z.push(E),B===I&&G)F.offset===0&&F.data.length===j?V?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,I,F.data):A.texSubImage2D(A.TEXTURE_2D,E,p,D,P[0],P[1],R,I,F.data):V?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,I,F.data.subarray(F.offset,F.offset+j)):A.texSubImage2D(A.TEXTURE_2D,E,p,D,P[0],P[1],R,I,F.data.subarray(F.offset,F.offset+j));else{var q;I===A.FLOAT?q=s.mallocFloat32(j):q=s.mallocUint8(j);var Z=l(q,P,[P[2],P[2]*P[0],1]);B===A.FLOAT&&I===A.UNSIGNED_BYTE?_(Z,F):u.assign(Z,F),V?A.texImage2D(A.TEXTURE_2D,E,R,P[0],P[1],0,R,I,q.subarray(0,j)):A.texSubImage2D(A.TEXTURE_2D,E,p,D,P[0],P[1],R,I,q.subarray(0,j)),I===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 I=A.getParameter(A.MAX_TEXTURE_SIZE);if(p<0||p>I||D<0||D>I)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,I){var z=M(A);return A.texImage2D(A.TEXTURE_2D,0,R,R,I,p),new m(A,z,D,E,R,I)}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 I=S(E,p.stride.slice()),z=0;D==="float32"?z=A.FLOAT:D==="float64"?(z=A.FLOAT,I=!1,D="float32"):D==="uint8"?z=A.UNSIGNED_BYTE:(z=A.UNSIGNED_BYTE,I=!1,D="uint8");var F=0;if(E.length===2)F=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)F=A.ALPHA;else if(E[2]===2)F=A.LUMINANCE_ALPHA;else if(E[2]===3)F=A.RGB;else if(E[2]===4)F=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,I=!1);var L,P,B=p.size;if(I)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];P=s.malloc(B,D);var G=l(P,E,O,0);(D==="float32"||D==="float64")&&z===A.UNSIGNED_BYTE?_(G,p):u.assign(G,p),L=P.subarray(0,B)}var J=M(A);return A.texImage2D(A.TEXTURE_2D,0,F,E[0],E[1],0,F,z,L),I||s.free(P),new m(A,J,E[0],E[1],F,z)}function v(A){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(f||b(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],b=u[1],h=u[2];return i[0]=f*h-c*b,i[1]=c*g-s*h,i[2]=s*b-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],b=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(b-T)<=l*Math.max(1,Math.abs(b),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,b,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,b=l[2]-c,h=Math.sin(s),_=Math.cos(s);return i[0]=l[0],i[1]=f+g*_-b*h,i[2]=c+g*h+b*_,i}},109(a){a.exports=o;function o(i,l,u,s){var f=u[0],c=u[2],g=l[0]-f,b=l[2]-c,h=Math.sin(s),_=Math.cos(s);return i[0]=f+b*h+g*_,i[1]=l[1],i[2]=c+b*_-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,b=l[1]-c,h=Math.sin(s),_=Math.cos(s);return i[0]=f+g*_-b*h,i[1]=c+g*h+b*_,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],b=u[1],h=u[2],_=u[3],T=b*c-h*f,m=h*s-g*c,k=g*f-b*s;return T*=2,m*=2,k*=2,i[0]=s+_*T+b*k-h*m,i[1]=f+_*m+h*T-g*k,i[2]=c+_*k+g*m-b*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],b=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]=b+s*(u[3]-b),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],b=u[1],h=u[2],_=u[3],T=_*s+b*c-h*f,m=_*f+h*s-g*c,k=_*c+g*f-b*s,S=-g*s-b*f-h*c;return i[0]=T*_+S*-g+m*-h-k*-b,i[1]=m*_+S*-b+k*-g-T*-h,i[2]=k*_+S*-h+T*-b-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("")),I=g,E):(L.push(z),F=z,E+1)}function X(){return z==="."||/[eE]/.test(z)?(L.push(z),I=S,F=z,E+1):z==="x"&&L.length===1&&L[0]==="0"?(I=v,L.push(z),F=z,E+1):/[^\d]/.test(z)?(ue(L.join("")),I=g,E):(L.push(z),F=z,E+1)}function K(){return z==="f"&&(L.push(z),F=z,E+=1),/[eE]/.test(z)||(z==="-"||z==="+")&&/[eE]/.test(F)?(L.push(z),F=z,E+1):/[^\d]/.test(z)?(ue(L.join("")),I=g,E):(L.push(z),F=z,E+1)}function ye(){if(/[^\d\w_]/.test(z)){var oe=L.join("");return te[oe]?I=d:Q[oe]?I=M:I=x,ue(L.join("")),I=g,E}return L.push(z),F=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+=b;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,b,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,x=s?1:-1,M=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(b=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?(b=0,g=T):g+m>=1?(b=(l*h-1)*Math.pow(2,f),g=g+m):(b=l*Math.pow(2,m-1)*Math.pow(2,f),g=0));f>=8;i[u+S]=b&255,S+=x,b/=256,f-=8);for(g=g<0;i[u+S]=g&255,S+=x,g/=256,_-=8);i[u+S-x]|=M*128}},8954(a,o,i){"use strict";a.exports=m;var l=i(3250),u=i(6803).Fw;function s(k,S,x){this.vertices=k,this.adjacent=S,this.boundary=x,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,x){this.vertices=k,this.cell=S,this.index=x}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 b(k){var S=l[k+1];return S||(S=l),g(S)}var h=[];function _(k,S,x){this.dimension=k,this.vertices=S,this.simplices=x,this.interior=x.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]=b(k)),this.orient=d}var T=_.prototype;T.handleBoundaryDegeneracy=function(k,S){var x=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<=x;++A){var p=v[A];if(!(!p.boundary||p.lastVisited<=-M)){for(var D=p.vertices,E=0;E<=x;++E){var R=D[E];R<0?d[E]=S:d[E]=w[R]}var I=this.orient();if(I>0)return p;p.lastVisited=-M,I===0&&y.push(p)}}}return null},T.walk=function(k,S){var x=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=x;for(var D=0;D<=M;++D){var E=p[D];if(!(E.lastVisited>=x)){var R=w[D];w[D]=k;var I=this.orient();if(w[D]=R,I<0){v=E;continue e}else E.boundary?E.lastVisited=-x:E.lastVisited=x}}return}return v},T.addPeaks=function(k,S){var x=this.vertices.length-1,M=this.dimension,d=this.vertices,w=this.tuple,y=this.interior,v=this.simplices,A=[S];S.lastVisited=x,S.vertices[S.vertices.indexOf(-1)]=x,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(x);if(!(R<0)){for(var I=0;I<=M;++I)if(I!==R){var z=E[I];if(!(!z.boundary||z.lastVisited>=x)){var F=z.vertices;if(z.lastVisited!==-x){for(var L=0,P=0;P<=M;++P)F[P]<0?(L=P,w[P]=k):w[P]=d[F[P]];var B=this.orient();if(B>0){F[L]=x,z.boundary=!1,y.push(z),A.push(z),z.lastVisited=x;continue}else z.lastVisited=-x}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[I]=-1,J[I]=S,E[I]=j,j.flip();for(var P=0;P<=M;++P){var q=G[P];if(!(q<0||q===x)){for(var Z=new Array(M-1),re=0,$=0;$<=M;++$){var ae=G[$];ae<0||$===P||(Z[re++]=ae)}p.push(new f(Z,j,P))}}}}}}}p.sort(c);for(var I=0;I+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 x=k.length;if(x===0)throw new Error("Must have at least d+1 points");var M=k[0].length;if(x<=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 I=E[0];E[0]=E[1],E[1]=I;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,F=p[v].adjacent,R=0;R<=M;++R){var L=E[R];if(L<0){F[R]=A;continue}for(var P=0;P<=M;++P)p[P].vertices.indexOf(L)<0&&(F[R]=p[P])}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 I=this.left?this.left.count:0;if(4*I>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,F=this.left;F.right;)z=F,F=F.right;if(z===this)F.right=this.right;else{var L=this.left,R=this.right;z.count-=F.count,z.right=F.left,F.left=L,F.right=R}b(this,F),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?b(this,this.left):b(this,this.right);return s}for(var L=l.ge(this.leftPoints,p,M);L=0&&p[R][1]>=D;--R){var I=E(p[R]);if(I)return I}}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 x(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],I=[],z=[],F=[],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),b={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],I=h[11],z=h[12],F=h[13],L=h[14],P=h[15];if(E!==0||R!==0||I!==0){T[0]=E,T[1]=R,T[2]=I,T[3]=P;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]=F,y[2]=L,x(m,h),v[0]=b.length(m[0]),b.normalize(m[0],m[0]),A[0]=b.dot(m[0],m[1]),M(m[1],m[1],m[0],1,-A[0]),v[1]=b.length(m[1]),b.normalize(m[1],m[1]),A[0]/=v[1],A[1]=b.dot(m[0],m[2]),M(m[2],m[2],m[0],1,-A[1]),A[2]=b.dot(m[1],m[2]),M(m[2],m[2],m[1],1,-A[2]),v[2]=b.length(m[2]),b.normalize(m[2],m[2]),A[1]/=v[2],A[2]/=v[2],b.cross(k,m[1],m[2]),b.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 x(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(),b=T(),h=T();a.exports=_;function _(S,x,M,d){if(f(x)===0||f(M)===0)return!1;var w=s(x,g.translate,g.scale,g.skew,g.perspective,g.quaternion),y=s(M,b.translate,b.scale,b.skew,b.perspective,b.quaternion);return!w||!y?!1:(l(h.translate,g.translate,b.translate,d),l(h.skew,g.skew,b.skew,d),l(h.scale,g.scale,b.scale,d),l(h.perspective,g.perspective,b.perspective,d),c(h.quaternion,g.quaternion,b.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,b,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,b),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),b=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,I=!0,D=0;D<16;++D)R[D]=A[p++];for(var z=this.nextMatrix,D=0;D<16;++D)z[D]=A[p++],I=I&&R[D]===z[D];if(E<1e-6||I)for(var D=0;D<16;++D)v[D]=R[D];else u(v,R,z,(d-w[y])/E)}var F=this.computedUp;F[0]=v[1],F[1]=v[5],F[2]=v[9],T(F,F);var L=this.computedInverse;s(L,v);var P=this.computedEye,B=L[15];P[0]=L[12]/B,P[1]=L[13]/B,P[2]=L[14]/B;for(var O=this.computedCenter,G=Math.exp(this.computedRadius[0]),D=0;D<3;++D)O[D]=P[D]-v[2+4*D]*G}},S.idle=function(d){if(!(d1&&l(s[b[m-2]],s[b[m-1]],T)<=0;)m-=1,b.pop();for(b.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+b.length-2),S=0,c=0,x=b.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,b=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!==b||T(D))&&(c=p|0,g=E||0,b=R||0,f&&f(c,g,b,h))}function k(p){m(0,p)}function S(){(c||g||b||h.shift||h.alt||h.meta||h.control)&&(g=b=0,c=0,h.shift=h.alt=h.control=h.meta=!1,f&&f(0,0,0,h))}function x(p){T(p)&&f&&f(c,g,b,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",x),s.addEventListener("keydown",x),s.addEventListener("keypress",x),s!==window&&(window.addEventListener("blur",S),window.addEventListener("keyup",x),window.addEventListener("keydown",x),window.addEventListener("keypress",x)))}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",x),s.removeEventListener("keydown",x),s.removeEventListener("keypress",x),s!==window&&(window.removeEventListener("blur",S),window.removeEventListener("keyup",x),window.removeEventListener("keydown",x),window.removeEventListener("keypress",x)))}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 b},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,b=l(s);return f[0]=c-b.left,f[1]=g-b.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,x,M),D+=B,d>0)for(G=1,E=y[D],$=q[re]=h(E,S,x,M),te=q[re+ae],ie=q[re+ue],Te=q[re+fe],($!==te||$!==ie||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,te,ie,Te,S,x,M),ke=Z[re]=j++),re+=1,D+=B,G=2;G0)for(G=1,E=y[D],$=q[re]=h(E,S,x,M),te=q[re+ae],ie=q[re+ue],Te=q[re+fe],($!==te||$!==ie||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,te,ie,Te,S,x,M),ke=Z[re]=j++,Te!==ie&&b(Z[re+ue],ke,F,P,ie,Te,S,x,M)),re+=1,D+=B,G=2;G0){if(G=1,q[re++]=h(y[D],S,x,M),D+=B,w>0)for(J=1,E=y[D],$=q[re]=h(E,S,x,M),ie=q[re+ue],te=q[re+ae],Te=q[re+fe],($!==ie||$!==te||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,ie,te,Te,S,x,M),ke=Z[re]=j++),re+=1,D+=B,J=2;J0)for(J=1,E=y[D],$=q[re]=h(E,S,x,M),ie=q[re+ue],te=q[re+ae],Te=q[re+fe],($!==ie||$!==te||$!==Te)&&(I=y[D+R],F=y[D+z],P=y[D+L],g(G,J,E,I,F,P,$,ie,te,Te,S,x,M),ke=Z[re]=j++,Te!==ie&&b(Z[re+ue],ke,P,I,Te,ie,S,x,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,_,b,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 x(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=x(y);return v(d,w)}},4317(a){"use strict";function o(f,c){var g=Math.floor(c),b=c-g,h=0<=g&&g0;){F<64?(d=F,F=0):(d=64,F-=64);for(var L=h[1]|0;L>0;){L<64?(w=L,L=0):(w=64,L-=64),m=I+F*v+L*A,x=z+F*D+L*E;var P=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,x=D+E*A+R*v;var I=0,z=0,F=y,L=w-d*y,P=A,B=v-d*A;for(z=0;z0;){z<64?(w=z,z=0):(w=64,z-=64);for(var F=h[0]|0;F>0;){F<64?(M=F,F=0):(M=64,F-=64);for(var L=h[1]|0;L>0;){L<64?(d=L,L=0):(d=64,L-=64),m=R+z*A+F*y+L*v,x=I+z*E+F*p+L*D;var P=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;){P=0,B=I-d;r:for(F=0;FG)break r;B+=p,P+=D}for(P=I,B=I-d,F=0;F>1,L=F-R,P=F+R,B=I,O=L,G=F,J=P,j=z,V=S+1,q=x-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*I,oe=w*F,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?x(m,k[0],k[1]):x(m)}var b={"uint32,1,0":function(_,T){return function(m){var k=m.data,S=m.offset|0,x=m.shape,M=m.stride,d=M[0]|0,w=x[0]|0,y=M[1]|0,v=x[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=b[m],S=f(_,T),x=g(_,T,S);return k(S,x)}a.exports=h},446(a,o,i){"use strict";var l=i(7640),u={};function s(f){var c=f.order,g=f.dtype,b=[c,g],h=b.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)},x.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)},x.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)},x.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 x=S.prototype;return x.dtype=T,x.dimension=2,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(x,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),x.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},x.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]},x.index=function(d,w){return this.offset+this.stride[0]*d+this.stride[1]*w},x.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)},x.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)},x.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)},x.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)},x.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 x=S.prototype;return x.dtype=T,x.dimension=3,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(x,"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]}}),x.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},x.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]},x.index=function(d,w,y){return this.offset+this.stride[0]*d+this.stride[1]*w+this.stride[2]*y},x.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)},x.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],I=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+=I*A,D-=A),typeof y=="number"&&y>=0&&(A=y|0,v+=z*A,E-=A),new S(this.data,p,D,E,R,I,z,v)},x.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],I=this.offset,z=0,F=Math.ceil;return typeof d=="number"&&(z=d|0,z<0?(I+=D*(v-1),v=F(-v/z)):v=F(v/z),D*=z),typeof w=="number"&&(z=w|0,z<0?(I+=E*(A-1),A=F(-A/z)):A=F(A/z),E*=z),typeof y=="number"&&(z=y|0,z<0?(I+=R*(p-1),p=F(-p/z)):p=F(p/z),R*=z),new S(this.data,v,A,p,D,E,R,I)},x.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)},x.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 x=S.prototype;return x.dtype=T,x.dimension=4,Object.defineProperty(x,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(x,"order",{get:k}),x.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},x.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]},x.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},x.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)},x.lo=function(d,w,y,v){var A=this.offset,p=0,D=this.shape[0],E=this.shape[1],R=this.shape[2],I=this.shape[3],z=this.stride[0],F=this.stride[1],L=this.stride[2],P=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+=F*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+=P*p,I-=p),new S(this.data,D,E,R,I,z,F,L,P,A)},x.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],I=this.stride[1],z=this.stride[2],F=this.stride[3],L=this.offset,P=0,B=Math.ceil;return typeof d=="number"&&(P=d|0,P<0?(L+=R*(A-1),A=B(-A/P)):A=B(A/P),R*=P),typeof w=="number"&&(P=w|0,P<0?(L+=I*(p-1),p=B(-p/P)):p=B(p/P),I*=P),typeof y=="number"&&(P=y|0,P<0?(L+=z*(D-1),D=B(-D/P)):D=B(D/P),z*=P),typeof v=="number"&&(P=v|0,P<0?(L+=F*(E-1),E=B(-E/P)):E=B(E/P),F*=P),new S(this.data,A,p,D,E,R,I,z,F,L)},x.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)},x.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 x(d,w,y,v,A,p,D,E,R,I,z,F){this.data=d,this.shape=[w,y,v,A,p],this.stride=[D,E,R,I,z],this.offset=F|0}var M=x.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 x(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],I=this.shape[1],z=this.shape[2],F=this.shape[3],L=this.shape[4],P=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+=P*E,R-=E),typeof y=="number"&&y>=0&&(E=y|0,D+=B*E,I-=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,F-=E),typeof p=="number"&&p>=0&&(E=p|0,D+=J*E,L-=E),new x(this.data,R,I,z,F,L,P,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],I=this.shape[3],z=this.shape[4],F=this.stride[0],L=this.stride[1],P=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+=F*(D-1),D=j(-D/J)):D=j(D/J),F*=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+=P*(R-1),R=j(-R/J)):R=j(R/J),P*=J),typeof A=="number"&&(J=A|0,J<0?(G+=B*(I-1),I=j(-I/J)):I=j(I/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 x(this.data,D,E,R,I,z,F,L,P,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 x(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 I=k[D.length+1];return I(this.data,D,E,R)},function(w,y,v,A){return new x(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 b(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 x=m.length;if(k===void 0){k=new Array(x);for(var M=x-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 b=l.hi(c),h=l.lo(c);return g>c==c>0?h===s?(b+=1,h=0):h+=1:h===0?(h=s,b-=1):h-=1,l.pack(h,b)}},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),b=f===void 0?i:f,h=0;hb)for(var D=g[m],E=1/Math.sqrt(y*A),p=0;p<3;++p){var R=(p+1)%3,I=(p+2)%3;D[p]+=E*(v[R]*w[I]-v[I]*w[R])}}for(var h=0;hb)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),b=f===void 0?l:f,h=0;hb?M=1/Math.sqrt(M):M=0;for(var m=0;m<3;++m)x[m]*=M;g[h]=x}return g}},4081(a){"use strict";a.exports=o;function o(i,l,u,s,f,c,g,b,h,_){var T=l+c+_;if(m>0){var m=Math.sqrt(T+1);i[0]=.5*(g-h)/m,i[1]=.5*(b-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*(b+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*(b-s)/m):(i[0]=.5*(s+b)/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,x){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2))}function b(k,S,x,M){return Math.sqrt(Math.pow(k,2)+Math.pow(S,2)+Math.pow(x,2)+Math.pow(M,2))}function h(k,S){var x=S[0],M=S[1],d=S[2],w=S[3],y=b(x,M,d,w);y>1e-6?(k[0]=x/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,x){this.radius=l([x]),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 x=this.computedMatrix;s(x,S);var M=this.computedCenter,d=this.computedEye,w=this.computedUp,y=Math.exp(this.computedRadius[0]);d[0]=M[0]+y*x[2],d[1]=M[1]+y*x[6],d[2]=M[2]+y*x[10],w[0]=x[1],w[1]=x[5],w[2]=x[9];for(var v=0;v<3;++v){for(var A=0,p=0;p<3;++p)A+=x[v+4*p]*d[p];x[12+v]=-A}},T.getMatrix=function(k,S){this.recalcMatrix(k);var x=this.computedMatrix;if(S){for(var M=0;M<16;++M)S[M]=x[M];return S}return x},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,x,M){S=S||0,x=x||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 I=g(p,D,E);p/=I,D/=I,E/=I;var z=d[2],F=d[6],L=d[10],P=z*w+F*y+L*v,B=z*p+F*D+L*E;z-=P*w+B*p,F-=P*y+B*D,L-=P*v+B*E;var O=g(z,F,L);z/=O,F/=O,L/=O;var G=p*S+w*x,J=D*S+y*x,j=E*S+v*x;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,x,M){this.recalcMatrix(k),S=S||0,x=x||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],I=d[10],z=S*w+x*A,F=S*y+x*p,L=S*v+x*D,P=-(R*L-I*F),B=-(I*z-E*L),O=-(E*F-R*z),G=Math.sqrt(Math.max(0,1-Math.pow(P,2)-Math.pow(B,2)-Math.pow(O,2))),J=b(P,B,O,G);J>1e-6?(P/=J,B/=J,O/=J,G/=J):(P=B=O=0,G=1);var j=this.computedRotation,V=j[0],q=j[1],Z=j[2],re=j[3],$=V*G+re*P+q*O-Z*B,ae=q*G+re*B+Z*P-V*O,Q=Z*G+re*O+V*B-q*P,te=re*G-V*P-q*B-Z*O;if(M){P=E,B=R,O=I;var ue=Math.sin(M)/g(P,B,O);P*=ue,B*=ue,O*=ue,G=Math.cos(S),$=$*G+te*P+ae*O-Q*B,ae=ae*G+te*B+Q*P-$*O,Q=Q*G+te*O+$*B-ae*P,te=te*G-$*P-ae*B-Q*O}var ee=b($,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,x,M){this.recalcMatrix(k),x=x||this.computedCenter,S=S||this.computedEye,M=M||this.computedUp;var d=this.computedMatrix;u(d,S,x,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(x[v]-S[v],2);this.radius.set(k,.5*Math.log(Math.max(y,1e-6))),this.center.set(k,x[0],x[1],x[2])},T.translate=function(k,S,x,M){this.center.move(k,S||0,x||0,M||0)},T.setMatrix=function(k,S){var x=this.computedRotation;c(x,S[0],S[1],S[2],S[4],S[5],S[6],S[8],S[9],S[10]),h(x,x),this.rotation.set(k,x[0],x[1],x[2],x[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(),x=k.center;x&&this.center.set(S,x[0],x[1],x[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],x=k.rotation||[0,0,0,1],M=k.radius||1;S=[].slice.call(S,0,3),x=[].slice.call(x,0,4),h(x,x);var d=new _(x,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,b=[new Array(c),new Array(c)],h=0;h0){D=b[I][A][0],R=I;break}E=D[R^1];for(var z=0;z<2;++z)for(var F=b[z][A],L=0;L0&&(D=P,E=B,R=z)}return p||D&&m(D,R),E}function S(v,A){var p=b[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(b[0][v].length+b[1][v].length===0)break;var I=D[D.length-1],z=v,F=D[1],L=k(I,z,!0);if(l(f[I],f[z],f[F],f[L])<0)break;D.push(v),E=k(I,z)}return D}function x(v,A){return A[1]===A[A.length-1]}for(var h=0;h0;){var w=b[0][h].length,y=S(h,M);x(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),b=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 F=w[ee];Te=[F]}for(var d=0;d=0)&&(te[ke]=we^1,Q.push(ke),we===0)){var F=w[ke];ae(F)||(F.reverse(),Te.push(F))}}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(x,M){var d=S[x];return d?!!d.queryPoint(M,c):!1}}function b(S){for(var x={},M=0;M0&&x[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,x){return function(d){return S(d[0],d[1])?0:x(d)}}function k(S){for(var x=S.length,M=[],d=[],w=0,y=0;y=_?(v=1,p=_+2*k+x):(v=-k/_,p=k*v+x)):(v=0,S>=0?(A=0,p=x):-S>=m?(A=1,p=m+2*S+x):(A=-S/m,p=S*A+x));else if(A<0)A=0,k>=0?(v=0,p=x):-k>=_?(v=1,p=_+2*k+x):(v=-k/_,p=k*v+x);else{var D=1/y;v*=D,A*=D,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x}else{var E,R,I,z;v<0?(E=T+k,R=m+S,R>E?(I=R-E,z=_-2*T+m,I>=z?(v=1,A=0,p=_+2*k+x):(v=I/z,A=1-v,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x)):(v=0,R<=0?(A=1,p=m+2*S+x):S>=0?(A=0,p=x):(A=-S/m,p=S*A+x))):A<0?(E=T+S,R=_+k,R>E?(I=R-E,z=_-2*T+m,I>=z?(A=1,v=0,p=m+2*S+x):(A=I/z,v=1-A,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x)):(A=0,R<=0?(v=1,p=_+2*k+x):k>=0?(v=0,p=x):(v=-k/_,p=k*v+x))):(I=m+S-T-k,I<=0?(v=0,A=1,p=m+2*S+x):(z=_-2*T+m,I>=z?(v=1,A=0,p=_+2*k+x):(v=I/z,A=1-v,p=v*(_*v+T*A+2*k)+A*(T*v+m*A+2*S)+x)))}for(var F=1-v-A,h=0;h0){var m=c[b-1];if(l(_,m)===0&&s(m)!==T){b-=1;continue}}c[b++]=_}}return c.length=b,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 b=u-c,h=g-b;h&&(i[--s]=u,u=h)}for(var _=0,f=s;f0){if(R<=0)return I;z=E+R}else if(E<0){if(R>=0)return I;z=-(E+R)}else return I;var F=b*z;return I>=F||I<=-F?I:S(A,p,D)},function(A,p,D,E){var R=A[0]-E[0],I=p[0]-E[0],z=D[0]-E[0],F=A[1]-E[1],L=p[1]-E[1],P=D[1]-E[1],B=A[2]-E[2],O=p[2]-E[2],G=D[2]-E[2],J=I*P,j=z*L,V=z*F,q=R*P,Z=R*L,re=I*F,$=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?$:x(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,I){return function(F,L,P,B,O){switch(arguments.length){case 0:case 1:return 0;case 2:return D(F,L);case 3:return E(F,L,P);case 4:return R(F,L,P,B);case 5:return I(F,L,P,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(b,f,c);return T>0&&m>0||T<0&&m<0?!1:h===0&&_===0&&T===0&&m===0?u(f,c,g,b):!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,b=l-c,h=b+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),b=0,h=0,_=0,T=Math.abs,m=l[h],k=T(m),S=-u[_],x=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=b(A[I],p);z<=0?(z===0&&(R=I),D=I+1):z>0&&(E=I-1)}return R}l=m;function k(A,p){for(var D=new Array(A.length),E=0,R=D.length;E=A.length||b(A[J],I)!==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>>P&1&&L.push(R[P]);p.push(L)}return _(p)}l=x;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,b=7;for(c>>>=1;c;c>>>=1)g<<=1,g|=c&1,--b;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,I=g(v[R],A);I<=0?(I===0&&(E=R),p=R+1):I>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(_(x(v,0)),v,0);for(var p=new Array(A),D=0;D>>L&1&&F.push(E[L]);A.push(F)}return h(A)}o.explode=S;function x(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=F[0];return v(0,B-1),B-=1,D(0),q}return-1}function I(q,Z){var re=F[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&&I(L[Z],y(Z)),L[re]>=0&&I(L[re],y(re))}}for(var F=[],L=new Array(h),x=0;x>1;x>=0;--x)D(x);for(;;){var O=R();if(O<0||k[O]>b)break;z(O)}for(var G=[],x=0;x=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,b;if(c[0][0]c[1][0])g=c[1],b=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],b=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,b,_),m=l(g,b,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,b),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 b[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,x){this.slabs=k,this.coordinates=S,this.horizontal=x}var g=c.prototype;function b(k,S){return k.y-S}function h(k,S){for(var x=null;k;){var M=k.key,d,w;M[0][0]0)if(S[0]!==M[1][0])x=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 x}g.castUp=function(k){var S=l.le(this.coordinates,k[0]);if(S<0)return-1;var x=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],b);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,x,M){this.y=k,this.index=S,this.start=x,this.closed=M}function T(k,S,x,M){this.x=k,this.segment=S,this.create=x,this.index=M}function m(k){for(var S=k.length,x=2*S,M=new Array(x),d=0;d1&&(S=1);for(var x=1-S,M=h.length,d=new Array(M),w=0;w0||k>0&&d<0){var w=f(S,d,x,k);T.push(w),m.push(w.slice())}d<0?m.push(x.slice()):d>0?T.push(x.slice()):(T.push(x.slice()),m.push(x.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],x=0;x0||m>0&&M<0)&&T.push(f(k,M,S,m)),M>=0&&T.push(S.slice()),m=M}return T}function b(h,_){for(var T=[],m=s(h[h.length-1],_),k=h[h.length-1],S=h[0],x=0;x0||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(b(h),arguments)}function f(h,_){return s.apply(null,[h].concat(_||[]))}function c(h,_){var T=1,m=h.length,k,S="",x,M,d,w,y,v,A,p;for(x=0;x=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 b(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=[],x=T[2],M=[];if((M=u.key.exec(x))!==null)for(S.push(M[1]);(x=x.substring(M[0].length))!=="";)if((M=u.key_access.exec(x))!==null)S.push(M[1]);else if((M=u.index_access.exec(x))!==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=b;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,x,M,d){return S>d|0},vertex:function(S,x,M,d,w,y,v,A,p,D,E,R,I){var z=(v<<0)+(A<<1)+(p<<2)+(D<<3)|0;if(!(z===0||z===15))switch(z){case 0:E.push([S-.5,x-.5]);break;case 1:E.push([S-.25-.25*(d+M-2*I)/(M-d),x-.25-.25*(w+M-2*I)/(M-w)]);break;case 2:E.push([S-.75-.25*(-d-M+2*I)/(d-M),x-.25-.25*(y+d-2*I)/(d-y)]);break;case 3:E.push([S-.5,x-.5-.5*(w+M+y+d-4*I)/(M-w+d-y)]);break;case 4:E.push([S-.25-.25*(y+w-2*I)/(w-y),x-.75-.25*(-w-M+2*I)/(w-M)]);break;case 5:E.push([S-.5-.5*(d+M+y+w-4*I)/(M-d+w-y),x-.5]);break;case 6:E.push([S-.5-.25*(-d-M+y+w)/(d-M+w-y),x-.5-.25*(-w-M+y+d)/(w-M+d-y)]);break;case 7:E.push([S-.75-.25*(y+w-2*I)/(w-y),x-.75-.25*(y+d-2*I)/(d-y)]);break;case 8:E.push([S-.75-.25*(-y-w+2*I)/(y-w),x-.75-.25*(-y-d+2*I)/(y-d)]);break;case 9:E.push([S-.5-.25*(d+M+-y-w)/(M-d+y-w),x-.5-.25*(w+M+-y-d)/(M-w+y-d)]);break;case 10:E.push([S-.5-.5*(-d-M+-y-w+4*I)/(d-M+y-w),x-.5]);break;case 11:E.push([S-.25-.25*(-y-w+2*I)/(y-w),x-.75-.25*(w+M-2*I)/(M-w)]);break;case 12:E.push([S-.5,x-.5-.5*(-w-M+-y-d+4*I)/(w-M+y-d)]);break;case 13:E.push([S-.75-.25*(d+M-2*I)/(M-d),x-.25-.25*(-y-d+2*I)/(y-d)]);break;case 14:E.push([S-.25-.25*(-d-M+2*I)/(d-M),x-.25-.25*(-w-M+2*I)/(w-M)]);break;case 15:E.push([S-.5,x-.5]);break}},cell:function(S,x,M,d,w,y,v,A,p){w?A.push([S,x]):A.push([x,S])}});return function(k,S){var x=[],M=[];return m(k,x,M,S),{positions:x,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),x=0;xMath.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+=x[p]*x[p],A+=y[p]*x[p];for(var p=0;p<3;++p)y[p]-=A/v*x[p];return c(y,y),y}function T(x,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(x,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(x,M){x>0?x=Math.log(x):x=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,x),this.radius.bounds[0][0]=x,this.radius.bounds[1][0]=M},m.getDistanceLimits=function(x){var M=this.radius.bounds[0];return x?(x[0]=Math.exp(M[0][0]),x[1]=Math.exp(M[1][0]),x):[Math.exp(M[0][0]),Math.exp(M[1][0])]},m.recalcMatrix=function(x){this.center.curve(x),this.up.curve(x),this.right.curve(x),this.radius.curve(x),this.angle.curve(x);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]),I=this.computedAngle[0],z=this.computedAngle[1],F=Math.cos(I),L=Math.sin(I),P=Math.cos(z),B=Math.sin(z),O=this.computedCenter,G=F*P,J=L*P,j=B,V=-F*B,q=-L*B,Z=P,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=b(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(x,M){this.recalcMatrix(x);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(x,M,d,w){if(this.angle.move(x,M,d),w){this.recalcMatrix(x);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(x,v[0],v[1],v[2]),this.right.set(x,A[0],A[1],A[2])}},m.pan=function(x,M,d,w){M=M||0,d=d||0,w=w||0,this.recalcMatrix(x);var y=this.computedMatrix,v=Math.exp(this.computedRadius[0]),A=y[1],p=y[5],D=y[9],E=b(A,p,D);A/=E,p/=E,D/=E;var R=y[0],I=y[4],z=y[8],F=R*A+I*p+z*D;R-=A*F,I-=p*F,z-=D*F;var L=b(R,I,z);R/=L,I/=L,z/=L;var P=R*M+A*d,B=I*M+p*d,O=z*M+D*d;this.center.move(x,P,B,O);var G=Math.exp(this.computedRadius[0]);G=Math.max(1e-4,G+w),this.radius.set(x,Math.log(G))},m.translate=function(x,M,d,w){this.center.move(x,M||0,d||0,w||0)},m.setMatrix=function(x,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(x),M=this.computedMatrix);var p=M[y],D=M[y+4],E=M[y+8];if(w){var I=Math.abs(p),z=Math.abs(D),F=Math.abs(E),L=Math.max(I,z,F);I===L?(p=p<0?-1:1,D=E=0):F===L?(E=E<0?-1:1,p=D=0):(D=D<0?-1:1,p=E=0)}else{var R=b(p,D,E);p/=R,D/=R,E/=R}var P=M[v],B=M[v+4],O=M[v+8],G=P*p+B*D+O*E;P-=p*G,B-=D*G,O-=E*G;var J=b(P,B,O);P/=J,B/=J,O/=J;var j=D*O-E*B,V=E*P-p*O,q=p*B-D*P,Z=b(j,V,q);j/=Z,V/=Z,q/=Z,this.center.jump(x,ye,oe,de),this.radius.idle(x),this.up.jump(x,p,D,E),this.right.jump(x,P,B,O);var re,$;if(y===2){var ae=M[1],Q=M[5],te=M[9],ue=ae*P+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*P+fe*B+we*O,ge=ie*j+fe*V+we*q;re=Math.asin(h(Te)),$=Math.atan2(ge,ke)}this.angle.jump(x,$,re),this.recalcMatrix(x);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(x,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(x){this.center.idle(x),this.up.idle(x),this.right.idle(x),this.radius.idle(x),this.angle.idle(x)},m.flush=function(x){this.center.flush(x),this.up.flush(x),this.right.flush(x),this.radius.flush(x),this.angle.flush(x)},m.setDistance=function(x,M){M>0&&this.radius.set(x,Math.log(M))},m.lookAt=function(x,M,d,w){this.recalcMatrix(x),M=M||this.computedEye,d=d||this.computedCenter,w=w||this.computedUp;var y=w[0],v=w[1],A=w[2],p=b(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],I=b(D,E,R);if(!(I<1e-6)){D/=I,E/=I,R/=I;var z=this.computedRight,F=z[0],L=z[1],P=z[2],B=y*F+v*L+A*P;F-=B*y,L-=B*v,P-=B*A;var O=b(F,L,P);if(!(O<.01&&(F=v*R-A*E,L=A*D-y*R,P=y*E-v*D,O=b(F,L,P),O<1e-6))){F/=O,L/=O,P/=O,this.up.set(x,y,v,A),this.right.set(x,F,L,P),this.center.set(x,d[0],d[1],d[2]),this.radius.set(x,Math.log(I));var G=v*P-A*L,J=A*F-y*P,j=y*L-v*F,V=b(G,J,j);G/=V,J/=V,j/=V;var q=y*D+v*E+A*R,Z=F*D+L*E+P*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?P.pop():new ArrayBuffer(F)}o.mallocArrayBuffer=k;function S(z){return new Uint8Array(k(z),0,z)}o.mallocUint8=S;function x(z){return new Uint16Array(k(2*z),0,z)}o.mallocUint16=x;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 I(z){z=l.nextPow2(z);var F=l.log2(z),L=_[F];return L.length>0?L.pop():new s(z)}o.mallocBuffer=I,o.clearCache=function(){for(var F=0;F<32;++F)b.UINT8[F].length=0,b.UINT16[F].length=0,b.UINT32[F].length=0,b.INT8[F].length=0,b.INT16[F].length=0,b.INT32[F].length=0,b.FLOAT[F].length=0,b.DOUBLE[F].length=0,b.BIGUINT64[F].length=0,b.BIGINT64[F].length=0,b.UINT8C[F].length=0,h[F].length=0,_[F].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",P="",B=L.length,O=P.length,G=I[0]===k||I[0]===M,J=0,j=-O;J>-1&&(J=z.indexOf(L,J),!(J===-1||(j=z.indexOf(P,J+B),j===-1)||j<=J));){for(var V=J;V=j)F[V]=null,z=z.substr(0,V)+" "+z.substr(V+1);else if(F[V]!==null){var q=F[V].indexOf(I[0]);q===-1?F[V]+=I:G&&(F[V]=F[V].substr(0,q+1)+(1+parseInt(F[V][q+1]))+F[V].substr(q+2))}var Z=J+B,re=z.substr(Z,j-Z),$=re.indexOf(L);$!==-1?J=$:J=j+O}return F}function y(R,I,z){for(var F=I.textAlign||"start",L=I.textBaseline||"alphabetic",P=[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(P.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(P.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(P.italics===!0){var Ue=oe.indexOf(T)>-1,qe=de.indexOf(T)>-1;!Ue&&qe&&(pe="italic "+pe),Ue&&!qe&&(pe=pe.replace("italic ",""))}I.font=pe}for(Q=0;Q0&&(L=F.size),F.lineSpacing&&F.lineSpacing>0&&(P=F.lineSpacing),F.styletags&&F.styletags.breaklines&&(B.breaklines=!!F.styletags.breaklines),F.styletags&&F.styletags.bolds&&(B.bolds=!!F.styletags.bolds),F.styletags&&F.styletags.italics&&(B.italics=!!F.styletags.italics),F.styletags&&F.styletags.subscripts&&(B.subscripts=!!F.styletags.subscripts),F.styletags&&F.styletags.superscripts&&(B.superscripts=!!F.styletags.superscripts)),z.font=[F.fontStyle,F.fontVariant,F.fontWeight,L+"px",F.font].filter(function(G){return G}).join(" "),z.textAlign="start",z.textBaseline="alphabetic",z.direction="ltr";var O=v(I,z,R,L,P,B);return D(O,F,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,b=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(b(Object,"getOwnPropertyNames",{value:function(D){return g(D).filter(S)}}),"getPropertyNames"in Object){var x=Object.getPropertyNames;b(Object,"getPropertyNames",{value:function(D){return x(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 b(p,T,{value:D,writable:!1,enumerable:!1,configurable:!1}),D}catch(E){return}}}(function(){var p=Object.freeze;b(Object,"freeze",{value:function(I){return M(I),p(I)}});var D=Object.seal;b(Object,"seal",{value:function(I){return M(I),D(I)}});var E=Object.preventExtensions;b(Object,"preventExtensions",{value:function(I){return M(I),E(I)}})})();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,P){var B,O=M(L);return O?E in O?O[E]:P:(B=p.indexOf(L),B>=0?D[B]:P)}function I(L){var P=M(L);return P?E in P:p.indexOf(L)>=0}function z(L,P){var B,O=M(L);return O?O[E]=P:(B=p.indexOf(L),B>=0?D[B]=P:(B=p.length,D[B]=P,p[B]=L)),this}function F(L){var P=M(L),B,O;return P?E in P&&delete P[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(I)},set___:{value:d(z)},delete___:{value:d(F)}})};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 I(P,B){return E?D.has(P)?D.get(P):E.get___(P,B):D.get(P,B)}function z(P){return D.has(P)||(E?E.has___(P):!1)}var F;l?F=function(P,B){return D.set(P,B),D.has(P)||(E||(E=new A),E.set(P,B)),this}:F=function(P,B){if(R)try{D.set(P,B)}catch(O){E||(E=new A),E.set___(P,B)}else D.set(P,B);return this};function L(P){var B=!!D.delete(P);return E&&E.delete___(P)||B}return Object.create(A.prototype,{get___:{value:d(I)},has___:{value:d(z)},set___:{value:d(F)},delete___:{value:d(L)},permitHostObjects___:{value:d(function(P){if(P===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,b,h,_,T){var m=c[0],k=b[0],S=[0],x=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(),x=g[S];return x||(g[S]=x=c([m,k])),x(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);nO.exports=n})()});var $o=xe((h8e,aO)=>{"use strict";var{normalize:r3e}=Zr();function t3e(e){return e?r3e(e):[0,0,0,1]}aO.exports=t3e});var Wl=xe((d8e,fO)=>{"use strict";var sO=ut(),sp=so(),Bu=Zr(),n3e=no().defaultLine,iO=ba().isArrayOrTypedArray,v4=Bu.normalize(n3e),uO=1;function oO(e,r){return[e[0],e[1],e[2],e[3]*r]}function c4(e){return sO(e)||!Bu.isChannelArray(e)&&!Bu.isValid(e)?v4:Bu.normalize(e)}function lO(e){return sO(e)?e:uO}function a3e(e,r,t){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var a=iO(n),o=iO(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?uO:lO(h[_])}:f=lO,a||o)for(var b=0;bl3e});var o3e,l3e,d4=Ut(()=>{"use strict";o3e={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]},l3e=o3e});var up={};Ht(up,{default:()=>u3e});var s3e,u3e,fp=Ut(()=>{"use strict";s3e={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"},u3e=s3e});var vO=xe((p8e,cO)=>{"use strict";var f3e=Cr();function p4(e,r,t,n){if(!r||!r.visible)return null;for(var a=f3e.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 c3e(e){for(var r=0;r{"use strict";var h3e=In().gl_line3d,hO=In().gl_scatter3d,d3e=In().gl_error3d,p3e=In().gl_mesh3d,g3e=In().delaunay_triangulate,Ko=tr(),mO=$o(),cp=Wl().formatColor,y3e=sm(),g4=(d4(),or(h4)).default,m3e=(fp(),or(up)).default,b3e=Vt(),x3e=uo().appendArrayPointValue,_3e=vO();function bO(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=bO.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 w3e(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 pO(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function T3e(e){var r=0,t=0,n=[r,t];if(Array.isArray(e))for(var a=0;a=0){var s=w3e(l.position,l.delaunayColor,l.delaunayAxis);s.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(s):(s.gl=r,this.delaunayMesh=p3e(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 C3e(e,r){var t=new bO(e,r.uid);return t.update(r),t}xO.exports=C3e});var M4=xe((y8e,AO)=>{"use strict";var Qo=Ws(),E3e=Wn(),w4=Di(),b4=No().axisHoverFormat,{hovertemplateAttrs:L3e,texttemplateAttrs:D3e,templatefallbackAttrs:wO}=Si(),MO=Zn(),R3e=(d4(),or(h4)).default,F3e=(fp(),or(up)).default,Wi=Rt().extendFlat,P3e=ua().overrideAll,TO=(Vh(),or(Hh)).default,I3e=Qo.line,o0=Qo.marker,z3e=o0.line,N3e=Wi({width:I3e.width,dash:{valType:"enumerated",values:TO(R3e),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=AO.exports=P3e({x:Qo.x,y:Qo.y,z:{valType:"data_array"},text:Wi({},Qo.text,{}),texttemplate:D3e(),texttemplatefallback:wO({editType:"calc"}),hovertext:Wi({},Qo.hovertext,{}),hovertemplate:L3e(),hovertemplatefallback:wO(),xhoverformat:b4("x"),yhoverformat:b4("y"),zhoverformat:b4("z"),mode:Wi({},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:N3e,marker:Wi({symbol:{valType:"enumerated",values:TO(F3e),dflt:"circle",arrayOk:!0},size:Wi({},o0.size,{dflt:8}),sizeref:o0.sizeref,sizemin:o0.sizemin,sizemode:o0.sizemode,opacity:Wi({},o0.opacity,{arrayOk:!1}),colorbar:o0.colorbar,line:Wi({width:Wi({},z3e.width,{arrayOk:!1})},w4("marker.line"))},w4("marker")),textposition:Wi({},Qo.textposition,{dflt:"top center"}),textfont:E3e({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:MO.opacity,hoverinfo:Wi({},MO.hoverinfo)},"calc","nested");_4.x.editType=_4.y.editType=_4.z.editType="calc+clearAxisTypes"});var CO=xe((m8e,SO)=>{"use strict";var kO=Cr(),q3e=tr(),T4=Da(),B3e=Ob(),O3e=Ub(),U3e=Hb(),H3e=M4();SO.exports=function(r,t,n,a){function o(b,h){return q3e.coerce(r,t,H3e,b,h)}var i=V3e(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)&&B3e(r,t,n,a,o,{noAngle:!0,noLineDash:!0,noSelect:!0}),T4.hasLines(t)&&(o("connectgaps"),O3e(r,t,n,a,o)),T4.hasText(t)&&(o("texttemplate"),o("texttemplatefallback"),U3e(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=kO.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 V3e(e,r,t,n){var a=0,o=t("x"),i=t("y"),l=t("z"),u=kO.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 LO=xe((b8e,EO)=>{"use strict";var G3e=yd(),Y3e=Yb();EO.exports=function(r,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return G3e(n,t),Y3e(r,t),n}});var RO=xe((x8e,DO)=>{DO.exports=X3e;function X3e(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 W3e=RO();FO.exports=function(r){return W3e("webgl",r)}});var NO=xe((w8e,zO)=>{"use strict";var IO=Zr(),Z3e=function(){};zO.exports=function(r){for(var t in r)typeof r[t]=="function"&&(r[t]=Z3e);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=IO.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=IO.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 OO=xe((M8e,BO)=>{"use strict";var l0=$o(),J3e=tr(),$3e=["xaxis","yaxis","zaxis"];function qO(){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 K3e=qO.prototype;K3e.merge=function(e,r){for(var t=this,n=0;n<3;++n){var a=r[$3e[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?J3e.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 Q3e(e,r){var t=new qO;return t.merge(e,r),t}BO.exports=Q3e});var VO=xe((T8e,HO)=>{"use strict";var j3e=$o(),eye=["xaxis","yaxis","zaxis"];function UO(){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 rye=UO.prototype;rye.merge=function(e){for(var r=0;r<3;++r){var t=e[eye[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 tye(e){var r=new UO;return r.merge(e),r}HO.exports=tye});var XO=xe((A8e,YO)=>{"use strict";YO.exports=lye;var GO=Vt(),nye=tr(),aye=["xaxis","yaxis","zaxis"],iye=[0,0,0];function oye(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){iye[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=oye(a)}});var jO=xe((k8e,QO)=>{"use strict";var JO=In().gl_plot3d,sye=JO.createCamera,WO=JO.createScene,uye=PO(),fye=G1(),dp=Cr(),wa=tr(),hp=wa.preserveDrawingBuffer(),pp=Vt(),Zi=yo(),cye=$o(),vye=NO(),hye=Cx(),dye=OO(),pye=VO(),gye=XO(),yye=nu().applyAutorangeOptions,cv,vp,$O=!1;function KO(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=dye(r,r[this.id]),this.spikeOptions=pye(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=KO.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=uye({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 ZO=!0;ra.tryCreatePlot=function(){var e=this,r=e.prepareOptions(),t=!0;try{e.glplot=WO(r)}catch(n){if(e.staticMode||!ZO||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=WO(r)}catch(a){hp=r.glOptions.preserveDrawingBuffer=!1,t=!1}}}return ZO=!1,t};ra.initializeGLCamera=function(){var e=this,r=e.fullSceneLayout.camera,t=r.projection.type==="orthographic";e.camera=sye(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 vye(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(){$O=!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)}},fye?{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),gye(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};Zi.appendArrayPointValue(w,_,T),t._module.eventData&&(w=_._module.eventData(w,c,_,{},T));var y={points:[w]};if(e.fullSceneLayout.hovermode){var v=[];Zi.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:Zi.castHoverOption(_,T,"bgcolor")||f.color,borderColor:Zi.castHoverOption(_,T,"bordercolor"),fontFamily:Zi.castHoverOption(_,T,"font.family"),fontSize:Zi.castHoverOption(_,T,"font.size"),fontColor:Zi.castHoverOption(_,T,"font.color"),nameLength:Zi.castHoverOption(_,T,"namelength"),textAlign:Zi.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||$O)?r.emit("plotly_click",y):r.emit("plotly_hover",y),this.oldEventData=y}else Zi.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 mye(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 b=0;b_[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=yye(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]*b[i],max:u.range[1]*b[i]})}var E,R=f.aspectmode;if(R==="cube")E=[1,1,1];else if(R==="manual"){var I=f.aspectratio;E=[I.x,I.y,I.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 F=m[s];z[i]=Math.pow(F.acc,1/F.count)/b[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,P=r._size||null;if(L&&P){var B=n.container.style;B.position="absolute",B.left=P.l+L.x[0]*P.w+"px",B.top=P.t+(1-L.y[1])*P.h+"px",B.width=P.w*(L.x[1]-L.x[0])+"px",B.height=P.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 xye(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 _ye(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()),_ye(e.camera)};ra.setViewport=function(e){var r=this,t=e.camera;r.camera.lookAt.apply(this,xye(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 b=["up","center","eye"],h=["x","y","z"];return f[b[c]]&&s[b[c]][h[g]]===f[b[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 b=wa.nestedProperty(t,r.id+".camera");b.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 b=a.layout;dp.call("_storeDirectGUIEdit",b,o._preGUI,g),i.up=c,wa.nestedProperty(b,f).set(c)}}else n.keyBindingMode=e;t.fullSceneLayout.hovermode=r};function wye(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),wye(o,n,a),Mye(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)};QO.exports=KO});var rU=xe((S8e,eU)=>{"use strict";eU.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var k4=xe((C8e,tU)=>{"use strict";var Tye=Zr(),Ur=ai(),A4=Rt().extendFlat,Aye=ua().overrideAll;tU.exports=Aye({visible:Ur.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Tye.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((E8e,nU)=>{"use strict";var S4=k4(),kye=tp().attributes,C4=Rt().extendFlat,Sye=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"}}nU.exports={_arrayAttrRegexps:[Sye("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:kye({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 iU=xe((L8e,aU)=>{"use strict";var Cye=tr(),Eye=Tt(),Lye=tp().defaults;aU.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,b;function h(k,S){return Cye.coerce(g,b,i,k,S)}for(var _=0;_{"use strict";var Dye=Zr(),oU=tr(),Rye=Tt(),Fye=k4(),Pye=fx(),Iye=kd(),lU=["xaxis","yaxis","zaxis"],zye=13600/187;sU.exports=function(r,t,n){var a,o;function i(s,f){return oU.coerce(a,o,Fye,s,f)}for(var l=0;l{"use strict";var Nye=tr(),qye=Zr(),Bye=Cr(),Oye=iU(),Uye=uU(),fU=L4(),Hye=Gf().getSubplotData,cU="gl3d";vU.exports=function(r,t,n){var a=t._basePlotModules.length>1;function o(i){if(!a){var l=Nye.validate(r[i],fU[i]);if(l)return r[i]}}Oye(r,t,n,{type:cU,attributes:fU,handleDefaults:Vye,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,autotypenumbersDflt:t.autotypenumbers,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})};function Vye(e,r,t,n){for(var a=t("bgcolor"),o=qye.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 Gye=ua().overrideAll,Yye=fs(),Xye=jO(),Wye=Gf().getSubplotData,Zye=tr(),Jye=(wl(),or(_l)),Ou="gl3d",D4="scene";Ma.name=Ou;Ma.attr=D4;Ma.idRoot=D4;Ma.idRegex=Ma.attrRegex=Zye.counterRegex("scene");Ma.attributes=rU();Ma.layoutAttributes=L4();Ma.baseLayoutAttrOverrides=Gye({hoverlabel:Yye.hoverlabel},"plot","nested");Ma.supplyLayoutDefaults=hU();Ma.plot=function(r){for(var t=r._fullLayout,n=r._fullData,a=t._subplots[Ou],o=0;o{"use strict";dU.exports={plot:_O(),attributes:M4(),markerSymbols:(fp(),or(up)).default,supplyDefaults:CO(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:LO(),moduleType:"trace",name:"scatter3d",basePlotModule:Zl(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var yU=xe((I8e,gU)=>{"use strict";gU.exports=pU()});var hv=xe((z8e,xU)=>{"use strict";var mU=Zr(),$ye=Di(),R4=No().axisHoverFormat,{hovertemplateAttrs:Kye,templatefallbackAttrs:Qye}=Si(),bU=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:mU.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:mU.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var z4=xU.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:Kye(),hovertemplatefallback:Qye(),xhoverformat:R4("x"),yhoverformat:R4("y"),zhoverformat:R4("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},$ye("",{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({},bU.hoverinfo),showlegend:F4({},bU.showlegend,{dflt:!1})}),"calc","nested");z4.x.editType=z4.y.editType=z4.z.editType="calc+clearAxisTypes"});var q4=xe((N8e,MU)=>{"use strict";var eme=Cr(),_U=tr(),rme=lo(),tme=hv(),N4=.1;function nme(e,r){for(var t=[],n=32,a=0;a{"use strict";var TU=Tl();AU.exports=function(r,t){t.surfacecolor?TU(r,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):TU(r,t,{vals:t.z,containerStr:"",cLetter:"c"})}});var LU=xe((B8e,EU)=>{"use strict";var ome=tr(),SU=.01,lme=[[-1,0],[1,0],[0,-1],[0,1]];function sme(e){return .5-.25*Math.min(1,e*.5)}EU.exports=function(r,t){var n=1,a;for(CU(r,t),a=0;aSU;a++)n=CU(r,t,sme(n));return n>SU&&ome.log("interp2d didn't converge quickly",n),r};function CU(e,r,t){var n=0,a,o,i,l,u,s,f,c,g,b,h,_,T;for(l=0;l_&&(n=Math.max(n,Math.abs(e[o][i]-h)/(T-_))))}return n}});var RU=xe((O8e,DU)=>{"use strict";var ume=tr().maxRowLength;DU.exports=function(r){var t=[],n={},a=[],o=r[0],i=[],l=[0,0,0],u=ume(r),s,f,c,g,b,h,_,T;for(f=0;f=0;b--)g=a[b],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(b,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 qU=xe((U8e,NU)=>{"use strict";var fme=In().gl_surface3d,Uu=In().ndarray,cme=In().ndarray_linear_interpolate.d2,vme=LU(),hme=RU(),dv=tr().isArrayOrTypedArray,dme=Wl().parseColorScale,FU=$o(),pme=so().extractOpts;function IU(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 Ji=IU.prototype;Ji.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)};Ji.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)};Ji.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)};Ji.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 gme(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 yme(e,r){if(e0){t=Hu[n];break}return t}function bme(e,r){if(!(e<1||r<1)){for(var t=B4(e),n=B4(r),a=1,o=0;ogp;)n--,n/=mme(n),n++,n1?a:1};function _me(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 wme(e,r,t){return Mme(e,r,_me,t),e}function Mme(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";BU.exports={attributes:hv(),supplyDefaults:q4().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:kU(),plot:qU(),moduleType:"trace",name:"surface",basePlotModule:Zl(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var HU=xe((V8e,UU)=>{"use strict";UU.exports=OU()});var Vu=xe((G8e,GU)=>{"use strict";var kme=Di(),O4=No().axisHoverFormat,{hovertemplateAttrs:Sme,templatefallbackAttrs:Cme}=Si(),Jl=hv(),VU=Zn(),$l=Rt().extendFlat;GU.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:Sme({editType:"calc"}),hovertemplatefallback:Cme({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"}},kme("",{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({},VU.hoverinfo,{editType:"calc"}),showlegend:$l({},VU.showlegend,{dflt:!1})})});var mp=xe((Y8e,XU)=>{"use strict";var Eme=Di(),yp=No().axisHoverFormat,{hovertemplateAttrs:Lme,templatefallbackAttrs:Dme}=Si(),pv=Vu(),YU=Zn(),U4=Rt().extendFlat,Rme=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=XU.exports=Rme(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:Lme(),hovertemplatefallback:Dme(),xhoverformat:yp("x"),yhoverformat:yp("y"),zhoverformat:yp("z"),valuehoverformat:yp("value",1),showlegend:U4({},YU.showlegend,{dflt:!1})},Eme("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:pv.opacity,lightposition:pv.lightposition,lighting:pv.lighting,flatshading:pv.flatshading,contour:pv.contour,hoverinfo:U4({},YU.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((X8e,ZU)=>{"use strict";var Fme=tr(),Pme=Cr(),Ime=mp(),zme=lo();function Nme(e,r,t,n){function a(o,i){return Fme.coerce(e,r,Ime,o,i)}WU(e,r,t,n,a)}function WU(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=Pme.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 b=a("surface.show");b&&(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(_)}),zme(e,r,n,a,{prefix:"",cLetter:"c"}),r._length=null}ZU.exports={supplyDefaults:Nme,supplyIsoDefaults:WU}});var bp=xe((W8e,$U)=>{"use strict";var X4=tr(),qme=Tl();function Bme(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=JU(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",(x>M?"-":"+")+"y"),h=h.replace("z",(d>w?"-":"+")+"z");var p=function(){a=0,y=[],v=[],A=[]};(!a||a{"use strict";var Ome=Tl(),Ume=bp().processGrid,xp=bp().filter;KU.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=Ume(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";QU.exports=function(r,t,n,a){a=a||r.length;for(var o=new Array(a),i=0;i{"use strict";var Hme=In().gl_mesh3d,Vme=Wl().parseColorScale,Gme=tr().isArrayOrTypedArray,Yme=$o(),Xme=so().extractOpts,jU=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(F>=1)ve=[me],he=[Se];else if(F>0){var be=P(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-x);return pe>=x-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,x,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(x,S),Math.max(x,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,b-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,b-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 Zme(e,r){var t=e.glplot.gl,n=Hme({gl:t}),a=new eH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}tH.exports={findNearestOnAxis:gv,generateIsoMeshes:rH,createIsosurfaceTrace:Zme}});var aH=xe((K8e,nH)=>{"use strict";nH.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 oH=xe((Q8e,iH)=>{"use strict";iH.exports=aH()});var $4=xe((j8e,sH)=>{"use strict";var Jme=Di(),hn=mp(),$me=hv(),lH=Zn(),J4=Rt().extendFlat,Kme=ua().overrideAll,wp=sH.exports=Kme(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},Jme("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:hn.colorbar,opacity:hn.opacity,opacityscale:$me.opacityscale,lightposition:hn.lightposition,lighting:hn.lighting,flatshading:hn.flatshading,contour:hn.contour,hoverinfo:J4({},lH.hoverinfo),showlegend:J4({},lH.showlegend,{dflt:!1})}),"calc","nested");wp.x.editType=wp.y.editType=wp.z.editType=wp.value.editType="calc+clearAxisTypes"});var fH=xe((e9e,uH)=>{"use strict";var Qme=tr(),jme=$4(),e5e=G4().supplyIsoDefaults,r5e=q4().opacityscaleDefaults;uH.exports=function(r,t,n,a){function o(i,l){return Qme.coerce(r,t,jme,i,l)}e5e(r,t,n,a,o),r5e(r,t,a,o)}});var dH=xe((r9e,hH)=>{"use strict";var t5e=In().gl_mesh3d,n5e=Wl().parseColorScale,a5e=tr().isArrayOrTypedArray,i5e=$o(),o5e=so().extractOpts,cH=Yu(),K4=_p().findNearestOnAxis,l5e=_p().generateIsoMeshes;function vH(e,r,t){this.scene=e,this.uid=t,this.mesh=r,this.name="",this.data=null,this.showContour=!1}var Q4=vH.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 a5e(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=l5e(e);function n(u,s,f,c){return s.map(function(g){return u.d2l(g,0,c)*f})}var a=cH(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=cH(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:i5e(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},l=o5e(e);i.vertexIntensity=e._meshIntensity,i.vertexIntensityBounds=[l.min,l.max],i.colormap=n5e(e),this.mesh.update(i)};Q4.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function s5e(e,r){var t=e.glplot.gl,n=t5e({gl:t}),a=new vH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}hH.exports=s5e});var gH=xe((t9e,pH)=>{"use strict";pH.exports={attributes:$4(),supplyDefaults:fH(),calc:W4(),colorbar:{min:"cmin",max:"cmax"},plot:dH(),moduleType:"trace",name:"volume",basePlotModule:Zl(),categories:["gl3d","showLegend"],meta:{}}});var mH=xe((n9e,yH)=>{"use strict";yH.exports=gH()});var _H=xe((a9e,xH)=>{"use strict";var u5e=Cr(),bH=tr(),f5e=lo(),c5e=Vu();xH.exports=function(r,t,n,a){function o(f,c){return bH.coerce(r,t,c5e,f,c)}function i(f){var c=f.map(function(g){var b=o(g);return b&&bH.isArrayOrTypedArray(b)?b: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=u5e.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"),f5e(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 MH=xe((i9e,wH)=>{"use strict";var v5e=Tl();wH.exports=function(r,t){t.intensity&&v5e(r,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}});var CH=xe((o9e,SH)=>{"use strict";var h5e=In().gl_mesh3d,d5e=In().delaunay_triangulate,p5e=In().alpha_shape,g5e=In().convex_hull,y5e=Wl().parseColorScale,m5e=tr().isArrayOrTypedArray,t6=$o(),b5e=so().extractOpts,TH=Yu();function kH(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=kH.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 m5e(t)&&t[r]!==void 0?e.textLabel=t[r]:t&&(e.textLabel=t),!0}};function AH(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=TH(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=TH(e6(e.i),e6(e.j),e6(e.k))}else e.alphahull===0?o=g5e(a):e.alphahull>0?o=p5e(e.alphahull,a):o=x5e(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=b5e(e);this.color="#fff";var u=e.intensitymode;i[u+"Intensity"]=e.intensity,i[u+"IntensityBounds"]=[l.min,l.max],i.colormap=y5e(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],i.vertexColors=AH(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],i.cellColors=AH(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 _5e(e,r){var t=e.glplot.gl,n=h5e({gl:t}),a=new kH(e,n,r.uid);return n._trace=a,a.update(r),e.glplot.add(n),a}SH.exports=_5e});var LH=xe((l9e,EH)=>{"use strict";EH.exports={attributes:Vu(),supplyDefaults:_H(),calc:MH(),colorbar:{min:"cmin",max:"cmax"},plot:CH(),moduleType:"trace",name:"mesh3d",basePlotModule:Zl(),categories:["gl3d","showLegend"],meta:{}}});var RH=xe((s9e,DH)=>{"use strict";DH.exports=LH()});var i6=xe((u9e,PH)=>{"use strict";var w5e=Di(),Xu=No().axisHoverFormat,{hovertemplateAttrs:M5e,templatefallbackAttrs:T5e}=Si(),A5e=Vu(),FH=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:M5e({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:T5e({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({},FH.showlegend,{dflt:!1})};a6(Mp,w5e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var k5e=["opacity","lightposition","lighting"];k5e.forEach(function(e){Mp[e]=A5e[e]});Mp.hoverinfo=a6({},FH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});PH.exports=Mp});var zH=xe((f9e,IH)=>{"use strict";var S5e=tr(),C5e=lo(),E5e=i6();IH.exports=function(r,t,n,a){function o(b,h){return S5e.coerce(r,t,E5e,b,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"),C5e(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 qH=xe((c9e,NH)=>{"use strict";var L5e=Tl();NH.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 D5e=In().gl_cone3d,R5e=In().gl_cone3d.createConeMesh,F5e=tr().simpleMap,P5e=Wl().parseColorScale,I5e=so().extractOpts,z5e=tr().isArrayOrTypedArray,BH=Yu();function OH(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var o6=OH.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 z5e(u)&&u[r]!==void 0?e.textLabel=u[r]:u&&(e.textLabel=u),!0}};var N5e={xaxis:0,yaxis:1,zaxis:2},q5e={tip:1,tail:0,cm:.25,center:.5},B5e={tip:1,tail:1,cm:.75,center:.5};function UH(e,r){var t=e.fullSceneLayout,n=e.dataScale,a={};function o(f,c){var g=t[c],b=n[N5e[c]];return F5e(f,function(h){return g.d2l(h)*b})}a.vectors=BH(o(r.u,"xaxis"),o(r.v,"yaxis"),o(r.w,"zaxis"),r._len),a.positions=BH(o(r.x,"xaxis"),o(r.y,"yaxis"),o(r.z,"zaxis"),r._len);var i=I5e(r);a.colormap=P5e(r),a.vertexIntensityBounds=[i.min/r._normMax,i.max/r._normMax],a.coneOffset=q5e[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=D5e(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=B5e[r.anchor]*u.vectorScale*u.coneScale*r._normMax,u}o6.update=function(e){this.data=e;var r=UH(this.scene,e);this.mesh.update(r)};o6.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function O5e(e,r){var t=e.glplot.gl,n=UH(e,r),a=R5e(t,n),o=new OH(e,r.uid);return o.mesh=a,o.data=r,a._trace=o,e.glplot.add(a),o}HH.exports=O5e});var YH=xe((h9e,GH)=>{"use strict";GH.exports={moduleType:"trace",name:"cone",basePlotModule:Zl(),categories:["gl3d","showLegend"],attributes:i6(),supplyDefaults:zH(),colorbar:{min:"cmin",max:"cmax"},calc:qH(),plot:VH(),eventData:function(e,r){return e.norm=r.traceCoordinate[6],e},meta:{}}});var WH=xe((d9e,XH)=>{"use strict";XH.exports=YH()});var s6=xe((p9e,JH)=>{"use strict";var U5e=Di(),Wu=No().axisHoverFormat,{hovertemplateAttrs:H5e,templatefallbackAttrs:V5e}=Si(),G5e=Vu(),ZH=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:H5e({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:V5e({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({},ZH.showlegend,{dflt:!1})};l6(Tp,U5e("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Y5e=["opacity","lightposition","lighting"];Y5e.forEach(function(e){Tp[e]=G5e[e]});Tp.hoverinfo=l6({},ZH.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});JH.exports=Tp});var KH=xe((g9e,$H)=>{"use strict";var X5e=tr(),W5e=lo(),Z5e=s6();$H.exports=function(r,t,n,a){function o(g,b){return X5e.coerce(r,t,Z5e,g,b)}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"),W5e(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 iV=xe((y9e,aV)=>{"use strict";var eV=In().gl_streamtube3d,J5e=eV.createTubeMesh,$5e=tr(),K5e=Wl().parseColorScale,Q5e=so().extractOpts,QH=Yu(),rV={xaxis:0,yaxis:1,zaxis:2};function tV(e,r){this.scene=e,this.uid=r,this.mesh=null,this.data=null}var f6=tV.prototype;f6.handlePick=function(e){var r=this.scene.fullSceneLayout,t=this.scene.dataScale;function n(i,l){var u=r[l],s=t[rV[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 jH(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 nV(e,r){var t=e.fullSceneLayout,n=e.dataScale,a=r._len,o={};function i(D,E){var R=t[E],I=n[rV[E]];return $5e.simpleMap(D,function(z){return R.d2l(z)*I})}if(o.vectors=QH(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=QH(i(r._startsX,"xaxis"),i(r._startsY,"yaxis"),i(r._startsZ,"zaxis"));else{for(var c=u[0],g=jH(l),b=jH(s),h=new Array(g.length*b.length),_=0,T=0;T{"use strict";oV.exports={moduleType:"trace",name:"streamtube",basePlotModule:Zl(),categories:["gl3d","showLegend"],attributes:s6(),supplyDefaults:KH(),colorbar:{min:"cmin",max:"cmax"},calc:bp().calc,plot:iV(),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 uV=xe((b9e,sV)=>{"use strict";sV.exports=lV()});var ta=xe((x9e,cV)=>{"use strict";var fV=Object.getOwnPropertySymbols,ebe=Object.prototype.hasOwnProperty,rbe=Object.prototype.propertyIsEnumerable;function tbe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function nbe(){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}}cV.exports=nbe()?Object.assign:function(e,r){for(var t,n=tbe(e),a,o=1;o{var kp=ta();function vV(){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(vV.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=hV.exports=new vV;$r.cdate=c6;$r.baseCalendar=v6;$r.calendars.gregorian=h6});var dV=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(x,M){for(var d=1;S+d1},f=function(x,M,d,w){var y=""+M;if(s(x,w))for(;y.length1},k=function(D,E){var R=m(D,E),I=[2,3,R?4:2,R?4:2,10,11,20]["oyYJ@!".indexOf(D)+1],z=new RegExp("^-?\\d{1,"+I+"}"),F=r.substring(y).match(z);if(!F)throw(zn.local.missingNumberAt||zn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,y);return y+=F[0].length,parseInt(F[0],10)},S=this,x=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,I){for(var z=m(D,I)?R:E,F=0;F-1){g=1,b=h;for(var p=this.daysInMonth(c,g);b>p;p=this.daysInMonth(c,g))g++,b-=p}return f>-1?this.fromJD(f):this.newDate(c,g,b)},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 pV=xe(()=>{var Kl=na(),abe=ta(),p6=Kl.instance();function Sp(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Sp.prototype=new Kl.baseCalendar;abe(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(obe);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(lbe);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(sbe);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=fbe(e,o,t,a);return p6.toJD(i.year,i.month,i.day)},fromJD:function(e){var r=p6.fromJD(e),t=ube(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(ibe),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 ibe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,obe=/^\d?\d[iI]?/m,lbe=/^闰?十?[一二三四五六七八九]?月/m,sbe=/^闰?十?[一二三四五六七八九]?/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 ube(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,b=s&31,h,_=new Date(c,g-1,b),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!x||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]],b=g>>13,h;b&&(i.month>b||i.isIntercalary)?h=i.month:h=i.month-1;for(var _=0;_>9&4095,S=m>>5&15,x=m&31,M=new Date(k,S-1,x+c);return o.year=M.getFullYear(),o.month=1+M.getMonth(),o.day=M.getDate(),o}});var gV=xe(()=>{var s0=na(),cbe=ta();function g6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}g6.prototype=new s0.baseCalendar;cbe(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 yV=xe(()=>{var jo=na(),vbe=ta();function y6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}y6.prototype=new jo.baseCalendar;vbe(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:hbe[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 hbe={20:"Fruitbat",21:"Anchovy"};jo.calendars.discworld=y6});var mV=xe(()=>{var u0=na(),dbe=ta();function m6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}m6.prototype=new u0.baseCalendar;dbe(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 bV=xe(()=>{var es=na(),pbe=ta();function b6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}b6.prototype=new es.baseCalendar;pbe(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 xV=xe(()=>{var yv=na(),gbe=ta();function x6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}x6.prototype=new yv.baseCalendar;gbe(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 _V=xe(()=>{var mv=na(),ybe=ta();function _6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_6.prototype=new mv.baseCalendar;ybe(_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 MV=xe(()=>{var bi=na(),mbe=ta();function M6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}M6.prototype=new bi.baseCalendar;mbe(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,[wV(e+20,20),wV(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 wV(e,r){return w6(e-1,r)+1}bi.calendars.mayan=M6});var AV=xe(()=>{var f0=na(),bbe=ta();function T6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}T6.prototype=new f0.baseCalendar;var TV=f0.instance("gregorian");bbe(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 TV.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 kV=xe(()=>{var c0=na(),xbe=ta();function A6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}A6.prototype=new c0.baseCalendar;xbe(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(),_be=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;_be(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 CV=xe(()=>{var v0=na(),wbe=ta(),Dp=v0.instance();function k6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}k6.prototype=new v0.baseCalendar;wbe(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 EV=xe(()=>{var h0=na(),Mbe=ta(),Rp=h0.instance();function S6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}S6.prototype=new h0.baseCalendar;Mbe(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 LV=xe(()=>{var d0=na(),Tbe=ta();function C6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}C6.prototype=new d0.baseCalendar;Tbe(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 RV=xe((Q9e,DV)=>{"use strict";DV.exports=na();dV();pV();gV();yV();mV();bV();xV();_V();MV();AV();kV();SV();CV();EV();LV()});var BV=xe((j9e,qV)=>{"use strict";var PV=RV(),bv=tr(),IV=(wn(),or(Rn)),Abe=IV.EPOCHJD,kbe=IV.ONEDAY,D6={valType:"enumerated",values:bv.sortObjectKeys(PV.calendars),editType:"calc",dflt:"gregorian"},zV=function(e,r,t,n){var a={};return a[t]=D6,bv.coerce(e,r,a,t,n)},Sbe=function(e,r,t,n){for(var a=0;a{"use strict";OV.exports=BV()});var Fbe=xe((rMe,VV)=>{var HV=tO();HV.register([yU(),HU(),oH(),mH(),RH(),WH(),uV(),UV()]);VV.exports=HV});return Fbe();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/plotly-map.js b/dist/plotly-map.js index b011cfccbff..e6a79b86f74 100644 --- a/dist/plotly-map.js +++ b/dist/plotly-map.js @@ -1,5 +1,5 @@ /** -* plotly.js (map) v4.2.0 +* plotly.js (map) v4.3.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.2.0"; + exports.version = "4.3.0"; } }); @@ -9261,7 +9261,7 @@ var Plotly = (() => { for (var i2 = 1; i2 < length; i2++) { input = inputs[i2]; for (key in input) { - src = target[key]; + src = Object.prototype.hasOwnProperty.call(target, key) ? target[key] : void 0; copy = input[key]; if (noArrayCopies && isArray(copy)) { target[key] = copy; @@ -19641,8 +19641,8 @@ var Plotly = (() => { }; var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/; var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/; - function notValid(prop) { - return prop.slice(0, 2) === "__"; + function notValid(obj, prop) { + return prop in obj && !Object.prototype.hasOwnProperty.call(obj, prop); } lib.expandObjectPaths = function(data) { var match, key, prop, datum, idx, dest, trailingPath; @@ -19652,7 +19652,7 @@ var Plotly = (() => { if (match = key.match(dottedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; delete data[key]; data[prop] = lib.extendDeepNoArrays( data[prop] || {}, @@ -19661,7 +19661,7 @@ var Plotly = (() => { } else if (match = key.match(indexedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; idx = parseInt(match[2]); delete data[key]; data[prop] = data[prop] || []; @@ -19670,11 +19670,11 @@ var Plotly = (() => { dest = data[prop][idx] = data[prop][idx] || {}; lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum))); } else { - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; data[prop][idx] = lib.expandObjectPaths(datum); } } else { - if (notValid(key)) continue; + if (notValid(data, key)) continue; data[key] = lib.expandObjectPaths(data[key]); } } @@ -22229,7 +22229,7 @@ var Plotly = (() => { ax2._counterAxes.sort(axisIDs.idSort); ax2._subplotsWith.sort(Lib.subplotSort); ax2._mainSubplot = findMainSubplot(ax2, newFullLayout); - if (ax2._counterAxes.length && (ax2.spikemode && ax2.spikemode.indexOf("across") !== -1 || ax2.automargin && ax2.mirror && ax2.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax2))) { + if (ax2._counterAxes.length && (ax2.automargin && ax2.mirror && ax2.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax2))) { var min = 1; var max = 0; for (j2 = 0; j2 < ax2._counterAxes.length; j2++) { @@ -25421,6 +25421,33 @@ var Plotly = (() => { dflt: [0, 1], editType: "plot" }, + domainpad: { + left: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + right: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + top: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + bottom: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + editType: "plot" + }, position: { valType: "number", min: 0, @@ -29097,6 +29124,12 @@ var Plotly = (() => { function isValidCategory(v2) { return v2 !== null && v2 !== void 0; } + var MIN_PADDED_LENGTH = 2; + function padFactor(wanted, bandLength) { + if (wanted <= 0) return 0; + const room = Math.max(0, bandLength - MIN_PADDED_LENGTH); + return wanted > room ? room / wanted : 1; + } module.exports = function setConvert(ax2, fullLayout) { fullLayout = fullLayout || {}; var axId = ax2._id || "x"; @@ -29467,6 +29500,7 @@ var Plotly = (() => { if (ax2.overlaying) { var ax22 = axisIds.getFromId({ _fullLayout: fullLayout }, ax2.overlaying); ax2.domain = ax22.domain; + ax2.domainpad = ax22.domainpad; } var rangeAttr = usePrivateRange && ax2._r ? "_r" : "range"; var calendar = ax2.calendar; @@ -29474,14 +29508,26 @@ var Plotly = (() => { var rl0 = ax2.r2l(ax2[rangeAttr][0], calendar); var rl1 = ax2.r2l(ax2[rangeAttr][1], calendar); var isY2 = axLetter === "y"; + const bandLength = (isY2 ? gs3.h : gs3.w) * (ax2.domain[1] - ax2.domain[0]); + const pad = ax2.domainpad; + let padStart = 0; + let padEnd = 0; + if (pad) { + padStart = (isY2 ? pad.top : pad.left) || 0; + padEnd = (isY2 ? pad.bottom : pad.right) || 0; + const fits = padFactor(padStart + padEnd, bandLength); + padStart *= fits; + padEnd *= fits; + } + ax2._length = bandLength - padStart - padEnd; + ax2._padStart = padStart; + ax2._padEnd = padEnd; if (isY2) { - ax2._offset = gs3.t + (1 - ax2.domain[1]) * gs3.h; - ax2._length = gs3.h * (ax2.domain[1] - ax2.domain[0]); + ax2._offset = gs3.t + (1 - ax2.domain[1]) * gs3.h + padStart; ax2._m = ax2._length / (rl0 - rl1); ax2._b = -ax2._m * rl1; } else { - ax2._offset = gs3.l + ax2.domain[0] * gs3.w; - ax2._length = gs3.w * (ax2.domain[1] - ax2.domain[0]); + ax2._offset = gs3.l + ax2.domain[0] * gs3.w + padStart; ax2._m = ax2._length / (rl1 - rl0); ax2._b = -ax2._m * rl0; } @@ -31338,7 +31384,7 @@ var Plotly = (() => { for (var i2 = 0; i2 < vals.length; i2++) { var vali = tickVal2l(vals[i2]); if (vali > tickMin && vali < tickMax) { - var obj = axes.tickText(ax2, vali, false, String(text[i2]), { + const obj = axes.tickText(ax2, vali, false, text[i2] !== void 0, { first: i2 === firstIdx, last: i2 === lastIdx }); @@ -33427,6 +33473,7 @@ var Plotly = (() => { var noSwapAttrs = [ "anchor", "domain", + "domainpad", "overlaying", "position", "side", @@ -38012,6 +38059,30 @@ var Plotly = (() => { } return d2; } + function getAcrossSpikeSpan(gd3, ax2, gs3) { + const isY = ax2._id.charAt(0) === "y"; + let start = Infinity; + let end = -Infinity; + for (const counterId of ax2._counterAxes || []) { + const counterAx = Axes.getFromId(gd3, counterId); + if (!counterAx) continue; + const padStart = counterAx._padStart || 0; + const padEnd = counterAx._padEnd || 0; + if (isY) { + start = Math.min(start, gs3.l + counterAx.domain[0] * gs3.w + padStart); + end = Math.max(end, gs3.l + counterAx.domain[1] * gs3.w - padEnd); + } else { + start = Math.min(start, gs3.t + (1 - counterAx.domain[1]) * gs3.h + padStart); + end = Math.max(end, gs3.t + (1 - counterAx.domain[0]) * gs3.h - padEnd); + } + } + if (ax2.anchor === "free") { + const position = isY ? gs3.l + ax2.position * gs3.w : gs3.t + (1 - ax2.position) * gs3.h; + start = Math.min(start, position); + end = Math.max(end, position); + } + return [start, end]; + } function createSpikelines(gd3, closestPoints, opts) { var container = opts.container; var fullLayout = opts.fullLayout; @@ -38048,14 +38119,9 @@ var Plotly = (() => { xEndSpike = hLinePointX; } if (yMode.indexOf("across") !== -1) { - var xAcross0 = ya3._counterDomainMin; - var xAcross1 = ya3._counterDomainMax; - if (ya3.anchor === "free") { - xAcross0 = Math.min(xAcross0, ya3.position); - xAcross1 = Math.max(xAcross1, ya3.position); - } - xBase = gs3.l + xAcross0 * gs3.w; - xEndSpike = gs3.l + xAcross1 * gs3.w; + const xSpan = getAcrossSpikeSpan(gd3, ya3, gs3); + xBase = xSpan[0]; + xEndSpike = xSpan[1]; } container.insert("line", ":first-child").attr({ x1: xBase, @@ -38109,14 +38175,9 @@ var Plotly = (() => { yEndSpike = vLinePointY; } if (xMode.indexOf("across") !== -1) { - var yAcross0 = xa3._counterDomainMin; - var yAcross1 = xa3._counterDomainMax; - if (xa3.anchor === "free") { - yAcross0 = Math.min(yAcross0, xa3.position); - yAcross1 = Math.max(yAcross1, xa3.position); - } - yBase = gs3.t + (1 - yAcross1) * gs3.h; - yEndSpike = gs3.t + (1 - yAcross0) * gs3.h; + const ySpan = getAcrossSpikeSpan(gd3, xa3, gs3); + yBase = ySpan[0]; + yEndSpike = ySpan[1]; } container.insert("line", ":first-child").attr({ x1: vLinePointX, @@ -42772,7 +42833,7 @@ var Plotly = (() => { var outerMax = rangeCenter + halfRange * factor * 1.0001; var getPadMin = autorange.makePadFn(fullLayout, ax2, 0); var getPadMax = autorange.makePadFn(fullLayout, ax2, 1); - updateDomain(ax2, factor); + updateDomain(ax2, factor, fullLayout); var m2 = Math.abs(ax2._m); var extremes = autorange.concatExtremes(gd3, ax2); var minArray = extremes.min; @@ -42797,7 +42858,7 @@ var Plotly = (() => { rangeMax = ax2.l2r(rangeMax); ax2.range = ax2._input.range = rl0 < rl1 ? [rangeMin, rangeMax] : [rangeMax, rangeMin]; } - updateDomain(ax2, factor); + updateDomain(ax2, factor, fullLayout); } } } @@ -42828,13 +42889,26 @@ var Plotly = (() => { } } }; - function updateDomain(ax2, factor) { + function domainPadFraction(ax2, fullLayout) { + const pad = ax2.domainpad; + if (!pad) return 0; + const gs3 = fullLayout._size; + return ax2._id.charAt(0) === "y" ? ((pad.top || 0) + (pad.bottom || 0)) / gs3.h : ((pad.left || 0) + (pad.right || 0)) / gs3.w; + } + function updateDomain(ax2, factor, fullLayout) { var inputDomain = ax2._inputDomain; var centerFraction = FROM_BL2[ax2.constraintoward]; var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction; + let divisor = factor; + const padFraction = domainPadFraction(ax2, fullLayout); + if (padFraction > 0) { + const inputSpan = inputDomain[1] - inputDomain[0]; + const drawnSpan = inputSpan - padFraction; + if (drawnSpan > 0) divisor = inputSpan / (drawnSpan / factor + padFraction); + } ax2.domain = ax2._input.domain = [ - center + (inputDomain[0] - center) / factor, - center + (inputDomain[1] - center) / factor + center + (inputDomain[0] - center) / divisor, + center + (inputDomain[1] - center) / divisor ]; ax2.setScale(); } @@ -50063,6 +50137,10 @@ var Plotly = (() => { if (!newType || newType === "-") newType = "linear"; Registry.getComponentMethod("annotations", "convertCoords")(gd3, fullProp, newType, doextra); Registry.getComponentMethod("images", "convertCoords")(gd3, fullProp, newType, doextra); + if (!ptrunk && fullProp && vi3 && (vi3.range !== void 0 || vi3.autorange !== void 0)) { + recordAlteredAxis(`${pleaf}.range`); + fullProp._inputRange = null; + } } var containerArrayMatch = manageArrays.containerArrayMatch(ai3); if (containerArrayMatch) { @@ -50576,6 +50654,14 @@ var Plotly = (() => { newFullLayout[key]._inputDomain = null; } } + const newRange = newFullLayout[key].range; + const oldRange = oldFullLayout[key].range; + const oldInputRange = oldFullLayout[key]._inputRange; + if (oldInputRange && newRange && oldRange) { + const isInputRange = newRange[0] === oldInputRange[0] && newRange[1] === oldInputRange[1]; + const isOldRange = newRange[0] === oldRange[0] && newRange[1] === oldRange[1]; + if (!isInputRange && !isOldRange) newFullLayout[key]._inputRange = null; + } } var diffOpts = { getValObject: getLayoutValObject, @@ -55824,6 +55910,13 @@ var Plotly = (() => { var domain = coerce("domain", dfltDomain); if (domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain; Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain); + if (letter === "x") { + coerce("domainpad.left"); + coerce("domainpad.right"); + } else { + coerce("domainpad.top"); + coerce("domainpad.bottom"); + } if (containerOut.tickmode === "sync") { containerOut.tickmode = "auto"; } @@ -61200,9 +61293,8 @@ var Plotly = (() => { } axisOpts.cleanRange("rangeslider.range"); var gs3 = fullLayout._size; - var domain = axisOpts.domain; - opts2._width = gs3.w * (domain[1] - domain[0]); - var x2 = Math.round(gs3.l + gs3.w * domain[0]); + opts2._width = axisOpts._length; + const x2 = Math.round(axisOpts._offset); var y2 = Math.round( gs3.t + gs3.h * (1 - axisOpts._counterDomainMin) + (axisOpts.side === "bottom" ? axisOpts._depth : 0) + opts2._offsetShift + constants2.extraPad ); diff --git a/dist/plotly-map.min.js b/dist/plotly-map.min.js index 07cea92b153..4c42a921988 100644 --- a/dist/plotly-map.min.js +++ b/dist/plotly-map.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (map - minified) v4.2.0 +* plotly.js (map - minified) v4.3.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 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++{var D0e=Object.create;var sv=Object.defineProperty,S0e=Object.defineProperties,E0e=Object.getOwnPropertyDescriptor,k0e=Object.getOwnPropertyDescriptors,C0e=Object.getOwnPropertyNames,P_=Object.getOwnPropertySymbols,F0e=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)=>S0e(e,k0e(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 C0e(t))!MA.call(e,a)&&a!==r&&sv(e,a,{get:()=>t[a],enumerable:!(i=E0e(t,a))||i.enumerable});return e};var DA=(e,t,r)=>(r=e!=null?D0e(F0e(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.3.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,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,ae=U.length,ne=b[W++],Ee,Le,le,_e=new _,be;++K=b.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 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 L;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 Y(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)),Re.hasOwnProperty(D)?{space:Re[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(Ve(b,v[b]));return this}return this.each(Ve(v,b))};function Ve(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 Me(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=Fe(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=Se.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=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(b,r(arguments));R.call(this),this.addEventListener(v,this[E]=K,K.$=D),K._=b}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?b?U:R:b?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,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=nt(v,b);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 b=".dragsuppress-"+ ++st,D="click"+b,E=e.select(n(v)).on("touchmove"+b,oe).on("dragstart"+b,oe).on("selectstart"+b,oe);if(pt==null&&(pt="onselectstart"in v?!1:G(v.style,"userSelect")),pt){var C=a(v).style,F=C[pt];C[pt]="none"}return function(N){if(E.on(b,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,b){b.changedTouches&&(b=b.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=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 Ar(v,b,D){return(b[0]-v[0])*(D[1]-v[1])-(b[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,b){var D=v[0],E=v[1],C=v[2],F=b[0],N=b[1],R=b[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,M0e),Yo.push(uu);for(var Un=e.event.changedTouches,pl=0,Ku=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,Ku,ml;E_.call(kt);for(var Fp=0,P0=uu.length;Fp1?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 la(N(v+120),N(v),N(v-120))}e.hcl=ai;function ai(v,b,D){return this instanceof ai?(this.h=+v,this.c=+b,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,b,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,b,D){return isNaN(v)&&(v=0),isNaN(b)&&(b=0),new Kr(D,Math.cos(v*=ke)*b,Math.sin(v)*b)}e.lab=Kr;function Kr(v,b,D){return this instanceof Kr?(this.l=+v,this.a=+b,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,b,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,b,D){var E=(v+16)/116,C=E+b/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,b,D){return v>0?new ai(Math.atan2(D,b)*Je,Math.sqrt(b*b+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,b,D){return this instanceof la?(this.r=~~v,this.g=~~b,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,b,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 b=this.r,D=this.g,E=this.b,C=30;return!b&&!D&&!E?new la(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 Ql(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 At(N,R,U)}function On(v,b,D){v=sl(v),b=sl(b),D=sl(D);var E=Es((.4124564*v+.3575761*b+.1804375*D)/Vi),C=Es((.2126729*v+.7151522*b+.072175*D)/to),F=Es((.0193339*v+.119192*b+.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 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,Uo(b))});function Jt(v){return typeof v=="function"?v:function(){return v}}e.functor=Jt,e.xhr=Zr(q);function Zr(v){return function(b,D,E){return arguments.length===2&&typeof D=="function"&&(E=D,D=null),St(b,D,v,E)}}function St(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=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?(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,ae,ne){if(arguments.length===2&&typeof ae=="function"&&(ne=ae,ae=null),R.open(K,v,!0),b!=null&&!("accept"in N)&&(N.accept=b+",*/*"),R.setRequestHeader)for(var Ee in N)R.setRequestHeader(Ee,N[Ee]);return b!=null&&R.overrideMimeType&&R.overrideMimeType(b),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(b,D){v(b==null?D:null)}:v}function Mi(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(W,K,ae){arguments.length<3&&(ae=K,K=null);var ne=St(W,b,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(;kr24?(isFinite(b)&&(clearTimeout(is),is=setTimeout(as,b)),mn=0):(mn=1,Fs(as))}e.timer.flush=function(){Gu(),jo()};function Gu(){for(var v=Date.now(),b=Xi;b;)v>=b.t&&b.c(v-b.t)&&(b.c=null),b=b.n;return v}function jo(){for(var v,b=Xi,D=1/0;b;)b.c?(b.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,b){return v[0]-b[0]||v[1]-b[1]}e.geom.polygon=function(v){return de(v,tu),v};var tu=e.geom.polygon.prototype=[];tu.area=function(){for(var v=-1,b=this.length,D,E=this[b-1],C=0;++vYe)R=R.L;else if(N=b-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,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,W=U-b;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,b){var D=v.N;if(D)return f0(D,b);var E=v.site;return E.y===b?E.x:1/0}function cl(v){this.site=v,this.edges=[]}cl.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(Bh),v.length};function kn(v){for(var b=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-b)Ye?{x:b,y:y(F-b)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=$u.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 b=ul,D=d0(v[0][0],v[0][1],v[1][0],v[1][1]),E=b.length,C;E--;)C=b[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,b==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?b=D=E=C=null:(b=+W[0][0],D=+W[0][1],E=+W[1][0],C=+W[1][1]),U):b==null?null:[[b,D],[E,C]]},U.size=function(W){return arguments.length?(W==null?b=D=E=C=null:(b=D=0,E=+W[0],C=+W[1]),U):b==null?null:[E-b,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,b,D,E,C,F){if(!v(b,D,E,C,F)){var N=(D+C)*.5,R=(E+F)*.5,U=b.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,b,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=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:vn(E,C)})),D=wp.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)?bp:Zo:b instanceof va?bp:Array.isArray(b)?Ap:D==="object"&&isNaN(b)?zs:vn)(v,b)}],e.interpolateArray=Ap;function Ap(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=W6.get(D)||$m,E=X6.get(E)||q,K6(E(D.apply(null,t.call(arguments,1))))};function K6(v){return function(b){return b<=0?0:b>=1?1:v(b)}}function Hm(v){return function(b){return 1-v(1-b)}}function Zm(v){return function(b){return .5*(b<.5?v(2*b):2-v(2-2*b))}}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 b=v*v,D=b*v;return 4*(v<.5?D:3*(v-b)+D-.75)}function l_(v){return function(b){return Math.pow(b,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,b){var D;return arguments.length<2&&(b=.45),arguments.length?D=b/Ft*Math.asin(1/v):(v=1,D=b/4),function(E){return 1+v*Math.pow(2,-10*E)*Math.sin((E-D)*Ft/b)}}function u_(v){return v||(v=1.70158),function(b){return b*b*((v+1)*b-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,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 Fi(D+F*U,E+N*U,C+R*U)+""}}e.interpolateHsl=Q6;function Q6(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 Er(D+F*U,E+N*U,C+R*U)+""}}e.interpolateLab=eA;function eA(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 Ui(D+F*U,E+N*U,C+R*U)+""}}e.interpolateRound=Oh;function Oh(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 Tp(E?E.matrix:Km)})(v)};function Tp(v){var b=[v.a,v.b],D=[v.c,v.d],E=x0(b),C=Mp(b,D),F=x0(Xm(D,b,-C))||0;b[0]*D[1]180?b+=360:b-v>180&&(v+=360),E.push({i:D.push(Wu(D)+"rotate(",null,")")-2,x:vn(v,b)})):b&&D.push(Wu(D)+"rotate("+b+")")}function d_(v,b,D,E){v!==b?E.push({i:D.push(Wu(D)+"skewX(",null,")")-2,x:vn(v,b)}):b&&D.push(Wu(D)+"skewX("+b+")")}function rA(v,b,D,E){if(v[0]!==b[0]||v[1]!==b[1]){var C=D.push(Wu(D)+"scale(",null,",",null,")");E.push({i:C-4,x:vn(v[0],b[0])},{i:C-2,x:vn(v[1],b[1])})}else(b[0]!==1||b[1]!==1)&&D.push(Wu(D)+"scale("+b+")")}function p_(v,b){var D=[],E=[];return v=e.transform(v),b=e.transform(b),f_(v.translate,b.translate,D,E),tA(v.rotate,b.rotate,D,E),d_(v.skew,b.skew,D,E),rA(v.scale,b.scale,D,E),v=b=null,function(C){for(var F=-1,N=E.length,R;++F0?F=Te:(D.c=null,D.t=NaN,D=null,b.end({type:"end",alpha:F=0})):Te>0&&(b.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?(b=C,E):b},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,b){return e.rebind(v,b,"sort","children","value"),v.nodes=v,v.links=w0,v}function ou(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 ss(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 T0(v){return v.reduce(M0,0)}function M0(v,b){return v+b[1]}e.layout.histogram=function(){var v=!0,b=Number,D=Ep,E=D0;function C(F,ne){for(var R=[],U=F.map(b,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?(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 Vh(N,F)}:Jt(F),C):E},C.frequency=function(F){return arguments.length?(v=!!F,C):v},C};function D0(v,b){return Vh(v,Math.ceil(Math.log(b.length)/Math.LN2+1))}function Vh(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 Ep(v){return[e.min(v),e.max(v)]}e.layout.pack=function(){var v=e.layout.hierarchy().sort(dA),b=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_),b){var ne=b*(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?(b=+F,C):b},Nh(C,v)};function dA(v,b){return v.value-b.value}function S0(v,b){var D=v._pack_next;v._pack_next=b,b._pack_prev=v,b._pack_next=D,D._pack_prev=b}function x_(v,b){v._pack_next=b,b._pack_prev=v}function kp(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 b_(v){if(!(b=v.children)||!(ne=b.length))return;var b,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(b.forEach(pA),N=b[0],N.x=-N.r,N.y=0,Ee(N),ne>1&&(R=b[1],R.x=R.r,R.y=0,Ee(R),ne>2))for(U=b[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=b(le,_e)/2-le.x,ze=D[0]/(_e.x+b(_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?(b=K,C):b},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,b){return v.parent==b.parent?1:2}function E0(v){var b=v.children;return b.length?b[0]:v.t}function av(v){var b=v.children,D;return(D=b.length)?b[D-1]:v.t}function nv(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 mA(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 O(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=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=j(_e)):(le.x=W?K+=b(le,W):0,le.y=0,W=le)});var ae=Q(U),ne=he(U),Ee=ae.x-b(ae,ne)/2,Le=ne.x+b(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?(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},Nh(C,v)};function j(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 Q(v){var b=v.children;return b&&b.length?Q(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=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?b(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+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?dt:ft,W=E?aA:iA;return C=U(v,b,W,D),F=U(b,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?(b=U,N()):b},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,b,D,E)},N()}function er(v,b){return e.rebind(v,b,"range","rangeRound","interpolate","clamp")}function Wt(v,b){return Ge(v,rt(rr(v,b)[2])),Ge(v,rt(rr(v,b)[2])),v}function rr(v,b){b==null&&(b=10);var D=Ze(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 lr(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=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=b%1?2:b;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(),b,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,b,D){var E=pi(b),C=pi(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=pi(b=N),C=pi(1/b),v.domain(D.map(E)),F):b},F.copy=function(){return Ri(v.copy(),b,D)},er(F,v)}function pi(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 Ki([],{t:"range",a:[[]]})};function Ki(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(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===Xu?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,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,W=-R*F,K=v[0]+U,ae=v[1]+W,ne=b[0]+U,Ee=b[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 b=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(b),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 a0e(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 gA(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 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])),b.push([F||0,N[R]*F||0]);return b}function d0e(v){return v.length<3?lu(v):v[0]+D_(v,f0e(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 b,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?(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 p0e(v){return v.radius}e.svg.diagonal=function(){var v=JP,b=QP,D=eI;function E(C,F){var N=v.call(this,C,F),R=b.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?(b=Jt(C),E):b},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(),b=eI,D=v.projection;return v.projection=function(E){return arguments.length?D(m0e(b=E)):b},v};function m0e(v){return function(){var b=v.apply(this,arguments),D=b[0],E=b[1]-ce;return[D*Math.cos(E),D*Math.sin(E)]}}e.svg.symbol=function(){var v=g0e,b=v0e;function D(E,C){return(rI.get(v.call(this,E,C))||tI)(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 v0e(){return 64}function g0e(){return"circle"}function tI(v){var b=Math.sqrt(v/Dt);return"M0,"+b+"A"+b+","+b+" 0 1,1 0,"+-b+"A"+b+","+b+" 0 1,1 0,"+b+"Z"}var rI=e.map({circle:tI,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*iI)),D=b*iI;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/S_),D=b*S_/2;return"M0,"+D+"L"+b+","+-D+" "+-b+","+-D+"Z"},"triangle-up":function(v){var b=Math.sqrt(v/S_),D=b*S_/2;return"M0,"+-D+"L"+b+","+D+" "+-b+","+D+"Z"}});e.svg.symbolTypes=rI.keys();var S_=Math.sqrt(3),iI=Math.tan(30*ke);te.transition=function(v){for(var b=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__,b),--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:b},C=null,++F.count)}e.svg.axis=function(){var v=e.scale.linear(),b=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=b==="top"||b==="left"?-1:1,fi,Ba,yi,kt;if(b==="bottom"||b==="top"?(Te=x0e,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=b0e,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?(b=W in _0e?W+"":oI,U):b},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",_0e={top:1,right:1,bottom:1,left:1};function x0e(v,b,D){v.attr("transform",function(E){var C=b(E);return"translate("+(isFinite(C)?C:D(E))+",0)"})}function b0e(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=De(K,"brushstart","brush","brushend"),b=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 w0e[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;b&&(ht=Ke(b),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)&&b,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 w(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 _=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,z=T.range,L=M.range,q=S.range,V=k.range,G=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=G,e.timeSecond=h,e.timeSeconds=f,e.timeSunday=_,e.timeSundays=I,e.timeThursday=S,e.timeThursdays=q,e.timeTuesday=T,e.timeTuesdays=z,e.timeWednesday=M,e.timeWednesdays=L,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:L,g:_,G:w,H:P,I:P,j:k,L:z,m:M,M:I,p:Hr,q:T,Q:V,s:G,S:B,u:m,U:g,V:y,w:p,W:x,x:Jl,X:sa,y:_,Y:w,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 z(ce,ke,Je){var at=s.exec(ke.slice(Je,Je+3));return at?(ce.L=+at[0],Je+at[0].length):-1}function L(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 G(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=[],z=0,L=M[0],q=0;I>0&&L>0&&(q+L+1>P&&(L=Math.max(1,P-q)),B.push(k.substring(I-=L,I+L)),!((q+=L+1)>P));)L=M[z=(z+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,z=P.length;return B===z?P:B>z?P+new Array(B-z+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)),z=M.percent===void 0?"%":M.percent+"",L=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)?z:"",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:L: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 G($,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:G}}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 _I=X((tJe,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((rJe,xI)=>{"use strict";var P0e=_I();xI.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&P0e(r))return!1}else if(t!=="number")return!1;return e-e<1}});var ua={};Yi(ua,{ALMOST_EQUAL:()=>K0e,BADNUM:()=>kA,EPOCHJD:()=>X0e,FP_SAFE:()=>I0e,LOG_CLIP:()=>J0e,MINUS_SIGN:()=>Q0e,ONEAVGMONTH:()=>V0e,ONEAVGQUARTER:()=>q0e,ONEAVGYEAR:()=>z0e,ONEDAY:()=>j0e,ONEHOUR:()=>$0e,ONEMAXMONTH:()=>N0e,ONEMAXQUARTER:()=>B0e,ONEMAXYEAR:()=>L0e,ONEMICROSEC:()=>W0e,ONEMILLI:()=>Y0e,ONEMIN:()=>H0e,ONEMINMONTH:()=>U0e,ONEMINQUARTER:()=>O0e,ONEMINYEAR:()=>R0e,ONESEC:()=>Z0e,ONEWEEK:()=>G0e});var kA,I0e,L0e,z0e,R0e,B0e,q0e,O0e,N0e,V0e,U0e,G0e,j0e,$0e,H0e,Z0e,Y0e,W0e,X0e,K0e,J0e,Q0e,Ji=Gi(()=>{"use strict";kA=void 0,I0e=Number.MAX_VALUE*1e-4,L0e=316224e5,z0e=315576e5,R0e=31536e6,B0e=79488e5,q0e=78894e5,O0e=76896e5,N0e=26784e5,V0e=26298e5,U0e=24192e5,G0e=6048e5,j0e=864e5,$0e=36e5,H0e=6e4,Z0e=1e3,Y0e=1,W0e=.001,X0e=24405875e-1,K0e=1-1e-6,J0e=10,Q0e="\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((iJe,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 ede=CA().decode,tde=$h(),FA=Array.isArray,rde=ArrayBuffer,ide=DataView;function AI(e){return rde.isView(e)&&!(e instanceof ide)}cu.isTypedArray=AI;function O_(e){return FA(e)||AI(e)}cu.isArrayOrTypedArray=O_;function ade(e){return!O_(e[0])}cu.isArray1D=ade;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=nde(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=ede(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(),cde=/^\w*$/,hde=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 fde=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,dde=/^[^\.\[\]]+$/;LI.exports=function(e,t){for(;t;){var r=e.match(fde);if(r)e=r[1];else if(e.match(dde))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((lJe,RI)=>{"use strict";var pde=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 pde(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var OI=X((uJe,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;smde,modHalf:()=>vde});function mde(e,t){let r=e%t;return r<0?r+t:r}function vde(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 gde(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:()=>_de,HOVERFONT:()=>wde,HOVERFONTSIZE:()=>bde,HOVERID:()=>Tde,HOVERMINTIME:()=>Ade,HOVERTEXTPAD:()=>xde,YANGLE:()=>yde});var yde,_de,xde,bde,wde,Ade,Tde,mv=Gi(()=>{"use strict";yde=60,_de=6,xde=3,bde=13,wde="Arial, sans-serif",Ade=50,Tde="-hover"});var Rp=X((fJe,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((dJe,$I)=>{"use strict";var Mde=oo(),vv=Rp().hoverlabel,gv=Ca().extendFlat;$I.exports={hoverlabel:{bgcolor:gv({},vv.bgcolor,{arrayOk:!0}),bordercolor:gv({},vv.bordercolor,{arrayOk:!0}),font:Mde({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((pJe,HI)=>{"use strict";var Dde=oo(),Sde=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:Dde({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:Sde.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var qz=X((bJe,Bz)=>{var ST=Object.defineProperty,Ede=Object.getOwnPropertyDescriptor,kde=Object.getOwnPropertyNames,Cde=Object.prototype.hasOwnProperty,Fde=(e,t)=>{for(var r in t)ST(e,r,{get:t[r],enumerable:!0})},Pde=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of kde(t))!Cde.call(e,a)&&a!==r&&ST(e,a,{get:()=>t[a],enumerable:!(i=Ede(t,a))||i.enumerable});return e},Ide=e=>Pde(ST({},"__esModule",{value:!0}),e),rL={};Fde(rL,{a98:()=>Tve,average:()=>kpe,averageAngle:()=>ec,averageNumber:()=>_L,blend:()=>Eme,blerp:()=>sT,clampChroma:()=>Yme,clampGamut:()=>e7,clampRgb:()=>Zme,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:()=>Mve,differenceCie76:()=>wpe,differenceCie94:()=>Ape,differenceCiede2000:()=>Tpe,differenceCmc:()=>Mpe,differenceEuclidean:()=>Vp,differenceHueChroma:()=>Tv,differenceHueNaive:()=>yL,differenceHueSaturation:()=>Av,differenceHyab:()=>Dpe,differenceItp:()=>Epe,differenceKotsarenkoRamos:()=>Spe,displayable:()=>QT,dlab:()=>Dve,dlch:()=>Sve,easingGamma:()=>Pz,easingInOutSine:()=>wve,easingMidpoint:()=>Mz,easingSmootherstep:()=>xve,easingSmoothstep:()=>gve,easingSmoothstepInverse:()=>yve,filterBrightness:()=>ive,filterContrast:()=>ave,filterDeficiencyDeuter:()=>mve,filterDeficiencyProt:()=>pve,filterDeficiencyTrit:()=>vve,filterGrayscale:()=>sve,filterHueRotate:()=>uve,filterInvert:()=>lve,filterSaturate:()=>ove,filterSepia:()=>nve,fixupAlpha:()=>yn,fixupHueDecreasing:()=>gpe,fixupHueIncreasing:()=>vpe,fixupHueLonger:()=>mpe,fixupHueShorter:()=>Qu,formatCss:()=>bme,formatHex:()=>wme,formatHex8:()=>Ame,formatHsl:()=>Mme,formatRgb:()=>Tme,getMode:()=>To,hsi:()=>Eve,hsl:()=>kve,hsv:()=>Cve,hwb:()=>Fve,inGamut:()=>fx,interpolate:()=>Bme,interpolateWith:()=>Sz,interpolateWithPremultipliedAlpha:()=>qme,interpolatorLinear:()=>Zt,interpolatorPiecewise:()=>pL,interpolatorSplineBasis:()=>kz,interpolatorSplineBasisClosed:()=>Cz,interpolatorSplineMonotone:()=>Vme,interpolatorSplineMonotone2:()=>Ume,interpolatorSplineMonotoneClosed:()=>Gme,interpolatorSplineNatural:()=>Ome,interpolatorSplineNaturalClosed:()=>Nme,itp:()=>Pve,jab:()=>Ive,jch:()=>Lve,lab:()=>zve,lab65:()=>Rve,lch:()=>Bve,lch65:()=>qve,lchuv:()=>Ove,lerp:()=>z0,lrgb:()=>Nve,luv:()=>Vve,mapAlphaDivide:()=>Tz,mapAlphaMultiply:()=>Az,mapTransferGamma:()=>Ime,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:()=>Kme,okhsl:()=>Uve,okhsv:()=>Gve,oklab:()=>jve,oklch:()=>$ve,p3:()=>Hve,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:()=>Zve,random:()=>Pme,rec2020:()=>Yve,removeParser:()=>Zde,rgb:()=>Wve,round:()=>_z,samples:()=>Hme,serializeHex:()=>WT,serializeHex8:()=>xz,serializeHsl:()=>wz,serializeRgb:()=>bz,toGamut:()=>Wme,trilerp:()=>ape,unlerp:()=>ipe,useMode:()=>Bi,useParser:()=>uL,wcagContrast:()=>Ave,wcagLuminance:()=>DT,xyb:()=>Xve,xyz50:()=>Kve,xyz65:()=>Jve,yiq:()=>Qve});Bz.exports=Ide(rL);var Lde=(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=Lde,zde={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=zde,Rde=e=>iL(aL[e.toLowerCase()],6),nL=Rde,Bde=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,qde=e=>{let t;return(t=e.match(Bde))?iL(parseInt(t[1],16),t[1].length):void 0},oL=qde,fs="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",mJe=`(?:${fs}|none)`,xv=`${fs}%`,vJe=`(?:${fs}%|none)`,ET=`(?:${fs}%|${fs})`,Ode=`(?:${fs}%|${fs}|none)`,Nde=`(?:${fs}(deg|grad|rad|turn)|${fs})`,gJe=`(?:${fs}(deg|grad|rad|turn)|${fs}|none)`,Op="\\s*,\\s*",yJe=new RegExp("^"+Ode+"$"),Vde=new RegExp(`^rgba?\\(\\s*${fs}${Op}${fs}${Op}${fs}\\s*(?:,\\s*${ET}\\s*)?\\)$`),Ude=new RegExp(`^rgba?\\(\\s*${xv}${Op}${xv}${Op}${xv}\\s*(?:,\\s*${ET}\\s*)?\\)$`),Gde=e=>{let t={mode:"rgb"},r;if(r=e.match(Vde))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(Ude))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=Gde,jde=(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=jde,$de=(e="rgb")=>t=>(t=hu(t,e))!==void 0?t.mode===e?t:Ju[t.mode][e]?Ju[t.mode][e](t):e==="rgb"?Ju[t.mode].rgb(t):Ju.rgb[e](Ju[t.mode].rgb(t)):void 0,Qi=$de,Ju={},lL={},Np=[],kT={},Hde=e=>e,Bi=e=>(Ju[e.mode]=nr(nr({},Ju[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(t=>{Ju[t]||(Ju[t]={}),Ju[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=Hde)}),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)},Zde=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_]/,Yde=/[^\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 Wde={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*Wde[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} +`||t[kr]===" "||t[kr]===" ");)kr++;let a;if(G_(t)&&(a=yv(t),a.type!==qt.Hue)){r.push({type:qt.Alpha,value:a});continue}if(oT(t)&&Z_(t)==="none"){r.push({type:qt.Alpha,value:{type:qt.None,value:void 0}});continue}return}if(/\d/.test(i)){kr--,r.push(yv(t));continue}if(nT.test(i)){kr--,r.push(Xde(t));continue}return}return r}function Jde(e){e._i=0;let t=e[e._i++];if(!t||t.type!==qt.Function||t.value!=="color"||(t=e[e._i++],t.type!==qt.Ident))return;let r=kT[t.value];if(!r)return;let i={mode:r},a=cL(e,!1);if(!a)return;let n=To(r).channels;for(let o=0,s,l;o4)){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 Qde(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 epe=e=>{if(typeof e!="string")return;let t=Kde(e),r=t?Qde(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=rpe,z0=(e,t,r)=>e+r*(t-e),ipe=(e,t,r)=>(r-e)/(t-e),sT=(e,t,r,i,a,n)=>z0(z0(e,t,a),z0(r,i,a),n),ape=(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),npe=e=>{let t=[];for(let r=0;rt=>{let r=npe(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},ope={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=ope,RA=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),spe=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=spe,BA=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),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={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=lpe,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)},upe=({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=upe,cpe=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=cpe,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},hpe=({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=hpe,fpe=({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=fpe,dpe=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=dpe,ppe=e=>(e=e%360)<0?e+360:e,so=ppe,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),[]),Qu=e=>rx(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),mpe=e=>rx(e,t=>Math.abs(t)>=180||t===0?t:t-360*Math.sign(t)),vpe=e=>rx(e,t=>t>=0?t:t+360),gpe=e=>rx(e,t=>t<=0?t:t-360),Gn=[-.14861,1.78277,-.29227,-.90649,1.97294,0],ype=Math.PI/180,_pe=180/Math.PI,ZI=Gn[3]*Gn[4],YI=Gn[1]*Gn[4],WI=Gn[1]*Gn[2]-Gn[0]*Gn[3],xpe=({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)*_pe-120),i!==void 0&&(s.alpha=i),s},vL=xpe,bpe=({h:e,s:t,l:r,alpha:i})=>{let a={mode:"rgb"};e=(e===void 0?0:e+120)*ype,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=bpe,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))}},wpe=()=>Vp("lab65"),Ape=(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))}},Tpe=(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),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,z=(_+A)/2,L;_*A===0?L=T+M:(L=(T+M)/2,L-=(Math.abs(T-M)>Math.PI)*Math.PI,L+=(L<0)*2*Math.PI);let q=Math.pow(B-50,2),V=1-.17*Math.cos(L-Math.PI/6)+.24*Math.cos(2*L)+.32*Math.cos(3*L+Math.PI/30)-.2*Math.cos(4*L-63*Math.PI/180),G=1+.015*q/Math.sqrt(20+q),$=1+.045*z,H=1+.015*z*V,Z=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*L-275)/25,2)),Y=2*Math.sqrt(Math.pow(z,7)/(Math.pow(z,7)+Math.pow(25,7))),oe=-1*Math.sin(2*Z)*Y;return Math.sqrt(Math.pow(S/(e*G),2)+Math.pow(k/(t*$),2)+Math.pow(I/(r*H),2)+oe*k/(t*$)*I/(r*H))}},Mpe=(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,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))}},Dpe=()=>{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)}},Spe=()=>Vp("yiq",[.5053,.299,.1957]),Epe=()=>Vp("itp",[518400,129600,518400]),ec=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 kpe(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 Cpe={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:Qu},s:Zt,l:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:Av},average:{h:ec}},xL=Cpe,Fpe=({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=Fpe,Ppe=({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=Ppe,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},_Je=Math.pow(29,3)/Math.pow(3,3),xJe=Math.pow(6,3)/Math.pow(29,3),VA=e=>Math.pow(e,3)>wL?Math.pow(e,3):(116*e-16)/bL,Ipe=({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=Ipe,Lpe=e=>Zh(CT(e)),Mv=Lpe,UA=e=>e>wL?Math.cbrt(e):(bL*e+16)/116,zpe=({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=zpe,Rpe=e=>{let t=FT(Hh(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Dv=Rpe,Y_=1,AL=1,wv=26/180*Math.PI,W_=Math.cos(wv),X_=Math.sin(wv),TL=100/Math.log(139/100),Bpe=({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_=Bpe,qpe=({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_=qpe,XI=e=>K_(jc(e,"dlch")),KI=e=>$c(J_(e),"dlab"),Ope={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=Ope,Npe={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:Qu},alpha:{use:Zt,fixup:yn}},difference:{h:Tv},average:{h:ec}},DL=Npe;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}},Gpe=Upe,jpe=new RegExp(`^hsla?\\(\\s*${Nde}${Op}${xv}${Op}${xv}\\s*(?:,\\s*${ET}\\s*)?\\)$`),$pe=e=>{let t=e.match(jpe);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=Gpe(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=$pe;function Hpe(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=Hpe,Zpe={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:Qu},s:Zt,l:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:Av},average:{h:ec}},PT=Zpe;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 Wpe(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=Wpe,Xpe={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:Qu},w:Zt,b:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:yL},average:{h:ec}},BL=Xpe,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),Kpe=({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=Kpe,HA=(e=0)=>Math.max(e*qL,0),Jpe=({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=Jpe,Qpe={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=Qpe,e1e=134.03437499999998,t1e=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),e1e)},YA=(e=0)=>Math.max(e*203,0),r1e=({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)-t1e,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=r1e,i1e=134.03437499999998,JI=16295499532821565e-27,WA=e=>{if(e<0)return 0;let t=Math.pow(e,1/i1e);return 1e4*Math.pow((ax-t)/(ox*t-nx),1/ix)},XA=e=>e/203,a1e=({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=a1e,n1e=e=>{let t=RT(Hh(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},qT=n1e,o1e=e=>Zh(BT(e)),OT=o1e,s1e={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=s1e,l1e=({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=l1e,u1e=({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=u1e,c1e={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:Qu},c:Zt,j:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:Tv},average:{h:ec}},UL=c1e,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,h1e=({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=h1e,f1e=({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=f1e,d1e=e=>Up(lx(e)),VT=d1e,p1e=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=p1e,JA=e=>e>NT?Math.cbrt(e):(sx*e+16)/116,m1e=({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=m1e,v1e=e=>{let t=ux(Gp(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},UT=v1e;function g1e(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=g1e,y1e={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=y1e,_1e=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=_1e;function x1e(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=x1e,b1e={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:Qu},c:Zt,l:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:Tv},average:{h:ec}},hx=b1e,w1e=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=w1e,A1e=({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=A1e,T1e=({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=T1e,ZL=(e,t,r)=>4*e/(e+15*t+3*r),YL=(e,t,r)=>9*t/(e+15*t+3*r),M1e=ZL(gn.X,gn.Y,gn.Z),D1e=YL(gn.X,gn.Y,gn.Z),S1e=e=>e<=NT?sx*e:116*Math.cbrt(e)-16,E1e=({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=S1e(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-M1e),o=13*a*(o-D1e));let s={mode:"luv",l:a,u:n,v:o};return i!==void 0&&(s.alpha=i),s},Q_=E1e,k1e=(e,t,r)=>4*e/(e+15*t+3*r),C1e=(e,t,r)=>9*t/(e+15*t+3*r),F1e=k1e(gn.X,gn.Y,gn.Z),P1e=C1e(gn.X,gn.Y,gn.Z),I1e=({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)+F1e,n=r/(13*e)+P1e,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=I1e,L1e=e=>GT(Q_(Gp(e))),z1e=e=>Up(ex(jT(e))),R1e={mode:"lchuv",toMode:{luv:jT,rgb:z1e},fromMode:{rgb:L1e,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:Qu},c:Zt,l:Zt,alpha:{use:Zt,fixup:yn}},difference:{h:Tv},average:{h:ec}},WL=R1e,B1e=Yr(nr({},q0),{mode:"lrgb",toMode:{rgb:N0},fromMode:{rgb:O0},parse:["srgb-linear"],serialize:"srgb-linear"}),XL=B1e,q1e={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=q1e,O1e=({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=O1e,N1e=e=>{let t=$T(O0(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Sv=N1e,V1e=({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=V1e,U1e=e=>N0(jp(e)),Ev=U1e;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 G1e(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 HT(e,t){let r=G1e(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 j1e(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,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,z=4.0767416621*_-3.3077115913*A+.2309699292*T-1,L=4.0767416621*M-3.3077115913*S+.2309699292*k,q=4.0767416621*P-3.3077115913*I+.2309699292*B,V=L/(L*L-.5*z*q),G=-z*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;G=V>=0?G:1e6,oe=Y>=0?oe:1e6,Ce=de>=0?Ce:1e6,o+=Math.min(G,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=j1e(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=$1e;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 H1e=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=H1e;function Z1e(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=Z1e,Y1e=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=Y1e;function W1e(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=W1e,X1e=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=X1e,K1e=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=K1e,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=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=J1e,Q1e=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=Q1e,QA=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},eme=({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=eme,eT=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},tme=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=tme,rme=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=rme,QI=1.09929682680944,ime=.018053968510807,tT=e=>{let t=Math.abs(e);return t>ime?(Math.sign(e)||1)*(QI*Math.pow(t,.45)-(QI-1)):4.5*e},ame=({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=ame,eL=1.09929682680944,nme=.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=ome,sme=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=sme,R0=.0037930732552754493,lz=Math.cbrt(R0),iT=e=>Math.cbrt(e)-lz,lme=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=lme,aT=e=>Math.pow(e+lz,3),ume=({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=ume,cme={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=cme,hme={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=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:"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=fme,dme=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=dme,pme={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=pme,mme=({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=mme,vme=({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=vme,gme={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=gme,yme=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,_me=(e=4)=>t=>typeof t=="number"?yme(t,e):t,_z=_me,_v=_z(2),bv=e=>Math.max(0,Math.min(1,e||0)),B0=e=>Math.round(bv(e)*255),YT=Qi("rgb"),xme=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))})`},bme=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)},wme=e=>WT(YT(e)),Ame=e=>xz(YT(e)),Tme=e=>bz(YT(e)),Mme=e=>wz(xme(e)),Dme={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},Sme=(e,t="normal",r="rgb")=>{let i=typeof t=="function"?t:Dme[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})})},Eme=Sme,kme=([e,t])=>e+Math.random()*(t-e),Cme=e=>Object.keys(e).reduce((t,r)=>{let i=e[r];return t[r]=Array.isArray(i)?i:[i,i],t},{}),Fme=(e="rgb",t={})=>{let r=To(e),i=Cme(t);return r.channels.reduce((a,n)=>((i.alpha||n!=="alpha")&&(a[n]=kme(i[n]||r.ranges[n])),a),{mode:e})},Pme=Fme,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,Ime=(e=1,t=1,r=0)=>(i,a)=>a!=="alpha"?e*Math.pow(i,t)+r:i,Lme=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=Rme,$_=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))}),zme(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&&(w[_]=A),w},{mode:t})}},Bme=(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},qme=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},Ome=e=>kz(Fz(e)),Nme=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]}},Vme=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)},Ume=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)},Gme=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)},jme=(e=1)=>e===1?t=>t:t=>Math.pow(t,e),Pz=jme,$me=(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 Zme(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 Yme(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 Wme(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 Xme=(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]))},Kme=Xme,t7=e=>Math.max(e,0),r7=e=>Math.max(Math.min(e,1),0),Jme=(e,t,r)=>e===void 0||t===void 0?void 0:e+r*(t-e),Qme=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]},eve=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]},tve=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]},rve=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)},ave=(e=1,t="rgb")=>{let r=t7(e);return kv(XT(r,(1-r)/2),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")=>dx(tve(e),t,!0),lve=(e=1,t="rgb")=>{let r=r7(e);return kv((i,a)=>a==="alpha"?i:Jme(r,1-r,i),t,!0)},uve=(e=0,t="rgb")=>dx(rve(e),t,!0),cve=Qi("rgb"),hve=[[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]],fve=[[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]],dve=[[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}=cve(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)}},pve=(e=1)=>i7(hve,e),mve=(e=1)=>i7(fve,e),vve=(e=1)=>i7(dve,e),gve=e=>e*e*(3-2*e),yve=e=>.5-Math.sin(Math.asin(1-2*e)/3),_ve=e=>e*e*e*(e*(e*6-15)+10),xve=_ve,bve=e=>(1-Math.cos(e*Math.PI))/2,wve=bve;function DT(e){let t=Qi("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function Ave(e,t){let r=DT(e),i=DT(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}var Tve=Bi(mL),Mve=Bi(xL),Dve=Bi(ML),Sve=Bi(DL),Eve=Bi(kL),kve=Bi(PT),Cve=Bi(zT),Fve=Bi(BL),Pve=Bi(NL),Ive=Bi(VL),Lve=Bi(UL),zve=Bi(cx),Rve=Bi(jL),Bve=Bi(hx),qve=Bi(HL),Ove=Bi(WL),Nve=Bi(XL),Vve=Bi(KL),Uve=Bi(QL),Gve=Bi(ez),jve=Bi(rz),$ve=Bi(az),Hve=Bi(nz),Zve=Bi(oz),Yve=Bi(sz),Wve=Bi(q0),Xve=Bi(hz),Kve=Bi(fz),Jve=Bi(mz),Qve=Bi(yz)});var a7={};Yi(a7,{default:()=>tge});var ege,tge,n7=Gi(()=>{"use strict";ege={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(" ")}},tge=ege});var Yh=X((TJe,Gz)=>{"use strict";var{format:rge,width:ige,height:age,scale:nge}=(n7(),lt(a7)).default,Oz=nge,{dflt:AJe}=Oz,oge=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:rge,filename:{valType:"string"},width:ige,height:age,scale:oge},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((DJe,jz)=>{"use strict";var o7=Qr(),sge=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;sge(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 tc=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((kJe,eR)=>{"use strict";var{converter:Hz,formatHex:lge,formatRgb:uge,wcagContrast:cge,wcagLuminance:hge}=qz(),{isArrayOrTypedArray:Zz}=hs(),{warn:fge}=Hc(),{background:Pv,defaultLine:f7,defaults:dge,lightLine:pge}=tc(),Yz=Hz("rgb"),mge=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,vge={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=>uge(Xz(e)),gge=e=>lge(Xz(e)),yge=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&&fge(`Invalid color specifier: ${yge(e)}. Defaulting to "#000"`),vge)},Fv=e=>Bs(Yr(nr({},Ma(e)),{alpha:1})),_ge=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]),xge=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}},bge=(e,t)=>{let r=Kz(e)?xge(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},wge=(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)})},Age=(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=mge(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)=>cge(Ma(e),Ma(t)),Qz=e=>px(e,Pv)>px(e,f7),Tge=Bs(Ma(Pv)),Mge=Bs(Ma(f7)),Dge=(e,t,r)=>(Ma(e).alpha!==1&&(e=Jz(e,Pv)),Qz(e)?t?h7(e,t):Tge:r?h7(e,-r):Mge),Sge=(e,t)=>{e.style({stroke:Fv(t),"stroke-opacity":Ma(t).alpha})},Ege=(e,t)=>{e.style({fill:Fv(t),"fill-opacity":Ma(t).alpha})},kge=(e,t)=>!!(e&&t&&Fv(e)===Fv(t)),Cge=e=>Wz(e)!==void 0,Fge=(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)}))},Pge=(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})},Ige=(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},Lge=e=>Bs(Ma(e)),zge=e=>gge(Ma(e)).toUpperCase(),Rge=e=>{let t=Ma(e);return[Mo(t.r)*255,Mo(t.g)*255,Mo(t.b)*255,Mo(t.alpha)]},Bge=([e,t,r,i])=>Bs({mode:"rgb",r:e/255,g:t/255,b:r/255,alpha:i}),qge=e=>{let t=Ma(e);return hge({mode:"rgb",r:Mo(t.r),g:Mo(t.g),b:Mo(t.b)})};eR.exports={addOpacity:wge,adjustLightness:h7,background:Pv,brighten:Fge,combine:Jz,contrast:Dge,defaultLine:f7,defaults:dge,equals:kge,fill:Ege,hexString:zge,interpolate:Age,isChannelArray:Kz,isDark:Qz,isValid:Cge,lightLine:pge,luminosity:qge,mix:Pge,mostReadable:Ige,normalize:bge,opacity:_ge,parse:Ma,rgb:Fv,rgbaArray:Rge,rgbaArrayToString:Bge,rgbaString:Lge,stroke:Sge,wcagContrast:px}});var U0=X((FJe,iR)=>{"use strict";var Oge=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 Nge(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;rjge,HIDE_PLACEHOLDER:()=>Gge,SHOW_PLACEHOLDER:()=>Uge});var Uge,Gge,jge,gx=Gi(()=>{"use strict";Uge=100,Gge=1e3,jge=.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,$ge=Wo(),Hge=U0(),m7=Vr(),Zge=(gx(),lt(vx)).DESELECTDIM,Zp=uv(),nR=(Hp(),lt(Iv)).counter,Yge=(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(Hge.get(e,r))}},angle:{coerceFunction:function(e,t,r){Wh(e)&&(e=Xh(e)),e==="auto"?t.set("auto"):p7(e)?t.set(Yge(+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((LJe,lR)=>{"use strict";lR.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),a=0;a{uR.exports=Wge;function Wge(){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((RJe,hR)=>{hR.exports=Xge;function Xge(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((BJe,dR)=>{dR.exports=Kge;function Kge(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((qJe,mR)=>{mR.exports=Jge;function Jge(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((OJe,vR)=>{vR.exports=Qge;function Qge(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((NJe,yR)=>{yR.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],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,z=f*y-d*g,L=x*z-w*B+_*I+A*P-T*k+M*S;return L?(L=1/L,e[0]=(s*z-l*B+u*I)*L,e[1]=(a*B-i*z-n*I)*L,e[2]=(m*M-g*T+y*A)*L,e[3]=(f*T-h*M-d*A)*L,e[4]=(l*P-o*z-u*k)*L,e[5]=(r*z-a*P+n*k)*L,e[6]=(g*_-p*M-y*w)*L,e[7]=(c*M-f*_+d*w)*L,e[8]=(o*B-s*P+u*S)*L,e[9]=(i*P-r*B-n*S)*L,e[10]=(p*T-m*_+y*x)*L,e[11]=(h*_-c*T-d*x)*L,e[12]=(s*k-o*I-l*S)*L,e[13]=(r*I-i*k+a*S)*L,e[14]=(m*w-p*A-g*x)*L,e[15]=(c*A-h*w+f*x)*L,e):null}});var bR=X((VJe,xR)=>{xR.exports=tye;function tye(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((UJe,wR)=>{wR.exports=rye;function rye(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 MR=X((GJe,TR)=>{TR.exports=iye;function iye(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 SR=X((jJe,DR)=>{DR.exports=aye;function aye(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(($Je,ER)=>{ER.exports=nye;function nye(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((HJe,CR)=>{CR.exports=oye;function oye(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,z,L,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],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,z=a*o*c+n*l,L=n*o*c-a*l,q=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*z+m*L+w*q,e[9]=f*z+g*L+_*q,e[10]=d*z+y*L+A*q,e[11]=p*z+x*L+T*q,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var IR=X((ZJe,PR)=>{PR.exports=sye;function sye(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((YJe,LR)=>{LR.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[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((WJe,RR)=>{RR.exports=uye;function uye(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((XJe,qR)=>{qR.exports=cye;function cye(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((KJe,NR)=>{NR.exports=hye;function hye(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((JJe,UR)=>{UR.exports=fye;function fye(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((QJe,jR)=>{jR.exports=dye;function dye(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((eQe,HR)=>{HR.exports=pye;function pye(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((tQe,YR)=>{YR.exports=mye;function mye(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((rQe,XR)=>{XR.exports=vye;function vye(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((iQe,JR)=>{JR.exports=gye;function gye(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((aQe,eB)=>{eB.exports=yye;function yye(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((nQe,rB)=>{rB.exports=_ye;function _ye(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((oQe,aB)=>{aB.exports=xye;function xye(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((sQe,oB)=>{oB.exports=bye;function bye(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((lQe,lB)=>{var wye=g7();lB.exports=Aye;function Aye(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?wye(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 hB=X((uQe,cB)=>{cB.exports=Tye;function Tye(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((cQe,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 Mye=y7();qa.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var Dye=Qr(),dB=Hc(),Sye=xx(),Eye=y7();function kye(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 Cye(e){var t=Dye.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 Fye(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 Pye(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&pB(r)}function Iye(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 Lye(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=Sye.convertCssMatrix(a);r=Eye.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=[];zye(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function zye(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Rye(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}yB.exports={getGraphDiv:kye,isPlotDiv:Cye,removeElement:pB,addStyleRule:Fye,addRelatedStyleRule:mB,deleteRelatedStyleRule:Pye,setStyleOnHover:Iye,getFullTransformMatrix:Lye,getElementTransformMatrix:vB,getElementAndAncestors:gB,equalDomRects:Rye}});var zv=X((dQe,_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((pQe,DB)=>{"use strict";var bB=Ca().extendFlat,Bye=$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"]},qye=wB.flags.slice().concat(["fullReplot"]),Oye=AB.flags.slice().concat("layoutReplot");DB.exports={traces:wB,layout:AB,traceFlags:function(){return xB(qye)},layoutFlags:function(){return xB(Oye)},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:()=>Vye,FORMAT_LINK:()=>Nye});var Nye,Vye,b7=Gi(()=>{"use strict";Nye="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",Vye="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var rc=X(Yp=>{"use strict";var{DATE_FORMAT_LINK:Uye,FORMAT_LINK:Gye}=(b7(),lt(x7)),jye=["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 $ye({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}".`,Gye,"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}".`,Uye,"for details on the date formatting syntax.",jye].join(" ")}Yp.templateFormatStringDescription=$ye;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((yQe,PB)=>{"use strict";function Kh(e,t){return t?t.d2l(e):e}function SB(e,t){return t?t.l2d(e):e}function Hye(e){return e.x0}function Zye(e){return e.x1}function Yye(e){return e.y0}function Wye(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 Xye(e,t){return Math.abs(bx(e,t))}function Kye(e,t,r){return Math.abs(wx(e,t,r))}function Jye(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 Qye(e,t){return SB((Kh(e.x1,t)+kB(e)+Kh(e.x0,t)+EB(e))/2,t)}function e2e(e,t,r){return SB((Kh(e.y1,r)+FB(e)+Kh(e.y0,r)+CB(e))/2,r)}function t2e(e,t,r){return e.type!=="line"?void 0:wx(e,t,r)/bx(e,t)}var r2e=["x0","x1","y0","y1","dy","height","ycenter"],i2e=["x0","x1","y0","y1","dx","width","xcenter"];PB.exports={x0:Hye,x1:Zye,y0:Yye,y1:Wye,slope:t2e,dx:bx,dy:wx,width:Xye,height:Kye,length:Jye,xcenter:Qye,ycenter:e2e,simpleXVariables:r2e,simpleYVariables:i2e}});var zB=X((_Qe,LB)=>{"use strict";var a2e=qs().overrideAll,j0=Wo(),IB=oo(),n2e=Zc().dash,Jh=Ca().extendFlat,{shapeTexttemplateAttrs:o2e,templatefallbackAttrs:s2e}=rc(),l2e=Ax();LB.exports=a2e({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({},n2e,{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:o2e({newshape:!0},{keys:Object.keys(l2e)}),texttemplatefallback:s2e({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((xQe,RB)=>{"use strict";var u2e=Zc().dash,c2e=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:c2e({},u2e,{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((bQe,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((wQe,UB)=>{"use strict";var w7=oo(),h2e=zv(),Mx=tc(),OB=zB(),NB=BB(),f2e=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(f2e({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({},h2e.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(),MQe=Lv().addStyleRule,HB=Ca(),d2e=Wo(),p2e=Wp(),m2e=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 x2e=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,b2e=/^\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,w2e=/^\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=A2e(e,!!t);if(t<2)return r;var i=Oa.dateTime2ms(r,e);return i+=ps*(t-1),Oa.ms2DateTime(i,0,e)};function A2e(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?w2e:b2e);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(w){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=x2e("%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 T2e=/%\d?f/g,M2e=/%h/g,D2e={1:"1",2:"1",3:"2",4:"2"};function tq(e,t,r,i){e=e.replace(T2e,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(M2e,function(){return D2e[r("%q")(a)]}),Wc(i))try{e=Yc.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(n){return"Invalid"}return r(e)(a)}var S2e=[59,59.9,59.99,59.999,59.9999];function E2e(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),S2e[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 E2e(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 k2e=Nr(),C2e=Hc(),F2e=Cx(),P2e=(Ji(),lt(ua)).BADNUM,D7=1e-9;Xc.findBin=function(e,t,r){if(k2e(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?I2e:L2e:l=r?R2e:z2e,e+=o*D7*(r?-1:1)*(o>=0?1:-1);i90&&C2e.log("Long binary search..."),i-1};function I2e(e,t){return et}function R2e(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]===P2e;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||F2e;for(var r=1/0,i,a=0;aq2e});function B2e(e){return Object.keys(e).sort()}var q2e,Px=Gi(()=>{"use strict";q2e=B2e});var sq=X(Na=>{"use strict";var qv=Nr(),O2e=hs().isArrayOrTypedArray;Na.aggNums=function(e,t,r,i){var a,n;if((!i||i>r.length)&&(i=r.length),qv(t)||(t=!1),O2e(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((FQe,hq)=>{"use strict";var lq=(zp(),lt(Lp)),E7=lq.mod,N2e=lq.modHalf,Ov=Math.PI,tf=2*Ov;function V2e(e){return e/180*Ov}function U2e(e){return e/Ov*180}function k7(e){return Math.abs(e[1]-e[0])>tf-1e-14}function uq(e,t){return N2e(t-e,tf)}function G2e(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 j2e(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((zQe,yq)=>{"use strict";yq.exports=function(t){t._clearResponsive&&(t._clearResponsive(),delete t._clearResponsive)}});var xq=X((RQe,Rx)=>{"use strict";Rx.exports=I7;Rx.exports.isMobile=I7;Rx.exports.default=I7;var Y2e=/(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,W2e=/CrOS/,X2e=/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=Y2e.test(t)&&!W2e.test(t)||!!e.tablet&&X2e.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((BQe,bq)=>{"use strict";var K2e=Nr(),J2e=xq();bq.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=Q2e(),typeof r!="string")return!0;var i=J2e({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(K2e(u)&&(u=+u),u>=13)return!0}}}return i};function Q2e(){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((qQe,Aq)=>{"use strict";var e_e=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]=e_e.select(this)}),a}});var Dq=X((OQe,Mq)=>{"use strict";var t_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=t_e.localeRegistry}var u=i.split("-")[0];if(u===i)break;i=u}return r}});var Eq=X((NQe,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=a_e(t)?i_e:r_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:()=>s_e});function o_e(e){return typeof e=="string"&&(e=e.replace(n_e,"")),(0,Iq.default)(e)?Number(e):void 0}var Iq,n_e,s_e,zq=Gi(()=>{"use strict";Iq=DA(Nr());Ji();n_e=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;s_e=o_e});var qq=X((jQe,Bq)=>{"use strict";var l_e=/<[^>]*>/g,u_e=/[\p{S}\p{P}]/gu,c_e=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,h_e=/�/g,f_e=/\s+/g,Bx="-",Rq=Bx.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d_e=new RegExp(Rq+"{3,}","g"),p_e=new RegExp(Rq+"$","g"),m_e=60;function v_e(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}Bq.exports=function(t,r=m_e){var i=v_e(t!=null?t:"").replace(h_e,"").replace(l_e," ").replace(u_e,a=>a===Bx?a:"").toLowerCase().trim().replace(f_e,Bx).replace(c_e,"").replace(d_e,Bx);return i.length<=r?i:Array.from(i).slice(0,r).join("").replace(p_e,"")}});var tt=X(($Qe,Xq)=>{"use strict";var Vv=Qr(),g_e=Pp().utcFormat,y_e=EA().format,jq=Nr(),$q=(Ji(),lt(ua)),Hq=$q.FP_SAFE,__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=y_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 ic=fq();we.deg2rad=ic.deg2rad;we.rad2deg=ic.rad2deg;we.angleDelta=ic.angleDelta;we.angleDist=ic.angleDist;we.isFullCircle=ic.isFullCircle;we.isAngleInsideSector=ic.isAngleInsideSector;we.isPtInsideSector=ic.isPtInsideSector;we.pathArc=ic.pathArc;we.pathSector=ic.pathSector;we.pathAnnulus=ic.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 x_e=(Hp(),lt(Iv));we.counterRegex=x_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<__e?Oq:t):Oq};we.isIndex=function(e,t){return t!==void 0&&e>=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;aA_e.test(window.navigator.userAgent);var T_e=/Firefox\/(\d+)\.\d+/;we.getFirefoxVersion=function(){var e=T_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 S_e={max:10,count:0,name:"hovertemplate"};we.hovertemplateString=e=>R7(Yr(nr({},e),{opts:S_e}));var E_e={max:10,count:0,name:"texttemplate"};we.texttemplateString=e=>R7(Yr(nr({},e),{opts:E_e}));var k_e=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function C_e(e){var t=e.match(k_e);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var F_e={max:10,count:0,name:"texttemplate",parseMultDiv:!0};we.texttemplateStringForShapes=e=>R7(Yr(nr({},e),{opts:F_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=C_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(),P_e=Gq!==null&&Gq<86;we.getPositionFromD3Event=function(){return P_e?[Vv.event.layerX,Vv.event.layerY]:[Vv.event.offsetX,Vv.event.offsetY]}});var Qq=X(()=>{"use strict";var I_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"),I_e.addStyleRule(Jq,Kq[B7]);var Jq,B7});var q7=X((WQe,eO)=>{eO.exports=!0});var N7=X((XQe,tO)=>{"use strict";var L_e=q7(),O7;typeof window.matchMedia=="function"?O7=!window.matchMedia("(hover: none)").matches:O7=L_e;tO.exports=O7});var Gx=X((KQe,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 z_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=O_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,z_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 R_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=R_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():B_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?q_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,V_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(),U_e=Yh().dfltConfig;function G_e(e,t){for(var r=[],i,a=0;aU_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(),j_e=G7(),$_e=zv(),H_e=Yh().configAttributes,gO=qs(),mu=Gv.extendDeepAll,i1=Gv.isPlainObject,Z_e=Gv.isArrayOrTypedArray,Hx=Gv.nestedProperty,Y_e=Gv.valObjectMeta,$7="_isSubplotObj",Zx="_isLinkedToArray",W_e="_arrayAttrRegexps",_O="_deprecated",H7=[$7,Zx,W_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]=K_e(t)}),{defs:{valObjects:Y_e,metaKeys:H7.concat(["description","role","editType","impliedEdits"]),editType:{traces:gO.traces,layout:gO.layout},impliedEdits:{}},traces:e,layout:J_e(),frames:Q_e(),animation:a1($_e),config:a1(H_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)Z_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 K_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 J_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(),axe=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,{},axe,"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:()=>uxe,AX_NAME_PATTERN:()=>cxe,DFLTRANGEX:()=>yxe,DFLTRANGEY:()=>_xe,DRAGGERSIZE:()=>vxe,HOUR_PATTERN:()=>fxe,MINDRAG:()=>pxe,MINZOOM:()=>mxe,REDRAWDELAY:()=>gxe,SUBPLOT_PATTERN:()=>hxe,WEEKDAY_PATTERN:()=>dxe,attrRegex:()=>oxe,clipOnAxisFalseQuery:()=>bxe,idRegex:()=>nxe,layerValue2layerClass:()=>wxe,traceLayerClasses:()=>xxe,xAxisMatch:()=>sxe,yAxisMatch:()=>lxe,zindexSeparator:()=>Axe});var nxe,oxe,sxe,lxe,uxe,cxe,hxe,fxe,dxe,pxe,mxe,vxe,gxe,yxe,_xe,xxe,bxe,wxe,Axe,xn=Gi(()=>{"use strict";Hp();nxe={x:G0("x","( domain)?"),y:G0("y","( domain)?")},oxe=G0("[xy]axis"),sxe=G0("xaxis"),lxe=G0("yaxis"),uxe=/^[xyz][0-9]*( domain)?$/,cxe=/^[xyz]axis[0-9]*$/,hxe=/^x([0-9]*)y([0-9]*)$/,fxe="hour",dxe="day of week",pxe=8,mxe=20,vxe=20,gxe=50,yxe=[-1,6],_xe=[-1,4],xxe=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],bxe=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],wxe={"above traces":"above","below traces":"below"},Axe="z"});var un=X(ms=>{"use strict";var Txe=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 Mxe(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Dxe(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}TO.exports={clearOutlineControllers:Mxe,clearOutline:Dxe}});var Yx=X((oet,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(),set=(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 Sxe=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((fet,OO)=>{"use strict";var het=Qr(),kxe=Pp().timeFormatLocale,Cxe=EA().formatLocale,jv=Nr(),Fxe=CA(),Pxe=lv().version,ni=mr(),Ixe=n1(),Lxe=qi(),Nt=tt(),zxe=Vr(),CO=(Ji(),lt(ua)).BADNUM,vs=un(),Rxe=of().clearOutline,Bxe=Yx(),X7=zv(),qxe=G7(),Oxe=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=Pxe;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 Nxe=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Vxe=["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,Nxe);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=jxe(f,a.separators),a._extraFormat=PO(e,Vxe),a._initialAutoSizeIsDone=!0,a._dataLength=l.length,a._modules=[],a._visibleModules=[],a._basePlotModules=[];var w=a._subplots=Gxe(),_=a._splomAxes={x:{},y:{}},A=a._splomSubplots={};a._splomGridDflt={},a._scatterStackOpts={},a._firstScatter={},a._alignmentOpts={},a._colorAxes={},a._requestRangeslider={},a._traceUids=Uxe(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")),z=!!(a._has&&a._has("cartesian")),L=B,q=z;L&&!q?i._bgLayer.remove():q&&!L&&(a._shouldCreateBgLayer=!0),i._zoomlayer&&!e._dragging&&Rxe({_fullLayout:i}),$xe(s,a),FO(a,i),ni.getComponentMethod("colorscale","crossTraceDefaults")(s,a),a._preGUI||(a._preGUI={}),a._tracePreGUI||(a._tracePreGUI={});var V=a._tracePreGUI,G={},$;for($ in V)G[$]="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,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 Et.doAutoMargin(e)}};function Zxe(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 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"&&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,z=P.size,L=I.val,q=I.size,V=r-o.r-o.l,G=i-o.t-o.b;for(var $ in f){if(jv(z)&&f[$].r){var H=f[$].r.val,Z=f[$].r.size;if(H>B){var Y=(z*H+(Z-V)*B)/(H-B),oe=(Z*(1-B)+(z-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>L){var ye=(q*pe+(De-G)*L)/(pe-L),de=(De*(1-L)+(q-G)*(1-pe))/(pe-L);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)||Zxe(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)?Fxe.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:()=>Qxe,xlink:()=>VO,xmlns:()=>Jxe});var Jxe,NO,VO,Qxe,lf=Gi(()=>{"use strict";Jxe="http://www.w3.org/2000/xmlns/",NO="http://www.w3.org/2000/svg",VO="http://www.w3.org/1999/xlink",Qxe={xmlns:NO,"xmlns:xlink":VO}});var lo={};Yi(lo,{CAP_SHIFT:()=>abe,FROM_BL:()=>ebe,FROM_BR:()=>rbe,FROM_TL:()=>tbe,LINE_SPACING:()=>ibe,MID_SHIFT:()=>nbe,OPPOSITE_SIDE:()=>obe});var ebe,tbe,rbe,ibe,abe,nbe,obe,uo=Gi(()=>{"use strict";ebe={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},tbe={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},rbe={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},ibe=1.3,abe=.7,nbe=.35,obe={left:"right",right:"left",top:"bottom",bottom:"top"}});var cn=X(Do=>{"use strict";var Fa=Qr(),yl=tt(),sbe=yl.strTranslate,K7=(lf(),lt(sf)),lbe=(uo(),lt(lo)).LINE_SPACING,ube=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,e8=e=>e?e.match(ube):null;Do.matchTex=e8;var cbe=e=>{var t=e8(e);return!!t&&!t[1]&&!t[3]};Do.isPureTex=cbe;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]+")"+sbe(-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 hbe(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&&!mbe()&&(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=Mbe(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");vbe(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()),hbe(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 w=e.node().style.fill||"black",_=m.select("g");_.attr({fill:w,stroke:w}),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 fbe=/(<|<|<)/g,dbe=/(>|>|>)/g;function pbe(e){return e.replace(fbe,"\\lt ").replace(dbe,"\\gt ")}var J7=null,YO=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,UO=!1,GO=!1;function mbe(){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 vbe(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=pbe(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"},gbe={sub:"0.3em",sup:"-0.6em"},ybe={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,_be=//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,xbe=/(^|[\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 bbe=/(^|;)\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 wbe={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Abe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function eb(e){return e.replace(Abe,function(t,r){var i;return r.charAt(0)==="#"?i=Tbe(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=wbe[r],i||t})}Do.convertEntities=eb;function Tbe(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 Mbe(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*lbe+"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=_be.test(t);c?o():(a=e,i=[{node:e}]);for(var h=t.split(t8),f=0;f{"use strict";var Dbe=Qr(),Hv=Nr(),tb=tt(),J0=Vr(),Sbe=U0().isValid;function Ebe(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)),Cbe=oN.FORMAT_LINK,Fbe=oN.DATE_FORMAT_LINK;function Pbe(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: "+Cbe+"."].join(" ")}function sN(e,t){return a8(e,t)+[" And for dates see: "+Fbe+".","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:Pbe,descriptionOnlyNumbers:a8,descriptionWithDates:sN}});var vu=X((get,MN)=>{"use strict";var uN=oo(),l1=tc(),TN=Zc().dash,s8=Ca().extendFlat,cN=qi().templatedArray,vet=rc().templateFormatStringDescription,hN=n8().descriptionWithDates,Ibe=(Ji(),lt(ua)).ONEDAY,nc=(xn(),lt(_n)),Lbe=nc.HOUR_PATTERN,zbe=nc.WEEKDAY_PATTERN,o8={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Rbe=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:[nc.idRegex.x.toString(),nc.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:[nc.idRegex.x.toString(),nc.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:[zbe,Lbe,""],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:Rbe,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",nc.idRegex.x.toString(),nc.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",nc.idRegex.x.toString(),nc.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"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},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((yet,SN)=>{"use strict";var ta=vu(),DN=oo(),l8=Ca().extendFlat,Bbe=qs().overrideAll;SN.exports=Bbe({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((xet,kN)=>{"use strict";var qbe=rb(),Obe=(Hp(),lt(Iv)).counter,Nbe=(Px(),lt(Fx)).default,EN=U0().scales,_et=Nbe(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),w=ib(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=qbe),r.noColorAxis||(M.coloraxis={valType:"subplotid",regex:Obe("coloraxis"),dflt:null,editType:"calc"}),M}});var c8=X((bet,CN)=>{"use strict";var Vbe=Ca().extendFlat,Ube=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:Vbe({_isSubplotObj:!0,editType:"calc"},Ube("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var h8=X((wet,FN)=>{"use strict";var Gbe=tt();FN.exports=function(t){return Gbe.isPlainObject(t.colorbar)}});var p8=X(d8=>{"use strict";var f8=Nr(),PN=tt(),IN=(Ji(),lt(ua)),jbe=IN.ONEDAY,$be=IN.ONEWEEK;d8.dtick=function(e,t){var r=t==="log",i=t==="date",a=t==="category",n=i?jbe: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%$be===0?1:0));if(!(i==="D1"||i==="D2"))return f8(e)?Number(e):0}});var m8=X((Tet,zN)=>{"use strict";var LN=p8(),Hbe=tt().isArrayOrTypedArray,Zbe=hs().isTypedArraySpec,Ybe=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 Zbe(A)&&(A=Ybe(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;Hbe(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 w=i(u+"tickvals");w===void 0?l.tickmode="auto":o||i("ticktext")}}});var g8=X((Met,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((Det,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((Eet,ON)=>{"use strict";var ab=tt(),Wbe=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=Wbe.arrayTemplater(r,a,n),c,h;for(c=0;c{"use strict";var _8=tt(),Xbe=Vr().contrast,NN=vu(),Kbe=y8(),Jbe=_l();VN.exports=function(t,r,i,a,n){n||(n={});var o=i("labelalias");_8.isPlainObject(o)||delete r.labelalias;var s=Kbe(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?Xbe(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");Jbe(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Qbe}),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 Qbe(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((Cet,UN)=>{"use strict";var e3e=y8();UN.exports=function(t,r,i,a,n){n||(n={});var o=n.tickSuffixDflt,s=e3e(t),l=i("tickprefix");l&&i("showtickprefix",s);var u=i("ticksuffix",o);u&&i("showticksuffix",s)}});var w8=X((Fet,GN)=>{"use strict";var uf=tt(),t3e=qi(),r3e=m8(),i3e=g8(),a3e=x8(),n3e=b8(),o3e=rb();GN.exports=function(t,r,i){var a=t3e.newContainer(r,"colorbar"),n=t.colorbar||{};function o(I,B){return uf.coerce(n,a,o3e,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),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:w}},"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"),r3e(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"),n3e(n,a,o,"linear",S),a3e(n,a,o,"linear",S),i3e(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((Pet,HN)=>{"use strict";var jN=Nr(),T8=tt(),s3e=h8(),l3e=w8(),$N=U0().isValid,u3e=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=u3e(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"],w=jN(y)&&jN(x)&&y{"use strict";var ZN=tt(),c3e=qi(),YN=c8(),h3e=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=c3e.newContainer(r,l,"coloraxis"),o._name=l,h3e(n,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var f3e=tt(),d3e=ac().hasColorscale,p3e=ac().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?f3e.nestedProperty(c,h.container).get():c;if(f)if(f.coloraxis)f._colorAx=r[f.coloraxis];else{var d=p3e(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(),m3e=ac().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=m3e(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((Ret,tV)=>{"use strict";var nb=U0(),u1=ac();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((Bet,iV)=>{"use strict";var rV=tt(),v3e=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)||v3e(t.size))}}});var D8=X((qet,aV)=>{"use strict";var g3e=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 g3e(l)&&l>0?Math.max(l,n):0}}});var oc=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},b3e=/([astvzqmhlc])([^astvzqmhlc]*)/gi,w3e=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function A3e(e){let t=[];return e.replace(b3e,(r,i,a)=>{let n=i.toLowerCase(),o=i,s=T3e(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 M3e=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),w=F8(g),_=y[0],A=y[1]+(t||0);return[_*x-A*w,_*w+A*x]}for(var a=e/180*k8,n=0,o=0,s=M3e(r),l="",u=0;u{"use strict";var wn=Qr(),_i=tt(),D3e=_i.numberFormat,hf=Nr(),sb=mr(),hn=Vr(),S3e=c1(),Xv=_i.strTranslate,lb=cn(),E3e=(lf(),lt(sf)),k3e=(uo(),lt(lo)),C3e=k3e.LINE_SPACING,TV=(gx(),lt(vx)).DESELECTDIM,F3e=So(),P3e=D8(),I3e=oc().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(z3e(c))),l&&e.style("text-shadow",l==="auto"?lb.makeTextShadow(hn.contrast(n)):P8(l)),u&&e.style("text-decoration-line",P8(R3e(u)))};function P8(e){return e==="none"?void 0:e}var L3e={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function z3e(e){return L3e[e]}function R3e(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 B3e=Mt.symbolNames.length,q3e="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>=B3e||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?q3e:"")}var vV=D3e("~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,w=e.mgt;w?f=!0:w=x&&x.type,_i.isArrayOrTypedArray(w)&&(w=w[0],SV[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),z=_.fgopacity,L=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,L,q,e.mcc,_.fillmode,B,I,z)}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=F3e.isBubble(e)?P3e(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,w=y!==void 0;return sb.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: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={};I3e(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(E3e.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,V3e=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>=V3e&&(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 U3e=/\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(U3e,"");a+=i,a=a.trim(),this.setAttribute("transform",a)})}};var G3e=/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(G3e);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,w=bV/180*Math.PI,_=x-g,A=ed(w)*f1(_),T=f1(w)*ed(y)-ed(w)*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((Get,qV)=>{"use strict";var d1=Qr(),j3e=Nr(),$3e=bn(),N8=mr(),id=tt(),zV=id.strTranslate,ub=xi(),cb=Vr(),p1=cn(),RV=(gx(),lt(vx)),H3e=(uo(),lt(lo)).OPPOSITE_SIDE,BV=/ [XY][0-9]* /,V8=1.6,U8=1.6;function Z3e(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,z=(a.title||{}).subtitle||{text:"",font:{}},L=(z.text||"").trim(),q=!1,V=1,G=z.font,$=G.family,H=G.size,Z=G.color,Y=G.weight,oe=G.style,pe=G.variant,De=G.textcase,ye=G.lineposition,de=G.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&&(L===""?V=0:ue(L,B)&&(J||(L=""),V=.2,q=!0)),r._meta?p=id.templateString(p,r._meta):i._meta&&(p=id.templateString(p,i._meta));var me=p||L||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=L||J;if(I&&(fe=h.selectAll("text."+ge).data(Re?[0]:[]),fe.enter().append("text"),fe.text(L).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(w)).call(ub.font,{color:cb.rgb(w),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 $3e.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=H3e[l.side],it=l.side==="left"||l.side==="top"?-1:1,ie=j3e(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)}L?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:Z3e,SUBTITLE_PADDING_EM:U8,SUBTITLE_PADDING_MATHJAX_EM:V8}});var yb=X((jet,GV)=>{"use strict";var Y3e=Qr(),W3e=Pp().utcFormat,Oi=tt(),X3e=Oi.numberFormat,sc=Nr(),ff=Oi.cleanNumber,K3e=Oi.ms2DateTime,OV=Oi.dateTime2ms,lc=Oi.ensureNumber,NV=Oi.isArrayOrTypedArray,df=(Ji(),lt(ua)),hb=df.FP_SAFE,gu=df.BADNUM,J3e=df.LOG_CLIP,Q3e=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}var e5e=2;function t5e(e,t){if(e<=0)return 0;let r=Math.max(0,t-e5e);return e>r?r/e:1}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*J3e*Math.abs(T-M))}else return gu}function o(_,A,T,M){if((M||{}).msUTC&&sc(_))return+_;var S=OV(_,T||t.calendar);if(S===gu)if(sc(_)){_=+_;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 K3e(_,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 z=t._B[k]||0;return isFinite(z)?p(_,t._m2,z):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:lc,t.l2c=t.type==="log"?Jv:lc,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=lc,t.d2p=t.r2p=function(_){return t.l2p(ff(_))},t.p2d=t.p2r=y,t.cleanPos=lc):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=lc,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=lc):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=lc,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"&&_!==""?_:lc(_)}):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=lc,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"&&_!==""?_:lc(_)},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(!sc(T[M]))if(!(k||P)&&sc(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,t.domainpad=T.domainpad}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";let B=(I?A.h:A.w)*(t.domain[1]-t.domain[0]),z=t.domainpad,L=0,q=0;if(z){L=(I?z.top:z.left)||0,q=(I?z.bottom:z.right)||0;let Z=t5e(L+q,B);L*=Z,q*=Z}if(t._length=B-L-q,t._padStart=L,t._padEnd=q,I?(t._offset=A.t+(1-t.domain[1])*A.h+L,t._m=t._length/(k-P),t._b=-t._m*P):(t._offset=A.l+t.domain[0]*A.w+L,t._m=t._length/(P-k),t._b=-t._m*k),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var V,G;if(t._rangebreaks=t.locateBreaks(Math.min(k,P),Math.max(k,P)),t._rangebreaks.length){for(V=0;VP&&($=!$),$&&t._rangebreaks.reverse();var H=$?-1:1;for(t._m2=H*t._length/(Math.abs(P-k)-t._lBreaks),t._B.push(-t._m2*(I?P:k)),V=0;VS&&(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(),r5e=(Ji(),lt(ua)).BADNUM,_b=j8.isArrayOrTypedArray,i5e=j8.isDateTime,a5e=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&&u5e(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 l5e(e,t){for(var r=e.length,i=HV(r),a=0,n=0,o={},s=0;sa*2}function u5e(e){return _b(e[0])&&_b(e[1])}});var Qv=X((Het,tU)=>{"use strict";var c5e=Qr(),KV=Nr(),pf=tt(),xb=(Ji(),lt(ua)).FP_SAFE,h5e=mr(),f5e=xi(),JV=un(),d5e=JV.getFromId,p5e=JV.isLinked;tU.exports={applyAutorangeOptions:eU,getAutoRange:H8,makePadFn:Z8,doAutoRange:v5e,findExtremes:g5e,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=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(G,$){return Math.max(G,s($))}if(h===f){var z=h-1,L=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/w));a=h>0?[0,V]:[V,0]}else x?a=[Math.max(0,z),Math.max(1,L)]:a=[z,L]}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))/(w-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,w=-1/0,l)for(h=0;h0&&(x=f),f>w&&f-xb&&(x=f),f>w&&f=I;h--)P(h);return{min:i,max:a,opts:r}}function Y8(e,t,r,i){QV(e,t,r,i,y5e)}function W8(e,t,r,i){QV(e,t,r,i,_5e)}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 x5e(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 b5e(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=x5e(r,t),i=b5e(i,t),[r,i]}});var ra=X((Yet,AU)=>{"use strict";var xl=Qr(),Va=Nr(),m1=bn(),tg=mr(),ur=tt(),v1=ur.strTranslate,ad=cn(),w5e=Kv(),rg=Vr(),Ns=xi(),A5e=vu(),rU=p8(),Zet=(xn(),lt(_n)),$n=(Ji(),lt(ua)),T5e=$n.ONEMAXYEAR,Tb=$n.ONEAVGYEAR,Mb=$n.ONEMINYEAR,M5e=$n.ONEMAXQUARTER,eM=$n.ONEAVGQUARTER,Db=$n.ONEMINQUARTER,D5e=$n.ONEMAXMONTH,g1=$n.ONEAVGMONTH,Sb=$n.ONEMINMONTH,Vs=$n.ONEWEEK,Eo=$n.ONEDAY,mf=Eo/2,cc=$n.ONEHOUR,ig=$n.ONEMIN,Eb=$n.ONESEC,S5e=$n.ONEMILLI,E5e=$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,k5e=Fb.OPPOSITE_SIDE,kb=3,ut=AU.exports={};ut.setConvert=yb();var C5e=$8(),hc=un(),F5e=hc.idSort,P5e=hc.isLinked;ut.id2name=hc.id2name;ut.name2id=hc.name2id;ut.cleanId=hc.cleanId;ut.list=hc.list;ut.listIds=hc.listIds;ut.getFromId=hc.getFromId;ut.getFromTrace=hc.getFromTrace;var pU=Qv();ut.getAutoRange=pU.getAutoRange;ut.findExtremes=pU.findExtremes;var I5e=1e-4;function sM(e){var t=(e[1]-e[0])*I5e;return[e[0]-t,e[1]+t]}function L5e(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<=T5e?h=u:h=Tb:r===eM&&c>=Db?u>=Db&&u<=M5e?h=u:h=eM:c>=Sb?u>=Sb&&u<=D5e?h=u:h=g1:r===Vs&&c>=Vs?h=Vs:c>=Eo?h=Eo:r===mf&&c>=mf?h=mf:r===cc&&c>=cc&&(h=cc);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=N5e(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"),z=ut.tickFirst(M,r);if(A){if(t._tmin=z,z=P:q<=P;q=ut.tickIncrement(q,$,c,a)){if(A&&V++,M.rangebreaks&&!c){if(q=f)break}if(g.length>d||q===L)break;L=q;var Z={value:L5e(q,H,$)};A?(q===z&&(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(w){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*uc(t,i,wb);else if(n>g1)t/=g1,e.dtick="M"+uc(t,1,uU);else if(n>Eo){if(e.dtick=uc(t,Eo,e._hasDayOfWeekBreaks?[1,2,7,14]:V5e),!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>cc?e.dtick=uc(t,cc,uU):n>ig?e.dtick=uc(t,ig,cU):n>Eb?e.dtick=uc(t,Eb,cU):(i=a(10),e.dtick=uc(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"+uc(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=uc(t,i,U5e)):(e.tick0=0,i=a(10),e.dtick=uc(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>=cc)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?w: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 j5e(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 $5e(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function H5e(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 Z5e(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 Y5e(e,t,r,i,a){if(e.thetaunit==="radians"&&!r){var n=t.x/180;if(n===0)t.text="0";else{var o=W5e(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 W5e(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"],X5e=["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 K5e(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"?X5e[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=c4e(t,i));var m=f[c+"axislayer"],g=t._mainLinePosition,y=g+=t._shift,x=t._mainMirrorPosition,w=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 J5e(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 r4e(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(z){return i.indexOf(z)!==-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,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?_+=eg:k===-90&&M==="bottom"?_=od:k===90&&M==="top"?_=eg:_=.5,T=eg/2*(k/90)),y.xFn=function(z){return z.dx+x+T*z.fontSize},y.yFn=function(z){return z.dy+w+z.fontSize*_},y.anchorFn=function(z,L){if(c){if(s)return"end";if(l)return"start"}return!Va(L)||L===0||L===180?"middle":L*A<0!==h?"end":"start"},y.heightFn=function(z,L,q){return L<-60||L>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,w=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(z){return z.dx+t-(x+z.fontSize*_)*A+T*z.fontSize},y.yFn=function(z){return z.dy+w+z.fontSize*eg},y.anchorFn=function(z,L){return Va(L)&&Math.abs(L)===90?"middle":P?"end":"start"},y.heightFn=function(z,L,q){return e.side==="right"&&(L*=-1),L<-30?-q:L<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 F5e(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]=z[S])}var G=Math.abs(B-I);G-A>0?(G-=A,A*=1+A/G):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 $=ur.syncOrAsync(y);return $&&$.then&&e._promises.push($),$};function i4e(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 a4e(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,w5e.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)||!n4e(e,t,r,i)||o4e(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=E5e:/%L/.test(t)?e>=S5e:/%[SX]/.test(t)?e>=Eb:/%M/.test(t)?e>=ig:/%[HI]/.test(t)?e>=cc:/%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((Wet,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((Xet,DU)=>{"use strict";var f4e=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&&(f4e(i,c,s),(o==="linear"||o==="-")&&i("rangemode")),r.cleanRange()}});var EU=X((Ket,SU)=>{var d4e={left:0,top:0};SU.exports=p4e;function p4e(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=m4e(t);return r[0]=i-n.left,r[1]=a-n.top,r}function m4e(e){return e===window||e===document||e===document.body?d4e:e.getBoundingClientRect()}});var pM=X((Jet,kU)=>{"use strict";var v4e=q7();function g4e(){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=v4e&&g4e()});var FU=X((Qet,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((ett,IU)=>{"use strict";var PU=tt(),y4e=[["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),y4e[r][t]}});var RU=X((ttt,zU)=>{"use strict";var _4e=Uv(),x4e=zx(),b4e=Lv().getGraphDiv,w4e=(mv(),lt(pv)),mM=zU.exports={};mM.wrapped=function(e,t,r){var n;e=b4e(e),e._fullLayout&&x4e.clear(e._fullLayout._uid+w4e.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&&_4e.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((rtt,NU)=>{"use strict";var A4e=EU(),vM=N7(),T4e=pM(),M4e=tt().removeElement,D4e=(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,T4e?(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 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 A4e(e.changedTouches?e.changedTouches[0]:e,document.body)}});var vf=X((itt,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((att,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;nL4e,itemGap:()=>I4e,itemHeightPad:()=>R4e,itemMinHeight:()=>z4e,scrollBarColor:()=>k4e,scrollBarEnterAttrs:()=>F4e,scrollBarMargin:()=>C4e,scrollBarMinHeight:()=>E4e,scrollBarWidth:()=>S4e,titlePad:()=>P4e});var S4e,E4e,k4e,C4e,F4e,P4e,I4e,L4e,z4e,R4e,zb=Gi(()=>{"use strict";S4e=6,E4e=20,k4e="#808BA4",C4e=4,F4e={rx:20,ry:3,width:0,height:0},P4e=2,I4e=5,L4e=6,z4e=16,R4e=3});var _M=X((ntt,HU)=>{"use strict";var yM=oo(),B4e=tc(),{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:B4e.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((stt,ZU)=>{"use strict";var Rb=mr(),Us=tt(),q4e=qi(),O4e=Wo(),N4e=_M(),V4e=Wp(),xM=ug();function U4e(e,t,r,i,a){var n=t[e]||{},o=q4e.newContainer(r,e);function s(Z,Y){return Us.coerce(n,o,N4e,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,O4e,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",z,L,q,V="left";P?(z=0,Rb.getComponentMethod("rangeslider","isVisible")(t.xaxis)?I?(L=1.1,q="bottom"):(L=1,q="top"):I?(L=-.1,q="top"):(L=0,q="bottom")):(L=1,q="auto",B?z=1.02:(z=1,V="right")),Us.coerce(n,o,{x:{valType:"number",editType:"legend",min:B?-2:0,max:B?3:1,dflt:z}},"x"),Us.coerce(n,o,{y:{valType:"number",editType:"legend",min:I?-2:0,max:I?3:1,dflt:L}},"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 G=s("groupclick");s("groupdoubleclick",G),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(),G4e=wM.pushUnique,j4e=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,w,_,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 z(Pe,Fe){I[Pe].visible=Fe,B=!0}function L(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?z(Ue,Ne):P(Ue,Ne)}}var q=p.legend;if(!p._isShape&&gf.traceIs(p,"pie-like")){var V=s.label,G=c.indexOf(V);if(a==="toggle")G===-1?c.push(V):c.splice(G,1);else if(a==="toggleothers"){var $=G!==-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;dz&&(I=z)}k[d][0]._groupMinRank=I,k[d][0]._preGroupSort=d}var L=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(L),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 $4e=xi(),H4e=Vr();QU.exports=function(t,r,i,a){var n=i.marker.pattern;n&&n.shape?$4e.pointStyle(t,i,a,r):H4e.fill(t,r.color)}});var aG=X((ftt,iG)=>{"use strict";var tG=Vr(),rG=SM().castOption,Z4e=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(Z4e,r,i,a).style("stroke-width",s).call(tG.stroke,o)}});var PM=X((dtt,uG)=>{"use strict";var ko=Qr(),EM=mr(),co=tt(),kM=co.strTranslate,Gs=xi(),wl=Vr(),CM=ac().extractOpts,Ob=So(),Y4e=aG(),W4e=SM().castOption,nG=(zb(),lt(Lb)),oG=12,sG=5,ud=2,X4e=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,z=S[0].lineHeight,L=S[0].height;if(B==="middle"&&I===0||!z||!L)P.attr("transform",null);else{var q={top:1,bottom:-1}[B],V=q*(.5*(z-L+3))||0,G=i.indentation;P.attr("transform",kM(G,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(w);function h(S){var k=lG(S),P=k.showFill,I=k.showLine,B=k.showGradientLine,z=k.showGradientFill,L=k.anyFill,q=k.anyLine,V=S[0],G=V.trace,$,H,Z=CM(G),Y=Z.colorscale,oe=Z.reversescale,pe=function(te){if(te.size())if(P)Gs.fillGroupStyle(te,r,!0);else{var re="legendfill-"+G.uid;Gs.gradient(te,r,re,FM(oe),Y,"fill")}},De=function(te){if(te.size()){var re="legendline-"+G.uid;Gs.lineGroupStyle(te),Gs.gradient(te,r,re,FM(oe),Y,"stroke")}},ye=Ob.hasMarkers(G)||!L?"M5,0":q?"M5,-2":"M5,-3",de=ko.select(this),Ce=de.select(".legendfill").selectAll("path").data(P||z?[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||z?(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,G.line,X4e,sG);H=co.minExtend(G,{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,z=k.showMarker,L=S[0],q=L.trace,V=!z&&!I&&!P&&Ob.hasText(q),G,$;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 L._distinct&&L.index&&J[L.index]?J[L.index]:J[0]}if(z||V||B){var Y={},oe={};if(z){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)),G=[co.minExtend(L,Y)],$=co.minExtend(q,oe),$.selectedpoints=null,$.texttemplate=null}var ye=ko.select(this).select("g.legendpoints"),de=ye.selectAll("path.scatterpts").data(z?G:[]);de.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",u),de.exit().remove(),de.call(Gs.pointStyle,$,r),z&&(G[0].mrc=3);var Ce=ye.selectAll("g.pointtext").data(V?G:[]);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 z=ko.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(B);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",u).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(L){var q=ko.select(this),V=k[L[0]].marker,G=c(void 0,V.line,_1,ud);q.attr("d",L[1]).style("stroke-width",G+"px").call(wl.fill,V.color),G&&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||{},z=B.line||{},L=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",L).attr("transform",u),V.exit().remove(),V.each(function(G){var $=ko.select(this),H=G[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||z.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 z=c(void 0,k.line,_1,ud);I.style("stroke-width",z+"px").call(wl.fill,k.fillcolor),z&&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 z=ko.select(this),L=k[B?"increasing":"decreasing"],q=c(void 0,L.line,_1,ud);z.style("stroke-width",q+"px").call(wl.fill,L.fillcolor),q&&wl.stroke(z,L.line.color)})}function w(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 z=ko.select(this),L=k[B?"increasing":"decreasing"],q=c(void 0,L.line,_1,ud);z.style("fill","none").call(Gs.dashLine,L.line.dash,q),q&&wl.stroke(z,L.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,z=P?B.visible&&B.type===P:EM.traceIs(B,P),L=ko.select(k).select("g.legendpoints").selectAll("path.legend"+P).data(z?[S]:[]);if(L.enter().append("path").classed("legend"+P,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",u),L.exit().remove(),L.size()){var q=B.marker||{},V=c(W4e(q.line.width,I.pts),q.line,_1,ud),G="pieLike",$=co.minExtend(B,{marker:{line:{width:V}}},G),H=co.minExtend(I,{trace:$},G);Y4e(L,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(z,L){var q=ko.select(this),V=CM(k),G=V.colorscale,$=V.reversescale,H=function(pe){if(pe.size()){var De="legendfill-"+k.uid;Gs.gradient(pe,r,De,FM($,P==="radial"),G,"fill")}},Z;if(G){if(!P){var oe=G.length;Z=L===0?G[$?oe-1:0][1]:L===1?G[$?0:oe-1][1]:G[Math.floor((oe-1)/2)][1]}}else{var Y=k.vertexcolor||k.facecolor||k.color;Z=co.isArrayOrTypedArray(Y)?Y[L]||Y[0]:Y}q.attr("d",z[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((ptt,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(),K4e=PM(),w1=ug(),x1=1,J4e=/^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(J4e)&&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"),w=r.title;r._titleWidth=0,r._titleHeight=0;var _;w.text?(_=Ua.ensureSingle(x,"text",a+"titletext"),_.attr("text-anchor","start").call(Ga.font,w.font).text(w.text),Vb(_,x,e,r,x1),!s&&(r.titleclick||r.titledoubleclick)&&rwe(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(L){return L.showlegend});return e._fullData.concat(B).some(function(L){return L.legendgroup===I&&(L.legend||"legend")===a&&L.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(ewe,e,r)}).call(K4e,e,r).each(function(S){s||S[0].groupTitle&&r.groupclick==="toggleitem"||Co.select(this).call(twe,e,a)}),Ua.syncOrAsync([LM.previousPromises,function(){return nwe(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 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,z;P?B=S.l+S.w*r.x-b1[Gb(r)]*r._width:B=i.width*r.x-b1[Gb(r)]*r._width,I?z=S.t+S.h*(1-r.y)-b1[jb(r)]*r._effHeight:z=i.height*(1-r.y)-b1[jb(r)]*r._effHeight;var L=owe(e,a,B,z);if(L)return;if(i.margin.autoexpand){var q=B,V=z;B=P?Ua.constrain(B,0,i.width-r._width):q,z=I?Ua.constrain(z,0,i.height-r._effHeight):V,B!==q&&Ua.log("Constrain "+a+".x to make legend fit inside graph"),z!==V&&Ua.log("Constrain "+a+".y to make legend fit inside graph")}Ga.setTranslate(m,B,z)}if(A.on(".drag",null),m.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var G=r._effHeight;s&&(G=r._height),y.attr({width:r._width-k,height:G-k,x:k/2,y:k/2}),Ga.setTranslate(x,0,0),g.select("rect").attr({width:r._width-2*k,height:G-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 ewe(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 twe(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 rwe(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(){iwe(t,r,i,a)})}function iwe(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 w=ya.itemGap*2+r.indentation+r.itemwidth;a.groupTitle&&(w=ya.itemGap,d-=r.indentation+r.itemwidth),th.positionText(g,w,-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 awe(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 nwe(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",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=awe(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),z=i.x<0||i.x===0&&B==="right",L=i.x>1||i.x===1&&B==="left",q=x||y,V=n.width/2;i._maxWidth=Math.max(z?q&&B==="left"?s.l+s.w:V:L?q&&B==="right"?s.r+s.w:V:s.w,2*p);var G=0,$=0;r.each(function(Re){var Ve=Nb(Re,i,p);G=Math.max(G,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+w,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()&&Q4e(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 owe(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(),swe=_a.pushUnique,BM=_a.strTranslate,lwe=_a.strRotate,uwe=Uv(),ca=cn(),cwe=jU(),fc=xi(),Ya=Vr(),$b=bl(),yu=ra(),hwe=(xn(),lt(_n)).zindexSeparator,hd=mr(),js=oc(),fd=(mv(),lt(pv)),fwe=bM(),dwe=RM(),EG=fd.YANGLE,OM=Math.PI*EG/180,pwe=1/Math.sin(OM),mwe=Math.cos(OM),vwe=Math.sin(OM),ia=fd.HOVERARROWSIZE,Ur=fd.HOVERTEXTPAD,_G={box:!0,ohlc:!0,violin:!0,candlestick:!0},gwe={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(){_we(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=PG(a),o=IG(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,w=p.eventData;if(w){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}w.bbox={x0:_+o,x1:A+o,y0:T+n,y1:M+n},w.xPixel=(m+g)/2,w.yPixel=(y+x)/2,r.inOut_bbox&&r.inOut_bbox.push(w.bbox)}else w=!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:w}}),l=!1,u=CG(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 w=y.y0-y.by/2;w-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?G=js.flat(n,t.xval):G=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(G[0])||!rh($[0]))return _a.warn("Fx.hover failed",t,e),$b.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=G,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")&&L!==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:L,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<=L&&(!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(),L!==0)for(let At=0;AtUt.trace.subplot===$r&&Ut.index!==void 0&&Ut.index!==!1&&Ut.spikeDistance<=L);Er.drawSpikelines(ai,te[$r],G&&G[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=SG("x",Qe,s),yt=SG("y",Qe,s);se(st,yt);var Ot=[],We={},mt=0,Ye=function(At){var $r=_G[At.trace.type]?kG(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=PG(e),ce=IG(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=CG(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);cwe(ih.select(a),ka?"pointer":"")}var Wi=Awe(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,G),yvals:js.c2dApply(k,$),xPixel:t.pointerX,yPixel:t.pointerY})}}function kG(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 xwe=/([\s\S]*)<\/extra>/;function qM(e,t){return Hb(e,ca.getMathOrTextNode(t))}function CG(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,w=e[0],_=w.xa,A=w.ya,T=a.charAt(0),M=T+"Label",S=w[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+(w.y0+w.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};fwe(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?lwe(EG):""))}}),{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=DG(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(xwe,(p,m)=>(o=DG(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 G=V[a],$=V[n],H=G._id.charAt(0)==="x",Z=G.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=FG(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?pwe:1)/2,pmin:Y,pmax:oe}]}),u.sort(function(V,G){return V[0].posref-G[0].posref||s*(G[0].traceIndex-V[0].traceIndex)});var y,x,w,_,A,T,M;function S(V){var G=V[0],$=V[V.length-1];if(x=G.pmin-G.pos-G.dp+G.size,w=$.pos+$.dp+$.size-G.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;_G.pmax&&H++;for(_=V.length-1;_>=0&&!(H<=0);_--)T=V[_],T.pos>G.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>G.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 z=u[_];for(A=z.length-1;A>=0;A--){var L=z[A],q=L.datum;q.offset=L.dp,q.del=L.del}}}function FG(e,t){var r=0,i=e.offset;return t&&(i*=-vwe,r=e.offset*mwe),{x:r,y:i}}function bwe(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=bwe(o),f=FG(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,w=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(w)),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(fc.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 wwe(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:yu.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:yu.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=yu.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+yu.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=yu.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+yu.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){let i=t._id.charAt(0)==="y",a=1/0,n=-1/0;for(let o of t._counterAxes||[]){let s=yu.getFromId(e,o);if(!s)continue;let l=s._padStart||0,u=s._padEnd||0;i?(a=Math.min(a,r.l+s.domain[0]*r.w+l),n=Math.max(n,r.l+s.domain[1]*r.w-u)):(a=Math.min(a,r.t+(1-s.domain[1])*r.h+l),n=Math.max(n,r.t+(1-s.domain[0])*r.h-u))}if(t.anchor==="free"){let o=i?r.l+t.position*r.w:r.t+(1-t.position)*r.h;a=Math.min(a,o),n=Math.max(n,o)}return[a,n]}function TG(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,w=c.spikecolor||g,_=yu.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){let $=AG(e,c,n);A=$[0],T=$[1]}i.insert("line",":first-child").attr({x1:A,x2:T,y1:p,y2:p,"stroke-width":x,stroke:w,"stroke-dasharray":fc.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 M=t.vLinePoint,S,k;u=M&&M.xa,c=M&&M.ya;var P=u.spikesnap;P==="cursor"?(S=o.pointerX,k=o.pointerY):(S=u._offset+M.x,k=c._offset+M.y);var I=Ya.wcagContrast(M.color,h)<1.5?Ya.contrast(h):M.color,B=u.spikemode,z=u.spikethickness,L=u.spikecolor||I,q=yu.getPxPosition(e,u),V,G;if(B.indexOf("toaxis")!==-1||B.indexOf("across")!==-1){if(B.indexOf("toaxis")!==-1&&(V=q,G=k),B.indexOf("across")!==-1){let $=AG(e,u,n);V=$[0],G=$[1]}i.insert("line",":first-child").attr({x1:S,x2:S,y1:V,y2:G,"stroke-width":z,stroke:L,"stroke-dasharray":fc.dashStyle(u.spikedash,z)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:S,x2:S,y1:V,y2:G,"stroke-width":z+2,stroke:h}).classed("spikeline",!0).classed("crisp",!0)}B.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:S,cy:q-(u.side!=="top"?z:-z),r:z,fill:L}).classed("spikeline",!0)}}}function Awe(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 MG(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function DG(e,t){return ca.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Twe(e,t){for(var r=t.charAt(0),i=[],a=[],n=[],o=0;oe.offsetTop+e.clientTop,IG=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((vtt,LG)=>{"use strict";var Mwe=tt(),Dwe=Vr(),Swe=oc().isUnifiedHover;LG.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&&Swe(r.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),n?(a.bgcolor||(a.bgcolor=Dwe.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),Mwe.coerceFont(i,"hoverlabel.font",a.font),i("hoverlabel.align",a.align)}});var RG=X((gtt,zG)=>{"use strict";var Ewe=tt(),kwe=Yb(),Cwe=Rp();zG.exports=function(t,r){function i(a,n){return Ewe.coerce(t,r,Cwe,a,n)}kwe(t,r,i)}});var OG=X((ytt,qG)=>{"use strict";var BG=tt(),Fwe=U_(),Pwe=Yb();qG.exports=function(t,r,i,a){function n(s,l){return BG.coerce(t,r,Fwe,s,l)}var o=BG.extendFlat({},a.hoverlabel);r.hovertemplate&&(o.namelength=-1),Pwe(t,r,n,o)}});var UM=X((_tt,NG)=>{"use strict";var Iwe=tt(),Lwe=Rp();NG.exports=function(t,r){function i(a,n){return r[a]!==void 0?r[a]:Iwe.coerce(t,r,Lwe,a,n)}return i("clickmode"),i("hoversubplots"),i("hoveranywhere"),i("clickanywhere"),i("hovermode")}});var GG=X((xtt,UG)=>{"use strict";var VG=tt(),zwe=Rp(),Rwe=UM(),Bwe=Yb();UG.exports=function(t,r){function i(u,c){return VG.coerce(t,r,zwe,u,c)}var a=Rwe(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"),Bwe(t,r,i),VG.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var HG=X((btt,$G)=>{"use strict";var GM=tt(),jG=mr();$G.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 Owe=mr(),ZG=oc(),Nwe=VM().hover;YG.exports=function(t,r,i){var a=Owe.getComponentMethod("annotations","onClick")(t,t._hoverdata),n=t._fullLayout;i!==void 0&&Nwe(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&&ZG.c2dApply(t._hoverXAxes,t._hoverXVals)),(h=s.yvals)!=null||(s.yvals=t._hoverYVals&&ZG.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 _u=X((Att,JG)=>{"use strict";var Vwe=Qr(),Wb=tt(),Uwe=bl(),hg=oc(),XG=Rp(),KG=VM();JG.exports={moduleType:"component",name:"fx",constants:(mv(),lt(pv)),schema:{layout:XG},attributes:U_(),layoutAttributes:XG,supplyLayoutGlobalDefaults:RG(),supplyDefaults:OG(),supplyLayoutDefaults:GG(),calc:HG(),getDistanceFunction:hg.getDistanceFunction,getClosest:hg.getClosest,inbox:hg.inbox,quadrature:hg.quadrature,appendArrayPointValue:hg.appendArrayPointValue,castHoverOption:jwe,castHoverinfo:$we,hover:KG.hover,unhover:Uwe.unhover,loneHover:KG.loneHover,loneUnhover:Gwe,click:WG()};function Gwe(e){var t=Wb.isD3Selection(e)?e:Vwe.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function jwe(e,t,r){return Wb.castOption(e,t,"hoverlabel."+r)}function $we(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((Mtt,QG)=>{"use strict";QG.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((Dtt,ej)=>{"use strict";ej.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:()=>Hwe,SQRT2:()=>Qwe,cos45:()=>Kwe,i000:()=>Zwe,i090:()=>Ywe,i180:()=>Wwe,i270:()=>Xwe,sin45:()=>Jwe});var Hwe,Zwe,Ywe,Wwe,Xwe,Kwe,Jwe,Qwe,Qb=Gi(()=>{"use strict";Hwe=32,Zwe=0,Ywe=8,Wwe=16,Xwe=24,Kwe=Math.cos(Math.PI/4),Jwe=Math.sin(Math.PI/4),Qwe=Math.sqrt(2)});var e3=X((Stt,rj)=>{"use strict";var e6e=tt().strTranslate;function tj(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 t6e(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 r6e(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return tj(e,r[t])}}function i6e(e){return e6e(e.xaxis._offset,e.yaxis._offset)}rj.exports={p2r:tj,r2p:t6e,axValue:r6e,getTransform:i6e}});var yf=X(nh=>{"use strict";var a6e=E8(),nj=(Qb(),lt(Jb)),A1=nj.CIRCLE_SIDES,jM=nj.SQRT2,oj=e3(),ij=oj.p2r,aj=oj.r2p,n6e=[0,3,4,5,6,1,2],o6e=[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 sj=un(),fj=dd(),s6e=fj.drawMode,l6e=fj.openMode,T1=(Qb(),lt(Jb)),lj=T1.i000,uj=T1.i090,cj=T1.i180,hj=T1.i270,u6e=T1.cos45,c6e=T1.sin45,dj=e3(),r3=dj.p2r,_f=dj.r2p,h6e=of(),f6e=h6e.clearOutline,i3=yf(),d6e=i3.readPaths,p6e=i3.writePaths,m6e=i3.ellipseOver,v6e=i3.fixDatesForPaths;function g6e(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(!s6e(n)&&a!==void 0){var s=i._fullLayout._activeShapeIndex;if(s{"use strict";var y6e=dd(),_6e=y6e.selectMode,x6e=of(),b6e=x6e.clearOutline,$M=yf(),w6e=$M.readPaths,A6e=$M.writePaths,T6e=$M.fixDatesForPaths;vj.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(!_6e(h)&&c!==void 0){var d=n._fullLayout._activeSelectionIndex;if(dk6e,paramIsX:()=>S6e,paramIsY:()=>E6e,paramRE:()=>D6e,segmentRE:()=>M6e});var M6e,D6e,S6e,E6e,k6e,pg=Gi(()=>{"use strict";M6e=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,D6e=/[^\s,]+/g,S6e={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:{}},E6e={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:{}},k6e={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)),gj=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,z){var L;if(P)if(I==="domain")z?L=function(q){return P._offset+P._length*(1-q)}:L=function(q){return P._offset+P._length*q};else{let q=Pn.shapePositionToRange(P);L=function(V){return P._offset+P.r2p(q(V,!0))},B==="path"&&P.type==="date"&&(L=Pn.decodeDate(L))}else z?L=function(q){return n.t+n.h*(1-q)}:L=function(q){return n.l+n.w*q};return L}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 C6e(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 C6e(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.*/,""),gj.log("Ignoring extra params in segment "+f)),x&&c++,w&&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((Ptt,xj)=>{"use strict";var F6e=tt(),mc=ra(),yj=cn(),_j=xi(),P6e=yf().readPaths,pd=bf(),I6e=pd.getPathString,mg=Ax(),L6e=(uo(),lt(lo)).FROM_TL;xj.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=F6e.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=I6e(t,i),S=P6e(M,t);w=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);w=fe+i.x0+ge,_=fe+i.x1+Re}else w=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=z6e(w,A,_,T):q=0),x.call(function(Y){return Y.call(_j.font,m).attr({}),yj.convertToTspans(Y,t),Y});var V=_j.bBox(x.node()),G=R6e(w,A,_,T,i,q,V),$=G.textx,H=G.texty,Z=G.xanchor;x.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[Z],y:H,x:$,transform:"rotate("+q+","+$+","+H+")"}).call(yj.positionText,$,H)}};function z6e(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 R6e(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 B6e=tt(),q6e=B6e.strTranslate,bj=bl(),Tj=dd(),O6e=Tj.drawMode,Mj=Tj.selectMode,Dj=mr(),wj=Vr(),o3=(Qb(),lt(Jb)),N6e=o3.i000,V6e=o3.i090,U6e=o3.i180,G6e=o3.i270,j6e=of(),Sj=j6e.clearOutlineControllers,WM=yf(),n3=WM.pointsOnRectangle,YM=WM.pointsOnEllipse,$6e=WM.writePaths,H6e=a3().newShapes,Z6e=a3().createShapeObj,Y6e=HM(),W6e=ZM();Ej.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(G){var $={};i.isActiveShape!==void 0&&(i.isActiveShape=!1,$=H6e(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,$=Y6e(r,i),n._fullLayout._reselect=!0),Object.keys($).length&&Dj.call((G||{}).redrawing?"relayout":"_guiRelayout",n,$)}var l=n._fullLayout,u=l._zoomlayer,c=i.dragmode,h=O6e(c),f=Mj(c);(h||f)&&(n._fullLayout._outlining=!0),Sj(n),r.attr("d",$6e(t));var d,p,m,g,y;if(!a&&(i.isActiveShape||i.isActiveSelection)){y=X6e([],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);W6e(n,"label-temp",_,w)}function A(G){m=+G.srcElement.getAttribute("data-i"),g=+G.srcElement.getAttribute("data-j"),d[m][g].moveFn=T}function T(G,$){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=G,De=$;if(i.isActiveSelection){var ye=Aj(Y,g);ye[1]===Y[g][1]?De=0:pe=0}for(var de=0;de1&&!(G.length===2&&G[1][0]==="Z")&&(g===0&&(G[0][0]="M"),t[m]=G,o(),s())}}function k(G,$){if(G===2){m=+$.srcElement.getAttribute("data-i"),g=+$.srcElement.getAttribute("data-j");var H=t[m];!n3(H)&&!YM(H)&&S()}}function P(G){d=[];for(var $=0;${"use strict";var J6e=Qr(),Lj=mr(),KM=tt(),md=ra(),Q6e=yf().readPaths,eAe=s3(),u3=ZM(),zj=of().clearOutlineControllers,XM=Vr(),c3=xi(),tAe=qi().arrayEditor,kj=bl(),Cj=_u(),Fj=vf(),vd=(pg(),lt(dg)),gs=bf(),JM=gs.getPathString;qj.exports={draw:QM,drawOne:Rj,eraseActiveShape:oAe,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&&Cj.hover(e,o,r.id)}}),i.addEventListener("click",n=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=a(n);o&&Cj.click(e,o,r.id)}})}function Bj(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=iAe(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 iAe(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 aAe(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=J6e.select(t.node().parentNode),z=md.getFromId(e,r.xref),L=md.getRefType(r.xref),q=md.getFromId(e,r.yref),V=md.getRefType(r.yref),G=r.x0shift,$=r.x1shift,H=r.y0shift,Z=r.y1shift,Y=function(Fe,se){var Ue=gs.getDataToPixel(e,z,se,!1,L);return Ue(Fe)},oe=function(Fe,se){var Ue=gs.getDataToPixel(e,q,se,!0,V);return Ue(Fe)},pe=gs.getPixelToData(e,z,!1,L),De=gs.getPixelToData(e,q,!0,V),ye=J(),de={element:ye.node(),gd:e,prepFn:te,doneFn:re,clickFn:fe},Ce;kj.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,G),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?kj.getCursor($e/Ue,1-Ae/Ne):"move";Fj(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?(w=p,M="y0",_=g,S="y1"):(w=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)||(Fj(t),Me(a),Bj(t,e,r),Lj.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)},z&&z.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=Pj(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)},z&&z.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=Pj(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?w+se:w,je=bt?_+se:_,nt=Tt?A+Fe:A,Qe=ve?T+Fe:T;u&&(ot&&(xe=w-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 Pj(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 nAe(e,t){if(h3(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){Ij(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=Ij,QM(e)}}}function Ij(e){if(h3(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(zj(e),delete e._fullLayout._activeShapeIndex,QM(e))}}function oAe(e){if(h3(e)){zj(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var M1=tt()._,sAe=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")}};Oj.exports=sAe});var Gj=X((Rtt,Uj)=>{"use strict";var Vj=Qr(),{dfltConfig:lAe}=Yh(),uAe=Nj(),cAe=(e,t,r,i,a)=>{let n=uAe(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===lAe.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)},hAe=(e,t,r)=>{let i=Vj.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",()=>{Vj.event.target===a.node()&&n()}),cAe(e,a,t,()=>{n(),r()},n)};Uj.exports=hAe});var rD=X((Btt,Xj)=>{"use strict";var $s=mr(),fAe=bn(),$j=un(),li=Kb(),dAe=f3().eraseActiveShape,pAe=Gj(),D1=tt(),Gr=D1._,oi={};Xj.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}pAe(e,t,function(){fAe.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:dAe};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=$j.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"?jj*f:1/jj*f;A>_?A=_:A{"use strict";var Kj=rD(),yAe=Object.keys(Kj),Jj=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Qj=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Jj,["downloadJson"]),S1=[],_Ae=function(e){if(Qj.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)}};yAe.forEach(function(e){_Ae(Kj[e])});S1.sort();e$.exports={DRAW_MODES:Jj,backButtons:Qj,foreButtons:S1}});var nD={};Yi(nD,{default:()=>bAe});var aD,xAe,bAe,oD=Gi(()=>{"use strict";aD=DA(iD()),xAe={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(" ")}},bAe=xAe});var r$=X((Ott,t$)=>{"use strict";var wAe=tt(),vg=Vr(),AAe=qi(),TAe=(oD(),lt(nD)).default;t$.exports=function(t,r){var i=t.modebar||{},a=AAe.newContainer(r,"modebar");function n(s,l){return wAe.coerce(i,a,TAe,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 o$=X((Ntt,n$)=>{"use strict";var sD=Qr(),MAe=Nr(),m3=tt(),i$=Kb(),DAe=lv().version,SAe=new DOMParser;function a$(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var vc=a$.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||i$.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};vc.createIcon=function(e){var t=MAe(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=SAe.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 CAe=un(),s$=So(),lD=mr(),FAe=oc().isUnifiedHover,PAe=o$(),v3=rD(),IAe=iD().DRAW_MODES,LAe=tt().extendDeep;l$.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=NAe(n):!i.displayModeBar&&i.watermark?o=[]:o=zAe(t),a?a.update(t,o):r._modeBar=PAe(t,o)};function zAe(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"),(qAe(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"]),BAe(r)&&I.push("select2d","lasso2d");var B=[],z=function($){B.indexOf($)===-1&&k.indexOf($)!==-1&&B.push($)};if(Array.isArray(s)){for(var L=[],q=0;q{"use strict";c$.exports={moduleType:"component",name:"modebar",layoutAttributes:(oD(),lt(nD)).default,supplyLayoutDefaults:r$(),manage:u$()}});var cD=X((Gtt,h$)=>{"use strict";var VAe=(uo(),lt(lo)).FROM_BL;h$.exports=function(t,r,i){i===void 0&&(i=VAe[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(),xu=un().id2name,UAe=vu(),f$=cD(),GAe=yb(),jAe=(Ji(),lt(ua)).ALMOST_EQUAL,$Ae=(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 ZAe(e,t){for(var r=t._size,i=r.h/r.w,a={},n=Object.keys(e),o=0;ojAe*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=T0){let l=i[1]-i[0],u=l-s;u>0&&(o=l/(u/t+s))}e.domain=e._input.domain=[n+(i[0]-n)/o,n+(i[1]-n)/o],e.setScale()}});var _3=X(An=>{"use strict";var y3=Qr(),Po=mr(),Hs=bn(),Al=tt(),pD=cn(),mD=Xb(),_g=Vr(),E1=xi(),v$=Kv(),b$=uD(),xg=ra(),oh=(uo(),lt(lo)),w$=yg(),WAe=w$.enforce,XAe=w$.clean,g$=Qv().doAutoRange,A$="start",KAe="middle",T$="end",JAe=(xn(),lt(_n)).zindexSeparator;An.layoutStyles=function(e){return Al.syncOrAsync([Hs.doAutoMargin,eTe],e)};function QAe(e,t,r){for(var i=0;i=e[1]||a[1]<=e[0])&&n[0]t[0])return!0}return!1}function eTe(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),b$.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){aTe(e,n,u,l),s.attr({x:o,y:n,"text-anchor":i,dy:x$(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+v$.SUBTITLE_PADDING_EM*t.subtitle.font.size;f.attr({x:o,y:m,"text-anchor":i,dy:x$(t.yanchor)}).call(pD.positionText,o,m)}}}};function tTe(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=rTe(n,i,a,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function aTe(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"&&tTe(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 nTe(e,t){var r=e.title,i=e._size,a=0;return t===A$?a=r.pad.l:t===T$&&(a=-r.pad.r),r.xref==="paper"?i.l+i.w*r.x+a:e.width*r.x+a}function oTe(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 x$(e){return e==="top"?oh.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":oh.MID_SHIFT+"em"}function sTe(e){var t=e.title,r=KAe;return Al.isRightAnchor(t)?r=T$:Al.isLeftAnchor(t)&&(r=A$),r}function lTe(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 uTe=yf().readPaths,cTe=s3(),M$=of().clearOutlineControllers,vD=Vr(),D$=xi(),hTe=qi().arrayEditor,S$=bf(),fTe=S$.getPathString;k$.exports={draw:x3,drawOne:E$,activateLastSelection:mTe};function x3(e){var t=e._fullLayout;M$(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(D$.dashLine,g?"solid":d,g?4+f:f);if(dTe(y,e,i),p){var x=hTe(e.layout,"selections",i);y.style({cursor:"move"});var w={element:y.node(),plotinfo:a,gd:e,editHelpers:x,isActiveSelection:!0},_=uTe(s,e);cTe(_,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 pTe(e,A)})}}function dTe(e,t,r){var i=r.xref+r.yref;D$.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function pTe(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 mTe(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&&(M$(e),delete e._fullLayout._activeSelectionIndex,x3(e))}}});var F$=X((Ztt,C$)=>{function vTe(){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}C$.exports=vTe});var I$=X((Ytt,P$)=>{function gTe(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}P$.exports=gTe});var z$=X((Wtt,L$)=>{var yTe={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}};L$.exports=yTe});var B$=X((Xtt,R$)=>{var bg=z$();function _Te(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,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=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 G=q.seg.start,$=q.seg.end,H=V.seg.start,Z=V.seg.end;return t.pointsCollinear(G,H,Z)?t.pointsCollinear($,H,Z)||t.pointAboveOrOnLine($,H,Z)?1:-1:t.pointAboveOrOnLine(G,H,Z)?1:-1}function x(q){return g.findTransition(function(V){var G=y(q,V.ev);return G>0})}function w(q,V){var G=q.seg,$=V.seg,H=G.start,Z=G.end,Y=$.start,oe=$.end;r&&r.checkIntersection(G,$);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=w(A,M);if(V)return V}return S?w(A,S):!1};var L=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)&&w(B.prev.ev,B.next.ev),r&&r.statusRemove(B.ev.seg),B.remove(),!A.primary){var z=A.seg.myFill;A.seg.myFill=A.seg.otherFill,A.seg.otherFill=z}_.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 xTe(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(L,q,V){return c.index=L,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 bTe={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)}};N$.exports=bTe});var G$=X((Qtt,U$)=>{var wTe={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 ATe=F$(),TTe=I$(),j$=B$(),MTe=O$(),Ag=V$(),$$=G$(),Tl=!1,Tg=TTe(),ys;ys={buildLog:function(e){return e===!0?Tl=ATe():e===!1&&(Tl=!1),Tl===!1?!1:Tl.list},epsilon:function(e){return Tg.epsilon(e)},segments:function(e){var t=j$(!0,Tg,Tl);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=j$(!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:MTe(e.segments,Tg,Tl),inverted:e.inverted}},polygonFromGeoJSON:function(e){return $$.toPolygon(ys,e)},polygonToGeoJSON:function(e){return $$.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);H$.exports=ys});var W$=X((trt,Y$)=>{Y$.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((rrt,X$)=>{"use strict";var _D=xx().dot,w3=(Ji(),lt(ua)).BADNUM,A3=X$.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,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(_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 K$={};Yi(K$,{BENDPX:()=>DTe,MINSELECT:()=>STe,SELECTDELAY:()=>ETe,SELECTID:()=>kTe});var DTe,STe,ETe,kTe,J$=Gi(()=>{"use strict";DTe=1.5,STe=12,ETe=100,kTe="-select"});var xH=X((irt,_H)=>{"use strict";var Q$=Z$(),CTe=W$(),Eg=mr(),FTe=xi().dashStyle,Dg=Vr(),PTe=_u(),ITe=oc().makeEventData,Ig=dd(),LTe=Ig.freeMode,zTe=Ig.rectMode,kg=Ig.drawMode,AD=Ig.openMode,TD=Ig.selectMode,eH=bf(),tH=(pg(),lt(dg)),oH=s3(),sH=of().clearOutline,lH=yf(),xD=lH.handleEllipse,RTe=lH.readPaths,BTe=a3().newShapes,qTe=HM(),OTe=yD().activateLastSelection,D3=tt(),NTe=D3.sorterAsc,uH=T3(),Sg=zx(),Ml=un().getFromId,VTe=Xb(),UTe=_3().redrawReglTraces,S3=(J$(),lt(K$)),gc=S3.MINSELECT,GTe=uH.filter,MD=uH.tester,DD=e3(),rH=DD.p2r,jTe=DD.axValue,$Te=DD.getTransform;function SD(e){return e.subplot!==void 0}function HTe(e,t,r,i,a){var n=!SD(i),o=LTe(a),s=zTe(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(),w=i.plotinfo,_=$Te(w),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,z=i.xaxes[0],L=i.yaxes[0],q=z._length,V=L._length,G=e.altKey&&!(kg(a)&&l),$,H,Z,Y,oe,pe,De;hH(e,p,i),o&&($=GTe([[A,T]],S3.BENDPX));var ye=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)",J=de.line.color||(n?Dg.contrast(p._fullLayout.plot_bgcolor):"#7f7f7f");ye.enter().append("path").attr("class","select-outline select-outline-"+w.id).style({opacity:u?de.opacity/2:1,"stroke-dasharray":FTe(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=z._id,Ve=L._id;vH(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&&cH(Ve,p,i.xaxes,i.yaxes,i.subplot,i,ye),Me==="event"&&Pg(p,void 0);PTe.click(p,Ve,w.id)}).catch(D3.error)}},i.doneFn=function(){ue.remove(),Sg.done(te).then(function(){Sg.clear(te),!g&&Y&&i.selectionDefs&&(Y.subtract=G,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 cH(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(KTe(s)){hH(e,t,n),f=E3(t,r,i,a);var T=JTe(s,f),M=T.pointNumbers.length>0;if(M?QTe(f,T):e7e(f)&&(x=aH(T))){for(o&&o.remove(),A=0;A=0}function XTe(e){return e._fullLayout._activeSelectionIndex>=0}function Cg(e,t){var r=e.dragmode,i=e.plotinfo,a=e.gd;WTe(a)&&a._fullLayout._deactivateShape(a),XTe(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=BTe(u,e)),c&&Eg.call("_guiRelayout",a,{shapes:c});var h;l&&!SD(e)&&(h=qTe(u,e)),h&&(a._fullLayout._noEmitSelectedAtStart=!0,Eg.call("_guiRelayout",a,{selections:h}).then(function(){t&&OTe(a)})),a._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function iH(e){return e._id}function E3(e,t,r,i){if(!e.calcdata)return[];var a=[],n=t.map(iH),o=r.map(iH),s,l,u;for(u=0;u0,n=a?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(n)>-1:!1}function QTe(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=nH(e,!0);if(Re.length){var Ve=Re[0].xref,Me=Re[0].yref;if(Ve&&Me){var Pe=gH(Re),Fe=yH([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,i7e(s,l,c)||vH(e,s,l,i),ge&&(re.points.length?Pg(e,re):CD(e)),f._deselect=!1}return{eventData:re,selectionTesters:r}}function r7e(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";bH.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:()=>l7e});function l7e(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((ort,TH)=>{"use strict";var wH=FD(),AH=oo(),k3=(xn(),lt(_n)),u7e=qi().templatedArray,nrt=(zg(),lt(Lg));TH.exports=u7e("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:wH.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:wH.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:AH({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var C3={};Yi(C3,{PTS_LINESONLY:()=>c7e,eventDataKeys:()=>p7e,maxScreensAway:()=>d7e,minTolerance:()=>h7e,toleranceGrowth:()=>f7e});var c7e,h7e,f7e,d7e,p7e,F3=Gi(()=>{"use strict";c7e=20,h7e=.2,f7e=10,d7e=20,p7e=[]});var P3=X((srt,MH)=>{"use strict";MH.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var sh=X((lrt,IH)=>{"use strict";var DH=n8().axisHoverFormat,{hovertemplateAttrs:m7e,texttemplateAttrs:v7e,templatefallbackAttrs:SH}=rc(),EH=eh(),g7e=oo(),kH=Zc().dash,y7e=Zc().pattern,_7e=xi(),x7e=(F3(),lt(C3)),Rg=Ca().extendFlat,b7e=P3();function CH(e){return{valType:"any",dflt:0,editType:"calc"}}function FH(e){return{valType:"any",editType:"calc"}}function PH(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}IH.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:CH("x"),yperiod:CH("y"),xperiod0:FH("x0"),yperiod0:FH("y0"),xperiodalignment:PH("x"),yperiodalignment:PH("y"),xhoverformat:DH("x"),yhoverformat:DH("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:v7e(),texttemplatefallback:SH({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:m7e({},{keys:x7e.eventDataKeys}),hovertemplatefallback:SH(),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({},kH,{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:b7e(!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:y7e,marker:Rg({symbol:{valType:"enumerated",values:_7e.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({},kH,{arrayOk:!0}),editType:"calc"},EH("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"},EH("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:g7e({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var PD=X((crt,RH)=>{"use strict";var LH=k1(),zH=sh().line,w7e=Zc().dash,I3=Ca().extendFlat,A7e=qs().overrideAll,T7e=qi().templatedArray,urt=(zg(),lt(Lg));RH.exports=A7e(T7e("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:I3({},LH.xref,{}),yref:I3({},LH.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:zH.color,width:I3({},zH.width,{min:1,dflt:1}),dash:I3({},w7e,{dflt:"dot"})}}),"arraydraw","from-root")});var NH=X((hrt,OH)=>{"use strict";var BH=tt(),L3=ra(),M7e=_l(),D7e=PD(),qH=bf();OH.exports=function(t,r){M7e(t,r,{name:"selections",handleItemDefaults:S7e});for(var i=r.selections,a=0;a{"use strict";VH.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((drt,$H)=>{"use strict";var E7e=mr(),GH=tt(),jH=un();$H.exports=function(t){return function(i,a){var n=i[t];if(Array.isArray(n))for(var o=E7e.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 HH=yD(),qg=xH();ZH.exports={moduleType:"component",name:"selections",layoutAttributes:PD(),supplyLayoutDefaults:NH(),supplyDrawNewSelectionDefaults:UH(),includeBasePlot:Bg()("selections"),draw:HH.draw,drawOne:HH.drawOne,reselect:qg.reselect,prepSelect:qg.prepSelect,clearOutline:qg.clearOutline,clearSelectionsCache:qg.clearSelectionsCache,selectOnClick:qg.selectOnClick}});var dZ=X((mrt,fZ)=>{"use strict";var qD=Qr(),Dl=tt(),YH=Dl.numberFormat,k7e=pM(),z3=mr(),rZ=Dl.strTranslate,C7e=cn(),LD=Vr(),Af=xi(),F7e=_u(),WH=ra(),P7e=vf(),I7e=bl(),iZ=dd(),R3=iZ.selectingOrDrawing,L7e=iZ.freeMode,z7e=(uo(),lt(lo)).FROM_TL,R7e=Xb(),B7e=_3().redrawReglTraces,q7e=bn(),zD=un().getFromId,O7e=yc().prepSelect,N7e=yc().clearOutline,V7e=yc().selectOnClick,ID=cD(),OD=(xn(),lt(_n)),XH=OD.MINDRAG,Xo=OD.MINZOOM,KH=!0;function U7e(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,z,L,q,V,G;r+=t.yaxis._shift;function $(){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 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&&V7e(xe,je,m,g,t.id,Y),nt.indexOf("event")>-1&&F7e.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=G7e(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(C7e.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)})}}I7e.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"+w+"V"+_+"H0V0",ue=!1,me="xy",fe=!1,te=oZ(l,Ce,y,x,J),re=sZ(l,y,x)}function Re(ve,xe){if(e._transitioningWithDuration)return!1;var je=Math.max(0,Math.min(w,V*ve+De)),nt=Math.max(0,Math.min(_,G*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/w>pt/_?(pt=Qe*_/w,ye>nt?de.t=ye-pt:de.b=ye+pt):(Qe=pt*w/_,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/w,(_-de.b)/_),Ot=Math.max(de.r/w,(_-de.t)/_);de.l=yt*w,de.r=Ot*w,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 $7e(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function oZ(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",rZ(r,i)).attr("d",a+"Z")}function sZ(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",rZ(t,r)).attr("d","M0,0Z")}function lZ(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"),uZ(e,t,a,n)}function uZ(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 cZ(e){KH&&e.data&&e._context.showTips&&(Dl.notifier(Dl._(e,"Double-click to zoom back out"),"long",e),KH=!1)}function H7e(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 Z7e(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 eZ(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 Y7e=Qr(),q3=_u(),W7e=bl(),X7e=vf(),bu=dZ().makeDragBox,Tn=(xn(),lt(_n)).DRAGGERSIZE;O3.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Y7e.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=bu(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,W7e.unhover(t,f))},t._context.showAxisDragHandles&&(bu(t,o,s._offset-Tn,l._offset-Tn,Tn,Tn,"n","w"),bu(t,o,s._offset+s._length,l._offset-Tn,Tn,Tn,"n","e"),bu(t,o,s._offset-Tn,l._offset+l._length,Tn,Tn,"s","w"),bu(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),bu(t,o,s._offset+s._length*.1,c,s._length*.8,Tn,"","ew"),bu(t,o,s._offset,c,s._length*.1,Tn,"","w"),bu(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),bu(t,o,h,l._offset+l._length*.1,Tn,l._length*.8,"ns",""),bu(t,o,h,l._offset+l._length*.9,Tn,l._length*.1,"s",""),bu(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";X7e(t._draggers,r)}});var vZ=X((grt,mZ)=>{"use strict";var pZ=mr();mZ.exports=function(t){for(var r=pZ.layoutArrayContainers,i=pZ.layoutArrayRegexes,a=t.split("[")[0],n,o,s=0;s{"use strict";var K7e=$h(),VD=_x(),Og=Hc(),J7e=S7().sorterAsc,UD=mr();Ng.containerArrayMatch=vZ();var Q7e=Ng.isAddVal=function(t){return t==="add"||K7e(t)},gZ=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(gZ(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(J7e),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)){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),gZ(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),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!==VD){var z;if(w===-1)z=p;else{for(_=Math.max(g.length,_),z=[],A=0;A=w));A++)z.push(M);for(A=w;A<_;A++)z.push(A)}for(A=0;A{"use strict";var wZ=Nr(),AZ=mr(),Io=tt(),Vg=bn(),TZ=un(),Ug=TZ.cleanId,e8e=TZ.getFromTrace,GD=AZ.traceIs,t8e=["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=bZ(t);r;){if(r in e)return!0;r=bZ(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(),a8e=Nr(),n8e=N7(),Ct=tt(),ji=Ct.nestedProperty,HD=Uv(),Ko=mO(),El=mr(),K3=n1(),dr=bn(),Lo=ra(),o8e=dM(),s8e=vu(),U3=xi(),l8e=Vr(),u8e=ND().initInteractions,c8e=(lf(),lt(sf)),h8e=yc().clearOutline,CZ=Yh().dfltConfig,V3=yZ(),ja=MZ(),bi=_3(),Tf=qs(),f8e=(xn(),lt(_n)).AX_NAME_PATTERN,$D=0,DZ=5;function d8e(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)}PZ(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)&&(B8e(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,z=e.offsetHeight,L=Math.abs(B-k)>1||Math.abs(z-P)>1;k=B,P=z,L&&B&&z&&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 m8e(e){return Ct.extendFlat(CZ,e)}function FZ(e,t){try{e._fullLayout._paper.style("background",t)}catch(r){Ct.error(r)}}function v8e(e,t){var r=l8e.combine(t,"white");FZ(e,r)}function PZ(e,t){if(!e._context){e._context=Ct.extendDeep({},CZ);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 IZ(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 _8e(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],z=S.parts[I-1]+"."+B,L=S.parts.slice(0,I).join("."),q=ji(e.layout,L).get(),V=ji(i,L).get(),G=S.get();if(k!==void 0){y[M]=k,x[M]=B==="reverse"?k:lh(G);var $=K3.getLayoutValObject(i,S.parts);if($&&$.impliedEdits&&k!==null)for(var H in $.impliedEdits)w(Ct.relativeAttr(M,H),$.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(z.match(UZ))T(z),ji(i,L+"._inputRange").set(null);else if(z.match(GZ)){T(z),ji(i,L+"._inputRange").set(null);var Y=ji(i,L).get();Y._inputDomain&&(Y._input.domain=Y._inputDomain.slice())}else z.match(A8e)&&ji(i,L+"._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)w(L+".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&&w(L+".autorange",!0),De<=0?De=ye/1e6:ye<=0&&(ye=De/1e6),w(L+".range[0]",Math.log(De)/Math.LN10),w(L+".range[1]",Math.log(ye)/Math.LN10)):(w(L+".range[0]",Math.pow(10,De)),w(L+".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,w),El.getComponentMethod("images","convertCoords")(e,V,k,w)}else w(L+".autorange",!0),w(L+".range",null);ji(i,L+"._inputRange").set(null)}else if(B.match(f8e)){var de=ji(i,M).get(),Ce=(k||{}).type;(!Ce||Ce==="-")&&(Ce="linear"),El.getComponentMethod("annotations","convertCoords")(e,de,Ce,w),El.getComponentMethod("images","convertCoords")(e,de,Ce,w),!L&&de&&k&&(k.range!==void 0||k.autorange!==void 0)&&(T(`${B}.range`),de._inputRange=null)}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():(w(L+".autorange",!0),q.range=[1,0]),V.autorange?g.calc=!0:g.plot=!0):(M==="dragmode"&&(k===!1&&G!==!1||k!==!1&&G===!1)||i._has("scatter-like")&&i._has("regl")&&M==="dragmode"&&(k==="lasso"||k==="select")&&!(G==="lasso"||G==="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)}}($Z(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 D8e(e,t){for(var r=0;r[L,e._ev.listeners(L)]);n=Wr.newPlot(e,t,r,i).then(()=>{for(let[L,q]of z)q.forEach(V=>e.on(L,V));return Wr.react(e,t,r,i)})}else{e.data=t||[],ja.cleanData(e.data),e.layout=r||{},ja.cleanLayout(e.layout),E8e(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=F8e(e,l,f,d,p),g=m.newDataRevision,y=C8e(e,s,h,d,p,g);if($Z(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 C8e(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 z=0;zi._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&&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++)w=_[x],(_[x].type!=="byname"||x>P)&&I.push(w);_=I}}_.length>0?f(_):(e.emit("plotly_animated"),u())})}function I8e(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 z8e(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 R8e(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 B8e(e){var t=j3.select(e),r=e._fullLayout;if(r._calcInverseTransform=R8e,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(c8e.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=P8e;Wr.addFrames=I8e;Wr.deleteFrames=L8e;Wr.addTraces=qZ;Wr.deleteTraces=OZ;Wr.extendTraces=RZ;Wr.moveTraces=ZD;Wr.prependTraces=BZ;Wr.newPlot=y8e;Wr._doPlot=d8e;Wr.purge=z8e;Wr.react=k8e;Wr.redraw=g8e;Wr.relayout=Gg;Wr.restyle=Z3;Wr.setPlotConfig=m8e;Wr.update=W3;Wr._guiRelayout=YD(Gg);Wr._guiRestyle=YD(Z3);Wr._guiUpdate=YD(W3);Wr._storeDirectGUIEdit=w8e});var yd=X(kl=>{"use strict";var q8e=mr();kl.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};kl.getRedrawFunc=function(e){return function(){q8e.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 HZ=window.URL||window.webkitURL;kl.createObjectURL=function(e){return HZ.createObjectURL(e)};kl.revokeObjectURL=function(e){return HZ.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=O8e(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 O8e(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),a=0;a{"use strict";var KD=Qr(),Art=tt(),N8e=xi(),V8e=Vr(),Trt=(lf(),lt(sf)),XD=/"/g,_d="TOBESTRIPPED",U8e=new RegExp(`("${_d})|(${_d}")|("${_d})|(${_d}")`,"g"),G8e=["&","&","&",""",""",""","'","'","'"],j8e=["<","<","<"],$8e=[">",">",">"];function H8e(e){let t=KD.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,i=>{let a=i.toLowerCase();return G8e.includes(a)?i:j8e.includes(a)?"<":$8e.includes(a)?">":i.includes("<")||i.includes(">")?"":t.html(i).text()});return t.remove(),r}function Z8e(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}ZZ.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(N8e.setRect,0,0,s,l).call(V8e.fill,a.paper_bgcolor);var c=a._basePlotModules||[];for(u=0;u{"use strict";var Y8e=tt(),W8e=Gx().EventEmitter,$g=yd();function X8e(e){var t=e.emitter||new W8e,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"||Y8e.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 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,$g.revokeObjectURL(y),a(x),!e.promise)return t.emit("error",x)},m.src=y});return e.promise?r:t}YZ.exports=X8e});var QD=X((Srt,KZ)=>{"use strict";var WZ=Nr(),XZ=WD(),K8e=bn(),_c=tt(),Hg=yd(),J8e=Q3(),Q8e=e5(),eMe=lv().version,JD=(n7(),lt(a7)).default;function tMe(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&&WZ(n.width)&&(g.width=n.width),h?g.height=h:t.height===null&&WZ(n.height)&&(g.height=n.height);var y=_c.extendFlat({},a,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),x=Hg.getRedrawFunc(m);function w(){return new Promise(function(T){setTimeout(T,Hg.getDelay(m._fullLayout))})}function _(){return new Promise(function(T,M){var S=J8e(m,u,f),k=m._fullLayout.width,P=m._fullLayout.height;function I(){XZ.purge(m),document.body.removeChild(m)}if(u==="full-json"){var B=K8e.graphJson(m,!1,"object",!0,!0);return B.version=eMe,B=JSON.stringify(B),I(),T(p?B:Hg.encodeJSON(B))}if(I(),u==="svg")return T(p?S:Hg.encodeSVG(S));var z=document.createElement("canvas");z.id=_c.randstr(),Q8e({format:u,width:k,height:P,scale:f,canvas:z,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){XZ.newPlot(m,r,g,y).then(x).then(w).then(_).then(function(S){T(A(S))}).catch(function(S){M(S)})})}KZ.exports=tMe});var eY=X((Ert,QZ)=>{"use strict";var Cl=tt(),rMe=bn(),iMe=n1(),aMe=Yh().dfltConfig,wu=Cl.isPlainObject,bd=Array.isArray,eS=Cl.isArrayOrTypedArray;QZ.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=iMe.get(),a=[],n={_context:Cl.extendFlat({},aMe)},o,s;bd(t)?(n.data=Cl.extendDeep([],t),o=t):(n.data=[],o=[],a.push(Mn("array","data"))),wu(r)?(n.layout=Cl.extendDeep({},r),s=r):(n.layout={},s={},arguments.length>1&&a.push(Mn("object","layout"))),rMe.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 w,_,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(w=0;w<(x?Math.min(S,g[_].length):S);w++)A=x?g[_][w]:g,T=c[_][w],M=h[_][w],Cl.validate(T,A)?M!==T&&M!==+T&&i.push(Mn("dynamic",a,u.concat(_,w),T,M)):i.push(Mn("value",a,u.concat(_,w),T))}else i.push(Mn("array",a,u.concat(_),c[_]));else for(_=0;_{"use strict";var hMe=tt(),r5=yd();function fMe(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(hMe.isSafari()){var c=r==="svg"?",":";base64,";return r5.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return n}tY.exports=fMe});var tS=X((Crt,oY)=>{"use strict";var i5=tt(),iY=cn(),dMe=QD(),pMe=rY(),aY=yd(),nY=40;function mMe(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=dMe(e,t),o=t.filename||e.fn;if(!o){let l=aY.getPlotTitle(e);if(l&&!iY.matchTex(l))o=i5.slugify(l,nY);else{let u=aY.getPlotSubtitle(e);u&&!iY.matchTex(u)&&(o=i5.slugify(u,nY))}}var s=o||"plot-image";s+="."+t.format.replace("-","."),n.then(function(l){return r&&(r._snapshotInProgress=!1),pMe(l,s,t.format)}).then(function(l){i(l)}).catch(function(l){r&&(r._snapshotInProgress=!1),a(l)})})}oY.exports=mMe});var hY=X(rS=>{"use strict";var _s=tt(),xs=_s.isPlainObject,sY=n1(),lY=bn(),vMe=Wo(),uY=qi(),cY=Yh().dfltConfig;rS.makeTemplate=function(e){e=_s.isPlainObject(e)?e:_s.getGraphDiv(e),e=_s.extendDeep({_context:cY},{data:e.data,layout:e.layout}),lY.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,yMe.bind(null,d));var m=_s.coerce(d,{},vMe,"type"),g=i.data[m];g||(g=i.data[m]=[]),g.push(p)}),Zg(r,i.layout,gMe.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(w,_){for(var A in w)if(A.charAt(0)!=="_"){var T=w[A],M=Fl(w,A,_);xs(T)?(Array.isArray(w)&&T._template===!1&&T.templateitemname&&o.push({code:"missing",path:M,templateitemname:T.templateitemname}),x(T,M)):Array.isArray(T)&&_Me(T)&&x(T,M)}}if(x({data:l,layout:s},""),o.length)return o.map(xMe)};function _Me(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 bMe=Lv().getGraphDiv,wMe=f3().eraseActiveShape;aa.deleteActiveShape=function(e){return wMe(bMe(e))};aa.toImage=QD();aa.validate=eY();aa.downloadImage=tS();var fY=hY();aa.makeTemplate=fY.makeTemplate;aa.validateTemplate=fY.validateTemplate});var mY=X((Irt,pY)=>{"use strict";var iS=tt(),AMe=mr();pY.exports=function(t,r,i,a){var n=a("x"),o=a("y"),s,l=AMe.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 _Y=X((Lrt,yY)=>{"use strict";var vY=tt().dateTick0,TMe=(Ji(),lt(ua)),MMe=TMe.ONEWEEK;function gY(e,t){return e%MMe===0?vY(t,1):vY(t,0)}yY.exports=function(t,r,i,a,n){if(n||(n={x:!0,y:!0}),n.x){var o=a("xperiod");o&&(a("xperiod0",gY(o,r.xcalendar)),a("xperiodalignment"))}if(n.y){var s=a("yperiod");s&&(a("yperiod0",gY(s,r.ycalendar)),a("yperiodalignment"))}}});var wY=X((zrt,bY)=>{"use strict";var xY=["orientation","groupnorm","stackgaps"];bY.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 AY=Vr(),TY=ac().hasColorscale,MY=Q0(),DMe=So();DY.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),TY(t,"marker")&&MY(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=AY.background:u=AY.defaultLine,n("marker.line.color",u),TY(t,"marker.line")&&MY(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((Brt,SY)=>{"use strict";var SMe=tt().isArrayOrTypedArray,EMe=ac().hasColorscale,kMe=Q0();SY.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),EMe(t,"line"))kMe(t,r,a,n,{prefix:"line.",cLetter:"c"});else{var l=(SMe(s)?!1:s)||i;n("line.color",l)}n("line.width"),o.noDash||n("line.dash"),o.backoff&&n("line.backoff")}});var kY=X((qrt,EY)=>{"use strict";EY.exports=function(t,r,i){var a=i("line.shape");a==="spline"&&i("line.smoothing")}});var oS=X((Ort,CY)=>{"use strict";var CMe=tt();CY.exports=function(e,t,r,i,a){a=a||{},i("textposition"),CMe.coerceFont(i,"textfont",a.font||r.font,a),a.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var sS=X((Nrt,PY)=>{"use strict";var o5=Vr(),FY=tt().isArrayOrTypedArray;function FMe(e){for(var t=o5.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var IY=tt(),PMe=mr(),IMe=sh(),LMe=(F3(),lt(C3)),F1=So(),zMe=mY(),RMe=_Y(),BMe=wY(),qMe=aS(),OMe=nS(),LY=kY(),NMe=oS(),VMe=sS(),UMe=tt().coercePattern;zY.exports=function(t,r,i,a){function n(d,p){return IY.coerce(t,r,IMe,d,p)}var o=zMe(t,r,a,n);if(o||(r.visible=!1),!!r.visible){RMe(t,r,a,n),n("xhoverformat"),n("yhoverformat"),n("zorder");var s=BMe(t,r,a,n);a.scattermode==="group"&&r.orientation===void 0&&n("orientation","v");var l=!s&&o{"use strict";var GMe=yg().getAxisGroup;BY.exports=function(t,r,i,a,n){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=GMe(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 NY=X((Grt,OY)=>{"use strict";var jMe=tt(),$Me=qY(),HMe=sh();OY.exports=function(t,r){var i,a,n,o=r.scattermode;function s(f){return jMe.coerce(a._input,a,HMe,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 UY=X((jrt,VY)=>{"use strict";var ZMe=tt(),YMe=Yx();VY.exports=function(e,t){function r(a,n){return ZMe.coerce(e,t,YMe,a,n)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var $Y=X(($rt,jY)=>{"use strict";var WMe=Nr(),GY=tt(),XMe=GY.dateTime2ms,s5=GY.incrementMonth,KMe=(Ji(),lt(ua)),JMe=KMe.ONEAVGMONTH;jY.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(WMe(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=XMe(f,u)||0,p=[],m=[],g=[],y=a.length,x=0;xw;)T=s5(T,-s,u);for(;T<=w;)T=s5(T,s,u);A=s5(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 cS=X((Hrt,ZY)=>{"use strict";var lS=ac().hasColorscale,uS=Zv(),HY=So();ZY.exports=function(t,r){HY.hasLines(r)&&lS(r,"line")&&uS(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),HY.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((Zrt,YY)=>{"use strict";var Da=tt();YY.exports=function(t,r){for(var i=0;i{"use strict";var WY=tt();XY.exports=function(t,r){WY.isArrayOrTypedArray(r.selectedpoints)&&WY.tagSelected(t,r)}});var mS=X((Wrt,iW)=>{"use strict";var KY=Nr(),fS=tt(),Wg=ra(),JY=$Y(),hS=(Ji(),lt(ua)).BADNUM,dS=So(),QMe=cS(),eDe=Yg(),tDe=l5();function rDe(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=JY(t,i,"x",n),l=JY(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,w,_,A;tW(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=eW(t,h);QY(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";aW.exports=u5;var iDe=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;naDe,eventDataKeys:()=>nDe});var aDe,nDe,sW=Gi(()=>{"use strict";aDe=3,nDe=["value","label"]});var fW=X((Krt,hW)=>{"use strict";var Pl=Nr(),{isArrayOrTypedArray:uh}=tt(),{BADNUM:P1}=(Ji(),lt(ua)),oDe=mr(),Xg=ra(),{getAxisGroup:sDe}=yg(),c5=nW(),{TEXTPAD:lDe}=(sW(),lt(oW)),{LINE_SPACING:uDe}=(uo(),lt(lo)),{BR_TAG_ALL:cDe}=cn();function hDe(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*uDe*r+lDe;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 bDe(e,t,r,i){for(var a=I1(i),n=0;n{"use strict";var dW=mS(),pW=fW().setGroupPositions;function ADe(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 MDe=xi(),xW=(Ji(),lt(ua)),Kg=xW.BADNUM,bW=xW.LOG_CLIP,gW=bW+.5,yW=bW-.5,h5=tt(),DDe=h5.segmentsIntersect,_W=h5.constrain,wS=(F3(),lt(C3));wW.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,w=t.length,_=new Array(w),A=0,T,M,S,k,P,I,B,z,L,q,V,G,$,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?gW:yW)/(n._m*l*(n._m>0?gW:yW)))),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[_W(We[0],ue,me),_W(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,$=L[0]*z[0]+L[1]*z[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 TW={tonextx:1,tonexty:1,tonext:1};MW.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 Au=Qr(),SDe=mr(),Jg=tt(),L1=Jg.ensureSingle,EW=Jg.identity,Pa=xi(),z1=So(),EDe=AW(),kDe=DW(),f5=T3().tester;kW.exports=function(t,r,i,a,n,o){var s,l,u=!n,c=!!n&&n.duration>0,h=kDe(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(),CDe(t,s,r),c){o&&(l=o());var f=Au.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){SW(t,p,r,d,h,this,n)})})}else s.each(function(d,p){SW(t,p,r,d,h,this,n)});u&&s.exit().remove(),a.selectAll("path:not([d])").remove()};function CDe(e,t,r){t.each(function(i){var a=L1(Au.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,EW);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){n[l]=L1(Au.select(this),"path","js-fill")})})}function SW(e,t,r,i,a,n,o){var s=e._context.staticPlot,l;FDe(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=Au.select(n),g=L1(m,"g","errorbars"),y=L1(m,"g","lines"),x=L1(m,"g","points"),w=L1(m,"g","text");if(SDe.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,z=null;I&&(k=I._prevRevpath||"",A=I._nextFill,P=I._ownPolygons,B=I._fillsegments,z=I._fillElement);var L,q,V="",G="",$,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=EDe(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";FW.exports={container:"marker",min:"cmin",max:"cmax"}});var IW=X((iit,PW)=>{"use strict";var d5=ra();PW.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((ait,LW)=>{"use strict";var TS=Qr(),R1=xi(),PDe=mr();function IDe(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),PDe.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 LDe(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))}LW.exports={style:IDe,stylePoints:MS,styleText:DS,styleOnSelect:LDe}});var ES=X((nit,zW)=>{"use strict";var B1=Vr(),zDe=So();zW.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)&&zDe.hasLines(t)&&t.line.width?i:t.fillcolor)}});var qW=X((oit,BW)=>{"use strict";var p5=tt(),RW=_u(),RDe=mr(),BDe=ES(),kS=Vr(),qDe=p5.fillText;BW.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(G){if(p){var $=s.c2p(G.xStart),H=s.c2p(G.xEnd);return u>=Math.min($,H)&&u<=Math.max($,H)?0:1/0}var Z=Math.max(3,G.mrc||0),Y=1-1/Z,oe=Math.abs(s.c2p(G.x)-u);return oe=Math.min($,H)&&c<=Math.max($,H)?0:1/0}var Z=Math.max(3,G.mrc||0),Y=1-1/Z,oe=Math.abs(l.c2p(G.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 L=B(o._fillElement)&&!B(o._fillExclusionElement);if(L){var q=z(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 VW=X((sit,NW)=>{"use strict";var OW=So();NW.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&&!OW.hasMarkers(s)&&!OW.hasText(s);if(f)return[];if(r===!1)for(l=0;l{"use strict";UW.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var ZW=X((uit,HW)=>{"use strict";var m5=mr().traceIs,CS=$8();HW.exports=function(t,r,i,a){i("autotypenumbers",a.autotypenumbersDflt);var n=i("type",(a.splomStash||{}).type);n==="-"&&(ODe(r,a.data),r.type==="-"?r.type="linear":t.type=r.type)};function ODe(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),a;r.indexOf("scene")!==-1&&(r=i);var n=NDe(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,$W(n,i)){var u=jW(n),c=[];for(a=0;a0&&(a["_"+r+"axes"]||{})[t])return a;if((a[r+"axis"]||r)===t){if($W(a,r))return a;if((a[r]||[]).length||a[r+"0"])return a}}}function jW(e){return{v:"x",h:"y"}[e.orientation||"v"]}function $W(e,t){var r=jW(e),i=m5(e,"box-violin");return i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var WW=X((cit,YW)=>{"use strict";var VDe=hs().isTypedArraySpec;function UDe(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||VDe(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=UDe(r,a).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var JW=X((hit,KW)=>{"use strict";var XW=Vr(),GDe=tc(),jDe=tt();KW.exports=function(t,r,i,a){a=a||{};var n=a.dfltColor;function o(S,k){return jDe.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=XW.mix(n,a.bgColor,a.blend||GDe.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=XW.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 PS=X((fit,aX)=>{"use strict";var QW=Nr(),$De=mr(),Qg=tt(),HDe=qi(),ZDe=_l(),FS=vu(),eX=m8(),tX=g8(),YDe=x8(),WDe=b8(),XDe=WW(),KDe=JW(),JDe=dM(),rX=yb(),v5=(xn(),lt(_n)).WEEKDAY_PATTERN,QDe=(xn(),lt(_n)).HOUR_PATTERN;aX.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=$De.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"),rX(r,n),JDe(t,r,i,a),XDe(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(WDe(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}}),eX(t,r,i,h);var x=a.hasMinor;if(x&&(HDe.newContainer(r,"minor"),eX(t,r,i,h,{isMinor:!0})),YDe(t,r,i,h,a),tX(t,r,i,a),x){var w=a.isMinor;a.isMinor=!0,tX(t,r,i,a),a.isMinor=w}KDe(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(ZDe(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:eSe}),!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=iX(n[s]),l){o=v5;break}}var u=i("pattern",o);if(u===v5)for(s=0;s<2;s++)l=iX(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(!QW(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 QDe:if(!QW(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 rSe=Nr(),g5=tt();nX.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||(rSe(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 w=!1;if(o.length&&(w=g5.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),g5.noneOrAll(t.domain,r.domain,h),s==="x"?(i("domainpad.left"),i("domainpad.right")):(i("domainpad.top"),i("domainpad.bottom")),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var pX=X((pit,dX)=>{"use strict";var wd=tt(),oX=Vr(),iSe=oc().isUnifiedHover,aSe=UM(),sX=qi(),nSe=Wp(),lX=vu(),oSe=ZW(),uX=PS(),sSe=yg(),cX=IS(),zS=un(),xc=zS.id2name,hX=zS.name2id,lSe=(xn(),lt(_n)).AX_ID_PATTERN,fX=mr(),y5=fX.traceIs,LS=fX.getComponentMethod;function _5(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}dX.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 uSe=Qr(),mX=mr(),x5=tt(),Zs=xi(),b5=ra();vX.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 w=g.plot.selectAll(".scatterlayer .trace");w.selectAll(".point").call(Zs.setPointGroupScale,1,1),w.selectAll(".textpoint").call(Zs.setTextPointsScale,1,1),w.call(Zs.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=x5.simpleMap(g.xr0,w.r2l),I=x5.simpleMap(g.xr1,w.r2l),B=P[1]-P[0],z=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*z/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 L=x5.simpleMap(g.yr0,_.r2l),q=x5.simpleMap(g.yr1,_.r2l),V=L[1]-L[0],G=q[1]-q[0];k[1]=(L[1]*(1-y)+y*q[1]-L[1])/(L[0]-L[1])*T,k[3]=T*(1-y+y*G/V),_.range[0]=w.l2r(L[0]*(1-y)+y*q[0]),_.range[1]=_.l2r(L[1]*(1-y)+y*q[1])}else k[1]=0,k[3]=T;b5.drawOne(t,w,{skipTitle:!0}),b5.drawOne(t,_,{skipTitle:!0}),b5.redrawComponents(t,[w._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=w._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(),yX=mr(),Ad=tt(),cSe=bn(),hSe=xi(),_X=Kx().getModuleCalcData,Mf=un(),Tu=(xn(),lt(_n)),fSe=(lf(),lt(sf)),ui=Ad.ensureSingle;function w5(e,t,r){return Ad.ensureSingle(e,t,r,function(i){i.datum(r)})}var Td=Tu.zindexSeparator;ho.name="cartesian";ho.attr=["xaxis","yaxis"];ho.idRoot=["x","y"];ho.idRegex=Tu.idRegex;ho.attrRegex=Tu.attrRegex;ho.attributes=GW();ho.layoutAttributes=vu();ho.supplyLayoutDefaults=pX();ho.transitionAxes=gX();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+_),w.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 wX(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=A5.select(this);c.remove(),AX(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();TX.exports={hasLines:T5.hasLines,hasMarkers:T5.hasMarkers,hasText:T5.hasText,isBubble:T5.isBubble,attributes:sh(),layoutAttributes:Yx(),supplyDefaults:RY(),crossTraceDefaults:NY(),supplyLayoutDefaults:UY(),calc:mS().calc,crossTraceCalc:vW(),arraysToCalcdata:Yg(),plot:CW(),colorbar:AS(),formatLabels:IW(),style:SS().style,styleOnSelect:SS().styleOnSelect,hoverPoints:qW(),selectPoints:VW(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:RS(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var EX=X((yit,SX)=>{"use strict";var pSe=Qr(),mSe=Vr(),DX=FD(),BS=tt(),vSe=BS.strScale,gSe=BS.strRotate,ySe=BS.strTranslate;SX.exports=function(t,r,i){var a=t.node(),n=DX[i.arrowhead||0],o=DX[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)){L();return}if(h){if(h*h>y*y+x*x){L();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){L();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 kX=Qr(),qS=mr(),_Se=bn(),Sf=tt(),OS=Sf.strTranslate,ty=ra(),Md=Vr(),ch=xi(),CX=_u(),NS=cn(),VS=vf(),ey=bl(),xSe=qi().arrayEditor,bSe=EX();IX.exports={draw:wSe,drawOne:FX,drawRaw:PX};function wSe(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)}z.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)),w.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(bSe(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)),w.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=w.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))}w.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(G).on("edit",function(H){t.text=H,this.call(G),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(G)}});var OX=X((xit,qX)=>{"use strict";var LX=tt(),ASe=mr(),zX=qi().arrayEditor;qX.exports={hasClickToShow:TSe,onClick:MSe};function TSe(e,t){var r=BX(e,t);return r.on.length>0||r.explicitOff.length>0}function MSe(e,t){var r=BX(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();NX.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 UX=X((wit,VX)=>{"use strict";var jS=tt(),Dd=ra(),DSe=_l(),SSe=GS(),ESe=k1();VX.exports=function(t,r){DSe(t,r,{name:"annotations",handleItemDefaults:kSe})};function kSe(e,t,r){function i(w,_){return jS.coerce(e,t,ESe,w,_)}var a=i("visible"),n=i("clicktoshow");if(a||n){SSe(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 $X=X((Ait,jX)=>{"use strict";var $S=tt(),Sd=ra(),CSe=M5().draw;jX.exports=function(t){var r=t._fullLayout,i=$S.filterVisible(r.annotations);if(i.length&&t._fullData.length)return $S.syncOrAsync([CSe,FSe],t)};function FSe(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"&&GX(r,i),o==="range"&&GX(r,a)})}function GX(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}),w=Sd.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=Sd.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,f,m),ppadminus:Math.max(u,d,g)});e._extremes[r]=y}});var ZX=X((Tit,HX)=>{"use strict";var PSe=Nr(),ISe=V_();HX.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=ISe(p,r.range):m=Math.pow(10,p),PSe(m)||(m=null),a(c+d,m)}for(var f=0;f{"use strict";var HS=M5(),YX=OX();WX.exports={moduleType:"component",name:"annotations",layoutAttributes:k1(),supplyLayoutDefaults:UX(),includeBasePlot:Bg()("annotations"),calcAutorange:$X(),draw:HS.draw,drawOne:HS.drawOne,drawRaw:HS.drawRaw,hasClickToShow:YX.hasClickToShow,onClick:YX.onClick,convertCoords:ZX()}});var D5=X((Dit,KX)=>{"use strict";var $i=k1(),LSe=qs().overrideAll,zSe=qi().templatedArray;KX.exports=LSe(zSe("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 QX=X((Sit,JX)=>{"use strict";var ZS=tt(),RSe=ra(),BSe=_l(),qSe=GS(),OSe=D5();JX.exports=function(t,r,i){BSe(t,r,{name:"annotations",handleItemDefaults:NSe,fullLayout:i.fullLayout})};function NSe(e,t,r,i){function a(s,l){return ZS.coerce(e,t,OSe,s,l)}function n(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],RSe.coercePosition(t,u,a,s,s,.5)}var o=a("visible");o&&(qSe(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 iK=X((Eit,rK)=>{"use strict";var eK=tt(),tK=ra();rK.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 USe(e,t){var r=YS(e.projection,YS(e.view,YS(e.model,[t[0],t[1],t[2],1])));return r}aK.exports=USe});var sK=X((Cit,oK)=>{"use strict";var GSe=M5().drawRaw,jSe=nK(),$Se=["x","y","z"];oK.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=jSe(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*i[0],r.yaxis.r2l(o.y)*i[1],r.zaxis.r2l(o.z)*i[2]]),GSe(t.graphDiv,o,n,t.id,o._xa,o._ya))}}});var cK=X((Fit,uK)=>{"use strict";var HSe=mr(),lK=tt();uK.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:D5()}}},layoutAttributes:D5(),handleDefaults:QX(),includeBasePlot:ZSe,convert:iK(),draw:sK()};function ZSe(e,t){var r=HSe.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,a=Object.keys(e),n=0;n{"use strict";var Pit=(xn(),lt(_n)),hK=oo(),fK=sh().line,YSe=Zc().dash,Mu=Ca().extendFlat,WSe=qi().templatedArray,Iit=(zg(),lt(Lg)),O1=Wo(),dK=k1(),{shapeTexttemplateAttrs:XSe,templatefallbackAttrs:KSe}=rc(),JSe=Ax();pK.exports=WSe("shape",{visible:Mu({},O1.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Mu({},O1.legend,{editType:"calc+arraydraw"}),legendgroup:Mu({},O1.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Mu({},O1.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:hK({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Mu({},O1.legendrank,{editType:"calc+arraydraw"}),legendwidth:Mu({},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:Mu({},dK.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:Mu({},dK.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:Mu({},fK.color,{editType:"arraydraw"}),width:Mu({},fK.width,{editType:"calc+arraydraw"}),dash:Mu({},YSe,{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:XSe({},{keys:Object.keys(JSe)}),texttemplatefallback:KSe({editType:"arraydraw"}),font:hK({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 vK=X((zit,mK)=>{"use strict";var N1=tt(),Ys=ra(),QSe=_l(),e9e=WS(),ry=bf();mK.exports=function(t,r){QSe(t,r,{name:"shapes",handleItemDefaults:r9e})};function t9e(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function r9e(e,t,r){function i(w,_){return N1.coerce(e,t,e9e,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"),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(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 z=ry.countDefiningCoords(l,o,w);P=Ys.coerceRefArray(e,t,T,w,void 0,"paper",z),t["_"+w+"refArray"]=!0}else P=Ys.coerceRef(e,t,T,w,void 0,"paper");if(Array.isArray(P))P.forEach(function(z){Ys.getRefType(z)==="range"&&(M=Ys.getFromId(T,z),M&&M._shapeIndices.indexOf(t._index)===-1&&M._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(z){let L=P[z];Ys.getRefType(L)==="range"?(M=Ys.getFromId(T,L),S=ry.shapePositionToRange(M),k=ry.rangeToShapePosition(M),(M.type==="category"||M.type==="multicategory")&&i(w+z+"shift")):S=k=N1.identity;let V=w+z,G=e[V];if(e[V]=S(e[V],!0),A==="pixel"?i(V,p[z]):Ys.coercePosition(t,T,i,L,V,d[z]),t[V]=k(t[V]),e[V]=G,z===0&&A==="pixel"){let $=e[_];e[_]=S(e[_],!0),Ys.coercePosition(t,T,i,L,_,.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(w+"0shift"),i(w+"1shift"))):S=k=N1.identity,u){let L=w+"0",q=w+"1",V=e[L],G=e[q];e[L]=S(e[L],!0),e[q]=S(e[q],!0),A==="pixel"?(i(L,p[0]),i(q,p[1])):(Ys.coercePosition(t,T,i,P,L,d[0]),Ys.coercePosition(t,T,i,P,q,d[1])),t[L]=k(t[L]),t[q]=k(t[q]),e[L]=V,e[q]=G}if(A==="pixel"){let L=e[_];e[_]=S(e[_],!0),Ys.coercePosition(t,T,i,P,_,.25),t[_]=k(t[_]),e[_]=L}}}),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",t9e(m,x)),i("label.padding"),N1.coerceFont(i,"label.font",r.font)}}});var _K=X((Rit,yK)=>{"use strict";var i9e=Vr(),gK=tt();function a9e(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}yK.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"),gK.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",i9e.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",a9e(o,u)),i("newshape.label.padding"),gK.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var DK=X((Bit,MK)=>{"use strict";var XS=tt(),Il=ra(),bc=(pg(),lt(dg)),KS=bf();MK.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,bK(n))})}else n.xref!=="paper"&&l!=="domain"&&(o=Il.getFromId(t,n.xref),s=AK(o,n,bc.paramIsX),s&&(n._extremes[o._id]=Il.findExtremes(o,s,bK(n))));if(u==="array"){let c=xK(t,n,"y");Object.entries(c).forEach(([h,f])=>{o=Il.getFromId(t,h),n._extremes[o._id]=Il.findExtremes(o,f,wK(n))})}else n.yref!=="paper"&&u!=="domain"&&(o=Il.getFromId(t,n.yref),s=AK(o,n,bc.paramIsY),s&&(n._extremes[o._id]=Il.findExtremes(o,s,wK(n))))}};function xK(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 bK(e){return TK(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function wK(e){return TK(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function TK(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 AK(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 kK=X((qit,EK)=>{"use strict";var SK=f3();EK.exports={moduleType:"component",name:"shapes",layoutAttributes:WS(),supplyLayoutDefaults:vK(),supplyDrawNewShapeDefaults:_K(),includeBasePlot:Bg()("shapes"),calcAutorange:DK(),draw:SK.draw,drawOne:SK.drawOne}});var JS=X((Nit,FK)=>{"use strict";var CK=(xn(),lt(_n)),n9e=qi().templatedArray,Oit=(zg(),lt(Lg));FK.exports=n9e("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",CK.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",CK.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var IK=X((Vit,PK)=>{"use strict";var o9e=tt(),QS=ra(),s9e=_l(),l9e=JS(),u9e="images";PK.exports=function(t,r){var i={name:u9e,handleItemDefaults:c9e};s9e(t,r,i)};function c9e(e,t,r){function i(f,d){return o9e.coerce(e,t,l9e,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 BK=X((Uit,RK)=>{"use strict";var LK=Qr(),h9e=xi(),V1=ra(),zK=un(),f9e=(lf(),lt(sf));RK.exports=function(t){var r=t._fullLayout,i=[],a={},n=[],o,s;for(s=0;s{"use strict";var qK=Nr(),d9e=V_();OK.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";VK.exports={moduleType:"component",name:"images",layoutAttributes:JS(),supplyLayoutDefaults:IK(),includeBasePlot:Bg()("images"),draw:BK(),convertCoords:NK()}});var S5={};Yi(S5,{activeColor:()=>q9e,arrowOffsetX:()=>z9e,arrowPadX:()=>C9e,arrowSymbol:()=>N9e,autoMarginIdRoot:()=>M9e,blankHeaderOpts:()=>D9e,buttonClassName:()=>b9e,containerClassName:()=>m9e,dropdownButtonClassName:()=>x9e,dropdownButtonGroupClassName:()=>_9e,gapButton:()=>B9e,gapButtonHeader:()=>R9e,headerArrowClassName:()=>y9e,headerClassName:()=>g9e,headerGroupClassName:()=>v9e,hoverColor:()=>O9e,itemRectClassName:()=>w9e,itemTextClassName:()=>A9e,menuIndexAttrName:()=>T9e,minHeight:()=>E9e,minWidth:()=>S9e,name:()=>p9e,rx:()=>F9e,ry:()=>P9e,textOffsetX:()=>I9e,textOffsetY:()=>L9e,textPadX:()=>k9e});var p9e,m9e,v9e,g9e,y9e,_9e,x9e,b9e,w9e,A9e,T9e,M9e,D9e,S9e,E9e,k9e,C9e,F9e,P9e,I9e,L9e,z9e,R9e,B9e,q9e,O9e,N9e,E5=Gi(()=>{"use strict";p9e="updatemenus",m9e="updatemenu-container",v9e="updatemenu-header-group",g9e="updatemenu-header",y9e="updatemenu-header-arrow",_9e="updatemenu-dropdown-button-group",x9e="updatemenu-dropdown-button",b9e="updatemenu-button",w9e="updatemenu-item-rect",A9e="updatemenu-item-text",T9e="updatemenu-active-index",M9e="updatemenu-",D9e={label:" "},S9e=30,E9e=30,k9e=24,C9e=16,F9e=2,P9e=2,I9e=12,L9e=3,z9e=4,R9e=5,B9e=2,q9e="#F4FAFF",O9e="#F4FAFF",N9e={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var e9=X(($it,jK)=>{"use strict";var V9e=oo(),U9e=tc(),G9e=Ca().extendFlat,j9e=qs().overrideAll,$9e=Tx(),GK=qi().templatedArray,H9e=GK("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}});jK.exports=j9e(GK("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:H9e,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:G9e($9e({editType:"arraydraw"}),{}),font:V9e({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:U9e.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var YK=X((Hit,ZK)=>{"use strict";var k5=tt(),$K=_l(),HK=e9(),Z9e=(E5(),lt(S5)),Y9e=Z9e.name,W9e=HK.buttons;ZK.exports=function(t,r){var i={name:Y9e,handleItemDefaults:X9e};$K(t,r,i)};function X9e(e,t,r){function i(o,s){return k5.coerce(e,t,HK,o,s)}var a=$K(e,t,{name:"buttons",handleItemDefaults:K9e}),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 K9e(e,t){function r(a,n){return k5.coerce(e,t,W9e,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 KK=X((Zit,XK)=>{"use strict";XK.exports=xa;var Du=Qr(),WK=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,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=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(WK.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 z=c>y,L=xa.barWidth+2*xa.barPad,q=xa.barLength+2*xa.barPad,V=s+l,G=u;V+L>n&&(V=n-L);var $=this.container.selectAll("rect.scrollbar-vertical").data(z?[0]:[]);$.exit().on(".drag",null).remove(),$.enter().append("rect").classed("scrollbar-vertical",!0).call(WK.fill,xa.barColor),z?(this.vbar=$.attr({rx:xa.barRadius,ry:xa.barRadius,x:V,y:G,width:L,height:q}),this._vbarYMin=G+q/2,this._vbarTranslateMax=y-q):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,Z=x-.5,Y=z?w+L+.5:w+.5,oe=_-.5,pe=M?A+k+.5:A+.5,De=a._topdefs.selectAll("#"+H).data(M||z?[0]:[]);if(De.exit().remove(),De.enter().append("clipPath").attr("id",H).append("rect"),M||z?(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||z){var ye=Du.behavior.drag().on("dragstart",function(){Du.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=Du.behavior.drag().on("dragstart",function(){Du.event.sourceEvent.preventDefault(),Du.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));M&&this.hbar.on(".drag",null).call(de),z&&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-=Du.event.dx),this.vbar&&(r-=Du.event.dy),this.setTranslate(t,r)};xa.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Du.event.deltaY),this.vbar&&(r+=Du.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(Du.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(Du.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 sJ=X((Yit,oJ)=>{"use strict";var G1=Qr(),iy=bn(),ay=Vr(),j1=xi(),Ws=tt(),F5=cn(),J9e=qi().arrayEditor,QK=(uo(),lt(lo)).LINE_SPACING,fr=(E5(),lt(S5)),Q9e=KK();oJ.exports=function(t){var r=t._fullLayout,i=Ws.filterVisible(r[fr.name]);function a(f){iy.autoMargin(t,aJ(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,eEe);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 sEe=(E5(),lt(S5));lJ.exports={moduleType:"component",name:sEe.name,layoutAttributes:e9(),supplyLayoutDefaults:YK(),draw:sJ()}});var oy={};Yi(oy,{arrowOffsetX:()=>SEe,autoMarginIdRoot:()=>AEe,containerClassName:()=>uEe,currentValueClass:()=>xEe,currentValueInset:()=>eke,currentValuePadding:()=>QEe,gripBgActiveColor:()=>GEe,gripBgColor:()=>UEe,gripBorder:()=>OEe,gripBorderColor:()=>VEe,gripBorderWidth:()=>NEe,gripHeight:()=>qEe,gripRadius:()=>REe,gripRectClass:()=>pEe,gripWidth:()=>BEe,groupClassName:()=>cEe,inputAreaClass:()=>hEe,inputProxyClass:()=>vEe,labelClass:()=>_Ee,labelGroupClass:()=>yEe,labelOffset:()=>$Ee,labelPadding:()=>jEe,labelsClass:()=>gEe,menuIndexAttrName:()=>wEe,minHeight:()=>MEe,minWidth:()=>TEe,minorTickColor:()=>KEe,minorTickLength:()=>JEe,minorTickOffset:()=>XEe,name:()=>lEe,railBgColor:()=>IEe,railBorder:()=>CEe,railBorderColor:()=>PEe,railBorderWidth:()=>FEe,railHeight:()=>bEe,railInset:()=>LEe,railRadius:()=>EEe,railRectClass:()=>fEe,railTouchRectClass:()=>dEe,railWidth:()=>kEe,stepInset:()=>zEe,textPadX:()=>DEe,tickColor:()=>ZEe,tickLength:()=>WEe,tickOffset:()=>YEe,tickRectClass:()=>mEe,tickWidth:()=>HEe});var 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,KEe,JEe,QEe,eke,sy=Gi(()=>{"use strict";lEe="sliders",uEe="slider-container",cEe="slider-group",hEe="slider-input-area",fEe="slider-rail-rect",dEe="slider-rail-touch-rect",pEe="slider-grip-rect",mEe="slider-tick-rect",vEe="slider-input-proxy",gEe="slider-labels",yEe="slider-label-group",_Ee="slider-label",xEe="slider-current-value",bEe=5,wEe="slider-active-index",AEe="slider-",TEe=30,MEe=30,DEe=40,SEe=4,EEe=2,kEe=5,CEe=4,FEe=1,PEe="#bec8d9",IEe="#f8fafc",LEe=8,zEe=10,REe=10,BEe=20,qEe=20,OEe=20,NEe=1,VEe="#bec8d9",UEe="#f6f8fa",GEe="#dbdde0",jEe=8,$Ee=0,HEe=1,ZEe="#333",YEe=25,WEe=7,XEe=25,KEe="#333",JEe=4,QEe=8,eke=0});var a9=X((Xit,fJ)=>{"use strict";var cJ=oo(),tke=Tx(),rke=Ca().extendDeepAll,ike=qs().overrideAll,ake=zv(),hJ=qi().templatedArray,Ed=(sy(),lt(oy)),nke=hJ("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}});fJ.exports=ike(hJ("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:nke,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:rke(tke({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:ake.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:cJ({})},font:cJ({}),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 vJ=X((Kit,mJ)=>{"use strict";var $1=tt(),dJ=_l(),pJ=a9(),oke=(sy(),lt(oy)),ske=oke.name,lke=pJ.steps;mJ.exports=function(t,r){dJ(t,r,{name:ske,handleItemDefaults:uke})};function uke(e,t,r){function i(h,f){return $1.coerce(e,t,pJ,h,f)}for(var a=dJ(e,t,{name:"steps",handleItemDefaults:cke}),n=0,o=0;o{"use strict";var Su=Qr(),P5=bn(),Ef=Vr(),Eu=xi(),Xs=tt(),hke=Xs.strTranslate,ly=cn(),fke=qi().arrayEditor,Dr=(sy(),lt(oy)),s9=(uo(),lt(lo)),_J=s9.LINE_SPACING,n9=s9.FROM_TL,o9=s9.FROM_BR;MJ.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,a=dke(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,xJ(c))}if(n.exit().each(function(){Su.select(this).selectAll("g."+Dr.groupClassName).each(o)}).remove(),a.length!==0){var s=n.selectAll("g."+Dr.groupClassName).data(a,pke);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",hke(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 yJ(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 bke(e,t,r){var i=r._dims,a=Xs.ensureSingle(e,"rect",Dr.railTouchRectClass,function(n){n.call(AJ,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),Eu.setTranslate(a,0,i.currentValueTotalHeight)}function wke(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"),Eu.setTranslate(a,Dr.railInset,(r.inputAreaWidth-Dr.railWidth)*.5+r.currentValueTotalHeight)}});var EJ=X((Qit,SJ)=>{"use strict";var Ake=(sy(),lt(oy));SJ.exports={moduleType:"component",name:Ake.name,layoutAttributes:a9(),supplyLayoutDefaults:vJ(),draw:DJ()}});var L5=X((eat,CJ)=>{"use strict";var kJ=tc();CJ.exports={bgcolor:{valType:"color",dflt:kJ.background,editType:"plot"},bordercolor:{valType:"color",dflt:kJ.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((tat,FJ)=>{"use strict";FJ.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:()=>Dke,containerClassName:()=>Mke,extraPad:()=>Wke,grabAreaCursor:()=>jke,grabAreaFill:()=>Gke,grabAreaMaxClassName:()=>zke,grabAreaMinClassName:()=>Pke,grabAreaWidth:()=>$ke,grabberMaxClassName:()=>Lke,grabberMinClassName:()=>Fke,handleMaxClassName:()=>Rke,handleMinClassName:()=>Ike,handleRadius:()=>Zke,handleStrokeWidth:()=>Yke,handleWidth:()=>Hke,maskColor:()=>Oke,maskMaxClassName:()=>kke,maskMaxOppAxisClassName:()=>qke,maskMinClassName:()=>Eke,maskMinOppAxisClassName:()=>Bke,maskOppAxisColor:()=>Nke,name:()=>Tke,rangePlotClassName:()=>Ske,slideBoxClassName:()=>Cke,slideBoxCursor:()=>Uke,slideBoxFill:()=>Vke});var Tke,Mke,Dke,Ske,Eke,kke,Cke,Fke,Pke,Ike,Lke,zke,Rke,Bke,qke,Oke,Nke,Vke,Uke,Gke,jke,$ke,Hke,Zke,Yke,Wke,R5=Gi(()=>{"use strict";Tke="rangeslider",Mke="rangeslider-container",Dke="rangeslider-bg",Ske="rangeslider-rangeplot",Eke="rangeslider-mask-min",kke="rangeslider-mask-max",Cke="rangeslider-slidebox",Fke="rangeslider-grabber-min",Pke="rangeslider-grabarea-min",Ike="rangeslider-handle-min",Lke="rangeslider-grabber-max",zke="rangeslider-grabarea-max",Rke="rangeslider-handle-max",Bke="rangeslider-mask-min-opp-axis",qke="rangeslider-mask-max-opp-axis",Oke="rgba(0,0,0,0.4)",Nke="rgba(0,0,0,0.2)",Vke="transparent",Uke="ew-resize",Gke="transparent",jke="col-resize",$ke=10,Hke=4,Zke=1,Yke=1,Wke=15});var LJ=X(q5=>{"use strict";var Xke=un(),Kke=cn(),PJ=(R5(),lt(z5)),Jke=(uo(),lt(lo)).LINE_SPACING,B5=PJ.name;function IJ(e){var t=e&&e[B5];return t&&t.visible}q5.isVisible=IJ;q5.makeData=function(e){for(var t=Xke.list({_fullLayout:e},"x",!0),r=e.margin,i=[],a=0;a{"use strict";var O5=tt(),zJ=qi(),RJ=un(),Qke=L5(),eCe=u9();BJ.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=zJ.newContainer(n,"rangeslider");function l(A,T){return O5.coerce(o,s,Qke,A,T)}var u,c;function h(A,T){return O5.coerce(u,c,eCe,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")))===RJ.name2id(i)}).map(function(A){return A.slice(A.indexOf("y"),A.length)}),m=O5.simpleMap(p,RJ.id2name),g=0;g{"use strict";var tCe=un().list,rCe=Qv().getAutoRange,iCe=(R5(),lt(z5));OJ.exports=function(t){for(var r=tCe(t,"x",!0),i=0;i{"use strict";var N5=Qr(),aCe=mr(),nCe=bn(),Ia=tt(),V5=Ia.strTranslate,UJ=xi(),kf=Vr(),oCe=Kv(),sCe=RS(),c9=un(),lCe=bl(),uCe=vf(),Br=(R5(),lt(z5));GJ.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=G.max)q=P[V+1];else if(L=G.pmax)q=P[V+1];else if(L0?e.touches[0].clientX:0}function cCe(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=VJ(l),h=c-e.node().getBoundingClientRect().left,f=i.d2p(r._rl[0]),d=i.d2p(r._rl[1]),p=lCe.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",g),p.addEventListener("mousemove",m),p.addEventListener("mouseup",g);function m(y){var x=VJ(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,uCe(N5.select(p),T),hCe(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 hCe(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(){aCe.call("_guiRelayout",t,r._name+".range",[n,o])})}function fCe(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 dCe(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=UJ.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 pCe(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 mCe(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(UJ.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),nCe.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),sCe.rangePlot(t,y,vCe(a,s))})}function vCe(e,t){for(var r=[],i=0;i{"use strict";var xCe=tt(),bCe=L5(),wCe=u9(),h9=LJ();$J.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:xCe.extendFlat({},bCe,{yaxis:wCe})}}},layoutAttributes:L5(),handleDefaults:qJ(),calcAutorange:NJ(),draw:jJ(),isVisible:h9.isVisible,makeData:h9.makeData,autoMarginOpts:h9.autoMarginOpts}});var U5=X((sat,YJ)=>{"use strict";var ACe=oo(),ZJ=tc(),TCe=qi().templatedArray,MCe=TCe("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"});YJ.exports={visible:{valType:"boolean",editType:"plot"},buttons:MCe,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:ACe({editType:"plot"}),bgcolor:{valType:"color",dflt:ZJ.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:ZJ.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var f9={};Yi(f9,{darkAmount:()=>FCe,lightAmount:()=>CCe,minButtonWidth:()=>SCe,rx:()=>ECe,ry:()=>kCe,yPad:()=>DCe});var DCe,SCe,ECe,kCe,CCe,FCe,d9=Gi(()=>{"use strict";DCe=.02,SCe=30,ECe=3,kCe=3,CCe=25,FCe=10});var KJ=X((lat,XJ)=>{"use strict";var G5=tt(),PCe=Vr(),ICe=qi(),LCe=_l(),WJ=U5(),p9=(d9(),lt(f9));XJ.exports=function(t,r,i,a,n){var o=t.rangeselector||{},s=ICe.newContainer(r,"rangeselector");function l(d,p){return G5.coerce(o,s,WJ,d,p)}var u=LCe(o,s,{name:"buttons",handleItemDefaults:zCe,calendar:n}),c=l("visible",u.length>0);if(c){var h=RCe(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",PCe.contrast(f,p9.lightAmount,p9.darkAmount)),l("bordercolor"),l("borderwidth")}};function zCe(e,t,r,i){var a=i.calendar;function n(l,u){return G5.coerce(e,t,WJ.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 RCe(e,t,r){for(var i=r.filter(function(s){return t[s].anchor===e._id}),a=0,n=0;n{"use strict";var BCe=SA(),qCe=tt().titleCase;JJ.exports=function(t,r){var i=t._name,a={};if(r.step==="all")a[i+".autorange"]=!0;else{var n=OCe(t,r);a[i+".range[0]"]=n[0],a[i+".range[1]"]=n[1]}return a};function OCe(e,t){var r=e.range,i=new Date(e.r2l(r[1])),a=t.step,n=BCe["utc"+qCe(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 sQ=X((cat,oQ)=>{"use strict";var $5=Qr(),NCe=mr(),VCe=bn(),eQ=Vr(),nQ=xi(),hh=tt(),tQ=hh.strTranslate,j5=cn(),UCe=un(),g9=(uo(),lt(lo)),rQ=g9.LINE_SPACING,iQ=g9.FROM_TL,aQ=g9.FROM_BR,v9=(d9(),lt(f9)),GCe=QJ();oQ.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(jCe(t),$Ce);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=GCe(o,u);u._isActive=HCe(o,u,h),c.call(m9,s,u),c.call(YCe,s,u,t),c.on("click",function(){t._dragged||NCe.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)})}),XCe(t,l,s,o._name,n)})};function jCe(e){for(var t=UCe.list(e,"x",!0),r=[],i=0;i{"use strict";lQ.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:U5()}}},layoutAttributes:U5(),handleDefaults:KJ(),draw:sQ()}});var H5=X(y9=>{"use strict";var cQ=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:cQ({},r,{}),y:cQ({},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 KCe=tt(),JCe=(Hp(),lt(Iv)).counter,QCe=H5().attributes,hQ=(xn(),lt(_n)).idRegex,eFe=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:[JCe("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[hQ.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[hQ.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:QCe({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 tFe(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=eFe.newContainer(t,"grid");function f(T,M){return KCe.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,w=n?.3:.1,_,A;l&&t._splomGridDflt&&(_=t._splomGridDflt.xside,A=t._splomGridDflt.yside),h._domains={x:fQ("x",f,x,_,p),y:fQ("y",f,w,A,d,y)}}function fQ(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";vQ.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 _Q=X((mat,yQ)=>{"use strict";var gQ=Nr(),iFe=mr(),aFe=tt(),nFe=qi(),oFe=x9();yQ.exports=function(e,t,r,i){var a="error_"+i.axis,n=nFe.newContainer(t,a),o=e[a]||{};function s(p,m){return aFe.coerce(o,n,oFe,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||gQ(o.thickness)||gQ(o.width)))}(!i.inherit||!n[f])&&(s("color",r),s("thickness"),s("width",iFe.traceIs(t,"gl3d")?0:4))}}});var b9=X((vat,bQ)=>{"use strict";bQ.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=xQ(r,t.value),s=xQ(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 xQ(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 TQ=X((gat,AQ)=>{"use strict";var w9=Nr(),sFe=mr(),A9=ra(),lFe=tt(),uFe=b9();AQ.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var MQ=Qr(),Cf=Nr(),cFe=xi(),hFe=So();DQ.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=hFe.hasMarkers(h)&&h.marker.maxdisplayed>0;!d.visible&&!f.visible&&(c=[]);var g=MQ.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),cFe.setClipUrl(g,i.layerClipId,t),g.each(function(x){var w=MQ.select(this),_=fFe(x,o,s);if(!(m&&!x.vis)){var A,T=w.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=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&&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=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 fFe(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 CQ=X((_at,kQ)=>{"use strict";var dFe=Qr(),EQ=Vr();kQ.exports=function(t){t.each(function(r){var i=r[0].trace,a=i.error_y||{},n=i.error_x||{},o=dFe.select(this);o.selectAll("path.yerror").style("stroke-width",a.thickness+"px").call(EQ.stroke,a.color),n.copy_ystyle&&(n=a),o.selectAll("path.xerror").style("stroke-width",n.thickness+"px").call(EQ.stroke,n.color)})}});var IQ=X((xat,PQ)=>{"use strict";var uy=tt(),FQ=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;PQ.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:kd,bar:kd,histogram:kd,scatter3d:FQ(hy,"calc","nested"),scattergl:FQ(kd,"calc","nested")}},supplyDefaults:_Q(),calc:TQ(),makeComputeError:b9(),plot:SQ(),style:CQ(),hoverInfo:pFe};function pFe(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 LQ={};Yi(LQ,{cn:()=>mFe});var mFe,zQ=Gi(()=>{"use strict";mFe={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 GQ=X((bat,UQ)=>{"use strict";var Ff=Qr(),W5=bn(),RQ=mr(),fh=ra(),Y5=bl(),Ll=tt(),Cu=Ll.strTranslate,VQ=Ca().extendFlat,T9=vf(),ku=xi(),H1=Vr(),vFe=Kv(),gFe=cn(),yFe=ac().flipScale,_Fe=PS(),xFe=IS(),bFe=vu(),D9=(uo(),lt(lo)),BQ=D9.LINE_SPACING,qQ=D9.FROM_TL,OQ=D9.FROM_BR,ha=(zQ(),lt(LQ)).cn;function wFe(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+ha.colorbar).data(AFe(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=TFe(a,i,e);n&&n.then&&(e._promises||[]).push(n),e._context.edits.colorbarPosition&&MFe(a,i,e)}),r.exit().each(function(i){W5.autoMargin(e,i._id)}).remove(),r.order()}function AFe(e){var t=e._fullLayout,r=e.calcdata,i=[],a,n,o,s;function l(w){return VQ(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?yFe(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]],NQ=(e,t)=>[e[0],Math.max(e[1]-t,e[0])];function TFe(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||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,z=DFe(r,t,k),L=z.fill,q=z.line,V=Math.round(o*(s==="fraction"?i?_.w:_.h:1)),G=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*G:g-De*G,de=i?g-De*H:m-pe*H,Ce=Math.round(i?Y*(1-de):Z*de);t._lenFrac=H,t._thickFrac=G,t._uFrac=ye,t._vFrac=de;var J=t._axis=SFe(r,t,k);J.position=G+(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=NQ(M9([de,de+H],ge),ge),J.setScale(),e.attr("transform",Cu(Math.round(_.l),Math.round(_.t)));var Re=e.select("."+ha.cbtitleunshift).attr("transform",Cu(-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:w._dfltTitle.colorbar,containerGroup:e.select("."+ha.cbtitle)},bt=ie.charAt(0)==="h"?ie.slice(1):"h"+ie;e.selectAll("."+bt+",."+bt+"-math-group").remove(),vFe.draw(r,ie,VQ(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-BQ*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?w.width:w.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)*BQ);var ve;if(bt?(ve=ku.bBox(bt),Ue=ve.width,se=ve.height,se>Tt&&(ot[1]-=(se-Tt)/2)):Se.node()&&!Se.classed(ha.jsPlaceholder)&&(ve=ku.bBox(Se.node()),Ue=ve.width,se=ve.height),i){if(se){if(se+=5,S==="top")J.domain=NQ(J.domain,se/_.h),ot[1]*=-1;else{J.domain=M9(J.domain,se/_.h);var xe=gFe.lineCount(Se);ot[1]+=(1-xe)*Tt}ie.attr("transform",Cu(ot[0],ot[1])),J.setScale()}}else Ue&&(S==="right"&&(J.domain=M9(J.domain,(Ue+Me/2)/_.w)),ie.attr("transform",Cu(ot[0],ot[1])),J.setScale())}e.selectAll("."+ha.cbfills+",."+ha.cblines).attr("transform",i?Cu(0,Math.round(_.h*(1-J.domain[1]))):Cu(Math.round(_.w*J.domain[0]),0)),Pe.attr("transform",i?Cu(0,Math.round(-_.t)):Cu(Math.round(-_.l),0));var je=e.select("."+ha.cbfills).selectAll("rect."+ha.cbfill).attr("style","").data(L);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]:(L[We]+L[We-1])/2,We===L.length-1?k[1]:(L[We]+L[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)ku.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(ku.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=ku.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=ku.bBox(je),ot=ie.width,xe=ie.height):(ie=ku.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",Cu(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),w._hColorbarMoveTitle=Qe,w._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",Cu(We,mt)),!i&&(u||H1.opacity(c)&&!H1.equals(w.paper_bgcolor,c))){var Ye=Pe.selectAll("text"),vt=Ye[0].length,Dt=e.select("."+ha.cbbg).node(),Ft=ku.bBox(Dt),zt=ku.getTranslate(e),ce=2;Ye.each(function(ci,Or){var Ci=0,zi=vt-1;if(Or===Ci||Or===zi){var oa=ku.bBox(this),ka=ku.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=qQ[h],at=OQ[h],Ar=qQ[f],ti=OQ[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:w.width-st-We,l:st+ke.r,b:w.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 MFe(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+Cu(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?RQ.call("_guiRestyle",r,u,t._traceIndex):RQ.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";jQ.exports={moduleType:"component",name:"colorbar",attributes:rb(),supplyDefaults:w8(),draw:GQ().draw,hasColorbar:h8()}});var ZQ=X((Aat,HQ)=>{"use strict";HQ.exports={moduleType:"component",name:"legend",layoutAttributes:_M(),supplyLayoutDefaults:bM(),draw:RM(),style:PM()}});var WQ=X((Tat,YQ)=>{"use strict";YQ.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 KQ=X((Mat,XQ)=>{"use strict";XQ.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((Dat,tee)=>{"use strict";var EFe=mr(),eee=tt(),S9=eee.extendFlat,JQ=eee.extendDeep;function QQ(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 kFe(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}tee.exports=function(t,r){var i,a=t.data,n=t.layout,o=JQ([],a),s=JQ({},n,QQ(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 CFe=Gx().EventEmitter,FFe=mr(),PFe=tt(),ree=yd(),IFe=E9(),LFe=Q3(),zFe=e5();function RFe(e,t){var r=new CFe,i=IFe(e,{format:"png"}),a=i.gd;a.style.position="absolute",a.style.left="-5000px",document.body.appendChild(a);function n(){var s=ree.getDelay(a._fullLayout);setTimeout(function(){var l=LFe(a),u=document.createElement("canvas");u.id=PFe.randstr(),r=zFe({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=ree.getRedrawFunc(a);return FFe.call("_doPlot",a,i.data,i.layout,i.config).then(o).then(n).catch(function(s){r.emit("error",s)}),r}iee.exports=RFe});var see=X((Eat,oee)=>{"use strict";var nee=yd(),BFe={getDelay:nee.getDelay,getRedrawFunc:nee.getRedrawFunc,clone:E9(),toSVG:Q3(),svgToImg:e5(),toImage:aee(),downloadImage:tS()};oee.exports=BFe});var uee=X(dh=>{"use strict";dh.version=lv().version;pI();Qq();var qFe=mr(),fy=dh.register=qFe.register,C9=dY(),lee=Object.keys(C9);for(X5=0;X5{"use strict";cee.exports=uee()});var F9=X((Fat,vee)=>{"use strict";var{hovertemplateAttrs:OFe,texttemplateAttrs:NFe,templatefallbackAttrs:fee}=rc(),VFe=P3(),wc=sh(),UFe=Wo(),dee=eh(),GFe=Zc().dash,Cd=Ca().extendFlat,jFe=qs().overrideAll,zl=wc.marker,pee=wc.line,mee=zl.line;vee.exports=jFe({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:NFe({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:fee({editType:"plot"}),hovertext:Cd({},wc.hovertext,{}),textfont:wc.textfont,textposition:wc.textposition,line:{color:pee.color,width:pee.width,dash:GFe},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:mee.width,dash:mee.dash},dee("marker.line")),gradient:zl.gradient},dee("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:VFe(),selected:wc.selected,unselected:wc.unselected,hoverinfo:Cd({},UFe.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:OFe(),hovertemplatefallback:fee()},"calc","nested")});var yee=X((Pat,gee)=>{"use strict";gee.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 _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"?` +{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 xee=X((Iat,_ee)=>{"use strict";_ee.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((Lat,Mee)=>{"use strict";var $Fe=(Px(),lt(Fx)).default,HFe=yee(),ZFe=xee(),YFe='\xA9 OpenStreetMap contributors',bee="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",wee="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",J5="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",WFe="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",XFe="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",KFe="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",Tee={basic:J5,streets:J5,outdoors:J5,light:bee,dark:wee,satellite:ZFe,"satellite-streets":HFe,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:YFe,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":bee,"carto-darkmatter":wee,"carto-voyager":J5,"carto-positron-nolabels":WFe,"carto-darkmatter-nolabels":XFe,"carto-voyager-nolabels":KFe},Aee=$Fe(Tee);Mee.exports={styleValueDflt:"basic",stylesMap:Tee,styleValuesMap:Aee,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",Aee.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error.",fitBoundsPadding:20}});var dy=X((zat,Cee)=>{"use strict";var Dee=tt(),See=Vr().defaultLine,JFe=H5().attributes,QFe=oo(),ePe=sh().textposition,tPe=qs().overrideAll,rPe=qi().templatedArray,Eee=Pf(),kee=QFe({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});kee.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var iPe=Cee.exports=tPe({_arrayAttrRegexps:[Dee.counterRegex("map",".layers",!0)],domain:JFe({name:"map"}),style:{valType:"any",values:Eee.styleValuesMap,dflt:Eee.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:rPe("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:See},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:See}},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:kee,textposition:Dee.extendFlat({},ePe,{arrayOk:!1})}})},"plot","from-root");iPe.uirevision={valType:"any",editType:"none"}});var Q5=X((Rat,Lee)=>{"use strict";var{hovertemplateAttrs:aPe,texttemplateAttrs:nPe,templatefallbackAttrs:Fee}=rc(),oPe=P3(),py=F9(),Y1=sh(),Pee=dy(),sPe=Wo(),lPe=eh(),Fd=Ca().extendFlat,uPe=qs().overrideAll,cPe=dy(),Iee=py.line,W1=py.marker;Lee.exports=uPe({lon:py.lon,lat:py.lat,cluster:{enabled:{valType:"boolean"},maxzoom:Fd({},cPe.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:nPe({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:Fee({editType:"plot"}),hovertext:Fd({},Y1.hovertext,{}),line:{color:Iee.color,width:Iee.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},lPe("marker")),fill:py.fill,fillcolor:oPe(),textfont:Pee.layers.symbol.textfont,textposition:Pee.layers.symbol.textposition,below:{valType:"string"},selected:{marker:Y1.selected.marker},unselected:{marker:Y1.unselected.marker},hoverinfo:Fd({},sPe.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:aPe(),hovertemplatefallback:Fee()},"calc","nested")});var P9={};Yi(P9,{isSupportedFont:()=>fPe});function fPe(e){return hPe.indexOf(e)!==-1}var hPe,I9=Gi(()=>{"use strict";hPe=["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 Bee=X((Bat,Ree)=>{"use strict";var my=tt(),L9=So(),dPe=aS(),pPe=nS(),mPe=oS(),vPe=sS(),zee=Q5(),gPe=(I9(),lt(P9)).isSupportedFont;Ree.exports=function(t,r,i,a){function n(y,x){return my.coerce(t,r,zee,y,x)}function o(y,x){return my.coerce2(t,r,zee,y,x)}var s=yPe(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)){dPe(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)&&(pPe(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;mPe(t,r,a,n,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:gPe(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"&&vPe(t,r,i,n),my.coerceSelectionMarkerOpacity(r,n)};function yPe(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((qat,Oee)=>{"use strict";var qee=ra();Oee.exports=function(t,r,i){var a={},n=i[r.subplot]._subplot,o=n.mockAxis,s=t.lonlat;return a.lonLabel=qee.tickText(o,o.c2l(s[0]),!0).text,a.latLabel=qee.tickText(o,o.c2l(s[1]),!0).text,a}});var jee=X((Oat,Gee)=>{"use strict";var R9=Nr(),Nee=(Ji(),lt(ua)).BADNUM,_Pe=cS(),xPe=Yg(),bPe=l5(),wPe=tt().isArrayOrTypedArray,Vee=tt()._;function Uee(e){return e&&typeof e=="string"}Gee.exports=function(t,r){var i=wPe(r.locations),a=i?r.locations.length:r._length,n=new Array(a),o;r.geojson?o=function(f){return Uee(f)||R9(f)}:o=Uee;for(var s=0;s{"use strict";var APe=(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 $ee=tt();Hee.exports=function(t,r){var i=t.split(" "),a=i[0],n=i[1],o=$ee.isArrayOrTypedArray(r)?$ee.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 Jee=X((Uat,Kee)=>{"use strict";var Wee=Nr(),Hn=tt(),TPe=(Ji(),lt(ua)).BADNUM,r4=e4(),Zee=c1(),MPe=xi(),DPe=D8(),i4=So(),SPe=(I9(),lt(P9)).isSupportedFont,EPe=B9(),kPe=oc().appendArrayPointValue,CPe=cn().NEWLINES,FPe=cn().BR_TAG_ALL;Kee.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=PPe(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":Yee(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=IPe(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 w=(i.marker||{}).size,_=EPe(i.textposition,w);Hn.extendFlat(m.layout,{"text-size":i.textfont.size,"text-anchor":_.anchor,"text-offset":_.offset,"text-font":Yee(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 PPe(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(w){return t.opacity*w}function u(w){return w/2}var c;a&&(Zee.hasColorscale(t,"marker")?c=Zee.makeColorScaleFuncFromTrace(r):c=Hn.identity);var h;n&&(h=DPe(t));var f;o&&(f=function(w){var _=Wee(w)?+Hn.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"),SPe(s)||(s=r);var l=s.split(", ");return l}});var rte=X((Gat,tte)=>{"use strict";var LPe=tt(),Qee=Jee(),X1=Pf().traceLayerPrefix,Rl={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function ete(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=ete.prototype;gy.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&LPe.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])}w||a.removeSource(u.sourceIds.circle)}function f(w){for(var _=Rl.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 _=Rl.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?Rl.cluster:Rl.nonCluster,_=0;_=0;i--){var a=r[i];t.removeLayer(this.layerIds[a]),t.removeSource(this.sourceIds[a])}};tte.exports=function(t,r){var i=r[0].trace,a=i.cluster&&i.cluster.enabled,n=i.visible!==!0,o=new ete(t,i.uid,a,n),s=Qee(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 zPe=_u(),N9=tt(),RPe=ES(),BPe=N9.fillText,qPe=(Ji(),lt(ua)).BADNUM,OPe=Pf().traceLayerPrefix;function NPe(e,t,r){var i=e.cd,a=i[0].trace,n=e.xa,o=e.ya,s=e.subplot,l=[],u=OPe+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]===qPe||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]),z=B.x-n.c2p([p,I]),L=B.y-o.c2p([P,r]),q=Math.max(3,S.mrc||0);return Math.max(Math.sqrt(z*z+L*L)-q,1-3/q)}if(zPe.getClosest(i,m,e),e.index!==!1){var g=i[e.index],y=g.lonlat,x=[N9.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=RPe(a,g),e.extraText=ite(a,g,i[0].t.labels),e.hovertemplate=a.hovertemplate,[e]}}function ite(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)&&BPe(t,e,u),u.join("
")}ate.exports={hoverPoints:NPe,getExtraText:ite}});var ote=X(($at,nte)=>{"use strict";nte.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var lte=X((Hat,ste)=>{"use strict";var VPe=tt(),UPe=So(),{BADNUM:GPe}=(Ji(),lt(ua)),o4=360,V9=.001,s4=(e,t,r,i)=>[e.c2p([r,i]),t.c2p([r,i])];function jPe(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]}ste.exports=function(t,r){var c;let{cd:i,xaxis:a,yaxis:n}=t,{trace:o}=i[0];if(!UPe.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 QPe(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 eie(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 eIe(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 tie(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,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,z=f*y-d*g,L=x*z-w*B+_*I+A*P-T*k+M*S;return L?(L=1/L,e[0]=(s*z-l*B+u*I)*L,e[1]=(a*B-i*z-n*I)*L,e[2]=(m*M-g*T+y*A)*L,e[3]=(f*T-h*M-d*A)*L,e[4]=(l*P-o*z-u*k)*L,e[5]=(r*z-a*P+n*k)*L,e[6]=(g*_-p*M-y*w)*L,e[7]=(c*M-f*_+d*w)*L,e[8]=(o*B-s*P+u*S)*L,e[9]=(i*P-r*B-n*S)*L,e[10]=(p*T-m*_+y*x)*L,e[11]=(h*_-c*T-d*x)*L,e[12]=(s*k-o*I-l*S)*L,e[13]=(r*I-i*k+a*S)*L,e[14]=(m*w-p*A-g*x)*L,e[15]=(c*A-h*w+f*x)*L,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],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 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 rie(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 tIe(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 rIe(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 iie(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 aie(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],z=t[11],L=t[12],q=t[13],V=t[14],G=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-z)<=1e-6*Math.max(1,Math.abs(d),Math.abs(z))&&Math.abs(p-L)<=1e-6*Math.max(1,Math.abs(p),Math.abs(L))&&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-G)<=1e-6*Math.max(1,Math.abs(y),Math.abs(G))}function nie(){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 ute(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 oie(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 sie(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 lie(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 uie(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 cie(e){return e[0]=0,e[1]=0,e[2]=0,e}function iIe(){var e=new En(4);return En!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function aIe(e,t,r,i){var a=new En(4);return a[0]=e,a[1]=t,a[2]=r,a[3]=i,a}function nIe(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 hie(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 oIe(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 cte(){var e=new En(4);return En!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function sIe(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 die(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 lIe(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 fte(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 uIe(e){var t=e[0],r=e[1];return t*t+r*r}function cIe(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=QPe([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 mie(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 hIe(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 JPe(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 fIe++}function dIe(e){return Math.log(e)/Math.LN2%1==0}function yie(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 Lu(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 _ie(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 xie([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 bie(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 wie(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 pIe(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 Mie(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,pIe(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 Pu(e){return e/Math.PI*180}function Ek(e,t){return e.roll==t.roll&&e.pitch==t.pitch&&e.bearing==t.bearing}function Die(e){let t=new Float64Array(9);eIe(t,e);let r=Pu(-Math.asin(Tr(t[2],-1,1))),i,a;return Math.hypot(t[5],t[8])<.001?(i=0,a=-Pu(Math.atan2(t[3],t[4]))):(i=Pu(t[5]===0&&t[8]===0?0:Math.atan2(t[5],t[8])),a=Pu(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=fte(t.x-r.x,t.y-r.y),a=fte(e.x-r.x,e.y-r.y),n=i[0]*a[1]-i[1]*a[0];return Pu(Math.atan2(n,cIe(i,a)))}function Ck(e,t,r){let i=new Float64Array(4);return tw(i,e,t-90,r),i}function kie(e,t){return Sie[t]&&"touches"in e}function Cie(e,t){var a,n;if(!Eie[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 Fie(e){return Sie[e]||Eie[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 Pie(e,t){Ts.REGISTERED_PROTOCOLS[e]=t}function Iie(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 vIe(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 gIe(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 mte(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 _Ie)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 Vie(e){return e%=360,e<0&&(e+=360),e}function Uie([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)/Bie),n=$9((.0139322*e+.0971045*t+.7141733*r)/qie));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/Nie+Oie}function Gie([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=Bie*Z9(n),o=qie*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:Nie*(e-Oie)}function wIe(e){let[t,r,i,a]=Uie(e),n=Math.sqrt(r*r+i*i);return[Math.round(n*1e4)?Vie(Math.atan2(i,r)*bIe):NaN,n,t,a]}function AIe([e,t,r,i]){return e=isNaN(e)?0:e*xIe,Gie([r,Math.cos(e)*t,Math.sin(e)*t,i])}function TIe([e,t,r,i]){e=Vie(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 MIe(e,t)?e[t]:void 0}function DIe(e){if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t=zy(SIe,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 w=[Q1(+n/x,0,1),Q1(+l/x,0,1),Q1(+h/x,0,1),p?vte(+p,m):1];if(gte(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,Q1(+o,0,100),Q1(+l,0,100),c?vte(+c,h):1];if(gte(d))return TIe(d)}}}function u4(e){return parseInt(e.padEnd(2,e),16)/255}function vte(e,t){return Q1(t?e/100:e,0,1)}function Q1(e,t,r){return Math.min(Math.max(t,e),r)}function gte(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 EIe(e){return e==="rgb"||e==="hcl"||e==="lab"}function $ie(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 Iu;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 PIe(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 Kie(e,t,r=0,i=e.length-1,a=IIe){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);Kie(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 IIe(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=zIe(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 HIe(e,t,r){return t<=r}function ZIe(e,t,r){return t>=r}function uae(e,t,r,i){return i.compare(t,r)===0}function YIe(e,t,r,i){return!uae(e,t,r,i)}function WIe(e,t,r,i){return i.compare(t,r)<0}function XIe(e,t,r,i){return i.compare(t,r)>0}function KIe(e,t,r,i){return i.compare(t,r)<=0}function JIe(e,t,r,i){return i.compare(t,r)>=0}function Dm(e,t,r){let i=e!=="=="&&e!=="!=";return class cae{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(!_te(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(!_te(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 cae(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 lLe(e,t){let r=uLe(e[0]),i=hLe(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[cLe(i),fLe(a)]}function uLe(e){return(180+e)/360}function cLe(e){return e*360-180}function hLe(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function fLe(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 dLe(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 pLe(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 yLe([i[0]-r[0],i[1]-r[1]],a)!==0&&!!(xte(e,t,r,i)&&xte(r,i,e,t))}function mLe(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 _Le(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}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)for(let l of s){let u=[l.x+n[0],l.y+n[1]];yae(u,t,r,a),o.push(u)}return o}function wte(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){_Le(t);for(let s of o)for(let l of s)yae(l,t,r,a)}return o}function xLe(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(!Sm(s,n))return!1}if(t.type==="MultiPolygon"){let n=gae(t.coordinates,i,a),o=bte(e.geometry(),r,i,a);if(!jy(r,i))return!1;for(let s of o)if(!vLe(s,n))return!1}return!0}function bLe(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=wte(e.geometry(),r,i,a);if(!jy(r,i))return!1;for(let s of o)if(!vae(s,n))return!1}if(t.type==="MultiPolygon"){let n=gae(t.coordinates,i,a),o=wte(e.geometry(),r,i,a);if(!jy(r,i))return!1;for(let s of o)if(!gLe(s,n))return!1}return!0}function xae(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 Tte(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function Vk(e,t,r){if(!Tte(e)||!Tte(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(Mte(e,t))return 0}else if(Mte(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=MLe(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=TLe(e[h],r,i);if(n=Math.min(n,f),n===0)return 0}}else{let h=dE(u,t);Dte(o,n,i,e,s,h[0]),Dte(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 _ae([[0,[0,e.length-1],[0,r.length-1]]],xae);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=wLe(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=ALe(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 SLe(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 ELe(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 kLe(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,DLe(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 Ste(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=$ie(t,r,i,o);if(s)throw new Sa(s,n);return new Sr(t/255,r/255,i/255,o,!1)}function Ete(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 PLe(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 ILe(e){return Array.isArray(e)?`(${e.map(La).join(", ")})`:`(${La(e.type)}...)`}function L4(e){if(e instanceof rae)return L4(e.boundExpression);if(e instanceof Xd&&e.name==="error"||e instanceof hae||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 Dae(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 LLe(e){return e}function zLe(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 RLe(e){switch(e){case"exponential":return Eae;case"interval":return qLe;case"categorical":return BLe;case"identity":return OLe;default:throw Error(`Unknown function type "${e}"`)}}function Sae(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=zLe(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&&!EIe(e.colorSpace))throw Error(`Unknown color space: "${e.colorSpace}"`);let s=RLe(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 Eae({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 BLe(e,t,r,i,a){return g2(typeof r===a?i[r]:void 0,e.default,t.default)}function qLe(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 Eae(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=NLe(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]||LLe;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 OLe(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 NLe(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 kae(e,t,r,i){return`${e}${t}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function Cae(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){Cae(t);let a=new Tae(sm,L4,[],r?GLe(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 VLe(e){return e._styleExpression!==void 0}function Fae(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&&!Dae(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 ULe(e,t,r,i){if(_w(e))return new Pae(e,t,r);if(xw(e)){let a=Fae(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 eae)t=E4(e.result);else if(e instanceof lae){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 GLe(e){let t={color:Iu,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 Lae(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 jLe(e){let t=!1;for(let r of e){let i=zae(r);if(i==="expression")return"expression";i==="legacy"&&(t=!0)}return t?"legacy":"neutral"}function zae(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 jLe(e.slice(1));default:return"expression"}}function Yk(e){return zae(e)!=="legacy"}function kte(e){return e==="$type"?["geometry-type"]:e==="$id"?["id"]:["get",e]}function $Le(e){switch(e[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return e.length!==3||typeof e[1]!="string"?null:[e[0],kte(e[1]),e[2]];case"in":case"!in":{if(e.length<2||typeof e[1]!="string")return null;let t=["in",kte(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 Rae(e){if((e[0]==="<"||e[0]==="<="||e[0]===">"||e[0]===">=")&&e[1]==="$type")return`"$type" cannot be use with operator "${e[0]}"`;let t=$Le(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}: ${Rae(r.legacyFilter)}`)}function _m(e,t,r){if(e==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Yk(e)?HLe(e,t):e=R4(e);let i=bw(e,t,ZLe,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:Bae(e),getGlobalStateRefs:()=>y2(i.value.expression)}}function YLe(e,t){return et)}function Bae(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"?WLe(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"?Cte(e[1],e.slice(2)):t==="!in"?f4(Cte(e[1],e.slice(2))):t==="has"?Fte(e[1]):t!=="!has"||f4(Fte(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 WLe(e){return["any"].concat(e.map(R4))}function Cte(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(YLe)]]:["filter-in-small",e,["literal",t]]}}function Fte(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function f4(e){return["!",e]}function qae(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 Oae(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&&!Dae(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),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 gm(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"&&!$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 XLe(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 KLe(e,t){let r=e;for(let i of t)r=r[i];return r}function JLe(e,t){let r=Wk(t);return r?[new xt(`${e.key}${r.path.map(i=>`[${i}]`).join("")}`,KLe(e.value,r.path),Rae(r.legacyFilter),null,"warning")]:[]}function Kk(e){let t=Gd(e.value);return Yk(t)?[...JLe(e,t),...xm(Hy({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:Nae(e)}function Nae(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 Gae(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 Uae(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 QLe(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 $ae(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:Pte,validateSpec:n}),s;case"raster-dem":return s=QLe({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:Pte}),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 eze({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 Hae(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 Zae(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 Yae(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 tze(e){return Gf(e).length===0?[]:xm(e)}function rze(e){return Gf(e).length===0?[]:xm(e)}function ize(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(hze);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>Ite||u>Ite?[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 Kae(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:zie,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(...fze(`${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))?Oae(e):r.expression&&xw(Gd(t))?xm(e):r.type&&Lte[r.type]?Lte[r.type](e):Js(Hy({},e,{valueSpec:r.type?i[r.type]:r}))}function Jae(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:Jae,"*"(){return[]}}})),e.constants&&(r=r.concat(qae({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:By}))),Qae(r)}function Bl(e){return function(t){return e(Object.assign({},t,{validateSpec:By}))}}function Qae(e){return[].concat(e).sort((t,r)=>t.line-r.line)}function ql(e){return function(...t){return Qae(e.apply(this,t))}}function mze(e,t,r){return new pze(e,t,r)}function vze(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=vze(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 tne(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 gze(e){if(typeof e!="object"||!e)return!1;let t=eC(e);return t&&t!=="Object"}function rne(e){return!gze(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||tne(e)||Zf(e)||ArrayBuffer.isView(e)||e instanceof ImageData)}function qy(e,t){if(rne(e))return(tne(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(rne(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 Bte(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 ine(e,t){let r=Bte(e),i=Bte(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=Aze(a.type),o=r=Nte(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:Nte(r,Math.max(i,t)),alignment:t}}function Aze(e){return wze[e].BYTES_PER_ELEMENT}function Nte(e,t){return Math.ceil(e/t)*t}function Gte(e,t){return e=Tr(Math.floor(e),0,255),t=Tr(Math.floor(t),0,255),256*e+t}function jte(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 Vze(e,t,r,i,a){e.emplaceBack(Zte+t*8+i,Zte+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 Dne(e,t){if(e.length===1)return Yte(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(Yte(t,r))return!0;for(let r of t)if(oC(e,r))return!0;return!1}function Uze(e,t,r){for(let i of t){if(e.length>=3){for(let a of i)if(bm(e,a))return!0}if(Gze(e,i,r))return!0}return!1}function Gze(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 Yte(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 $ze(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 Zze(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 Fne(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 qne(e,t,r,i,a){let n=null;if(a===IRe(e,t,r,i)>0)for(let o=t;o=t;o-=i)n=rre(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&&SRe(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?gRe(e,r,i,a):vRe(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=yRe(e,t),n=e,o=!0;continue}_Re(e,t,r,i,a);break}}}function vRe(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 gRe(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),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)&&j4(s,c,l,h,u,f,w.x,w.y)&&Sn(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)&&j4(s,c,l,h,u,f,_.x,_.y)&&Sn(_.prev,_,_.next)>=0)return!1;_=_.nextZ}return!0}function yRe(e,t){let r=e,i=!1;do{let a=r.prev,n=r.next.next;Nne(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 _Re(e,t,r,i,a){let n=e;do{let o=n.next.next;for(;o!==n.prev;){if(n.i!==o.i&&CRe(n,o)){let s=Vne(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 xRe(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 TRe(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 ere(e){let t=KE[e];for(;t.prev.next!==t;)t=t.next;return KE[e]=t,t}function tre(e){let t=XE[e];for(;t.prev.next!==t;)t=t.next;return XE[e]=t,t}function MRe(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=ere(f);r=tre(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=ere(f);r=tre(f);do{if(r.prev.next===r&&i>=r.x&&r.x>=s&&i!==r.x&&j4(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 Sn(e.prev,e,t.prev)<0&&Sn(t.next,e,e.next)<0}function SRe(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);ERe(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 kRe(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 CRe(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))&&!FRe(e,t)&&(r||PRe(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 Nne(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 FRe(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 PRe(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 Vne(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 rre(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&&TRe(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 IRe(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),z=Math.abs(T-p),L=m?P/w:1/0,q=g?I/_:1/0;if((B<=P||!m)&&(z<=I||!g))break;if(L0?(r.push(a),r.push(o),r.push(n)):(r.push(a),r.push(n),r.push(o))}return r}function qRe(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 jne(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 w=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+w-l,c+_-l,c+A-l),u.primitiveLength++}}function NRe(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),w=Ny(o,i,n,s,p,g,u);r.emplaceBack(c+x-l,c+w-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 nre(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 Yne(e){let t=e.length;if(t<=1)return[e];let r=[],i,a;for(let n=0;ntBe(r,t))}function eBe(e,t){let r=JRe(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 iBe(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 aBe(e,t){for(let r=0;r0?t+2*e:e}function TBe(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 MBe(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 noe(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 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 SBe(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 EBe(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 mre(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 kBe(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 LBe(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:zBe(r),form:null}})}function NBe(e){let t=e.filter(r=>r.type!=="T");for(let r=0;r0&&RBe(t[r-1].type),n=r+1String.fromCodePoint(GBe(r))).join("")}function $Be(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:jBe)(e)}function HBe(e,t,r){for(let i of e.sections)i.text=$Be(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 ZBe(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&&kBe(t[i],r)?t[i]+=r:t.push(r)}return t}function WBe(e){let t=new Set;if(soe){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 XBe(e){for(let t of e)if(!KBe(t.codePointAt(0)))return!1;return!0}function KBe(e){return!TBe(e)}function _re(e){return!(zw(e)||SBe(e))}function loe(e){return new RegExp("\\p{sc=Arab}","u").test(String.fromCodePoint(e))}function uoe(e){return MBe(e)}function coe(e){for(let t of e)if(uoe(t.codePointAt(0)))return!0;return!1}function JBe(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||!_re(o.value.codePointAt(0))||nm[o.value])&&(r.premature||!_re(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 xre(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 bre(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 w(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,z=r.B,L=r.S,q=r.ON,V=r.BN,G=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&z&&(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===Gu||ll===_(A(as))||w(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;Zu--)if(se[Ut[Zu]]&s)h0=Zu;else{Rh=se[Ut[Zu]]&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]);nqe.has(a)?(e[i].level=t,r=!0):r&&aqe.has(a)?e[i].level=t:r=!1}}function lqe(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 hqe(e,t,r,i,a){let n=oqe(e,t,i,a);sqe(n,r);let o="",s=[];for(let l of lqe(n,r)){if(iqe.test(l.text))continue;let u=uqe(l);o+=u,s.push(...Array(u.length).fill(l.index))}return{text:o,sourceIndices:s}}function fqe(e,t){let r=t.filter(n=>n>0&&nn-o),a=[];for(let n=0;n+1a.start))).map(([a,n])=>hqe(e,r,cqe(i,a),a,n))}function dqe(e,t){return foe(e,t).map(r=>r.text)}function pqe(e,t,r){return foe(e,r).map(i=>[i.text,i.sourceIndices.map(a=>{var n;return(n=t[a])!=null?n:0})])}function mqe(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 vqe(e,a,t);throw Error("Expected varint not more than 10 bytes")}function vqe(e,t,r){return r?t*4294967296+(e>>>0):(t>>>0)*4294967296+(e>>>0)}function gqe(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 yqe(e,t,r){e===1&&r.readMessage(_qe,t)}function _qe(e,t,r){if(e===3){let{id:i,bitmap:a,width:n,height:o,left:s,top:l,advance:u}=r.readMessage(xqe,{});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 xqe(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 poe(e){return new doe(e).readFields(yqe,[])}function T2(e){return typeof(e==null?void 0:e.renderWithWebGL)=="function"}function moe(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=>Dre(n,e.sections,[...n].map(()=>0))):dqe(e.toString(),r).map(n=>uk([...n],e.sections,[...n].map(()=>0)));let a=Mqe(e);return i?i.processStyledBidirectionalText(e.text,a,r).map(([n,o])=>Dre(n,e.sections,o)):pqe(e.text,a,r).map(([n,o])=>{let s=[...n];return uk(s,e.sections,goe(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 goe(e){let t=[],r=0;for(let i of e)t.push(r),r+=i.length;return t}function Dre(e,t,r){let i=[...e],a=goe(i),n=Tqe(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=coe(m.text)?Dqe(m,g):Aqe(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 zqe(w,t,r,i,y,o,s,l,h,u,f,p),!wqe(x)&&w}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 Sqe(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 yoe(e){switch(e){case"top":return 0;case"center":return .5;default:return 1}}function Eqe(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 kqe(e,t,r){return!(e===1||!t&&!zw(r)||t&&(mC(r)||loe(r)))}function k4(e){return new RegExp("\\p{Nd}","u").test(String.fromCodePoint(e))}function _oe(e){return new RegExp("\\p{Lu}","u").test(String.fromCodePoint(e))}function Cqe(e){return/[\p{P}\p{S}]/u.test(String.fromCodePoint(e))}function Fqe(e){let t=e.some(k4)&&e.every(i=>k4(i)||Cqe(i)),r=e.length<=3&&e.every(i=>_oe(i)||k4(i));return t||r}function Pqe(e){return(k4(e)||_oe(e))&&!loe(e)}function Iqe(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 Sre(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 kre(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}=Vqe(r.zoomStops,e);return{kind:"composite",minZoom:i,maxZoom:a,interpolationType:r.interpolationType}}{let i=Uqe(r),a=r.evaluate(new Di(e+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:a,interpolationType:r.interpolationType}}}function Vqe(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=Gqe(e,t):e.kind==="composite"&&(r=jqe(e,t)),{uSizeT:r,uSize:i}}function Gqe({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 jqe({interpolationType:e,minZoom:t,maxZoom:r},i){return e?Tr(Gl.interpolationFactor(e,i,t,r),0,1):0}function woe(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 Aoe(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||woe(e,m,s,o,t)?m:void 0}l+=d}}function Hqe(e,t,r,i,a,n,o,s,l){let u=Toe(i,n,o),c=Moe(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||woe(e,T,n,i,a))&&d.push(T)}}h+=y}return!s&&!d.length&&!o&&(d=Doe(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 Cre(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=(L,q)=>L+q[1]-q[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 L=n.content,q=L[2]-L[0],V=L[3]-L[1];(n.textFitWidth||n.textFitHeight)&&(u=xoe(e)),y=_4(c,0,L[0]),w=_4(h,0,L[1]),x=_4(c,L[0],L[2]),_=_4(h,L[1],L[3]),A=L[0]-y,M=L[1]-w,T=q-x,S=V-_}let k=u.x1,P=u.y1,I=u.x2-k,B=u.y2-P,z=(L,q,V,G)=>{let $=x4(L.stretch-y,x,I,k),H=b4(L.fixed-A,T,L.stretch,d),Z=x4(q.stretch-w,_,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(G.stretch-w,_,B,P),ye=b4(G.fixed-M,S,G.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=L.stretch+L.fixed,ge=V.stretch+V.fixed,Re=q.stretch+q.fixed,Ve=G.stretch+G.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(z({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:s+1},{fixed:0,stretch:l+1}));else{let L=Fre(c,m,d),q=Fre(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 Xqe(e,t){return t.max-e.max}function Kqe(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,Sne(e,l,u))}return(r?1:-1)*Math.sqrt(i)}function Jqe(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,Soe(u,s));return new Ec(l)}return null}function Qqe(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,w=[0,0];if(x){let M=x.toString(),S=i.get("text-letter-spacing").evaluate(f,{},e.canonical)*24,k=XBe(M)?S:0,P=i.get("text-anchor").evaluate(f,{},e.canonical),I=Eoe(r,f,e.canonical);if(!I){let q=i.get("text-radial-offset").evaluate(f,{},e.canonical);w=q?Soe(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),z=i.get("symbol-placement")==="point"?i.get("text-max-width").evaluate(f,{},e.canonical)*24:1/0,L=()=>{e.bucket.allowVerticalPlacement&&ok(M)&&(y.vertical=y4(x,e.glyphMap,e.glyphPositions,e.imagePositions,d,z,o,P,"left",k,w,2,!0,m,p))};if(!s&&I){let q=new Set;if(B==="auto")for(let G=0;G{$.x<0||$.x>=8192||$.y<0||$.y>=8192||rOe(e,$,G,r,i,a,L,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 G of _C(t.geometry,0,0,ct,ct)){let $=Bd(G,q),H=Hqe($,A,S,r.vertical||g,i,24,w,e.overscaling,ct);for(let Z of H){let Y=g;(!Y||!iOe(e,Y.text,B,Z))&&V($,Z)}}else if(I==="line-center"){for(let G of t.geometry)if(G.length>1){let $=Bd(G,q),H=$qe($,S,r.vertical||g,i,24,w);H&&V($,H)}}else if(t.type==="Polygon")for(let G of mw(t.geometry,0)){let $=Wqe(G,16);V(Bd(G[0],q,!0),new hm($.x,$.y,0))}else if(t.type==="LineString")for(let G of t.geometry){let $=Bd(G,q);V($,new hm($[0].x,$[0].y,0))}else if(t.type==="Point")for(let G of t.geometry)for(let $ of G)V([$],new hm($.x,$.y,0))}function tOe(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 w of h)f[w]=e.text.placedSymbolArray.length-1;return g.length*4}function koe(e){for(let t in e)return e[t];return null}function rOe(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,z,L,q,V=0,G=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;L=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=Cre(a,Fe,T,se),Ne=o?Cre(o,Fe,T,se):void 0;z=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,w,x,_,0,t,P.lineStartIndex,P.lineLength,-1,M,I),Z=e.icon.placedSymbolArray.length-1,Ne&&(G=Ne.length*4,e.addSymbols(e.icon,Ne,Ae,w,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($+=Pre(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+=Pre(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=L?L.boxStartIndex:e.collisionBoxArray.length,J=L?L.boxEndIndex:e.collisionBoxArray.length,ue=z?z.boxStartIndex:e.collisionBoxArray.length,me=z?z.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(L,fe),fe=ge(z,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=Eoe(s,_,M),[Me,Pe]=tOe(e.textAnchorOffsets,Ve);k&&(pe=aOe(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,G,Re,0,f,fe,Me,Pe,I)}function iOe(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 hOe(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 Poe(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 mOe(e,t);switch(e.type){case"background":return new pOe(e,t);case"circle":return new iRe(e,t);case"color-relief":return new dRe(e,t);case"fill":return new jRe(e,t);case"fill-extrusion":return new lBe(e,t);case"heatmap":return new oRe(e,t);case"hillshade":return new uRe(e,t);case"line":return new xBe(e,t);case"raster":return new bze(e,t);case"symbol":return new cOe(e,t)}}function yOe(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 MOe(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 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;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 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;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 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;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 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;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 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;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 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;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 IOe(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 LOe(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 zOe(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 ROe(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 BOe(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 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;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 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;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 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;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 VOe(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 UOe(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 GOe(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 jOe(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 $Oe(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 HOe(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 Ooe(){let e=new Uint8Array(ZOe);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 YOe(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:Ooe()}}function WOe(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 XOe(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 KOe(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=AOe(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 JOe(e,t,r,i,a){switch(a){case 1:BOe(e,t,r,i);break;case 2:qOe(e,t,r,i);break;case 3:OOe(e,t,r,i);break;case 4:NOe(e,t,r,i);break;case 5:VOe(e,t,r,i);break;case 6:UOe(e,t,r,i);break;case 7:GOe(e,t,r,i);break;case 8:jOe(e,t,r,i);break;case 16:$Oe(e,t,r,i);break;default:HOe(e,t,r,i,a)}return t+(a<<3)|0}function QOe(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 eNe(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 tNe(e,t,r,i,a,n,o,s,l){let{maxBits:u,exceptionBitWidth:c,bytePosIn:h}=eNe(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=tNe(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 iNe(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=XOe(e,f,c,n),m=c,g=KOe(e,d,n);return n.dataPointers.fill(0),rNe(e,o,l,u,t,i|0,a/256|0,p,m,n),g}function aNe(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=iNe(e,t,l,s,u,n),s=s+u|0}return l}function nNe(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 oNe(e,t,r){let i=0,a=0,n=new Uint32Array(t),o=r!=null?r:Ooe();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=aNe(e,n,i,a,u,o),a=a+u|0}let s=e.length-i|0,l=t-a|0;return nNe(e,i,s,n,a,l),n}function sNe(e,t,r,i,a){switch(a){case 2:MOe(e,t,r,i);return;case 3:DOe(e,t,r,i);return;case 4:SOe(e,t,r,i);return;case 5:EOe(e,t,r,i);return;case 6:kOe(e,t,r,i);return;case 7:COe(e,t,r,i);return;case 8:FOe(e,t,r,i);return;case 9:POe(e,t,r,i);return;case 10:IOe(e,t,r,i);return;case 11:LOe(e,t,r,i);return;case 12:zOe(e,t,r,i);return;case 16:ROe(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 cNe(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 dNe(e,t,r,i){return pNe(e,t,r,i,YOe(r>>>2))}function pNe(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=WOe(a,o);lNe(e,n,r,s);let l=oNe(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 mNe(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 Nre(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 CNe(e,t,r,i){let a=Voe(e,t,r,i);return new Uint32Array(a)}function FNe(e){return e[1]}function PNe(e){return ii(e[1])}function INe(e){if(e.length===2){let t=ii(e[1]);return[t,t]}return[ii(e[2]),ii(e[3])]}function LNe(e){return e[1]}function zNe(e){return po(e[1])}function RNe(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=jNe(e,t);return r.logicalLevelTechnique1===Pr.MORTON?UNe(r,e,t):(Pr.RLE===r.logicalLevelTechnique1||Pr.RLE===r.logicalLevelTechnique2)&&Qs.NONE!==r.physicalLevelTechnique?GNe(r,e,t):r}function UNe(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 GNe(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 jNe(e,t){let r=e[t.get()],i=BNe[r>>4],a={};switch(i){case Ka.DATA:a={dictionaryType:ONe[r&15]};break;case Ka.OFFSET:a={offsetType:NNe[r&15]};break;case Ka.LENGTH:a={lengthType:VNe[r&15]}}t.increment();let n=e[t.get()],o=Vre[n>>5],s=Vre[n>>2&7],l=qNe[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?WNe.decode(e.subarray(t,r)):XNe(e,t,r)}function XNe(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 tVe(Im(e,t,r),r,i,a)}function fo(e,t,r,i,a){return rVe(Im(e,t,r),r,i,a)}function Bf(e,t,r){return aVe(Im(e,t,r),r)}function Im(e,t,r){let i=r.physicalLevelTechnique;switch(i){case Qs.FAST_PFOR:return dNe(e,r.numValues,r.byteLength,t);case Qs.VARINT:return mo(e,t,r.numValues);case Qs.NONE:return ZNe(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 YNe(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function KNe(e,t,r){let i=Im(e,t,r);return i.length===1?ii(i[0]):PNe(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]:FNe(i)}function $oe(e,t,r){return INe(Im(e,t,r))}function Hoe(e,t,r){return RNe(PC(e,t,r.numValues))}function Zoe(e,t,r,i){return Woe(P2(e,t,r),r,i)}function RC(e,t,r,i){return Xoe(P2(e,t,r),r,i)}function JNe(e,t,r,i){let a=QNe(e,t,r,!1);return i?tp(a,i,0):a}function QNe(e,t,r,i){if(r.physicalLevelTechnique===Qs.VARINT)return iVe(cNe(e,t,r.numValues),r,i);let a=P2(e,t,r),n=i?Woe(a,r):Xoe(a,r);return Float64Array.from(n,Number)}function eVe(e,t,r){let i=P2(e,t,r);return i.length===1?po(i[0]):zNe(i)}function Yoe(e,t,r){let i=P2(e,t,r);return i.length===1?r.logicalLevelTechnique1===Pr.DELTA?po(i[0]):i[0]:LNe(i)}function tVe(e,t,r,i){let a;switch(t.logicalLevelTechnique1){case Pr.DELTA:if(t.logicalLevelTechnique2===Pr.RLE){let n=t;if(!i)return SNe(e,n.runs,n.numRleValues);e=mk(e,n.runs,n.numRleValues),a=Bre(e)}else a=Bre(e);break;case Pr.RLE:a=_Ne(e,t.runs,t.numRleValues);break;case Pr.MORTON:IC(e),a=new Int32Array(e);break;case Pr.COMPONENTWISE_DELTA:if(r&&!i)return Voe(e,r.scale,r.min,r.max);a=ANe(e);break;case Pr.NONE:a=mNe(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?tp(a,i,0):a}function rVe(e,t,r,i){let a;switch(t.logicalLevelTechnique1){case Pr.DELTA:if(t.logicalLevelTechnique2===Pr.RLE){let n=t;a=Ore(mk(e,n.runs,n.numRleValues))}else a=Ore(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?CNe(e,r.scale,r.min,r.max):kNe(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 Woe(e,t,r){let i;switch(t.logicalLevelTechnique1){case Pr.DELTA:if(t.logicalLevelTechnique2===Pr.RLE){let a=t;if(!r)return ENe(e,a.runs,a.numRleValues);e=vk(e,a.runs,a.numRleValues),i=qre(e)}else i=qre(e);break;case Pr.RLE:i=xNe(e,t.runs,t.numRleValues);break;case Pr.NONE:i=vNe(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?tp(i,r,BigInt(0)):i}function Xoe(e,t,r){let i;switch(t.logicalLevelTechnique1){case Pr.DELTA:if(t.logicalLevelTechnique2===Pr.RLE){let a=t;i=Nre(vk(e,a.runs,a.numRleValues))}else i=Nre(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 iVe(e,t,r){switch(t.logicalLevelTechnique1){case Pr.DELTA:if(t.logicalLevelTechnique2===Pr.RLE){let i=t;e=Noe(e,i.runs,i.numRleValues)}return yNe(e),e;case Pr.RLE:return oVe(e,t,r);case Pr.NONE:return r&&gNe(e),e;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}}function aVe(e,t){if(t.logicalLevelTechnique1===Pr.DELTA&&t.logicalLevelTechnique2===Pr.NONE)return TNe(e);if(t.logicalLevelTechnique1===Pr.RLE&&t.logicalLevelTechnique2===Pr.NONE){let r=t;return DNe(e,r.runs,r.numRleValues)}if(t.logicalLevelTechnique1===Pr.NONE&&t.logicalLevelTechnique2===Pr.NONE){wNe(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=MNe(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 zu?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 nVe(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 nVe(e,t,r){let i=new Boe(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 oVe(e,t,r){return r?bNe(e,t.runs,t.numRleValues):Noe(e,t.runs,t.numRleValues)}function BC(e,t,r){return{x:Ure(e,t)-r,y:Ure(e>>1,t)-r}}function Ure(e,t){let r=0;for(let i=0;i>i;return r}function sVe(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 Yn.LINESTRING:{let w;m?(w=f[i]-f[i-1],i++):w=h[r]-h[r-1],r++;let _;p?(_=J1(g,o,w,!1),o+=w*2):(_=Ld(e.vertexBufferType,g,d,s,w,!1,l),s+=w),t[n++]=[_],c&&a++}break;case Yn.POLYGON:{let w=h[r]-h[r-1];r++;let _=Array(w-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 w=c[a]-c[a-1];a++;let _=Array(w);for(let A=0;Ar?t[n++]:1);return i}function Hre(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 ose(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 zu(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 nse(m,y,a,n,o,s,g,h)}else c[f++]=new fm(m,y,a,n,g)}return c}function DVe(e,t,r,i){let a=SVe(r);if(i===0)return a.map(c=>new Yre(c,[]));let n=EVe(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 EVe(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-=kVe(e,t,o)),n-=CVe(e,t,i,o),n-=FVe(e,t,i,o);let s,l=0;if(i&Dc.PRESENCE){let c=PVe(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 kVe(e,t,r){let i=e[t.get()];t.add(1);let a=ose("",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 _=LVe(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===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=Wre(e,t,r);return{value:sse(e,t+2,n,i).value,nextIndex:n}}if(a===Of.START_LIST){let n=Wre(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 lse(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 zVe(e,t,r,i,a,n){var o;return r.type==="scalarType"?n&&!n.has(r.name)?(Uoe(i,e,t),null):RVe(i,e,t,a,r.scalarType,r):((o=r.complexType)==null?void 0:o.physicalType)===Vf.MAP?DVe(e,t,r,i):i===0?null:MVe(e,t,r,n)}function RVe(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 zu(f,u.numValues)}let s=o!=null?o:i;switch(a.physicalType){case vi.UINT_32:case vi.INT_32:return VVe(t,r,n,a,s);case vi.STRING:{let u=n.nullable?e-1:e;return(l=ose(n.name,t,r,u,o))!=null?l:null}case vi.BOOLEAN:return BVe(t,r,n,i,s);case vi.UINT_64:case vi.INT_64:return NVe(t,r,n,s,a);case vi.FLOAT:return qVe(t,r,n,s);case vi.DOUBLE:return OVe(t,r,n,s);default:throw Error(`The specified data type for the field is currently not supported: ${a}`)}}function BVe(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 zu(u,o);return new yVe(r.name,c,a)}function qVe(e,t,r,i){let a=ba(e,t),n=I2(i)?i:void 0,o=Goe(e,t,a.numValues,n);return new _Ve(r.name,o,i)}function OVe(e,t,r,i){let a=ba(e,t),n=I2(i)?i:void 0,o=joe(e,t,a.numValues,n);return new DC(r.name,o,i)}function NVe(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?Zoe(e,t,n,u):RC(e,t,n,u);return new Koe(r.name,c,i)}if(o===fa.SEQUENCE){let u=Hoe(e,t,n);return new Joe(r.name,u[0],u[1],n.numRleValues,s)}let l=s?eVe(e,t,n):Yoe(e,t,n);return new ase(r.name,l,i,s)}function VVe(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=$oe(e,t,n);return new SC(r.name,u[0],u[1],n.numRleValues,s)}let l=s?KNe(e,t,n):zC(e,t,n);return new EC(r.name,l,a,s)}function I2(e){return e instanceof zu}function use(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:Roe.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 HVe(e)}}function UVe(e){return e>=In.SCALAR_BASE}function cse(e){return e===In.STRUCT||e===In.MAP}function GVe(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 jVe(e){var t;return e.type==="scalarType"&&((t=e.scalarType)==null?void 0:t.type)==="logicalType"&&e.scalarType.logicalType===Roe.ID}function $Ve(e){var t;return e.type==="complexType"&&((t=e.complexType)==null?void 0:t.type)==="physicalType"&&e.complexType.physicalType===Vf.GEOMETRY}function HVe(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),ZVe.decode(n)}function YVe(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 hse(e,t){let r=mo(e,t,1)[0]>>>0,i=r>=In.SCALAR_BASE?use(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"&&cse(r)){let n=a.complexType,o=mo(e,t,1)[0]>>>0;n.children=Array(o);for(let s=0;s>>0,i=use(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${Xre}`);let a;if(UVe(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]=XVe(e,i),c=l.featureTables[0],h=null,f=null,d=[],p=0;for(let g of c.columns){let y=g.name;if(jVe(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 zu(T,_.numValues)}let w=ba(e,i);p=x?x.size():w.decompressedCount,h=JVe(e,g,i,y,w,x!=null?x:p,r)}else if($Ve(g)){let x=mo(e,i,1)[0];if(p===0){let w=i.get();p=ba(e,i).decompressedCount,i.set(w)}t&&(t.scale=t.extent/u),f=mVe(e,x,i,p,t)}else{let x=GVe(g)?mo(e,i,1)[0]:1;if(x===0)continue;let w=zVe(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 wOe(c.name,f,h,d,u);a.push(m),i.set(o)}return a}function JVe(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=$oe(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,JNe(e,r,a,l),n):new Koe(i,RC(e,r,a,l),n);case fa.SEQUENCE:{let h=Hoe(e,r,a);return new Joe(i,h[0],h[1],a.numRleValues,!1)}case fa.CONST:return new ase(i,Yoe(e,r,a),n,!1)}throw Error("Vector type not supported for id column.")}function iUe(e){return typeof e=="object"&&!!e&&"evaluate"in e}function Kre(e,t,r,i,a){return ow(e,(n,o)=>{let s=t instanceof Tw?t.get(o):null;return iUe(s)?s.evaluate(r,i,void 0,a):s})}function aUe(e,t){return t-e}var HPe,Jre,ZPe,YPe,WPe,Qre,gk,XPe,KPe,yy,l4,En,X4,Ru,Cc,o2,fie,bk,hte,pie,ct,nw,fIe,dte,U9,Aie,Tie,Bu,Sie,Eie,pte,Mm,Ts,C4,dm,mIe,h2,f2,Pk,Lie,Ms,or,tn,zie,Xe,Rie,xt,d2,Vt,Fr,ei,Iu,uw,qd,Lr,yIe,cw,p2,hw,Uy,fw,m2,dw,_Ie,Bie,qie,Oie,sE,Nie,xIe,bIe,MIe,SIe,Zn,Sr,kIe,lE,yh,Fc,Pc,Ul,Sa,CIe,Ec,kc,Th,zk,vm,FIe,Zie,Rk,Gl,wa,Wie,c4,mh,yte,am,eae,rae,RIe,BIe,qIe,OIe,NIe,VIe,lae,QIe,eLe,tLe,rLe,iLe,aLe,hae,nLe,oLe,sLe,Sc,Ok,_ae,Ate,Nk,Gk,CLe,jk,sm,Ac,FLe,Tae,Xd,Hk,Zk,Zy,z4,Pae,ZLe,Pte,Ite,hze,Lte,dze,pze,es,Jk,_E,vh,B4,Di,Wy,xE,_2,zte,Rte,yze,Vl,Tw,Gt,cr,Xy,ane,Mw,Ln,qte,Q9,qu,Ote,_ze,xze,Dw,bze,wze,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,nne,tC,one,sne,lne,une,cne,hne,fne,dne,pne,mne,Mh,vne,gne,Tze,Mze,Dze,Sze,Eze,K1,Vte,kze,Cze,Fze,Ute,yne,Pze,_ne,Ou,NE,xne,VE,Ize,Aa,Lze,zze,Rze,Bze,V4,bne,Dh,sr,jt,zr,Oo,km,Sh,rC,iC,qze,Zl,Fy,zd,ph,Fu,zf,Ane,Tne,Mne,jd,jE,Hte,Zte,aC,Wte,eRe,Xte,tRe,rRe,kne,iRe,Cne,Kte,aRe,nRe,Cw,na,b2,Lne,oRe,Jte,sRe,lRe,zne,uRe,Qte,cRe,hRe,dn,gh,fRe,Bne,dRe,HE,pRe,Qy,ZE,WE,Wa,G4,XE,KE,Nl,xy,Id,by,wy,Tc,Vd,Fw,um,cm,LRe,$ne,ire,VRe,are,URe,GRe,Hne,jRe,ek,$Re,HRe,jl,Zne,w2,YRe,XRe,No,ar,Wne,wi,Xf,tE,Qne,ore,nBe,sre,oBe,sBe,eoe,lBe,fBe,dBe,ik,pBe,ak,mBe,vBe,toe,ure,roe,cre,gBe,hre,yBe,fre,_Be,g4,ioe,xBe,bBe,wBe,ABe,pre,aoe,$4,CBe,FBe,PBe,vre,IBe,ooe,soe,My,Dy,nm,QBe,eqe,vC,gC,iqe,aqe,nqe,lk,Zat,Tre,doe,Rw,bqe,voe,Mre,Ere,hm,w4,Yqe,im,qw,xC,nOe,ck,hk,E2,Ire,lOe,Lre,uOe,iE,Coe,bC,cOe,zre,fOe,dOe,Foe,pOe,Ioe,mOe,vOe,gOe,Loe,k2,C2,Qn,aE,F2,bOe,TC,ep,Nw,MC,DC,zoe,SC,EC,wOe,Iy,vi,Vf,Roe,Boe,Pr,Qs,kC,dk,CC,pk,ZOe,Ka,Ro,Mc,Dn,BNe,Vre,qNe,ONe,NNe,VNe,fa,zu,WNe,Koe,Joe,Yn,Gre,jf,Qoe,ese,rse,ise,dVe,pVe,yVe,_Ve,ase,qC,Zre,fm,nse,Yre,Dc,Of,In,ZVe,Xre,oE,QVe,eUe,tUe,rUe,fse,dse=Gi(()=>{HPe=Object.create,Jre=Object.defineProperty,ZPe=Object.getOwnPropertyDescriptor,YPe=Object.getOwnPropertyNames,WPe=Object.getPrototypeOf,Qre=Object.prototype.hasOwnProperty,gk=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),XPe=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=YPe(t),n=0,o=a.length,s;nt[l]).bind(null,s),enumerable:!(i=ZPe(t,s))||i.enumerable});return e},KPe=(e,t,r)=>(r=e==null?{}:HPe(WPe(e)),XPe(t||!e||!e.__esModule||!Qre.call(e,"default")?Jre(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=tIe;Ru=rIe;Cc=J4,o2=Hl;(function(){var e=nie();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,hte(i,i))}})(),(function(){var e=cte(),t=cte();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],hte(t,lIe(t,e))}})();pie=uIe;(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.`)}}),Tie=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)});Bu=85.051129,Sie={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},Eie={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};pte="AbortError",Mm=class extends Error{constructor(e=pte){super(e instanceof Error?e.message:e),this.name=pte,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}};mIe=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(!mIe(e.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return vIe(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 gIe(e,t)})},f2=(e,t)=>h2(tr(e,{type:"json"}),t),Pk=(e,t)=>h2(tr(e,{type:"arrayBuffer"}),t);Lie=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={}),mte(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={}),mte(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}},zie={$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=zie,Rie=["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"},Iu={kind:"color"},uw={kind:"projectionDefinition"},qd={kind:"object"},Lr={kind:"value"},yIe={kind:"error"},cw={kind:"collator"},p2={kind:"formatted"},hw={kind:"padding"},Uy={kind:"colorArray"},fw={kind:"numberArray"},m2={kind:"resolvedImage"},dw={kind:"variableAnchorOffsetCollection"};_Ie=[d2,Vt,Fr,ei,Iu,uw,p2,qd,zo(Lr),hw,fw,Uy,m2,dw];Bie=.96422,qie=.82521,Oie=4/29,sE=6/29,Nie=3*sE*sE,xIe=Math.PI/180,bIe=180/Math.PI;MIe=Object.hasOwn||function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};SIe={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=DIe(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",wIe(this.rgb))}get lab(){return this.overwriteGetter("lab",Uie(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 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]=AIe([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]=Gie(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),kIe=["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 Yie(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=PIe(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=Iu: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,Iu)&&!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},Wie=class Xie{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,Iu),!c))return null;let h=null;if(s["vertical-align"]){if(typeof s["vertical-align"]=="string"&&!kIe.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 Xie(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 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=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())}},yte={"to-boolean":ei,"to-color":Iu,"to-number":Vt,"to-string":Fr},am=class Qie{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(!yte[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=yte[i],n=[];for(let o=1;o4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:$ie(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())}},eae=class tae{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}},BIe=class nae{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 nae(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}},qIe=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}},OIe=class oae{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 oae(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()}},NIe=class sae{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()}},VIe=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}},lae=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())}};QIe=Dm("==",UIe,uae),eLe=Dm("!=",GIe,YIe),tLe=Dm("<",jIe,WIe),rLe=Dm(">",$Ie,XIe),iLe=Dm("<=",HIe,KIe),aLe=Dm(">=",ZIe,JIe),hae=class fae{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 fae(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}},nLe=class dae{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 dae(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}},oLe=class pae{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 pae(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}},sLe=class mae{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 mae(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 xLe(t,this.geometries);if(t.geometryType()==="LineString")return bLe(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},_ae=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}},Ate=Math.PI/180,Nk=class{constructor(e){let t=Ate*6378.137*1e3,r=Math.cos(e*Ate),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 SLe(t,this.geometries);if(t.geometryType()==="LineString")return ELe(t,this.geometries);if(t.geometryType()==="Polygon")return kLe(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},CLe=class bae{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 wae{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 wae(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={"==":QIe,"!=":eLe,">":rLe,"<":tLe,">=":aLe,"<=":iLe,array:mh,at:RIe,boolean:mh,case:NIe,coalesce:lae,collator:hae,format:Wie,image:oLe,in:BIe,"index-of":qIe,interpolate:Gl,"interpolate-hcl":Gl,"interpolate-lab":Gl,length:sLe,let:eae,literal:vm,match:OIe,number:mh,"number-format":nLe,object:mh,semiliteral:CLe,slice:VIe,step:Rk,string:mh,"to-boolean":am,"to-color":am,"to-number":am,"to-string":am,var:rae,within:Ok,distance:Gk,"global-state":jk},Ac=class extends Error{constructor(e,t){super(t),this.message=t,this.key=e}},FLe=class Aae{constructor(t,r=[]){this.parent=t,this.bindings={};for(let[i,a]of r)this.bindings[i]=a}concat(t){return new Aae(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}},Tae=class Mae{constructor(t,r,i=[],a,n=new FLe,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 Zie;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 Mae(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 Tae(r.registry,L4,r.path,null,r.scope);let h=[],f=!1;for(let d=1;dILe(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),[Iu],(e,[t])=>{let[r,i,a,n]=t.evaluate(e).rgb;return[r*255,i*255,a*255,n]}],rgb:[Iu,[Vt,Vt,Vt],Ste],rgba:[Iu,[Vt,Vt,Vt,Vt],Ste],has:{type:ei,overloads:[[[Fr],(e,[t])=>Ete(t.evaluate(e),e.properties())],[[Fr,qd],(e,[t,r])=>Ete(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])=>PLe(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 Zie,this._defaultValue=r?Lae(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(kae(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}};Pae=class Iae{constructor(t,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,Cae(r),this._parameters=t,this._specification=i,this._rootKey=r,this._defaultValue=Lae(i),this._warningHistory={};let a=Sae(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(kae(this._rootKey,"",a,this._defaultValue))),this._defaultValue}}static deserialize(t){return new Iae(t._parameters,t._rootKey,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};ZLe={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};Pte={promoteId:eze};Ite=1114111,hze=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;Lte={"*"(){return[]},array:Xk,boolean:XLe,number:ww,color:gE,constants:qae,enum:Yy,filter:Kk,function:Oae,layer:jae,object:Js,source:$ae,light:Hae,sky:Zae,terrain:Yae,projection:sze,projectionDefinition:lze,string:Gf,formatted:tze,resolvedImage:rze,padding:ize,numberArray:aze,colorArray:nze,variableAnchorOffsetCollection:oze,sprite:Wae,state:Xae,fontFaces:Kae};Ks.source=ql(Bl($ae)),Ks.sprite=ql(Bl(Wae)),Ks.glyphs=ql(Bl(Jae)),Ks.fontFaces=ql(Bl(Kae)),Ks.light=ql(Bl(Hae)),Ks.sky=ql(Bl(Zae)),Ks.terrain=ql(Bl(Yae)),Ks.state=ql(Bl(Xae)),Ks.layer=ql(Bl(jae)),Ks.filter=ql(Bl(Kk)),Ks.paintProperty=ql(Bl(Uae)),Ks.layoutProperty=ql(Bl(Gae));dze={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},pze=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,dze,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 ene{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=ULe(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 zte(this.property,this.value,t,tr({},e.transition,this.transition),e.now)}untransitioned(){return new zte(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):Lu(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 Rte(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 Rte(this._properties);for(let t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}},zte=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}},ane=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",ane),Yt("ColorRampProperty",Mw);qte=" 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?",qu=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=mze(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 yze(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+qte);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+qte)));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}},_ze=()=>Ote||(Ote=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")})),xze={get paint(){return _ze()}},Dw=e=>e.type==="raster",bze=class extends qu{constructor(e,t){super(e,xze,t)}},wze={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 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}};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,w,_,A,T,M,S,k,P,I,B){let z=this.length;return this.resize(z+1),this.emplace(z,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,z){let L=e*34,q=e*17;return this.int16[L+0]=t,this.int16[L+1]=r,this.int16[L+2]=i,this.int16[L+3]=a,this.int16[L+4]=n,this.int16[L+5]=o,this.int16[L+6]=s,this.int16[L+7]=l,this.uint16[L+8]=u,this.uint16[L+9]=c,this.uint16[L+10]=h,this.uint16[L+11]=f,this.uint16[L+12]=d,this.uint16[L+13]=p,this.uint16[L+14]=m,this.uint16[L+15]=g,this.uint16[L+16]=y,this.uint16[L+17]=x,this.uint16[L+18]=w,this.uint16[L+19]=_,this.uint16[L+20]=A,this.uint16[L+21]=T,this.uint16[L+22]=M,this.uint32[q+12]=S,this.float32[q+13]=k,this.float32[q+14]=P,this.uint16[L+30]=I,this.uint16[L+31]=B,this.float32[q+16]=z,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);nne=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)}};nne.prototype.size=20;tC=class extends kE{get(e){return new nne(this,e)}};Yt("CollisionBoxArray",tC);one=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]}};one.prototype.size=52;sne=class extends IE{get(e){return new one(this,e)}};Yt("PlacedSymbolArray",sne);lne=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]}};lne.prototype.size=68;une=class extends LE{get(e){return new lne(this,e)}};Yt("SymbolInstanceArray",une);cne=class extends N4{getoffsetX(e){return this.float32[e*1+0]}};Yt("GlyphOffsetArray",cne);hne=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",hne);fne=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]}};fne.prototype.size=12;dne=class extends zE{get(e){return new fne(this,e)}};Yt("TextAnchorOffsetArray",dne);pne=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]}};pne.prototype.size=8;mne=class extends RE{get(e){return new pne(this,e)}};Yt("FeatureIndexArray",mne);Mh=class extends Ky{},vne=class extends q4{},gne=class extends bE{},Tze=class extends Ky{},Mze=class extends Ky{},Dze=class extends wE{},Sze=class extends AE{},Eze=class extends Jy{},K1=class extends TE{},Vte=class extends ME{},kze=class extends DE{},Cze=class extends SE{},Fze=class extends EE{},Ute=class extends CE{},yne=class extends FE{},Pze=class extends PE{},_ne=class extends O4{},Ou=class extends O4{},NE=class extends BE{},xne=class extends qE{},VE=Ea([{name:"a_pos",components:2,type:"Int16"}],4),Ize=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);Lze=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"}]),zze=Ea([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),Rze=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)})),Bze=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=KPe(gk(((e,t)=>{var r=Rze(),i=Bze();t.exports=r,t.exports.murmur3=r,t.exports.murmur2=i}))(),1),bne=class wne{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,r,i,a){this.ids.push(jte(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=jte(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 wne;return r.ids=t.ids,r.positions=t.positions,r.indexed=!0,r}};Yt("FeaturePositionMap",bne);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 Fu)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 Fu)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 Fu){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 Fu)&&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 Fu||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 Fu||t instanceof zf)&&t.destroy()}}},jd=class{constructor(e,t,r=()=>!0){this.programConfigurations={};for(let i of e)this.programConfigurations[i.id]=new Mne(i,t,r);this.needsUpload=!1,this._featureMap=new bne,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",Ane),Yt("CrossFadedDasharrayBinder",Tne),Yt("CompositeExpressionBinder",Fu),Yt("ProgramConfiguration",Mne,{omit:["_buffers"]}),Yt("ProgramConfigurationSet",jd);jE=2**14-1,Hte=-jE-1;Zte=-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 Tze,this.indexArray=new Ou,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,Ize),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;dWte||(Wte=new Ln({"circle-sort-key":new cr(Xe.layout_circle["circle-sort-key"],"circle-sort-key")})),tRe=()=>Xte||(Xte=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")})),rRe={get paint(){return tRe()},get layout(){return eRe()}},kne=e=>e.type==="circle",iRe=class extends qu{constructor(e,t){super(e,rRe,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=Qze(l,a,o,s),d=u),Ene({queryGeometry:f,size:d,transform:a,unwrappedTileID:o,getElevation:s,pitchAlignment:h,pitchScale:c},i)}},Cne=class extends aC{};Yt("HeatmapBucket",Cne,{omit:["layers"]});aRe=()=>Kte||(Kte=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")})),nRe={get paint(){return aRe()}};Cw=class Pne{constructor(t,r){lC(this,t,1,r)}resize(t){Fne(this,t,1)}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,1)}},na=class Ine{constructor(t,r){lC(this,t,4,r)}resize(t){Fne(this,t,4)}replace(t,r){r?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new Ine({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",Lne=e=>e.type==="heatmap",oRe=class extends qu{createBucket(e){return new Cne(e)}constructor(e,t){super(e,nRe,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 Ene({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()}},sRe=()=>Jte||(Jte=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")})),lRe={get paint(){return sRe()}},zne=e=>e.type==="hillshade",uRe=class extends qu{constructor(e,t){super(e,lRe,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()}},cRe=()=>Qte||(Qte=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")})),hRe={get paint(){return cRe()}};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}},fRe=(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 Rne(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",dRe=class extends qu{constructor(e,t){super(e,hRe,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 BRe(this._vertexBuffer,RRe(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(Bd(a,this._granularity,!0));i+=a.length;let o=[];for(let s=1;s=2&&Gne(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 Mze,this.indexArray=new Ou,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,pRe),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=Une(o,i,n.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;jne((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",$ne,{omit:["layers","patternFeatures"]});VRe=()=>ire||(ire=new Ln({"fill-sort-key":new cr(Xe.layout_fill["fill-sort-key"],"fill-sort-key")})),URe=()=>are||(are=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")})),GRe={get paint(){return URe()},get layout(){return VRe()}},Hne=e=>e.type==="fill",jRe=class extends qu{constructor(e,t){super(e,GRe,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 $ne(e)}queryRadius(){return Ew(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:e,geometry:t,transform:r,pixelsToTileUnits:i}){return Dne(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),$Re=Ea([{name:"a_centroid",components:2,type:"Int16"}],4),HRe=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}},Zne=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=Yne(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"];YRe=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)}};XRe=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 [, ]")}},Wne=2*Math.PI*No;wi=class Kne{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 Kne(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/Wne*KRe(wm(this.y))}},Xf=89.25;tE=8192;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 Dze,this.centroidVertexArray=new Mh,this.indexArray=new Ou,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?eBe(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:QRe(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,HRe),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,$Re.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",Qne,{omit:["layers","features"]});nBe=()=>ore||(ore=new Ln({"fill-extrusion-rounded-corner-distance":new Gt(Xe["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),oBe=()=>sre||(sre=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")})),sBe={get paint(){return oBe()},get layout(){return nBe()}},eoe=e=>e.type==="fill-extrusion",lBe=class extends qu{constructor(e,t){super(e,sBe,t)}createBucket(e){return new Qne(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=hBe(s,o,0),h=cBe(i,u,l,o),f=h[0],d=h[1];return uBe(f,d,c)}};fBe="geojsonvt_clip_start",dBe="geojsonvt_clip_end",ik=Ea([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),pBe=ik.members;ik.size,ik.alignment;ak=Ea([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),mBe=ak.members;ak.size,ak.alignment;vBe=Math.cos(75/2*(Math.PI/180)),toe=1/2,ure=2**14/toe,roe=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 Sze,this.layoutVertexArray2=new Eze,this.indexArray=new Ou,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,mBe)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,pBe),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[fBe],end:+e.properties[dBe]}}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 w=0;w=2&&e[c-1].equals(e[c-2]);)c--;let h=0;for(;h0;if(k&&w>h){let z=p.dist(m);if(z>2*f){let L=p.sub(p.sub(m)._mult(f/z)._round());this.updateDistance(m,L),this.addCurrentVertex(L,y,0,0,d),m=L}}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 z=M*y.add(x).mag()/y.sub(x).mag();_._perp()._mult(z*(P?-1:1))}this.addCurrentVertex(p,_,0,0,d),this.addCurrentVertex(p,_.mult(-1),0,0,d)}else if(B==="bevel"||B==="fakeround"){let z=-Math.sqrt(M*M-1),L=P?z:0,q=P?0:z;if(m&&this.addCurrentVertex(p,y,L,q,d),B==="fakeround"){let V=Math.round(S*180/Math.PI/20);for(let G=1;G2*f){let L=p.add(g.sub(p)._mult(f/z)._round());this.updateDistance(p,L),this.addCurrentVertex(L,x,0,0,d),p=L}}}}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>ure/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*(ure-1):this.scaledDistance)*toe;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",roe,{omit:["layers","patternFeatures"]});gBe=()=>cre||(cre=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")})),yBe=()=>hre||(hre=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")})),fre={get paint(){return yBe()},get layout(){return gBe()}},_Be=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)}},ioe=e=>e.type==="line",xBe=class extends qu{constructor(e,t){super(e,fre,t),this.gradientVersion=0,g4||(g4=new _Be(fre.paint.properties["line-width"].specification,"line-floorwidth"),g4.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e==="line-gradient"){let t=this.gradientExpression();this.stepInterpolant=VLe(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 roe(e)}queryRadius(e){let t=e,r=dre(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*dre(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=Yze(i,l*n)),Uze(o,i,s)}isTileClipped(){return!0}};bBe=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),wBe=Ea([{name:"a_projected_pos",components:3,type:"Float32"}],4);Ea([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);ABe=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"}]);pre=Ea([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),aoe=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}`)})}};CBe={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"},FBe={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]},PBe={\u0644\u0622:[65269,65270],\u0644\u0623:[65271,65272],\u0644\u0625:[65273,65274],\u0644\u0627:[65275,65276]},vre=1604,IBe=/[\u0600-\u06ff\u0750-\u077f\u0870-\u089f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/;ooe=new Map;for(let[e,t]of Object.entries(CBe))LBe(t,e,ooe);soe=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"};QBe={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},eqe={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=JBe(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("\u200B")}trim(){let t=this.graphemes(),r=0;for(;rr&&wre(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=DBe(m),x=mre(m)&&mre(g);(QBe[m]||y||"imageName"in this.getSection(d-1)||u[d+1]!==void 0&&eqe[g]||x&&(c!=null?c:c=WBe(this.text)).has(f))&&o.push(Are(d,h,s,o,tqe(m,g,y&&l),!1))}mC(p.codePointAt(0))||(h+=xre(p,this.getSection(d),i,a,t,n)),f+=p.length}return hoe(Are(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+=xre(u,c,i,a,t,n),s++}let l=Math.max(1,Math.ceil(o/r));return o/l}};gC=rqe(),iqe=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/,aqe=new Set(["WS","FSI","LRI","RLI","PDI"]),nqe=new Set(["S","B"]);lk=4294967296,Zat=1/lk,Tre=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),doe=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,mqe(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&&Tre?Tre.decode(this.buf.subarray(t,e)):gqe(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]}},bqe=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",bqe);voe=(function(e){return e[e.none=0]="none",e[e.horizontal=1]="horizontal",e[e.vertical=2]="vertical",e[e.horizontalOnly=3]="horizontalOnly",e})(voe||{});Mre=new RegExp("^\\p{gc=M}$","u");Ere=32640;hm=class boe extends qe{constructor(t,r,i,a){super(t,r),this.angle=i,a!==void 0&&(this.segment=a)}clone(){return new boe(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)?xoe(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}},Yqe=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=Kqe(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;nOe=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];ck=class{constructor(e){this.layoutVertexArray=new kze,this.indexArray=new Ou,this.programConfigurations=e,this.segments=new Aa,this.dynamicLayoutVertexArray=new Cze,this.opacityVertexArray=new Fze,this.hasVisibleVertices=!1,this.placedSymbolArray=new sne}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,bBe.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,wBe.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,nOe,!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 Pze}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,ABe.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=kre(this.zoom,t["text-size"]),this.iconSizeData=kre(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=>voe[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 cne,this.lineVertexArray=new hne,this.symbolInstances=new une,this.textAnchorOffsets=new dne}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:w}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=oOe(I)),T=HBe(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: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 z of T.sections)z.image&&(h[z.image.name]=!0)}}a.get("symbol-placement")==="line"&&(this.features=YBe(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}){Qqe({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"]});lOe=()=>Ire||(Ire=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")})),uOe=()=>Lre||(Lre=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:Iu,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 uOe()},get layout(){return lOe()}},Coe=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",Coe,{omit:["defaultValue"]});bC=e=>e.type==="symbol",cOe=class fk extends qu{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?sOe(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 Coe(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 Wie?o(u.sections):u.eachChild(s)},l=i.value;l._styleExpression&&s(l._styleExpression.expression)}return n}};fOe=()=>zre||(zre=new Ln({"background-color":new Gt(Xe.paint_background["background-color"],"background-color"),"background-pattern":new ane(Xe.paint_background["background-pattern"],"background-pattern"),"background-opacity":new Gt(Xe.paint_background["background-opacity"],"background-opacity")})),dOe={get paint(){return fOe()}},Foe=e=>e.type==="background",pOe=class extends qu{constructor(e,t){super(e,dOe,t)}};Ioe=e=>e.type==="custom",mOe=class extends qu{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")}};vOe=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=()=>{}}},gOe={once:!0},Loe=class{constructor(e,t){this.target=e,this.mapId=t,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new vOe(()=>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))},gOe):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(!yOe(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=_Oe(this.x,this.y,this.z),a=xOe(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",bOe=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=Yne(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]}},zoe=class extends ep{constructor(e,t,r,i){super(e,t,i),this.delta=r}},SC=class extends zoe{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]}},wOe=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=qoe(CC),ZOe=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={}));BNe=[Ka.PRESENT,Ka.DATA,Ka.OFFSET,Ka.LENGTH],Vre=[Pr.NONE,Pr.DELTA,Pr.COMPONENTWISE_DELTA,Pr.RLE,Pr.MORTON],qNe=[Qs.NONE,Qs.FAST_PFOR,Qs.VARINT],ONe=[Ro.NONE,Ro.SINGLE,Ro.SHARED,Ro.VERTEX,Ro.MORTON,Ro.FSST],NNe=[Mc.VERTEX,Mc.INDEX,Mc.STRING,Mc.KEY],VNe=[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={}));zu=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}};WNe=new TextDecoder;Koe=class extends Nw{getValueFromBuffer(e){return this.dataBuffer[e]}},Joe=class extends zoe{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"})(Gre||(Gre={}));(function(e){e[e.MORTON=0]="MORTON",e[e.VEC_2=1]="VEC_2",e[e.VEC_3=2]="VEC_3"})(jf||(jf={}));Qoe=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 sVe(this)}get mortonSettings(){return this._mortonSettings}};ese=class extends Qoe{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}};rse=class extends Qoe{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 eUe(i)}),{})}},rUe=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 mne,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 tUe(this.rawTileData).layers:this.vtLayers=new XRe(new doe(this.rawTileData)).layers,this.sourceLayerCoder=new bOe(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)=>$ze(e.cameraQueryGeometry,m-l,g-l,y+l,x+l));for(let m of f)c.push(m);c.sort(aUe);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=Kd(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=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=Kre(x.paint,g.paint,d,y,o),x.layout=Kre(x.layout,g.layout,d,y,o);let w=!c||c(d,g,y);if(!w)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:w})}}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",rUe,{omit:["rawTileData","sourceLayerCoder"]});fse=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 hce={};Yi(hce,{AJAXError:()=>dm,AttributionControl:()=>ice,BoxZoomHandler:()=>$ue,CanvasSource:()=>Hle,CooperativeGesturesHandler:()=>tce,DoubleClickZoomHandler:()=>Kue,DragPanHandler:()=>Jue,DragRotateHandler:()=>Que,EXTENT:()=>ct,EdgeInsets:()=>_F,ErrorEvent:()=>or,Event:()=>Ms,Evented:()=>tn,FullscreenControl:()=>TYe,FullscreenEvent:()=>DF,GPUInitializationError:()=>Gue,GeoJSONSource:()=>Vle,GeolocateControl:()=>_Ye,GeolocateErrorEvent:()=>uce,GeolocateEvent:()=>ap,GeolocatePositionEvent:()=>MF,GlobeControl:()=>DYe,Hash:()=>jue,ImageSource:()=>Om,KeyboardHandler:()=>Wue,LngLat:()=>ar,LngLatBounds:()=>Uu,LogoControl:()=>ace,Map:()=>hYe,MapBoxZoomEvent:()=>uF,MapContextEvent:()=>i6,MapLibreEvent:()=>Rn,MapLibreMap:()=>hYe,MapMouseEvent:()=>Ds,MapMovementEvent:()=>hr,MapProjectionEvent:()=>Ele,MapSourceDataEvent:()=>ma,MapStyleDataEvent:()=>Wl,MapStyleImageMissingEvent:()=>kle,MapStyleLoadEvent:()=>lF,MapTerrainEvent:()=>Sle,MapTouchEvent:()=>j2,MapWheelEvent:()=>Dle,Marker:()=>TF,MarkerClickEvent:()=>lce,MarkerDragEvent:()=>ip,MercatorCoordinate:()=>wi,NavigationControl:()=>dYe,Point:()=>qe,Popup:()=>kYe,PopupEvent:()=>SF,RasterDEMTileSource:()=>Ole,RasterTileSource:()=>PF,ScaleControl:()=>bYe,ScrollZoomHandler:()=>Xue,Style:()=>bF,TerrainControl:()=>MYe,TwoFingersTouchPitchHandler:()=>Yue,TwoFingersTouchRotateHandler:()=>Zue,TwoFingersTouchZoomHandler:()=>Hue,TwoFingersTouchZoomRotateHandler:()=>ece,VectorTileSource:()=>qle,VideoSource:()=>$le,addProtocol:()=>Pie,addSourceType:()=>bGe,clearPrewarmedResources:()=>YUe,config:()=>Ts,createTileMesh:()=>Gle,getGlobalDispatcher:()=>FF,getMaxParallelImageRequests:()=>BYe,getRTLTextPluginStatus:()=>IYe,getVersion:()=>LYe,getWorkerCount:()=>zYe,getWorkerUrl:()=>OYe,importScriptInWorkers:()=>VYe,isTimeFrozen:()=>cUe,now:()=>Ei,prewarm:()=>ZUe,removeProtocol:()=>Iie,restoreNow:()=>uUe,setMaxParallelImageRequests:()=>qYe,setNow:()=>lUe,setRTLTextPlugin:()=>PYe,setWorkerCount:()=>RYe,setWorkerUrl:()=>NYe});function Mle(){var e=new En(4);return En!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function nUe(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 oUe(e){return e[0]*e[3]-e[2]*e[1]}function sUe(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 lUe(e){v6.setNow(e)}function uUe(){v6.restoreNow()}function cUe(){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 vUe(e,t){let r={};for(let i in e)i!=="ref"&&(r[i]=e[i]);return Rie.forEach(i=>{i in t&&(r[i]=t[i])}),r}function pse(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),xUe(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 wUe(){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 yse(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 AUe(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(yse(u,n,".json"),"SpriteJSON");o[l]=f2(c,i);let h=yield t.transformRequest(yse(u,n,".png"),"SpriteImage");s[l]=Vu.getImage(h,i)}return yield Promise.all([...Object.values(o),...Object.values(s)]),TUe(o,s)})}function TUe(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],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 kUe(e){let t=/^u\+([0-9a-f]*)(\?+)$/i.exec(e);if(t){let[,a,n]=t;return a.length+n.length>6?null:_se(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 _se(i,r[2]===void 0?i:parseInt(r[2],16))}function _se(e,t){return e>t||e>cF?null:{start:e,end:Math.min(t,cF)}}function CUe(e,t){return e.ranges.some(({start:r,end:i})=>t>=r&&t<=i)}function xse(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 WUe(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 XUe(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 KUe(e,t,r,i,a,n,o){var h;let s=XUe((h=a==null?void 0:a.layers)!=null?h:null,t,e.id),l=n.maxPitchScaleFactor(),u=e.tilesIn(i,l,s);u.sort(Lle);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,WUe(n,f.tileID),o?(d,p)=>o(f.tileID,d,p):void 0)});return tGe(eGe(c),e)}function JUe(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(Lle);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 rGe(s,e,r)}function QUe(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 Lle(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 eGe(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 tGe(e,t){for(let r in e)for(let i of e[r])zle(i,t);return e}function rGe(e,t,r){for(let i in e)for(let a of e[i]){let n=r[t[i].source];zle(a,n)}return e}function zle(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 Rle(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 iGe(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 aGe(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 nGe(e,t,r){if(!e)return t||{};if(!t)return e||{};let i=Tse(e,r),a=Tse(t,r);oGe(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 lGe(n)}function oGe(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,sGe(a,i)),e.update.delete(r))}}function sGe(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 Tse(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 lGe(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 Nle(e){return!e||e.length===0?[]:typeof e[0]=="number"?[e]:e.flatMap(t=>Nle(t))}function n6(e){return e.type==="GeometryCollection"?e.geometries.flatMap(t=>n6(t)):Nle(e.coordinates)}function Mse(e){let t=new Uu,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 uGe({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 Uu([a,n],[o,s])}function fGe(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 dGe(e){return e>0?1/(1-e):1+e}function pGe(e){return e>0?1-1/(1.001-e):-e}function Ule(e,t){let r=Gle(t,"16bit"),i=Mh.deserialize({arrayBuffer:r.vertices,length:r.vertices.byteLength/2/2}),a=Ou.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 Gle(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*ct;_===-1&&(A=-$w),_===r+1&&(A=ct+$w);let T=w/r*ct;w===-1&&(T=e.extendToNorthPole?um:-$w),w===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 w=0;w=1&&y<=512)||x>=1?Rm:[p,m,x]}function yGe(e){let t=(1-4/e)/.9921875;return Math.max(0,t)}function jle(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 wGe(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 AGe),jC}function Dse(e){let t=[];for(let r in e)t.push({id:r,state:e[r]});return t}function MGe(e,t,r,i){let a=Kn([],e,t),n=1/a[3]/r*i;return fie(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=Hl(f);da(f,f,1/d),s.push(d),l.push(f)}for(let h=0;h<4;h++){let f=mie(e[h+a],l[h],r);o=f!==null&&f>=0?Math.max(o,f):Math.max(o,s[h])}let u=SGe(e,t),c=EGe(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 SGe(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 EGe(e,t){let r=o2(e),i=hie([],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 kGe(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 Sse(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*Sse(s-1,0,pa(o/2)),c=Math.min(pa(Xf),l+pa(o/2)),h=Math.min(c,l-pa(o/2)),f=Sse(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 FGe(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 PGe(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 IGe(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:PGe(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}=IGe(r,i,e.cameraPosition,t.maxContentElevation));let a=Jne(e),n=wi.fromLngLat(e.center,e.elevation),o=FGe(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),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 q=kGe(r,I,i);if(q===0)continue;k=q===2}let B=s.distanceToTile2d(a.x,a.y,P,I),z=u;l&&(z=(t.calculateTileZoom||CGe)(e.zoom+Jn(e.tileSize/t.tileSize),B,y,x,e.fov)),z=(t.roundZoom?Math.round:Math.floor)(z),z=Math.max(0,z);let L=Math.min(z,h);if(T.wrap=s.getWrap(n,P,T.wrap),T.zoom>=L){if(T.zoom>1),$=T.zoom+1;_.push({zoom:$,x:V,y:G,wrap:T.wrap,fullyVisible:k})}}return A.sort((T,M)=>T.distanceSq-M.distanceSq).map(T=>T.tileID)}function Ese(e){return e==="raster"||e==="image"||e==="video"}function LGe(e,t,r,i,a,n,o){let s=Ei(),l=gie(t);for(let u of t){let c=e.getTileById(u.key);(c.fadingDirection===0||c.fadeOpacity===0)&&c.resetFadeLogic(),!zGe(e,c,r,s,i,a,o)&&(RGe(e,c,r,s,n,o)||BGe(c,l,s,o)||c.resetFadeLogic())}}function zGe(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 RGe(e,t,r,i,a,n){if(!t.hasData())return!1;let o=t.tileID.children(a),s=kse(e,t,o,r,i,a,n);if(s)return!0;for(let l of o)kse(e,t,l.children(a),r,i,a,n)&&(s=!0);return s}function kse(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 BGe(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 qGe(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 OGe(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||Cse(e,s),!((n=(a=s.neighboringTiles)==null?void 0:a[e.tileID.key])!=null&&n.backfilled)&&Cse(s,e)}}function Cse(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 VGe(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 UGe(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 GGe(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=Mle();o[0]=n[0],o[1]=n[1],o[2]=a[0],o[3]=a[1],nUe(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 $Ge(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 Jle(e,t){return .5+e/t*.5}function HGe(e,t){return e.x>=-t[0]&&e.x<=t[0]&&e.y>=-t[1]&&e.y<=t[1]}function ZGe(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,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 Lse(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=Qle(h,s,f,d,n,i,c,t);if(!x)return{notEnoughRoom:!0};let w=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=Ise(i.writingMode,w,_,u);if(A)return A}p=[x.first];for(let A=i.glyphStartIndex+1;A0?w.point:eue(t.tileAnchorPoint,x,g,1,t),A=Zw(g.x,g.y,t,r),T=Zw(_.x,_.y,t,r),M=Ise(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 eue(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 eue(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 tue(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 YGe(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]=_ie(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,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=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=YGe(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 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 KGe(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 Bse(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 qse(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 Ose(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*rje+t*ije+r*aje+t*nje+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;iue(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 iue(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);iue(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 Vse(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 h6(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 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().maxzoom180?-360:r<-180?360:0}function Gse(e){return Math.max(0,Math.floor(e))}function VF(e,t,r,i){if(i<0||i>=1)return Hse;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 lue(s6(e,t),e.near[2]+t*e.dz)}function Zse({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 hue(){Xr("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function fue(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=Die(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 due(e,t,r,i,a){let n=a.padding,o=Nu(a.worldSize,r.getNorthWest()),s=Nu(a.worldSize,r.getNorthEast()),l=Nu(a.worldSize,r.getSouthEast()),u=Nu(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),w=a.height-(n.top+n.bottom+t.top+t.bottom),_=x/y.x,A=w/y.y;if(A<0||_<0){hue();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 mue(e){let t=qm(e.worldSize,e.center.lat);return 2*Math.PI*t}function Mje(e,t,r){let i=zn(t),a=zn(r),n=en(i,a),o=Math.acos(n),s=mue(e);return o/(2*Math.PI)*s}function Dje(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 Sje(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 Eje(e,t){return tw($f(),-e.lng,-e.lat,t)}function kje(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 Xse(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-(Bu-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 Pje(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 Ije(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 Lje(e,t){return 360/mue({worldSize:e,center:{lat:t}})}function zje(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=Lje(t.worldSize,t.center.lat);return new ar(t.center.lng-r.x*n*a,Tr(t.center.lat+r.y*n,-Bu,Bu))}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 Kse(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 gue(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 Jse(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 xue(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 ele(e,t){let{sample:r,radius:i}=xue(e,t);return lue(r,(i-1)*No)}function tle(e,t){let r=zn(e);return da(r,r,1+t/No)}function rle(e,t,r){let i=J4(Ai(),r,e);return en(i,t)}function qje(e,t,r){let i={constrainOverride:t};if(Array.isArray(e)){let a=new Wse({type:e},r);return{projection:a,transform:new ile(i),cameraHelper:new ale(a)}}switch(e){case"mercator":return{projection:new yF,transform:new f6(i),cameraHelper:new d6};case"globe":{let a=new Wse({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]},{});return{projection:a,transform:new ile(i),cameraHelper:new ale(a)}}case"vertical-perspective":return{projection:new pue,transform:new yue(i),cameraHelper:new wue};default:return Xr(`Unknown projection name: ${e}. Falling back to mercator projection.`),{projection:new yF,transform:new f6(i),cameraHelper:new d6}}}function Zje(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]=Yje[a];r=Math.ceil(r/o)*o,t[i]=r,r+=n}return{offsets:t,contentWords:r,sizeWords:Math.ceil(r/4)*4}}function Tue(e){return new GF(e,y6.ProjectionUBO,Aue)}function nle(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 Wje(e,t){var n;if(!t){e.projectionUniformBuffer.bind();return}let r=t.uniformBufferKey;if(r===void 0){nle(e.projectionUniformBuffer,t);return}let i=e.keyedProjectionUniformBuffers.get(r);if(i){i.bind();return}let a=(n=e.freeProjectionUniformBuffers.pop())!=null?n:Tue(e);e.keyedProjectionUniformBuffers.set(r,a),nle(a,t)}function Xje(e){e.freeProjectionUniformBuffers.push(...e.keyedProjectionUniformBuffers.values()),e.keyedProjectionUniformBuffers.clear()}function Kje(e){e.projectionUniformBuffer.destroy();for(let t of e.keyedProjectionUniformBuffers.values())t.destroy();for(let t of e.freeProjectionUniformBuffers)t.destroy()}function Jje(e){return new GF(e,y6.TerrainUBO,Mue)}function Qje(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 e$e(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 r$e(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 w$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 Fue(e,t,r){return wh(e.transform,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}function PHe(e){return new GF(e,y6.FrameUBO,Lue)}function IHe(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 zHe(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 ule(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,ri.disabled,Si.disabled,e.colorModeForRenderPass(),Ti.disabled,null,ts(n,y),vo(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 yne;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;UHe(g,h,f,l,u,_,T,x,A,wh(u,m,o,s),p.toUnwrapped(),M,r.layout.get("symbol-height-anchor")==="ground")}}}function VHe(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 UHe(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:G,angle:$})}}if(l){m.clear();let y=e.icon.placedSymbolArray;for(let x=0;xe.style.map.terrain.getElevation(z,ie,Se):void 0;ZGe(q,e,a,te,He,y,u,r.layout.get("text-rotation-alignment")==="map",z.toUnwrapped(),m.width,m.height,fe,it)}let Fe=a&&M||Ve,se=y?te:e.transform.clipSpaceToPixelsMatrix,Ue=x||Fe?BHe:se,Ne=$&&r.paint.get(a?"text-halo-width":"icon-halo-width").constantOr(1)!==0,$e;$e=$?q.iconsInText?O$e(H.kind,oe,w,y,x,Fe,e,Ue,re,fe,De,ye,k,Me,Pe):Iue(H.kind,oe,w,y,x,Fe,e,Ue,re,fe,a,De,Ne,k,Me,Pe):Pue(H.kind,oe,w,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((z,L)=>z.sortKey-L.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 z of S){let L=z.state;d.activeTexture.set(p.TEXTURE0),L.atlasTexture.bind(L.atlasInterpolation,p.CLAMP_TO_EDGE),L.atlasTextureIcon&&(d.activeTexture.set(p.TEXTURE1),L.atlasTextureIcon&&L.atlasTextureIcon.bind(L.atlasInterpolationIcon,p.CLAMP_TO_EDGE));let q=L.isSDF&&L.hasHalo;if(q){let V=L.uniformValues;V.u_is_halo=1,I&&(V.u_is_plain=0,hle(L.buffers,z.segments,r,e,L.program,T,c,h,V,L.projectionData,z.terrainData),V.u_is_halo=0,V.u_is_plain=1)}hle(L.buffers,z.segments,r,e,L.program,T,c,h,L.uniformValues,L.projectionData,z.terrainData),q&&!I&&(L.uniformValues.u_is_halo=0)}}function hle(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 jHe(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),w=x.getBucket(r);if(!w)continue;let _=r.paint.get("circle-translate"),A=r.paint.get("circle-translate-anchor"),T=wh(h,x,_,A),M=w.programConfigurations.get(r.id),S=e.useProgram("circle",M),k=w.layoutVertexBuffer,P=w.indexBuffer,I=ts(a,y),B={programConfiguration:M,program:S,layoutVertexBuffer:k,indexBuffer:P,uniformValues:p$e(e,x,r,T,g),terrainData:I,projectionData:vo(a,y)};if(l){let z=w.segments.get();for(let L of z)m.push({segments:new Aa([L]),sortKey:L.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,Ti.backCCW,T,M,S,r.id,_,A,k,r.paint,e.transform.zoom,x)}}function $He(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"?YHe(e,s,r,o,a):a.currentPass==="translucent"&&WHe(e,r,o,a))}n.viewport.set([0,0,e.width,e.height])}else a.currentPass==="offscreen"?HHe(e,t,r,i,a):a.currentPass==="translucent"&&ZHe(e,r)}function HHe(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]);XHe(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,kue(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 ZHe(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),Rue(r,t).bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,i.TRIANGLES,ri.disabled,Si.disabled,e.colorModeForRenderPass(),Ti.disabled,Cue(e,t,0,1),null,null,t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom))}function YHe(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=zue(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,kue(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 WHe(e,t,r,i){let a=e.context,n=a.gl,o=e.transform;a.setColorMode(e.colorModeForRenderPass());let s=Rue(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,Cue(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 XHe(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=zue(e,t.width/4,t.height/4),r.heatmapFbos.set(b2,a))}function zue(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 Rue(e,t){return t.colorRampTexture||(t.colorRampTexture=new dn(e,t.colorRamp,e.gl.RGBA)),t.colorRampTexture}function Bue(e,t,r){let i=e.context,a=i.bindFramebuffer.get(),n=i.viewport.get(),[,,o,s]=n;return KHe(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 KHe(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 que(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,z$e(t,0),null,null,i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom),e.currentStencilSource=void 0}function Oue(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 L=ts(c,M),q=vo(c,M,{aligned:x}),V=hGe(B,I,z.fadeMix,r,s,l),G=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,L,q,r.id,G.vertexBuffer,G.indexBuffer,G.segments)}}function uZe(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:cZe(e,n,r)}}return e.selfFading?{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:hZe(e,r)}:a}function cZe(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 hZe(e,t){let r=(Ei()-e.timeAdded)/t,i=Tr(r,0,1);return{tileOpacity:i,fadeMix:{opacity:i,mix:0}}}function fZe(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 w=r.getCrossfadeParameters();for(let _ of x){let A=vo(a,_),T=f?G$e(o,e,f,{tileID:_,tileSize:h},w):U$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 yZe(e){let t=e.transform.padding;ple(e,e.transform.height-(t.top||0),3,dZe),ple(e,t.bottom||0,3,pZe),mle(e,t.left||0,3,mZe),mle(e,e.transform.width-(t.right||0),3,vZe);let r=e.transform.centerPoint;_Ze(e,r.x,e.transform.height-r.y,gZe)}function _Ze(e,t,r,i){m6(e,t-1,r-10,2,20,i),m6(e,t-10,r-1,20,2,i)}function ple(e,t,r,i){m6(e,0,t+r/2,e.transform.width,r,i)}function mle(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 xZe(e,t,r,i){for(let a of r)bZe(e,t,a,i)}function bZe(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}`),wZe(e,`${g} ${d}kB`);let y=vo(i,r);o.draw(a,n.TRIANGLES,s,l,$a.alphaBlended,Ti.disabled,ole(Sr.transparent,m),null,y,c,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments),o.draw(a,n.LINE_STRIP,s,l,u,Ti.disabled,ole(Sr.red),h,y,c,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments)}function wZe(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 AZe(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 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{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 MZe(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=Hje(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 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=$je(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 Uue(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 Ou;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 SZe(e,t){let r=e.context,i=r.gl,a=Z$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=Uue(r,t);l.draw(r,i.TRIANGLES,n,o,s,Ti.disabled,a,null,void 0,"sky",u.vertexBuffer,u.indexBuffer,u.segments)}function EZe(e,t){let r=e.getCartesianPosition();sie(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)),lie(r,r,i),r}function kZe(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=EZe(r,e.transform),u=s.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),c=qm(s.worldSize,s.center.lat),h=vue(s),f=gue(Hl(h)-c,c),d=t.properties.get("atmosphere-blend")*u.projectionTransition*f;if(d===0)return;let p=$$e(l,d,h,c,s.inverseProjectionMatrix),m=Uue(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 YZe({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 WZe({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 XZe({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 QZe(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 mYe(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 nce(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 oce(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 vYe(){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:sce},[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 gYe(e){return e.firstElementChild.children[1]}function Ale(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=AYe(r),n=a/r;e.style.width=`${t*n}px`;let o=`${a}\xA0${i}`;e.textContent!==o&&(e.textContent=o)}function wYe(e){let t=10**Math.ceil(-Math.log(e)/Math.LN10);return Math.round(e*t)/t}function AYe(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:wYe(r),t*r}function cce(e){if(!e)return cce(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 CYe(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 PYe(e,t){return Z2().setRTLTextPlugin(e,t)}function IYe(){return Z2().getRTLTextPluginStatus()}function LYe(){return FYe}function zYe(){return g6.workerCount}function RYe(e){g6.workerCount=e}function BYe(){return Ts.MAX_PARALLEL_IMAGE_REQUESTS}function qYe(e){Ts.MAX_PARALLEL_IMAGE_REQUESTS=e}function OYe(){return Ts.WORKER_URL}function NYe(e){Ts.WORKER_URL=e}function VYe(e){return Kt(this,null,function*(){yield FF().broadcast("IS",e)})}var fce,Tle,Uw,L2,VC,Ss,v6,hUe,fUe,dUe,pUe,z2,t,Ni,wr,Vu,mUe,Rn,hr,lF,Wl,ma,Ds,j2,Dle,uF,Sle,Ele,i6,kle,MUe,DUe,cF,SUe,EUe,FUe,hF,EF,PUe,IUe,LUe,zUe,wse,RUe,BUe,Ase,qUe,OUe,NUe,kF,g6,HUe,$2,Ile,jw,Uu,Ble,qle,PF,Ole,Vle,Rm,cGe,hGe,Y2,np,$w,Om,$le,Hle,Zle,_Ge,Yle,xGe,bGe,fF,AGe,jC,Wle,TGe,IF,LF,CGe,Fse,Ch,pF,NGe,Pse,jGe,WGe,JGe,zse,R2,Rse,QGe,eje,tje,rje,ije,aje,nje,B2,oje,sje,Nse,Ra,lje,O2,uje,cje,hje,aue,fje,dje,pje,mje,vje,gje,yje,_je,Use,Ic,nue,oue,yF,_F,NF,xje,bje,wje,jse,$se,Aje,Hse,f6,d6,Yse,Tje,HC,pue,Wse,ZC,Rje,WC,Bje,Qse,yue,ile,wue,ale,Oje,bF,Nje,Vje,Uje,Gje,jje,$je,Hje,y6,Yje,GF,Aue,Lm,Mue,Xw,t$e,i$e,a$e,Sue,n$e,o$e,s$e,l$e,u$e,Eue,c$e,h$e,f$e,d$e,p$e,m$e,ole,v$e,g$e,kue,Cue,y$e,_$e,x$e,b$e,A$e,T$e,M$e,D$e,S$e,E$e,k$e,_6,C$e,F$e,P$e,I$e,L$e,z$e,R$e,B$e,q$e,Pue,Iue,O$e,N$e,V$e,U$e,G$e,j$e,$$e,H$e,Z$e,Kw,Y$e,W$e,sle,X$e,Ii,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,THe,MHe,DHe,SHe,$F,EHe,kHe,CHe,FHe,Lue,il,$a,LHe,ri,JC,Si,lle,QC,Ti,Jw,BHe,rF,aF,dZe,pZe,mZe,vZe,gZe,CZe,op,FZe,Gue,jue,W2,PZe,IZe,LZe,zZe,RZe,BZe,qZe,OZe,$ue,VZe,AF,UZe,X2,GZe,K2,$Ze,HZe,x6,KZe,YF,vle,Hue,Zue,Yue,JZe,Wue,_le,Xue,Kue,eYe,tYe,Jue,Que,ece,tce,rYe,t6,iYe,aYe,nYe,rce,ice,ace,oYe,xle,sYe,zm,lYe,uYe,cYe,ble,hYe,fYe,dYe,pYe,rp,WF,wle,sce,sF,ip,lce,TF,yYe,r6,U2,ap,MF,uce,_Ye,xYe,bYe,DF,TYe,MYe,DYe,SYe,EYe,SF,kYe,FYe,dce=Gi(()=>{dse();fce={};Tle="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}};hUe=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(".")),fUe=new Set(["alt","class","datetime","dir","height","href","hreflang","lang","referrerpolicy","rel","role","src","target","title","translate","type","width"]),dUe=new Set(["href","src"]),pUe=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"&&hUe.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(!fUe.has(t)&&!t.startsWith("aria-"))return!1;if(!dUe.has(t))return!0;try{return pUe.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),Vu.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"?Aie(h,f):Tie(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 w=x?c(f,y):h2(f,y);try{let _=yield w;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})})(Vu||(Vu={})),Vu.resetRequestQueue();mUe=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}},Dle=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{},Sle=class extends Rn{constructor(e={}){super("terrain",e)}},Ele=class extends Rn{constructor(e={}){super("projectiontransition",e)}},i6=class extends Rn{},kle=class extends Rn{constructor(e={}){super("styleimagemissing",e)}};MUe=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 kle({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`),moe(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}},DUe=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,SUe={start:0,end:cF},EUe=0;FUe=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(CUe(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-${EUe++}`,a=r["unicode-range"];if(!(a!=null&&a.length))return{url:r.url,ranges:[SUe],family:i};let n=[];for(let o of a){let s=kUe(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;PUe=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(hF,0,f),y.fill(0,0,f);let _=3;for(let S=0;S{let r=new PUe(e);return r.buffer=t,r},zUe=class{constructor(e,t,r,i=LUe){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={},this.lang=r,this.fontFaceManager=new FUe(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 poe(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&&noe(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===IUe&&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()}},RUe=()=>wse||(wse=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")})),BUe=class extends tn{constructor(e,t){super(),this._transitionable=new _2(RUe(),"light",t),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return xie(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)}},qUe=()=>Ase||(Ase=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")})),OUe=class extends tn{constructor(e,t){super(),this._transitionable=new _2(qUe(),"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}},NUe=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 Ple{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}},HUe=Math.floor(Ss.hardwareConcurrency/2);g6.workerCount=wie(globalThis)?Math.max(Math.min(HUe,3),1):1;Ile=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 Loe(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)})}};Uu=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)}},Ble=class{constructor(e,t,r){this.bounds=Uu.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 Rle(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 Ble(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 Vu.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}},Ole=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 Vu.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 Mie(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+1Mse(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=uGe(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],cGe=(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)}),hGe=(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:pGe(i.paint.get("raster-saturation")),u_contrast_factor:dGe(i.paint.get("raster-contrast")),u_spin_weights:fGe(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 Vu.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=Ule(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=mGe(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=gGe(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!jle(this.tileCoords),this.flippedWindingOrder=vGe(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}};$le=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 Lie(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}},Hle=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}},Zle={},_Ge=(e,t,r,i)=>{let a=new(Yle(t.type))(e,t,r,i);if(a.id!==e)throw Error(`Expected Source id to be ${e} instead of ${a.id}`);return a},Yle=e=>{switch(e){case"geojson":return Vle;case"image":return Om;case"raster":return PF;case"raster-dem":return Ole;case"vector":return qle;case"video":return $le;case"canvas":return Hle}return Zle[e]},xGe=(e,t)=>{Zle[e]=t},bGe=(e,t)=>Kt(null,null,function*(){if(Yle(e))throw Error(`A source type called "${e}" already exists.`);xGe(e,t)});fF="RTLPluginLoaded",AGe=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;Wle=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=wGe(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 Kle{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=>MGe(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=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 Kle(u,c,new IF(h,f))}};CGe=dF(9.314,3);Fse=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=_Ge(t,r,i,this),this._inViewTiles=new Fse,this._outOfViewCache=new fse(0,a=>this._unloadTile(a)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new TGe,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 Fse}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&&OGe(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=Ese(this._source.type);s&&this._rasterFadeDuration>0&&!r&&LGe(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 Wle(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 w=f.map(_=>x.getTilePoint(new wi(_.x,_.y)));if(w.expandBy(y),w.intersects(Zne)){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:Ese(this._source.type)&&qGe(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),NGe=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))}};Pse=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],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))&&!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}};jGe=xh();WGe=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);JGe=class{constructor(e,t=new Pse(e.width+200,e.height+200,25),r=new Pse(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[w,_,A,T]=x.box,M=n?x.allPointsOccluded:g.isOccluded,S=M;return S||(S=g.perspectiveRatio=1;H--)V.push(L.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 $){z.reset(H,P*.25);let Z=0;Z=z.length<=.5*P?1:Math.ceil(z.paddedLength/G)+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));L=q.some(V=>!V.isOccluded),z=q.map(V=>new qe(V.x,V.y))}else L=!0;return{box:vie(z),allPointsOccluded:!L}}},zse=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 zse(e?e.text:null,t,r,a),this.icon=new zse(e?e.icon:null,t,i,a)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},Rse=class{constructor(e,t,r){this.text=e,this.icon=t,this.skipFade=r}},QGe=class{constructor(e,t,r,i,a){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=r,this.bucketIndex=i,this.tileID=a}},eje=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]}};tje=class{constructor(e,t,r,i,a){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new JGe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=r,this.retainedQueryData={},this.collisionGroups=new eje(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 QGe(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: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=qw[e.textAnchor],M=[e.textOffset0,e.textOffset1],S=Bse(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 z;if((P=this.prevPlacement)!=null&&P.variableOffsets[f.crossTileID]&&((B=(I=this.prevPlacement)==null?void 0:I.placements[f.crossTileID])!=null&&B.text)&&(z=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:z},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"),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),z=this.transform.getFastPathSimpleProjectionMatrix(I),L=(q,V,G)=>{var Pe,Fe;if(t[q.crossTileID])return;if(c){this.placements[q.crossTileID]=new Rse(!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,z,$,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,z,$,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,G,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 Rse(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 G=q[V];L(i.symbolInstances.get(G),i.collisionArrays[G],G)}}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 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 z=Ose(T.text),L=P?B2:z;p(e.text,x,L);let q=I?B2:z;p(e.text,w,q);let V=T.text.isHidden(),G=[y.rightJustifiedTextSymbolIndex,y.centerJustifiedTextSymbolIndex,y.leftJustifiedTextSymbolIndex];for(let Z of G)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 z=Ose(T.icon),L=!(f&&y.verticalPlacedIconSymbolIndex&&P);if(y.placedIconSymbolIndex>=0){let q=L?z:B2;p(e.icon,y.numIconVertices,q),e.icon.placedSymbolArray.get(y.placedIconSymbolIndex).hidden=T.icon.isHidden()}if(y.verticalPlacedIconSymbolIndex>=0){let q=L?B2:z;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 z=e.collisionArrays[g];if(z){let L=new qe(0,0);if(z.textBox||z.verticalTextBox){let q=!0;if(u){let V=this.variableOffsets[_];V?(L=Bse(V.anchor,V.width,V.height,V.textOffset,V.textBoxScale),c&&L._rotate(h?-this.transform.bearingInRadians:this.transform.bearingInRadians)):q=!1}if(z.textBox||z.verticalTextBox){let V;z.textBox&&(V=P),z.verticalTextBox&&(V=I),qse(e.textCollisionBox.collisionVertexArray,T.text.placed,!q||V,B.text,L.x,L.y)}}if(z.iconBox||z.verticalIconBox){let q=!(I||!z.verticalIconBox),V;z.iconBox&&(V=q),z.verticalIconBox&&(V=!q),qse(e.iconCollisionBox.collisionVertexArray,T.icon.placed,V,B.icon,f?L.x:0,f?L.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}};rje=2**25,ije=2**24,aje=2**17,nje=2**16;B2=0,oje=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 oje(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}},Nse=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Ra=new Uint32Array(96),lje=class rue{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=Nse[i&15];if(!n)throw Error("Unrecognized array type.");let[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new rue(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=Nse.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++)Vse(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];Vse(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,uje=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 lje(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)}},cje=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},hje=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);}`,Vse="void main() {fragColor=vec4(1.0);}",Ic={prelude:mi(lje,uje),projectionMercator:mi(` +} 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);}`,Use="void main() {fragColor=vec4(1.0);}",Ic={prelude:mi(fje,dje),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: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; +);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(pje,mje),backgroundPattern:mi(vje,gje),circle:mi(yje,_je),clippingMask:mi(Use,"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() { @@ -249,7 +249,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: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() { +}`,"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(Use,`layout(location=0) in vec2 a_pos;void main() { #ifdef GLOBE gl_Position=projectTileFor3D(a_pos,0.0); #else @@ -848,9 +848,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:mi("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);}")};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.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);}")};nue="#define PROJECTION_MERCATOR",oue="mercator",yF=class{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return oue}get shaderDefine(){return nue}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 Ou;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 sue{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 sue(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=Gse(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=Gse(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=Mle(),sUe(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 Pu(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 Uu([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=[-Bu,Bu])}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,w=d+u*x,_=p+c*x,A=new wi(w*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(){}},bje=Ea([{name:"a_pos3d",type:"Int16",components:3}]),wje=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),Ru(a.terrainRttPosMatrix32f,0,ct,ct,0,0,1),this._tiles[a.key]=new Wle(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))Ru(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;Ru(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;Ru(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;Ru(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)}},jse=ct*(1-1e-12),$se=-.5,Aje=class{constructor(e,t,r,i="auto"){this._meshCache={},this.painter=e,this.tileManager=new wje(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+$se,u=n[13]*a.dim+$se,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&&(w=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||w!==void 0){let A=new qe(x!=null?x:g,w!=null?w: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 xje}clone(){let t=new cue;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:w,hi:_}=uue(c,Yw,m,x,.001/d),A=s6(c,w),T=s6(c,_),M=a[2]+w*u-A.elevation,S=a[2]+_*u-T.elevation,k=A.covered&&M>S?Tr(w+M*(_-w)/(M-S),w,_):_;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 Uu().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=Pu(Math.atan2(s,-l)),p=Pu(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=Nu(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),UGe(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=Zse(u,a.x*this.worldSize,a.y*this.worldSize,i);return Zse(u,l.x*this.worldSize,l.y*this.worldSize,l.z){if(l&&e.setZoom(wa.number(r,d,w)),Ek(a,n)||fue({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 _=qo(e.zoom-r),A=(d>r?Math.min(2,g):Math.max(.5,g))**(1-w),T=Cm(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;h6(e,n);let s=e.worldSize,l=Nu(s,t.locationAtOffset),u=Nu(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=(w,_,A,T)=>{e.setZoom(w===1?o:i+Jn(_));let M=w===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}},Tje=()=>Yse||(Yse=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}),pue=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;Rje=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}};Bje=class{constructor(){this._boundingVolumeCache=new Rje(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,-Bu,Bu),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 Bje}clone(){let t=new _ue;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=tle(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=rle(s,l,n);if(u<=0)return!0;let c=this.screenTerrainPointToMercatorCoordinate(o,r);return c!=null&&rle(s,l,tle(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 Uu(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(w&&_){let P=this.center.lng*Math.PI/180,I=this.center.lat*Math.PI/180,B=u2(f,P),z=u2(m,I),L=u2(d,P),q=u2(y,I);B+z=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=Pje(n);return H2(Ije(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){}};ile=class bue{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 yue(void 0,this._helper)}clone(){let t=new bue;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)}},wue=class kh{get useGlobeControls(){return!0}handlePanInertia(t,r){let i=zje(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),w=c2(x,.9,.5,1,.25),_=Math.min(g,Wd(1,w,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,-Bu,Bu));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),z=ws(k.lat,S.lat);r.setCenter(new ar(k.lng+B*I,k.lat+z*I).wrap()),r.setZoom(M+eo(T,r.center.lat))}handleMapControlsPan(t,r,i){t.panDelta&&Cje(r,i,r.isPointOnMapSurface(t.around)?t.around:r.centerPoint,t.panDelta)}cameraForBoxAndBearing(t,r,i,a,n){let o=due(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 w=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,w,"x",s))),l>0&&(T=kh.getLesserNonNegativeNonNull(T,kh.solveVectorScale(M,A,w,"x",l))),u>0&&(T=kh.getLesserNonNegativeNonNull(T,kh.solveVectorScale(M,A,w,"y",u))),c<0&&(T=kh.getLesserNonNegativeNonNull(T,kh.solveVectorScale(M,A,w,"y",c)));if(!Number.isFinite(T)||T===0){hue();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),w=ws(a.lng,m.lng),_=ws(a.lat,m.lat),A=qo(x-y);return c=g!==i,{easeFunc:T=>{if(Ek(o,s)||fue({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=Kse(a,w,_,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=Mje(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),w=Math.min(x,p,m)+eo(0,f.lat),_=t.applyConstrain(f,w).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=Kse(a,T,M,P);s&&t.interpolatePadding(o,r.padding,S);let z=S===1?f:B;t.setCenter(z.wrap());let L=p+Jn(k);t.setZoom(S===1?u:L+eo(0,z.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 Ile(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 MUe,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 zUe(e._requestManager,t.localIdeographFontFamily,r),this.lineAtlas=new NUe(256,512),this.crossTileSymbolIndex=new aue,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)Lu(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(Oje,{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 BUe((a=this.stylesheet.light)!=null?a:{},this._globalState),this._setProjectionInternal(((n=this.stylesheet.projection)==null?void 0:n.type)||"mercator"),this.sky=new OUe(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=pse(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 AUe(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=pse(e.layers);let i=bUe(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,Poe(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(!Lu(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}Lu(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}Lu(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(JUe(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?QUe(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(!Lu(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(!Lu(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=qje(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||!iie(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 sje(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={}}},Nje=Ea([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Vje=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)}),Gje=(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)}),jje=(e,t)=>({u_ele_delta:new jt(e,t.u_ele_delta)}),$je=(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}),Hje=e=>({u_ele_delta:e}),y6={ProjectionUBO:0,TerrainUBO:1,FrameUBO:2};Yje={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=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();})(); +`),A=u.createShader(u.FRAGMENT_SHADER);if(u.isContextLost()){this.failedToCreate=!0;return}u.shaderSource(A,w),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)}`)}Zje(u,this.program);let S=e$e(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=Uje(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]);Qje(e.terrainUniformBuffer,s)}if(Wje(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 Vje),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)}};i$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_opacity:new jt(e,t.u_opacity),u_fill_translate:new zr(e,t.u_fill_translate)}),a$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)}),Sue=(e,t,r,i)=>{let a=e.style.light,n=a.getCartesianPosition(),o=_k();a.properties.get("anchor")==="viewport"&&eie(o,e.transform.bearingInRadians),uie(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}},n$e=(e,t,r,i,a,n,o)=>tr(Sue(e,t,r,i),Due(n,e,o),{u_height_factor:-(2**a.overscaledZ)/o.tileSize/8}),o$e=(e,t)=>({u_fill_translate:new zr(e,t.u_fill_translate)}),s$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)}),l$e=(e,t)=>({u_fill_translate:new zr(e,t.u_fill_translate)}),u$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)}),Eue=(e,t,r,i,a)=>tr(Due(t,e,r),{u_fill_translate:i,u_sdf_pattern:+!!a}),c$e=e=>({u_fill_translate:e}),h$e=e=>({u_fill_translate:e}),f$e=(e,t,r,i,a)=>Eue(e,t,r,i,a),d$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)}),p$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}},m$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)}),ole=(e,t=1)=>({u_color:e,u_overlay:0,u_overlay_scale:t}),v$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)}),g$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)}),kue=(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}},Cue=(e,t,r,i)=>{let a=xh();return Ru(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")}},y$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)}),_$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)}),x$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 Ru(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()}};A$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)}),T$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")}),M$e=(e,t)=>({u_translation:new zr(e,t.u_translation),u_ratio:new jt(e,t.u_ratio)}),D$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)}),S$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)}),E$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)}),k$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:Fue(e,t,r),u_ratio:i/bs(t,1,a.zoom)}},C$e=(e,t,r,i,a)=>tr(_6(e,t,r,i),{u_image:0,u_image_height:a}),F$e=(e,t,r,i,a)=>{let n=e.transform,o=jF(t,n);return{u_translation:Fue(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}},P$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})},I$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})};L$e=(e,t)=>({u_image:new sr(e,t.u_image),u_opacity:new jt(e,t.u_opacity)}),z$e=(e,t)=>({u_image:t,u_opacity:e}),R$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)}),B$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)}),q$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)}),Pue=(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}),Iue=(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p,m)=>{let g=o.transform;return tr(Pue(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})},O$e=(e,t,r,i,a,n,o,s,l,u,c,h,f,d,p)=>tr(Iue(e,t,r,i,a,n,o,s,l,u,!0,c,!0,f,d,p),{u_texsize_icon:h,u_texture_icon:1}),N$e=(e,t)=>({u_opacity:new jt(e,t.u_opacity),u_color:new Sh(e,t.u_color)}),V$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)}),U$e=(e,t)=>({u_opacity:e,u_color:t}),G$e=(e,t,r,i,a)=>tr(r$e(r,a,t,i),{u_opacity:e}),j$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)}),$$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}),H$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)}),Z$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=vue(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")*gue(Hl(s)-l,l)}},Kw=(e,t)=>({}),Y$e={fillExtrusion:i$e,fillExtrusionPattern:a$e,fill:o$e,fillPattern:s$e,fillOutline:l$e,fillOutlinePattern:u$e,circle:d$e,collisionBox:Kw,collisionCircle:Kw,debug:m$e,depth:Kw,clippingMask:Kw,heatmap:v$e,heatmapTexture:g$e,hillshade:y$e,hillshadePrepare:_$e,colorRelief:A$e,line:M$e,lineGradient:D$e,linePattern:S$e,lineSDF:E$e,lineGradientSDF:k$e,layerOpacity:L$e,raster:cGe,symbolIcon:R$e,symbolSDF:B$e,symbolTextAndIcon:q$e,background:N$e,backgroundPattern:V$e,terrain:Gje,terrainDepth:jje,atmosphere:j$e,sky:H$e},W$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)}},sle={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},X$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[sle[i.type]],this.itemSize,n):e.vertexAttribPointer(a.location,i.components,e[sle[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)}},K$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)}},J$e=class extends Ii{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}},Q$e=class extends Ii{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}},eHe=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)}},tHe=class extends Ii{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}},rHe=class extends Ii{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}},iHe=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)}},aHe=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)}},nHe=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}},oHe=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)}},sHe=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}},lHe=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)}},uHe=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}},cHe=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)}},hHe=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)}},fHe=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)}},dHe=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}},pHe=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)}},mHe=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)}},vHe=class extends Ii{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}},gHe=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)}},yHe=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)}},_He=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}},xHe=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}},bHe=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}},wHe=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}},AHe=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}},THe=class extends Ii{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}},MHe=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}},SHe=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}},EHe=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}},kHe=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}},CHe=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}},FHe=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 EHe(e,o),i)this.depthAttachment=a?new CHe(e,o):new kHe(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)}},Lue=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=Lue.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]);LHe=class{constructor(e){this.gl=e,this.clearColor=new K$e(this),this.clearDepth=new J$e(this),this.clearStencil=new Q$e(this),this.colorMask=new eHe(this),this.depthMask=new tHe(this),this.stencilMask=new rHe(this),this.stencilFunc=new iHe(this),this.stencilOp=new aHe(this),this.stencilTest=new nHe(this),this.depthRange=new oHe(this),this.depthTest=new sHe(this),this.depthFunc=new lHe(this),this.blend=new uHe(this),this.blendFunc=new cHe(this),this.blendColor=new hHe(this),this.blendEquation=new fHe(this),this.cullFace=new dHe(this),this.cullFaceSide=new pHe(this),this.frontFace=new mHe(this),this.program=new vHe(this),this.activeTexture=new gHe(this),this.viewport=new yHe(this),this.bindFramebuffer=new _He(this),this.bindRenderbuffer=new xHe(this),this.bindTexture=new bHe(this),this.bindVertexBuffer=new wHe(this),this.bindElementBuffer=new AHe(this),this.bindVertexArray=new THe(this),this.pixelStoreUnpack=new MHe(this),this.pixelStoreUnpackPremultiplyAlpha=new DHe(this),this.pixelStoreUnpackFlipY=new SHe(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=Tue(this),this.keyedProjectionUniformBuffers=new Map,this.freeProjectionUniformBuffers=[],this.terrainUniformBuffer=Jje(this),this.frameUniformBuffer=PHe(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 W$e(this,e,t)}createVertexBuffer(e,t,r){return new X$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 FHe(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){Lu(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);lle=1029,QC=2305,Ti=class{constructor(e,t,r){this.enable=e,this.mode=t,this.frontFace=r}};Ti.disabled=new Ti(!1,lle,QC),Ti.backCCW=new Ti(!0,lle,QC),Ti.frontCCW=new Ti(!0,1028,QC);BHe=$l(new Float32Array(16));rF=0;aF=[new qe(0,0),new qe(ct,0),new qe(ct,ct),new qe(0,ct)];dZe=new Sr(1,0,0,1),pZe=new Sr(0,1,0,1),mZe=new Sr(0,0,1,1),vZe=new Sr(1,0,1,1),gZe=new Sr(0,1,1,1);CZe={symbol:qHe,circle:jHe,heatmap:$He,line:rZe,fill:iZe,fillExtrusion:aZe,hillshade:nZe,colorRelief:sZe,raster:lZe,background:fZe,sky:SZe,atmosphere:kZe,custom:TZe,debug:xZe,debugPadding:yZe,terrainDepth:MZe},FZe=(op=class{constructor(t,r){this.drawFunctions=CZe,this.context=new LHe(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 aue}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 gne;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,Nje.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 xne;s.emplaceBack(0),s.emplaceBack(1),s.emplaceBack(3),s.emplaceBack(2),s.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(s);let l=new Ou;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();Ru(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?nue:o.shaderDefine,u=`/${i?oue: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 t$e(this.context,Ic[t],r,Y$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(),Kje(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),Gue=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}};jue=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)},PZe=tr({deceleration:2500,maxSpeed:1400},W2),IZe=tr({deceleration:20,maxSpeed:1400},W2),LZe=tr({deceleration:1e3,maxSpeed:360},W2),zZe=tr({deceleration:1e3,maxSpeed:90},W2),RZe=tr({deceleration:1e3,maxSpeed:360},W2),BZe=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({},PZe,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,IZe);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,LZe);a.bearing=this._map.getBearing()+Tr(n.amount,-179,179),N2(a,n)}if(r.pitch){let n=V2(r.pitch,i,zZe);a.pitch=this._map.getPitch()+n.amount,N2(a,n)}if(r.roll){let n=V2(r.roll,i,RZe);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})}};qZe=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new Dle(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(){}},OZe=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(){}},$ue=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}))}};VZe=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=NZe(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 VZe(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}}},UZe=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 $Ze){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()}};KZe=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}},JZe={panStep:100,bearingStep:15,pitchStep:10},Wue=class{constructor(e,t){this._tr=t;let r=JZe;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:QZe,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}};_le=4.000244140625,Xue=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%_le==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)>_le?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)}},Kue=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()}},eYe=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}},tYe=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}},Jue=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()}},Que=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()}},ece=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()}},tce=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))}},rYe=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,iYe=class extends Ms{};aYe=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(Cie(a,n||a.type)){let g=wr.mousePos(this._map.getCanvas(),a);m=d[n||a.type](a,g)}else if(kie(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 Fie(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 rYe(this._camera),this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new BZe(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 qZe(t,e));let i=t.boxZoom=new $ue(t,e,this._transformProvider);this._add("boxZoom",i),e.interactive&&e.boxZoom&&i.enable();let a=t.cooperativeGestures=new tce(t,e.cooperativeGestures);this._add("cooperativeGestures",a),e.cooperativeGestures&&a.enable();let n=new UZe(t,this._transformProvider),o=new eYe(t,this._transformProvider);t.doubleClickZoom=new Kue(o,n),this._add("tapZoom",n),this._add("clickZoom",o),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let s=new tYe;this._add("tapDragZoom",s);let l=t.touchPitch=new Yue(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let u=()=>this._camera.transform.centerPoint,c=YZe(e,u),h=WZe(e),f=XZe(e,u);t.dragRotate=new Que(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=ZZe(e),p=new KZe(e,t);t.dragPan=new Jue(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 Zue,g=new Hue;t.touchZoomRotate=new ece(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 OZe(t,e),["touchPan"]);let y=t.scrollZoom=new Xue(t,()=>this._triggerRenderFrame(),this._transformProvider);this._add("scrollZoom",y,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let x=t.keyboard=new Wue(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 iYe("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}},nYe=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 z=Tm(e,["center","zoom","bearing","pitch","roll","elevation","padding"]);return this.jumpTo(z,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,w=g/p.scaleOfMinZoom;m=Math.min(m,Math.sqrt(w/x*2));let _=m*m;function A(z){let L=(y*y-g*g+(z?-1:1)*_*_*x*x)/(2*(z?y:g)*_*x);return Math.log(Math.sqrt(L*L+1)-L)}function T(z){return(Math.exp(z)-Math.exp(-z))/2}function M(z){return(Math.exp(z)+Math.exp(-z))/2}function S(z){return T(z)/M(z)}let k=A(!1),P=function(z){return M(k)/M(k+m*z)},I=function(z){return g*((M(k)*S(k+m*z)-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 z=y0,P=L=>Math.exp(z*m*L)}if(e.duration!==void 0)e.duration=+e.duration;else{let z=e.screenSpeed===void 0?+e.speed:+e.screenSpeed/m;e.duration=1e3*B/z}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(z=>{let L=z*B,q=1/P(L),V=I(L);this._rotating&&r.setBearing(wa.number(i,s,z)),this._pitching&&r.setPitch(wa.number(a,l,z)),this._rolling&&r.setRoll(wa.number(n,u,z)),this._padding&&(r.interpolatePadding(o,c,z),f=r.centerPoint.add(h)),p.easeFunc(z,q,V,f),this.terrain&&!e.freezeElevation&&this._updateElevation(z,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'},ice=class{constructor(e=rce){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}},oYe=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=[]}},xle=["none","zoom","sourceTiles","visibleLayers","revision"],sYe=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},lYe=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 sYe(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]);xle.indexOf(a)>xle.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,DZe(this.painter,this.terrain,this._rttTiles,t),this._rttTiles=[],zm[r]}return!1}},uYe={"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"},cYe=Tle,ble={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:rce,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},hYe=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 oYe,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({},ble),e),{canvasContextAttributes:nr(nr({},ble.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 nYe({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({},uYe),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 mUe(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=Vu.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 aYe(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 jue(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 ice(typeof t.attributionControl=="boolean"?void 0:t.attributionControl)),t.maplibreLogo&&this.addControl(new ace,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(Uu.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 Aje(this.painter,r,e,this._terrainSkirtLength),this.painter.renderToTexture=new lYe(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 Sle({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 Vu.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 Gue(e,t);this.painter=new FZe(r,this._camera.transform)}migrateProjection(e,t){this._camera.migrateProjection(e,t),this.painter.transform=e,this.fire(new Ele({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),Vu.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 cYe}getCameraTargetElevation(){return this._camera.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(e){return this._lazyInitEmptyStyle(),this.style.setProjection(e),this._update(!0)}},fYe={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0},dYe=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({},fYe,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 pYe(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}},pYe=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 HZe;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%)"};wle={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},sce="#3FB1CE";ip=class extends Ms{},lce=class extends Ms{},TF=class extends tn{constructor(e){if(super(),this._onClick=t=>{this.fire(new lce("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=wle[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=>{wle[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=nce(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)||sce,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=vYe().cloneNode(!0);t.setAttributeNS(null,"height",`${41*this._scale}px`),t.setAttributeNS(null,"width",`${27*this._scale}px`),gYe(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()}),oce(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}},yYe={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{},uce=class extends Ms{},_Ye=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=Uu.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 uce("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({},yYe,e)}onAdd(e){return this._map=e,this._container=wr.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),mYe().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)}},xYe={maxWidth:100,unit:"metric"},bYe=class{constructor(e){this._onMove=()=>{Ale(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,Ale(this._map,this._container,this.options)},this.options=nr(nr({},xYe),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{},TYe=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()}},MYe=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}},SYe={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0},EYe=["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{},kYe=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=nce(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=cce(this.options.offset);if(!n){let l=this._container.offsetWidth,u=this._container.offsetHeight,c=CYe(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)`,oce(this._container,n,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=tr(Object.create(SYe),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(EYe);e&&e.focus()}};FYe=Tle});var mce=X((_ht,pce)=>{"use strict";pce.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 xce=X((xht,_ce)=>{"use strict";var KF=Object.defineProperty,UYe=Object.getOwnPropertyDescriptor,GYe=Object.getOwnPropertyNames,jYe=Object.prototype.hasOwnProperty,$Ye=(e,t)=>{for(var r in t)KF(e,r,{get:t[r],enumerable:!0})},HYe=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of GYe(t))!jYe.call(e,a)&&a!==r&&KF(e,a,{get:()=>t[a],enumerable:!(i=UYe(t,a))||i.enumerable});return e},ZYe=e=>HYe(KF({},"__esModule",{value:!0}),e),vce={};$Ye(vce,{COUNTRIES:()=>gce,byAlpha2:()=>KYe,byAlpha3:()=>XYe,byM49:()=>JYe,createLookup:()=>yce,lookup:()=>YYe,lookupAlpha3:()=>WYe,sanitize:()=>XF});_ce.exports=ZYe(vce);var gce=[{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 yce(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=yce(gce),YYe=J2.lookup,WYe=J2.lookupAlpha3,XYe=J2.byAlpha3,KYe=J2.byAlpha2,JYe=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 QYe(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 wce(t).geometry;case"MultiLineString":return bce(t).geometry;case"MultiPolygon":return Ace(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 eWe(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 rWe(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 bce(e,t,r={}){return Jf({type:"MultiLineString",coordinates:e},t,r)}function wce(e,t,r={}){return Jf({type:"MultiPoint",coordinates:e},t,r)}function Ace(e,t,r={}){return Jf({type:"MultiPolygon",coordinates:e},t,r)}function iWe(e,t,r={}){return Jf({type:"GeometryCollection",geometries:e},t,r)}function aWe(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 Tce(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 nWe(e,t){return Mce(iP(e,t))}function oWe(e){let t=e%360;return t<0&&(t+=360),t}function sWe(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function Mce(e){return e%(2*Math.PI)*180/Math.PI}function lWe(e){return e%360*Math.PI/180}function uWe(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return Tce(iP(e,t),r)}function cWe(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 hWe(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 fWe(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 dWe(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=sWe;ki.bearingToAzimuth=oWe;ki.convertArea=cWe;ki.convertLength=uWe;ki.degreesToRadians=lWe;ki.earthRadius=Ha;ki.factors=QF;ki.feature=Jf;ki.featureCollection=A6;ki.geometry=QYe;ki.geometryCollection=iWe;ki.isNumber=w6;ki.isObject=hWe;ki.lengthToDegrees=nWe;ki.lengthToRadians=iP;ki.lineString=rP;ki.lineStrings=rWe;ki.multiLineString=bce;ki.multiPoint=wce;ki.multiPolygon=Ace;ki.point=eP;ki.points=eWe;ki.polygon=tP;ki.polygons=tWe;ki.radiansToDegrees=Mce;ki.radiansToLength=Tce;ki.removeBbox=b6;ki.round=aWe;ki.validateBBox=fWe;ki.validateId=dWe});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 xWe(e,t,r){var i=r,a=!1;return Ece(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 kce(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 Cce=T6(),TWe=D6();function Ice(e){return TWe.geomReduce.call(void 0,e,(t,r)=>t+MWe(r),0)}function MWe(e){let t=0,r;switch(e.type){case"Polygon":return Fce(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(Pce(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*DWe}var SWe=Ice;S6.area=Ice;S6.default=SWe});var Rce=X(E6=>{"use strict";Object.defineProperty(E6,"__esModule",{value:!0});var EWe=T6(),kWe=D6();function zce(e,t={}){let r=0,i=0,a=0;return kWe.coordEach.call(void 0,e,function(n){r+=n[0],i+=n[1],a++},!0),EWe.point.call(void 0,[r/a,i/a],t.properties)}var CWe=zce;E6.centroid=zce;E6.default=CWe});var qce=X((k6,Bce)=>{(function(e,t){t(typeof k6=="object"&&typeof Bce!="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 L(J,ue,me){return J=y.call(J,h).sort(t),Math.ceil((me-ue)/(2*(z(J,.75)-z(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 G(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 Oce!="undefined"?t(C6,qce()):(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,j,ee){var Q=O.s=j+ee,he=Q-j,Be=Q-he;O.t=j-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,w=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 z(){}function L(O,j){O&&V.hasOwnProperty(O.type)&&V[O.type](O,j)}var q={Feature:function(O,j){L(O.geometry,j)},FeatureCollection:function(O,j){for(var ee=O.features,Q=-1,he=ee.length;++Q=0?1:-1,he=Q*ee,Be=y(j),Oe=T(j),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 j=O[0],ee=O[1],Q=y(ee);return[Q*y(j),Q*T(j),T(ee)]}function Re(O,j){return O[0]*j[0]+O[1]*j[1]+O[2]*j[2]}function Ve(O,j){return[O[1]*j[2]-O[2]*j[1],O[2]*j[0]-O[0]*j[2],O[0]*j[1]-O[1]*j[0]]}function Me(O,j){O[0]+=j[0],O[1]+=j[1],O[2]+=j[2]}function Pe(O,j){return[O[0]*j,O[1]*j,O[2]*j]}function Fe(O){var j=S(O[0]*O[0]+O[1]*O[1]+O[2]*O[2]);O[0]/=j,O[1]/=j,O[2]/=j}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,j){ot.push(bt=[se=O,Ne=O]),j$e&&($e=j)}function xe(O,j){var ee=ge([O*d,j*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=j))),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]);j$e&&($e=j),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,j){if(ie){var ee=O-Ae;Se.add(p(ee)>180?ee+(ee>0?360:-360):ee)}else He=O,it=j;Ce.point(O,j),xe(O,j)}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,j){return(j-=O)<0?j+360:j}function Ot(O,j){return O[0]-j[0]}function We(O,j){return O[0]<=O[1]?O[0]<=j&&j<=O[1]:jyt(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,j=0,Q=Be[ee];j<=ee;Q=he,++j)he=Be[j],(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:z,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,j){O*=d,j*=d;var ee=y(j);zi(ee*y(O),ee*T(O),T(j))}function zi(O,j,ee){++Ye,Dt+=(O-Dt)/Ye,Ft+=(j-Ft)/Ye,zt+=(ee-zt)/Ye}function oa(){Or.point=ka}function ka(O,j){O*=d,j*=d;var ee=y(j);qr=ee*y(O),Cr=ee*T(O),ci=T(j),Or.point=Wi,zi(qr,Cr,ci)}function Wi(O,j){O*=d,j*=d;var ee=y(j),Q=ee*y(O),he=ee*T(O),Be=T(j),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,j){gi=O,Li=j,O*=d,j*=d,Or.point=ai;var ee=y(j);qr=ee*y(O),Cr=ee*T(O),ci=T(j),zi(qr,Cr,ci)}function ai(O,j){O*=d,j*=d;var ee=y(j),Q=ee*y(O),he=ee*T(O),Be=T(j),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 j=at,ee=Ar,Q=ti,he=j*j+ee*ee+Q*Q;return hel?O+Math.round(-O/h)*h:O,j]}Hr.invert=Hr;function Vi(O,j,ee){return(O%=h)?j||ee?Kr(ro(O),pn(j,ee)):ro(O):j||ee?pn(j,ee):Hr}function to(O){return function(j,ee){return j+=O,[j>l?j-h:j<-l?j+h:j,ee]}}function ro(O){var j=to(O);return j.invert=to(-O),j}function pn(O,j){var ee=y(O),Q=T(O),he=y(j),Be=T(j);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 j(ee){return ee=O(ee[0]*d,ee[1]*d),ee[0]*=f,ee[1]*=f,ee}return j.invert=function(ee){return ee=O.invert(ee[0]*d,ee[1]*d),ee[0]*=f,ee[1]*=f,ee},j}function Jl(O,j,ee,Q,he,Be){if(ee){var Oe=y(j),Ze=T(j),Ke=Q*ee;he==null?(he=j+Q*h,Be=j-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=[],j=null,ee}}}function la(O,j){return p(O[0]-j[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(j=O.length){for(var j,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,j){return((O=O.x)[0]<0?O[1]-u-o:u-O[1])-((j=j.x)[0]<0?j[1]-u-o:u-j[1])}var Qt=On(function(){return!0},Jt,St,[-l,-u]);function Jt(O){var j=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-j);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(j-Q)o?m((T(j)*(Be=y(Q))*T(ee)-T(Q)*(he=y(j))*T(O))/(he*Be*Oe)):(j+Q)/2}function St(O,j,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]-j[0])>o){var Be=O[0]0,he=p(j)>o;function Be(Ge,rt,et,dt){Jl(dt,O,ee,et,Ge,rt)}function Oe(Ge,rt){return y(Ge)*y(rt)>j}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=j*rr/wt,lr=-j*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,j,ee,Q,he,Be){var Oe=O[0],Ze=O[1],Ke=j[0],ft=j[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&&(j[0]=Oe+rt*et,j[1]=Ze+rt*dt),!0}}}}}var Xi=1e9,Hi=-Xi;function mn(O,j,ee,Q){function he(ft,Ge){return O<=ft&&ft<=ee&&j<=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:j);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]-j)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,j,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,j=0,ee=960,Q=500,he,Be,Oe;return Oe={stream:function(Ze){return he&&Be===Ze?he:he=mn(O,j,ee,Q)(Be=Ze)},extent:function(Ze){return arguments.length?(O=+Ze[0][0],j=+Ze[0][1],ee=+Ze[1][0],Q=+Ze[1][1],he=Be=null,Oe):[[O,j],[ee,Q]]}}}var Fs=r(),Go,as,Gu,jo={sphere:z,point:z,lineStart:ll,lineEnd:z,polygonStart:z,polygonEnd:z};function ll(){jo.point=c0,jo.lineEnd=eu}function eu(){jo.point=jo.lineEnd=z}function c0(O,j){O*=d,j*=d,Go=O,as=T(j),Gu=y(j),jo.point=Lh}function Lh(O,j){O*=d,j*=d;var ee=T(j),Q=y(j),he=p(O-Go),Be=y(he),Oe=T(he),Ze=Q*Oe,Ke=Gu*ee-as*Q*Be,ft=as*ee+Gu*Q*Be;Fs.add(g(S(Ze*Ze+Ke*Ke),ft)),Go=O,as=ee,Gu=Q}function tu(O){return Fs.reset(),H(O,jo),+Fs}var ju=[null,null],bo={type:"LineString",coordinates:ju};function ru(O,j){return ju[0]=O,ju[1]=j,tu(bo)}var ul={Feature:function(O,j){return $o(O.geometry,j)},FeatureCollection:function(O,j){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?(j=+wt[0][0],O=+wt[1][0],Be=+wt[0][1],he=+wt[1][1],j>O&&(wt=j,j=O,O=wt),Be>he&&(wt=Be,Be=he,he=wt),rr.precision(Wt)):[[j,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=Hu(Be,he,90),dt=Rh(j,O,Wt),_t=Hu(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 Zu()()}function Rc(O,j){var ee=O[0]*d,Q=O[1]*d,he=j[0]*d,Be=j[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:z,lineStart:z,lineEnd:z,polygonStart:function(){ga.lineStart=Ho,ga.lineEnd=gp},polygonEnd:function(){ga.lineStart=ga.lineEnd=ga.point=z,kn.add(p(Bh)),Bh.reset()},result:function(){var O=kn/2;return kn.reset(),O}};function Ho(){ga.point=Cn}function Cn(O,j){ga.point=io,Bc=Ls=O,os=d0=j}function io(O,j){Bh.add(d0*O-Ls*j),Ls=O,d0=j}function gp(){io(Bc,os)}var iu=1/0,qc=iu,Oc=-iu,Nc=Oc,Yu={point:p0,lineStart:z,lineEnd:z,polygonStart:z,polygonEnd:z,result:function(){var O=[[iu,qc],[Oc,Nc]];return Oc=Nc=-(qc=iu=1/0),O}};function p0(O,j){OOc&&(Oc=O),jNc&&(Nc=j)}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,j){yp+=O,m0+=j,++v0}function wp(){Zo.point=Uc}function Uc(O,j){Zo.point=Ap,nu(zs=O,vn=j)}function Ap(O,j){var ee=O-zs,Q=j-vn,he=S(ee*ee+Q*Q);Vc+=he*(zs+O)/2,_p+=he*(vn+j)/2,qh+=he,nu(zs=O,vn=j)}function $m(){Zo.point=nu}function W6(){Zo.point=K6}function X6(){Hm(o_,bp)}function K6(O,j){Zo.point=Hm,nu(o_=zs=O,bp=vn=j)}function Hm(O,j){var ee=O-zs,Q=j-vn,he=S(ee*ee+Q*Q);Vc+=he*(zs+O)/2,_p+=he*(vn+j)/2,qh+=he,he=vn*O-zs*j,jm+=he*(zs+O),xp+=he*(vn+j),au+=he*3,nu(zs=O,vn=j)}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,j){switch(this._point){case 0:{this._context.moveTo(O,j),this._point=1;break}case 1:{this._context.lineTo(O,j);break}default:{this._context.moveTo(O+this._radius,j),this._context.arc(O,j,this._radius,0,h);break}}},result:z};var Ym=r(),Wm,s_,l_,g0,y0,_0={point:z,lineStart:function(){_0.point=J6},lineEnd:function(){Wm&&u_(s_,l_),_0.point=z},polygonStart:function(){Wm=!0},polygonEnd:function(){Wm=null},result:function(){var O=+Ym;return Ym.reset(),O}};function J6(O,j){_0.point=u_,s_=g0=O,l_=y0=j}function u_(O,j){g0-=O,y0-=j,Ym.add(S(g0*g0+y0*y0)),g0=O,y0=j}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,j){switch(this._point){case 0:{this._string.push("M",O,",",j),this._point=1;break}case 1:{this._string.push("L",O,",",j);break}default:{this._circle==null&&(this._circle=h_(this._radius)),this._string.push("M",O,",",j,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,j){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(Yu)),Yu.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?(j=null,new c_):new Zm(j=Oe),typeof ee!="function"&&he.pointRadius(ee),Be):j},Be.pointRadius=function(Oe){return arguments.length?(ee=typeof Oe=="function"?Oe:(he.pointRadius(+Oe),+Oe),Be):ee},Be.projection(O).context(j)}function eA(O){return{stream:Oh(O)}}function Oh(O){return function(j){var ee=new Tp;for(var Q in O)ee[Q]=O[Q];return ee.stream=j,ee}}function Tp(){}Tp.prototype={constructor:Tp,point:function(O,j){this.stream.point(O,j)},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,j,ee){var Q=O.clipExtent&&O.clipExtent();return O.scale(150).translate([0,0]),Q!=null&&O.clipExtent(null),H(ee,O.stream(Yu)),j(Yu.result()),Q!=null&&O.clipExtent(Q),O}function x0(O,j,ee){return Mp(O,function(Q){var he=j[1][0]-j[0][0],Be=j[1][1]-j[0][1],Oe=Math.min(he/(Q[1][0]-Q[0][0]),Be/(Q[1][1]-Q[0][1])),Ze=+j[0][0]+(he-Oe*(Q[1][0]+Q[0][0]))/2,Ke=+j[0][1]+(Be-Oe*(Q[1][1]+Q[0][1]))/2;O.scale(150*Oe).translate([Ze,Ke])},ee)}function Xm(O,j,ee){return x0(O,[[0,0],j],ee)}function Km(O,j,ee){return Mp(O,function(Q){var he=+j,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 Wu(O,j,ee){return Mp(O,function(Q){var he=+j,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,j){return+j?p_(O,j):rA(O)}function rA(O){return Oh({point:function(j,ee){j=O(j,ee),this.stream.point(j[0],j[1])}})}function p_(O,j){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*j&&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)j||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 Wu(Jr,Rt,si)};function an(){var Rt=Jm(ee,0,0,et,dt,rt).apply(null,j(Be,Oe)),si=(rt?Jm:nA)(ee,Q-Rt[0],he-Rt[1],et,dt,rt);return Ge=Vi(Ze,Ke,ft),hi=Kr(j,si),Ri=Kr(Ge,hi),vr=d_(hi,lr),Zi()}function Zi(){return pi=Ki=null,Jr}return function(){return j=O.apply(this,arguments),Jr.invert=j.invert&&Nn,an()}}function ev(O){var j=0,ee=l/3,Q=Qm(O),he=Q(j,ee);return he.parallels=function(Be){return arguments.length?Q(j=Be[0]*d,ee=Be[1]*d):[j*f,ee*f]},he}function oA(O){var j=y(O);function ee(Q,he){return[Q*j,T(he)/j]}return ee.invert=function(Q,he){return[Q/j,I(he*j)]},ee}function m_(O,j){var ee=T(O),Q=(ee+T(j))/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&&j===et?O:O=sA([ee.stream(j=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 Wu(Ge,et,dt)};function rt(){return O=j=null,Ge}return Ge.scale(1070)}function Nh(O){return function(j,ee){var Q=y(j),he=y(ee),Be=O(Q*he);return[Be*he*T(j),Be*T(ee)]}}function ou(O){return function(j,ee){var Q=S(j*j+ee*ee),he=O(Q),Be=T(he),Oe=y(he);return[g(j*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,j){return[O,_(k((u+j)/2))]}w0.invert=function(O,j){return[O,2*m(w(j))-u]};function g_(){return y_(w0).scale(961/h)}function y_(O){var j=hl(O),ee=j.center,Q=j.scale,he=j.translate,Be=j.clipExtent,Oe=null,Ze,Ke,ft;j.scale=function(rt){return arguments.length?(Q(rt),Ge()):Q()},j.translate=function(rt){return arguments.length?(he(rt),Ge()):he()},j.center=function(rt){return arguments.length?(ee(rt),Ge()):ee()},j.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=j(Ui(j.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,j){var ee=y(O),Q=O===j?T(O):_(ee/y(j))/_(Dp(j)/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,j){return[O,j]}A0.invert=A0;function rv(){return hl(A0).scale(152.63)}function Sp(O,j){var ee=y(O),Q=O===j?T(O):(ee-y(j))/(j-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,j){return[y(j)*T(O),T(j)]}Cp.invert=ou(I);function A_(){return hl(Cp).scale(249.5).clipAngle(90+o)}function E0(O,j){var ee=y(j),Q=1+y(O)*ee;return[ee*T(O)/Q,T(j)/Q]}E0.invert=ou(function(O){return 2*m(O)});function av(){return hl(E0).scale(250).clipAngle(142)}function nv(O,j){return[_(k((u+j)/2)),-O]}nv.invert=function(O,j){return[-j,2*m(w(O))-u]};function mA(){var O=y_(nv),j=O.center,ee=O.rotate;return O.center=function(Q){return arguments.length?j([-Q[1],Q[0]]):(Q=j(),[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=Zu,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 Gce=X((Mht,Uce)=>{"use strict";var Vce={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"},FWe=new Set(Object.values(Vce));Uce.exports={usaLocationAbbreviations:FWe,usaLocationList:Vce}});var jce={};Yi(jce,{COUNTRIES_X:()=>PWe});var PWe,$ce=Gi(()=>{"use strict";PWe=[{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((Dht,Yce)=>{"use strict";var IWe=Qr(),{COUNTRIES:LWe,createLookup:zWe}=xce(),{area:RWe}=Lce(),{centroid:BWe}=Rce(),{coordAll:qWe}=D6(),{geoBounds:OWe}=Nce(),NWe=Cx(),Qf=Hc(),VWe=$h(),UWe=uv(),F6=T3(),{usaLocationAbbreviations:GWe,usaLocationList:jWe}=Gce(),{COUNTRIES_X:$We}=($ce(),lt(jce)),{lookupAlpha3:HWe}=zWe([...LWe,...$We]),ZWe={"ISO-3":NWe,"USA-states":WWe,"country names":YWe};function YWe(e){let t=HWe(e);return t||(Qf.log("Unrecognized country name: "+e+"."),!1)}function WWe(e){e=e.trim();let t=GWe.has(e.toUpperCase())?e.toUpperCase():jWe[e.toLowerCase()];return t||(Qf.log("Unrecognized US location: "+e+"."),!1)}function XWe(e,t,r){var a;if(!t||typeof t!="string")return!1;let i=ZWe[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 KWe(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]:BWe(r).geometry.coordinates}function eXe(e){var t=window.PlotlyGeoAssets||{},r=[];function i(l){return new Promise(function(u,c){IWe.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 qWe(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]]=OWe({type:"MultiPoint",coordinates:e});return[t,r,Zce([t,i])[1],a]}var rXe=(e,t)=>t.fitbounds==="geojson"&&e.locationmode==="geojson-id",Hce=(e,t)=>rXe(e,t)?lP(sP(e)):[],iXe=(e,t)=>uP(Hce(e,t));function Zce([e,t]){return[e,e>t?t+P6:t]}Yce.exports={locationToFeature:XWe,feature2polygons:KWe,getTraceGeojson:sP,extractTraceFeature:JWe,fetchTraceGeoData:eXe,boundsOfCoords:uP,computeBbox:tXe,coordsOf:lP,doesCrossAntiMeridian:oP,fitGeojsonBbox:iXe,fitGeojsonCoords:Hce,unwrapLonRange:Zce,ANTIMERIDIAN_LON_SHIFT:P6}});var Qce=X((Sht,Jce)=>{"use strict";var up=tt(),aXe=cn().sanitizeHTML,nXe=B9(),Wce=Pf();function Xce(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=Wce.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var Xl=Xce.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=oXe(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 Kce(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=nXe(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 oXe(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=aXe(e.sourceattribution)),i}Jce.exports=function(t,r,i){var a=new Xce(t,r);return a.update(i),a}});var che=X((Eht,uhe)=>{"use strict";var z6=(dce(),lt(hce)),sXe=mce(),ehe=!1,lXe=()=>{ehe||(ehe=!0,z6.setWorkerUrl(URL.createObjectURL(new Blob([sXe],{type:"text/javascript"}))))},R6=tt(),ihe=e_(),the=mr(),uXe=ra(),cXe=bl(),L6=_u(),ahe=dd(),hXe=ahe.drawMode,fXe=ahe.selectMode,dXe=yc().prepSelect,pXe=yc().clearOutline,mXe=yc().clearSelectionsCache,vXe=yc().selectOnClick,e0=Pf(),gXe=Qce();function nhe(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=nhe.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=lhe(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}),lXe();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(ihe.fetchTraceGeoData(e)),Promise.all(d).then(function(){c&&ohe(a,n),she(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=lhe(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(ihe.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}),ohe(a,o),she(a,o)),a.updateLayout(t),a.resolveOnRender(r)}).catch(i)};function ohe(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 she(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"},uXe.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];the.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];the.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(){mXe(r.dragOptions),pXe(r.dragOptions.gd)},r.onClickInPanFn=function(s){return function(l){var u=i._fullLayout.clickmode;u.indexOf("select")>-1&&vXe(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),fXe(n)||hXe(n)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){dXe(l,u,c,t.dragOptions,n)},cXe.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 yXe=tt(),_Xe=qi(),xXe=H5().defaults;hhe.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 yXe.coerce(f,d,o,x,w)}for(var m=0;mbXe});function bXe(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";dhe=DA(e_())});var yhe=X((Fht,ghe)=>{"use strict";var hP=tt(),wXe=fhe(),AXe=_l(),vhe=dy(),{getMapFitBounds:TXe}=(mhe(),lt(phe));ghe.exports=function(t,r,i){wXe(t,r,i,{type:"map",attributes:vhe,handleDefaults:MXe,partition:"y",fullData:i})};function MXe(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,AXe(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=TXe(i.fullData,i.id);p&&(t._fitBounds=p)}t._input=e}function DXe(e,t){function r(l,u){return hP.coerce(e,t,vhe.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(),_he=fP.strTranslate,SXe=fP.strScale,EXe=Kx().getSubplotCalcData,kXe=(lf(),lt(sf)),CXe=Qr(),xhe=xi(),FXe=cn(),PXe=che(),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=yhe();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(FXe.convertToTspans,e),p=xhe.bBox(d.node())}d.attr("transform",_he(-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",_he(x[0],x[1])+SXe(y))}};nl.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[t0],i=0;i{"use strict";bhe.exports={attributes:Q5(),supplyDefaults:Bee(),colorbar:AS(),formatLabels:z9(),calc:jee(),plot:rte(),hoverPoints:n4().hoverPoints,eventData:ote(),selectPoints:lte(),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 The=X((Lht,Ahe)=>{"use strict";Ahe.exports=whe()});var dP=X((zht,She)=>{"use strict";var{hovertemplateAttrs:IXe,templatefallbackAttrs:LXe}=rc(),i0=F9(),zXe=eh(),Mhe=Wo(),RXe=tc().defaultLine,r0=Ca().extendFlat,Dhe=i0.marker.line;She.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({},Dhe.color,{dflt:RXe}),width:r0({},Dhe.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({},Mhe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:IXe(),hovertemplatefallback:LXe(),showlegend:r0({},Mhe.showlegend,{dflt:!1})},zXe("",{cLetter:"z",editTypeOverride:"calc"}))});var pP=X((Rht,Ehe)=>{"use strict";var Fh=dP(),BXe=eh(),{hovertemplateAttrs:qXe,templatefallbackAttrs:OXe}=rc(),NXe=Wo(),a0=Ca().extendFlat;Ehe.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:qXe({},{keys:["properties"]}),hovertemplatefallback:OXe(),showlegend:a0({},NXe.showlegend,{dflt:!1})},BXe("",{cLetter:"z",editTypeOverride:"calc"}))});var Che=X((Bht,khe)=>{"use strict";var t_=tt(),VXe=Q0(),UXe=pP();khe.exports=function(t,r,i,a){function n(c,h){return t_.coerce(t,r,UXe,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"),VXe(t,r,a,n,{prefix:"",cLetter:"z"}),t_.coerceSelectionMarkerOpacity(r,n)}});var mP=X((qht,Fhe)=>{"use strict";Fhe.exports={min:"zmin",max:"zmax"}});var zhe=X((Oht,Lhe)=>{"use strict";var Phe=Nr(),GXe=(Ji(),lt(ua)).BADNUM,jXe=Zv(),$Xe=Yg(),HXe=l5();function Ihe(e){return e&&typeof e=="string"}Lhe.exports=function(t,r){var i=r._length,a=new Array(i),n;r.geojson?n=function(c){return Ihe(c)||Phe(c)}:n=Ihe;for(var o=0;o{"use strict";var ZXe=Nr(),Ph=tt(),YXe=c1(),WXe=xi(),XXe=e4().makeBlank,Rhe=e_();function KXe(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:XXe()};if(!r)return n;var o=Rhe.extractTraceFeature(e);if(!o)return n;var s=YXe.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;Ph.isArrayOrTypedArray(l.opacity)&&(c=function(x){var w=x.mo;return ZXe(w)?+Ph.constrain(w,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 Nhe=vP().convert,JXe=vP().convertOnSelect,Ohe=Pf().traceLayerPrefix;function Vhe(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Ohe+t+"-fill"],["line",Ohe+t+"-line"]],this.below=null}var Vm=Vhe.prototype;Vm.update=function(e){this._update(Nhe(e)),e[0].trace._glTrace=this};Vm.updateOnSelect=function(e){this._update(JXe(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)};Uhe.exports=function(t,r){var i=r[0].trace,a=new Vhe(t,i.uid),n=a.sourceId,o=Nhe(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 $he=X((Uht,jhe)=>{"use strict";var QXe=ra(),eKe=dP(),tKe=tt().fillText,{ANTIMERIDIAN_LON_SHIFT:rKe}=e_();jhe.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+rKe,i];for(l=0;l")}}});var Zhe=X((Ght,Hhe)=>{"use strict";Hhe.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 Whe=X((jht,Yhe)=>{"use strict";Yhe.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";Xhe.exports={attributes:pP(),supplyDefaults:Che(),colorbar:mP(),calc:zhe(),plot:Ghe(),hoverPoints:$he(),eventData:Zhe(),selectPoints:Whe(),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";Jhe.exports=Khe()});var yP=X((Zht,tfe)=>{"use strict";var aKe=eh(),{hovertemplateAttrs:nKe,templatefallbackAttrs:oKe}=rc(),efe=Wo(),q6=Q5(),gP=Ca().extendFlat;tfe.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({},efe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:nKe(),hovertemplatefallback:oKe(),showlegend:gP({},efe.showlegend,{dflt:!1})},aKe("",{cLetter:"z",editTypeOverride:"calc"}))});var ife=X((Yht,rfe)=>{"use strict";var sKe=tt(),lKe=Q0(),uKe=yP();rfe.exports=function(t,r,i,a){function n(u,c){return sKe.coerce(t,r,uKe,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"),lKe(t,r,a,n,{prefix:"",cLetter:"z"})}});var ofe=X((Wht,nfe)=>{"use strict";var _P=Nr(),cKe=tt().isArrayOrTypedArray,xP=(Ji(),lt(ua)).BADNUM,hKe=Zv(),afe=tt()._;nfe.exports=function(t,r){for(var i=r._length,a=new Array(i),n=r.z,o=cKe(n)&&n.length,s=0;s{"use strict";var fKe=Nr(),bP=tt(),sfe=Vr(),lfe=c1(),ufe=(Ji(),lt(ua)).BADNUM,dKe=e4().makeBlank;cfe.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:dKe()};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=lfe.extractOpts(r),y=g.reversescale?lfe.flipScale(g.colorscale):g.colorscale,x=y[0][1],w=sfe.opacity(x)<1?x:sfe.addOpacity(x,0),_=["interpolate",["linear"],["heatmap-density"],0,w];for(s=1;s{"use strict";var ffe=hfe(),pKe=Pf().traceLayerPrefix;function dfe(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",pKe+t+"-heatmap"]],this.below=null}var O6=dfe.prototype;O6.update=function(e){var t=this.subplot,r=this.layerList,i=ffe(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)};pfe.exports=function(t,r){var i=r[0].trace,a=new dfe(t,i.uid),n=a.sourceId,o=ffe(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 gfe=X((Jht,vfe)=>{"use strict";var mKe=ra(),vKe=n4().hoverPoints,gKe=n4().getExtraText;vfe.exports=function(t,r,i){var a=vKe(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=mKe.tickText(u,u.c2l(l.z),"hover").text}return n.extraText=gKe(s,l,o[0].t.labels),[n]}}});var _fe=X((Qht,yfe)=>{"use strict";yfe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var bfe=X((eft,xfe)=>{"use strict";xfe.exports={attributes:yP(),supplyDefaults:ife(),colorbar:mP(),formatLabels:z9(),calc:ofe(),plot:mfe(),hoverPoints:gfe(),eventData:_fe(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";wfe.exports=bfe()});var go=X((rft,Mfe)=>{"use strict";var Tfe=Object.getOwnPropertySymbols,yKe=Object.prototype.hasOwnProperty,_Ke=Object.prototype.propertyIsEnumerable;function xKe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function bKe(){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}}Mfe.exports=bKe()?Object.assign:function(e,t){for(var r,i=xKe(e),a,n=1;n{var V6=go();function Dfe(){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(Dfe.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=Sfe.exports=new Dfe;Ir.cdate=wP;Ir.baseCalendar=AP;Ir.calendars.gregorian=TP});var Efe=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;w+T1},c=function(_,A,T,M){var S=""+A;if(u(_,M))for(;S.length1},x=function(B,z){var L=y(B,z),q=[2,3,L?4:2,L?4:2,10,11,20]["oyYJ@!".indexOf(B)+1],V=new RegExp("^-?\\d{1,"+q+"}"),G=t.substring(S).match(V);if(!G)throw(qn.local.missingNumberAt||qn.regionalOptions[""].missingNumberAt).replace(/\{0\}/,S);return S+=G[0].length,parseInt(G[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,z,L,q){for(var V=y(B,q)?L:z,G=0;G-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 kfe=X(()=>{var n0=yo(),wKe=go(),DP=n0.instance();function U6(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}U6.prototype=new n0.baseCalendar;wKe(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(TKe);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(MKe);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 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=EKe(e,n,r,a);return DP.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=DP.fromJD(e),r=SKe(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(AKe),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 AKe=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,TKe=/^\d?\d[iI]?/m,MKe=/^闰?十?[一二三四五六七八九]?月/m,DKe=/^闰?十?[一二三四五六七八九]?/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 SKe(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 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 EKe(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,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 Cfe=X(()=>{var cp=yo(),kKe=go();function SP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}SP.prototype=new cp.baseCalendar;kKe(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 Ffe=X(()=>{var Ih=yo(),CKe=go();function EP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}EP.prototype=new Ih.baseCalendar;CKe(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:FKe[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 FKe={20:"Fruitbat",21:"Anchovy"};Ih.calendars.discworld=EP});var Pfe=X(()=>{var hp=yo(),PKe=go();function kP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}kP.prototype=new hp.baseCalendar;PKe(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 Ife=X(()=>{var l0=yo(),IKe=go();function CP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}CP.prototype=new l0.baseCalendar;IKe(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 Lfe=X(()=>{var r_=yo(),LKe=go();function FP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}FP.prototype=new r_.baseCalendar;LKe(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 zfe=X(()=>{var i_=yo(),zKe=go();function PP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}PP.prototype=new i_.baseCalendar;zKe(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 Bfe=X(()=>{var Kl=yo(),RKe=go();function LP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}LP.prototype=new Kl.baseCalendar;RKe(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,[Rfe(e+20,20),Rfe(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 Rfe(e,t){return IP(e-1,t)+1}Kl.calendars.mayan=LP});var Ofe=X(()=>{var fp=yo(),BKe=go();function zP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zP.prototype=new fp.baseCalendar;var qfe=fp.instance("gregorian");BKe(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 qfe.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 Nfe=X(()=>{var dp=yo(),qKe=go();function RP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}RP.prototype=new dp.baseCalendar;qKe(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(),OKe=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;OKe($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 Ufe=X(()=>{var pp=yo(),NKe=go(),H6=pp.instance();function BP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}BP.prototype=new pp.baseCalendar;NKe(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 Gfe=X(()=>{var mp=yo(),VKe=go(),Z6=mp.instance();function qP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qP.prototype=new mp.baseCalendar;VKe(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 jfe=X(()=>{var vp=yo(),UKe=go();function OP(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}OP.prototype=new vp.baseCalendar;UKe(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 Hfe=X((Lft,$fe)=>{"use strict";$fe.exports=yo();Efe();kfe();Cfe();Ffe();Pfe();Ife();Lfe();zfe();Bfe();Ofe();Nfe();Vfe();Ufe();Gfe();jfe()});var Qfe=X((zft,Jfe)=>{"use strict";var Yfe=Hfe(),a_=tt(),Wfe=(Ji(),lt(ua)),GKe=Wfe.EPOCHJD,jKe=Wfe.ONEDAY,UP={valType:"enumerated",values:a_.sortObjectKeys(Yfe.calendars),editType:"calc",dflt:"gregorian"},Xfe=function(e,t,r,i){var a={};return a[r]=UP,a_.coerce(e,t,a,r,i)},$Ke=function(e,t,r,i){for(var a=0;a{"use strict";e0e.exports=Qfe()});var KKe=X((Bft,i0e)=>{var r0e=hee();r0e.register([The(),Qhe(),Afe(),t0e()]);i0e.exports=r0e});return KKe();})(); /*! Bundled license information: native-promise-only/lib/npo.src.js: diff --git a/dist/plotly-strict.js b/dist/plotly-strict.js index ce118a46124..e3329f90d2a 100644 --- a/dist/plotly-strict.js +++ b/dist/plotly-strict.js @@ -1,5 +1,5 @@ /** -* plotly.js (strict) v4.2.0 +* plotly.js (strict) v4.3.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.2.0"; + exports.version = "4.3.0"; } }); @@ -9297,7 +9297,7 @@ var Plotly = (() => { for (var i2 = 1; i2 < length; i2++) { input = inputs[i2]; for (key in input) { - src = target[key]; + src = Object.prototype.hasOwnProperty.call(target, key) ? target[key] : void 0; copy = input[key]; if (noArrayCopies && isArray(copy)) { target[key] = copy; @@ -19677,8 +19677,8 @@ var Plotly = (() => { }; var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/; var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/; - function notValid(prop) { - return prop.slice(0, 2) === "__"; + function notValid(obj, prop) { + return prop in obj && !Object.prototype.hasOwnProperty.call(obj, prop); } lib.expandObjectPaths = function(data) { var match, key, prop, datum, idx, dest, trailingPath; @@ -19688,7 +19688,7 @@ var Plotly = (() => { if (match = key.match(dottedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; delete data[key]; data[prop] = lib.extendDeepNoArrays( data[prop] || {}, @@ -19697,7 +19697,7 @@ var Plotly = (() => { } else if (match = key.match(indexedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; idx = parseInt(match[2]); delete data[key]; data[prop] = data[prop] || []; @@ -19706,11 +19706,11 @@ var Plotly = (() => { dest = data[prop][idx] = data[prop][idx] || {}; lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum))); } else { - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; data[prop][idx] = lib.expandObjectPaths(datum); } } else { - if (notValid(key)) continue; + if (notValid(data, key)) continue; data[key] = lib.expandObjectPaths(data[key]); } } @@ -22265,7 +22265,7 @@ var Plotly = (() => { ax2._counterAxes.sort(axisIDs.idSort); ax2._subplotsWith.sort(Lib.subplotSort); ax2._mainSubplot = findMainSubplot(ax2, newFullLayout); - if (ax2._counterAxes.length && (ax2.spikemode && ax2.spikemode.indexOf("across") !== -1 || ax2.automargin && ax2.mirror && ax2.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax2))) { + if (ax2._counterAxes.length && (ax2.automargin && ax2.mirror && ax2.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax2))) { var min = 1; var max = 0; for (j2 = 0; j2 < ax2._counterAxes.length; j2++) { @@ -25457,6 +25457,33 @@ var Plotly = (() => { dflt: [0, 1], editType: "plot" }, + domainpad: { + left: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + right: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + top: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + bottom: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + editType: "plot" + }, position: { valType: "number", min: 0, @@ -29133,6 +29160,12 @@ var Plotly = (() => { function isValidCategory(v2) { return v2 !== null && v2 !== void 0; } + var MIN_PADDED_LENGTH = 2; + function padFactor(wanted, bandLength) { + if (wanted <= 0) return 0; + const room = Math.max(0, bandLength - MIN_PADDED_LENGTH); + return wanted > room ? room / wanted : 1; + } module.exports = function setConvert(ax2, fullLayout) { fullLayout = fullLayout || {}; var axId = ax2._id || "x"; @@ -29503,6 +29536,7 @@ var Plotly = (() => { if (ax2.overlaying) { var ax22 = axisIds.getFromId({ _fullLayout: fullLayout }, ax2.overlaying); ax2.domain = ax22.domain; + ax2.domainpad = ax22.domainpad; } var rangeAttr = usePrivateRange && ax2._r ? "_r" : "range"; var calendar = ax2.calendar; @@ -29510,14 +29544,26 @@ var Plotly = (() => { var rl0 = ax2.r2l(ax2[rangeAttr][0], calendar); var rl1 = ax2.r2l(ax2[rangeAttr][1], calendar); var isY2 = axLetter === "y"; + const bandLength = (isY2 ? gs3.h : gs3.w) * (ax2.domain[1] - ax2.domain[0]); + const pad = ax2.domainpad; + let padStart = 0; + let padEnd = 0; + if (pad) { + padStart = (isY2 ? pad.top : pad.left) || 0; + padEnd = (isY2 ? pad.bottom : pad.right) || 0; + const fits = padFactor(padStart + padEnd, bandLength); + padStart *= fits; + padEnd *= fits; + } + ax2._length = bandLength - padStart - padEnd; + ax2._padStart = padStart; + ax2._padEnd = padEnd; if (isY2) { - ax2._offset = gs3.t + (1 - ax2.domain[1]) * gs3.h; - ax2._length = gs3.h * (ax2.domain[1] - ax2.domain[0]); + ax2._offset = gs3.t + (1 - ax2.domain[1]) * gs3.h + padStart; ax2._m = ax2._length / (rl0 - rl1); ax2._b = -ax2._m * rl1; } else { - ax2._offset = gs3.l + ax2.domain[0] * gs3.w; - ax2._length = gs3.w * (ax2.domain[1] - ax2.domain[0]); + ax2._offset = gs3.l + ax2.domain[0] * gs3.w + padStart; ax2._m = ax2._length / (rl1 - rl0); ax2._b = -ax2._m * rl0; } @@ -31374,7 +31420,7 @@ var Plotly = (() => { for (var i2 = 0; i2 < vals.length; i2++) { var vali = tickVal2l(vals[i2]); if (vali > tickMin && vali < tickMax) { - var obj = axes.tickText(ax2, vali, false, String(text[i2]), { + const obj = axes.tickText(ax2, vali, false, text[i2] !== void 0, { first: i2 === firstIdx, last: i2 === lastIdx }); @@ -33463,6 +33509,7 @@ var Plotly = (() => { var noSwapAttrs = [ "anchor", "domain", + "domainpad", "overlaying", "position", "side", @@ -38048,6 +38095,30 @@ var Plotly = (() => { } return d2; } + function getAcrossSpikeSpan(gd3, ax2, gs3) { + const isY = ax2._id.charAt(0) === "y"; + let start = Infinity; + let end = -Infinity; + for (const counterId of ax2._counterAxes || []) { + const counterAx = Axes.getFromId(gd3, counterId); + if (!counterAx) continue; + const padStart = counterAx._padStart || 0; + const padEnd = counterAx._padEnd || 0; + if (isY) { + start = Math.min(start, gs3.l + counterAx.domain[0] * gs3.w + padStart); + end = Math.max(end, gs3.l + counterAx.domain[1] * gs3.w - padEnd); + } else { + start = Math.min(start, gs3.t + (1 - counterAx.domain[1]) * gs3.h + padStart); + end = Math.max(end, gs3.t + (1 - counterAx.domain[0]) * gs3.h - padEnd); + } + } + if (ax2.anchor === "free") { + const position = isY ? gs3.l + ax2.position * gs3.w : gs3.t + (1 - ax2.position) * gs3.h; + start = Math.min(start, position); + end = Math.max(end, position); + } + return [start, end]; + } function createSpikelines(gd3, closestPoints, opts) { var container = opts.container; var fullLayout = opts.fullLayout; @@ -38084,14 +38155,9 @@ var Plotly = (() => { xEndSpike = hLinePointX; } if (yMode.indexOf("across") !== -1) { - var xAcross0 = ya3._counterDomainMin; - var xAcross1 = ya3._counterDomainMax; - if (ya3.anchor === "free") { - xAcross0 = Math.min(xAcross0, ya3.position); - xAcross1 = Math.max(xAcross1, ya3.position); - } - xBase = gs3.l + xAcross0 * gs3.w; - xEndSpike = gs3.l + xAcross1 * gs3.w; + const xSpan = getAcrossSpikeSpan(gd3, ya3, gs3); + xBase = xSpan[0]; + xEndSpike = xSpan[1]; } container.insert("line", ":first-child").attr({ x1: xBase, @@ -38145,14 +38211,9 @@ var Plotly = (() => { yEndSpike = vLinePointY; } if (xMode.indexOf("across") !== -1) { - var yAcross0 = xa3._counterDomainMin; - var yAcross1 = xa3._counterDomainMax; - if (xa3.anchor === "free") { - yAcross0 = Math.min(yAcross0, xa3.position); - yAcross1 = Math.max(yAcross1, xa3.position); - } - yBase = gs3.t + (1 - yAcross1) * gs3.h; - yEndSpike = gs3.t + (1 - yAcross0) * gs3.h; + const ySpan = getAcrossSpikeSpan(gd3, xa3, gs3); + yBase = ySpan[0]; + yEndSpike = ySpan[1]; } container.insert("line", ":first-child").attr({ x1: vLinePointX, @@ -42808,7 +42869,7 @@ var Plotly = (() => { var outerMax = rangeCenter + halfRange * factor * 1.0001; var getPadMin = autorange.makePadFn(fullLayout, ax2, 0); var getPadMax = autorange.makePadFn(fullLayout, ax2, 1); - updateDomain(ax2, factor); + updateDomain(ax2, factor, fullLayout); var m2 = Math.abs(ax2._m); var extremes = autorange.concatExtremes(gd3, ax2); var minArray = extremes.min; @@ -42833,7 +42894,7 @@ var Plotly = (() => { rangeMax = ax2.l2r(rangeMax); ax2.range = ax2._input.range = rl0 < rl1 ? [rangeMin, rangeMax] : [rangeMax, rangeMin]; } - updateDomain(ax2, factor); + updateDomain(ax2, factor, fullLayout); } } } @@ -42864,13 +42925,26 @@ var Plotly = (() => { } } }; - function updateDomain(ax2, factor) { + function domainPadFraction(ax2, fullLayout) { + const pad = ax2.domainpad; + if (!pad) return 0; + const gs3 = fullLayout._size; + return ax2._id.charAt(0) === "y" ? ((pad.top || 0) + (pad.bottom || 0)) / gs3.h : ((pad.left || 0) + (pad.right || 0)) / gs3.w; + } + function updateDomain(ax2, factor, fullLayout) { var inputDomain = ax2._inputDomain; var centerFraction = FROM_BL2[ax2.constraintoward]; var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction; + let divisor = factor; + const padFraction = domainPadFraction(ax2, fullLayout); + if (padFraction > 0) { + const inputSpan = inputDomain[1] - inputDomain[0]; + const drawnSpan = inputSpan - padFraction; + if (drawnSpan > 0) divisor = inputSpan / (drawnSpan / factor + padFraction); + } ax2.domain = ax2._input.domain = [ - center + (inputDomain[0] - center) / factor, - center + (inputDomain[1] - center) / factor + center + (inputDomain[0] - center) / divisor, + center + (inputDomain[1] - center) / divisor ]; ax2.setScale(); } @@ -50099,6 +50173,10 @@ var Plotly = (() => { if (!newType || newType === "-") newType = "linear"; Registry.getComponentMethod("annotations", "convertCoords")(gd3, fullProp, newType, doextra); Registry.getComponentMethod("images", "convertCoords")(gd3, fullProp, newType, doextra); + if (!ptrunk && fullProp && vi3 && (vi3.range !== void 0 || vi3.autorange !== void 0)) { + recordAlteredAxis(`${pleaf}.range`); + fullProp._inputRange = null; + } } var containerArrayMatch = manageArrays.containerArrayMatch(ai3); if (containerArrayMatch) { @@ -50612,6 +50690,14 @@ var Plotly = (() => { newFullLayout[key]._inputDomain = null; } } + const newRange = newFullLayout[key].range; + const oldRange = oldFullLayout[key].range; + const oldInputRange = oldFullLayout[key]._inputRange; + if (oldInputRange && newRange && oldRange) { + const isInputRange = newRange[0] === oldInputRange[0] && newRange[1] === oldInputRange[1]; + const isOldRange = newRange[0] === oldRange[0] && newRange[1] === oldRange[1]; + if (!isInputRange && !isOldRange) newFullLayout[key]._inputRange = null; + } } var diffOpts = { getValObject: getLayoutValObject, @@ -55860,6 +55946,13 @@ var Plotly = (() => { var domain = coerce("domain", dfltDomain); if (domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain; Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain); + if (letter === "x") { + coerce("domainpad.left"); + coerce("domainpad.right"); + } else { + coerce("domainpad.top"); + coerce("domainpad.bottom"); + } if (containerOut.tickmode === "sync") { containerOut.tickmode = "auto"; } @@ -61236,9 +61329,8 @@ var Plotly = (() => { } axisOpts.cleanRange("rangeslider.range"); var gs3 = fullLayout._size; - var domain = axisOpts.domain; - opts2._width = gs3.w * (domain[1] - domain[0]); - var x2 = Math.round(gs3.l + gs3.w * domain[0]); + opts2._width = axisOpts._length; + const x2 = Math.round(axisOpts._offset); var y2 = Math.round( gs3.t + gs3.h * (1 - axisOpts._counterDomainMin) + (axisOpts.side === "bottom" ? axisOpts._depth : 0) + opts2._offsetShift + constants2.extraPad ); @@ -167296,11 +167388,15 @@ void main() { var t5 = gs3.t * plotGlPixelRatio; var w2 = gs3.w * plotGlPixelRatio; var h2 = gs3.h * plotGlPixelRatio; + const padL = (xaxis._padStart || 0) * plotGlPixelRatio; + const padR = (xaxis._padEnd || 0) * plotGlPixelRatio; + const padT = (yaxis._padStart || 0) * plotGlPixelRatio; + const padB = (yaxis._padEnd || 0) * plotGlPixelRatio; return [ - l2 + xaxis.domain[0] * w2, - b2 + yaxis.domain[0] * h2, - width - r2 - (1 - xaxis.domain[1]) * w2, - height - t5 - (1 - yaxis.domain[1]) * h2 + l2 + xaxis.domain[0] * w2 + padL, + b2 + yaxis.domain[0] * h2 + padB, + width - r2 - (1 - xaxis.domain[1]) * w2 - padR, + height - t5 - (1 - yaxis.domain[1]) * h2 - padT ]; } var exports = module.exports = function plot(gd3, subplot, cdata) { @@ -187330,6 +187426,7 @@ void main() { var viewOpts = scene.viewOpts = {}; viewOpts.ranges = new Array(visibleLength); viewOpts.domains = new Array(visibleLength); + const padFrac = (px2, total) => (px2 || 0) / total; for (k2 = 0; k2 < visibleDims.length; k2++) { i2 = visibleDims[k2]; var rng = viewOpts.ranges[k2] = new Array(4); @@ -187338,15 +187435,15 @@ void main() { if (xa3) { rng[0] = xa3._rl[0]; rng[2] = xa3._rl[1]; - dmn[0] = xa3.domain[0]; - dmn[2] = xa3.domain[1]; + dmn[0] = xa3.domain[0] + padFrac(xa3._padStart, gs3.w); + dmn[2] = xa3.domain[1] - padFrac(xa3._padEnd, gs3.w); } ya3 = AxisIDs.getFromId(gd3, trace._diag[i2][1]); if (ya3) { rng[1] = ya3._rl[0]; rng[3] = ya3._rl[1]; - dmn[1] = ya3.domain[0]; - dmn[3] = ya3.domain[1]; + dmn[1] = ya3.domain[0] + padFrac(ya3._padEnd, gs3.h); + dmn[3] = ya3.domain[1] - padFrac(ya3._padStart, gs3.h); } } var plotGlPixelRatio = gd3._context.plotGlPixelRatio; @@ -187724,7 +187821,7 @@ void main() { var xOffset = xa3._offset; var xLength = xa3._length; var yLength = ya3._length; - var yOffset = gs3.b + ya3.domain[0] * gs3.h; + const yOffset = gs3.b + ya3.domain[0] * gs3.h + (ya3._padEnd || 0); var ym3 = -ya3._m; var yb2 = -ym3 * ya3.r2l(ya3.range[0], ya3.calendar); var x2, y2; diff --git a/dist/plotly-strict.min.js b/dist/plotly-strict.min.js index 2ae0f97f97e..16c0aa1c4ef 100644 --- a/dist/plotly-strict.min.js +++ b/dist/plotly-strict.min.js @@ -1,5 +1,5 @@ /** -* plotly.js (strict - minified) v4.2.0 +* plotly.js (strict - minified) v4.3.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,69 +12,69 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{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+` +"use strict";var Plotly=(()=>{var Syt=Object.create;var OT=Object.defineProperty,Eyt=Object.defineProperties,kyt=Object.getOwnPropertyDescriptor,Cyt=Object.getOwnPropertyDescriptors,Dyt=Object.getOwnPropertyNames,DD=Object.getOwnPropertySymbols,Fyt=Object.getPrototypeOf,sV=Object.prototype.hasOwnProperty,uue=Object.prototype.propertyIsEnumerable;var oV=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Lyt=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)=>Eyt(e,Cyt(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 Dyt(t))!sV.call(e,n)&&n!==r&&OT(e,n,{get:()=>t[n],enumerable:!(i=kyt(t,n))||i.enumerable});return e};var N1=(e,t,r)=>(r=e!=null?Syt(Fyt(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())}),Pyt=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 Pyt(new Promise(s=>{var l=t[a](o);l instanceof Object||Lyt("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.3.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(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(;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((nqr,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((aqr,bue)=>{"use strict";var zyt=xue();bue.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&zyt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var Bl={};Fl(Bl,{ALMOST_EQUAL:()=>Qyt,BADNUM:()=>fV,EPOCHJD:()=>Jyt,FP_SAFE:()=>Iyt,LOG_CLIP:()=>egt,MINUS_SIGN:()=>tgt,ONEAVGMONTH:()=>Gyt,ONEAVGQUARTER:()=>Nyt,ONEAVGYEAR:()=>Byt,ONEDAY:()=>Wyt,ONEHOUR:()=>$yt,ONEMAXMONTH:()=>Uyt,ONEMAXQUARTER:()=>Oyt,ONEMAXYEAR:()=>Ryt,ONEMICROSEC:()=>Kyt,ONEMILLI:()=>Zyt,ONEMIN:()=>Yyt,ONEMINMONTH:()=>Hyt,ONEMINQUARTER:()=>Vyt,ONEMINYEAR:()=>qyt,ONESEC:()=>Xyt,ONEWEEK:()=>jyt});var fV,Iyt,Ryt,Byt,qyt,Oyt,Nyt,Vyt,Uyt,Gyt,Hyt,jyt,Wyt,$yt,Yyt,Xyt,Zyt,Kyt,Jyt,Qyt,egt,tgt,Il=ps(()=>{"use strict";fV=void 0,Iyt=Number.MAX_VALUE*1e-4,Ryt=316224e5,Byt=315576e5,qyt=31536e6,Oyt=79488e5,Nyt=78894e5,Vyt=76896e5,Uyt=26784e5,Gyt=26298e5,Hyt=24192e5,jyt=6048e5,Wyt=864e5,$yt=36e5,Yyt=6e4,Xyt=1e3,Zyt=1,Kyt=.001,Jyt=24405875e-1,Qyt=1-1e-6,egt=10,tgt="\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((oqr,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 rgt=cV().decode,igt=_g(),hV=Array.isArray,ngt=ArrayBuffer,agt=DataView;function Aue(e){return ngt.isView(e)&&!(e instanceof agt)}Nv.isTypedArray=Aue;function qD(e){return hV(e)||Aue(e)}Nv.isArrayOrTypedArray=qD;function ogt(e){return!qD(e[0])}Nv.isArray1D=ogt;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=sgt(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=rgt(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(),hgt=/^\w*$/,dgt=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 pgt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,vgt=/^[^\.\[\]]+$/;zue.exports=function(e,t){for(;t;){var r=e.match(pgt);if(r)e=r[1];else if(e.match(vgt))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((cqr,Rue)=>{"use strict";var mgt=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 mgt(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var Oue=K((hqr,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;sygt,modHalf:()=>ggt});function ygt(e,t){let r=e%t;return r<0?r+t:r}function ggt(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 xgt(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:()=>_gt,HOVERFONT:()=>Tgt,HOVERFONTSIZE:()=>Agt,HOVERID:()=>Sgt,HOVERMINTIME:()=>Mgt,HOVERTEXTPAD:()=>wgt,YANGLE:()=>bgt});var bgt,_gt,wgt,Agt,Tgt,Mgt,Sgt,$T=ps(()=>{"use strict";bgt=60,_gt=6,wgt=3,Agt=13,Tgt="Arial, sans-serif",Mgt=50,Sgt="-hover"});var wg=K((vqr,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((mqr,jue)=>{"use strict";var Egt=lf(),YT=wg().hoverlabel,XT=Os().extendFlat;jue.exports={hoverlabel:{bgcolor:XT({},YT.bgcolor,{arrayOk:!0}),bordercolor:XT({},YT.bordercolor,{arrayOk:!0}),font:Egt({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((yqr,Wue)=>{"use strict";var kgt=lf(),Cgt=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:kgt({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:Cgt.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var qce=K((Tqr,Bce)=>{var lU=Object.defineProperty,Dgt=Object.getOwnPropertyDescriptor,Fgt=Object.getOwnPropertyNames,Lgt=Object.prototype.hasOwnProperty,Pgt=(e,t)=>{for(var r in t)lU(e,r,{get:t[r],enumerable:!0})},zgt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Fgt(t))!Lgt.call(e,n)&&n!==r&&lU(e,n,{get:()=>t[n],enumerable:!(i=Dgt(t,n))||i.enumerable});return e},Igt=e=>zgt(lU({},"__esModule",{value:!0}),e),rfe={};Pgt(rfe,{a98:()=>S_t,average:()=>F2t,averageAngle:()=>G1,averageNumber:()=>xfe,blend:()=>Dbt,blerp:()=>UV,clampChroma:()=>Zbt,clampGamut:()=>IU,clampRgb:()=>Xbt,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:()=>E_t,differenceCie76:()=>T2t,differenceCie94:()=>M2t,differenceCiede2000:()=>S2t,differenceCmc:()=>E2t,differenceEuclidean:()=>sw,differenceHueChroma:()=>r6,differenceHueNaive:()=>gfe,differenceHueSaturation:()=>t6,differenceHyab:()=>k2t,differenceItp:()=>D2t,differenceKotsarenkoRamos:()=>C2t,displayable:()=>zU,dlab:()=>k_t,dlch:()=>C_t,easingGamma:()=>Lce,easingInOutSine:()=>T_t,easingMidpoint:()=>Mce,easingSmootherstep:()=>w_t,easingSmoothstep:()=>x_t,easingSmoothstepInverse:()=>b_t,filterBrightness:()=>a_t,filterContrast:()=>o_t,filterDeficiencyDeuter:()=>y_t,filterDeficiencyProt:()=>m_t,filterDeficiencyTrit:()=>g_t,filterGrayscale:()=>u_t,filterHueRotate:()=>c_t,filterInvert:()=>f_t,filterSaturate:()=>l_t,filterSepia:()=>s_t,fixupAlpha:()=>yh,fixupHueDecreasing:()=>x2t,fixupHueIncreasing:()=>g2t,fixupHueLonger:()=>y2t,fixupHueShorter:()=>U1,formatCss:()=>Abt,formatHex:()=>Tbt,formatHex8:()=>Mbt,formatHsl:()=>Ebt,formatRgb:()=>Sbt,getMode:()=>q0,hsi:()=>D_t,hsl:()=>F_t,hsv:()=>L_t,hwb:()=>P_t,inGamut:()=>fF,interpolate:()=>Obt,interpolateWith:()=>Ece,interpolateWithPremultipliedAlpha:()=>Nbt,interpolatorLinear:()=>ws,interpolatorPiecewise:()=>pfe,interpolatorSplineBasis:()=>Cce,interpolatorSplineBasisClosed:()=>Dce,interpolatorSplineMonotone:()=>Gbt,interpolatorSplineMonotone2:()=>Hbt,interpolatorSplineMonotoneClosed:()=>jbt,interpolatorSplineNatural:()=>Vbt,interpolatorSplineNaturalClosed:()=>Ubt,itp:()=>z_t,jab:()=>I_t,jch:()=>R_t,lab:()=>B_t,lab65:()=>q_t,lch:()=>O_t,lch65:()=>N_t,lchuv:()=>V_t,lerp:()=>Gx,lrgb:()=>U_t,luv:()=>G_t,mapAlphaDivide:()=>Tce,mapAlphaMultiply:()=>Ace,mapTransferGamma:()=>Ibt,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:()=>Qbt,okhsl:()=>H_t,okhsv:()=>j_t,oklab:()=>W_t,oklch:()=>$_t,p3:()=>Y_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:()=>X_t,random:()=>zbt,rec2020:()=>Z_t,removeParser:()=>Xgt,rgb:()=>K_t,round:()=>xce,samples:()=>Ybt,serializeHex:()=>DU,serializeHex8:()=>bce,serializeHsl:()=>wce,serializeRgb:()=>_ce,toGamut:()=>Kbt,trilerp:()=>o2t,unlerp:()=>a2t,useMode:()=>uf,useParser:()=>ufe,wcagContrast:()=>M_t,wcagLuminance:()=>sU,xyb:()=>J_t,xyz50:()=>Q_t,xyz65:()=>e3t,yiq:()=>t3t});Bce.exports=Igt(rfe);var Rgt=(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=Rgt,Bgt={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=Bgt,qgt=e=>ife(nfe[e.toLowerCase()],6),afe=qgt,Ogt=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Ngt=e=>{let t;return(t=e.match(Ogt))?ife(parseInt(t[1],16),t[1].length):void 0},ofe=Ngt,Md="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",gqr=`(?:${Md}|none)`,JT=`${Md}%`,xqr=`(?:${Md}%|none)`,uU=`(?:${Md}%|${Md})`,Vgt=`(?:${Md}%|${Md}|none)`,Ugt=`(?:${Md}(deg|grad|rad|turn)|${Md})`,bqr=`(?:${Md}(deg|grad|rad|turn)|${Md}|none)`,aw="\\s*,\\s*",_qr=new RegExp("^"+Vgt+"$"),Ggt=new RegExp(`^rgba?\\(\\s*${Md}${aw}${Md}${aw}${Md}\\s*(?:,\\s*${uU}\\s*)?\\)$`),Hgt=new RegExp(`^rgba?\\(\\s*${JT}${aw}${JT}${aw}${JT}\\s*(?:,\\s*${uU}\\s*)?\\)$`),jgt=e=>{let t={mode:"rgb"},r;if(r=e.match(Ggt))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(Hgt))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=jgt,Wgt=(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=Wgt,$gt=(e="rgb")=>t=>(t=Vv(t,e))!==void 0?t.mode===e?t:V1[t.mode][e]?V1[t.mode][e](t):e==="rgb"?V1[t.mode].rgb(t):V1.rgb[e](V1[t.mode].rgb(t)):void 0,Lf=$gt,V1={},lfe={},ow=[],fU={},Ygt=e=>e,uf=e=>(V1[e.mode]=Gs(Gs({},V1[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(t=>{V1[t]||(V1[t]={}),V1[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=Ygt)}),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)},Xgt=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_]/,Zgt=/[^\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 Kgt={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*Kgt[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 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;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 t2t(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 r2t=e=>{if(typeof e!="string")return;let t=Qgt(e),r=t?t2t(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=n2t,Gx=(e,t,r)=>e+r*(t-e),a2t=(e,t,r)=>(r-e)/(t-e),UV=(e,t,r,i,n,a)=>Gx(Gx(e,t,n),Gx(r,i,n),a),o2t=(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),s2t=e=>{let t=[];for(let r=0;rt=>{let r=s2t(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},l2t={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=l2t,yV=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),u2t=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=u2t,gV=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),f2t=({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=f2t,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)},c2t=({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=c2t,h2t=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=h2t,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},d2t=({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=d2t,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=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=p2t,v2t=$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=v2t,m2t=e=>(e=e%360)<0?e+360:e,w0=m2t,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),[]),U1=e=>eF(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),y2t=e=>eF(e,t=>Math.abs(t)>=180||t===0?t:t-360*Math.sign(t)),g2t=e=>eF(e,t=>t>=0?t:t+360),x2t=e=>eF(e,t=>t<=0?t:t-360),Xh=[-.14861,1.78277,-.29227,-.90649,1.97294,0],b2t=Math.PI/180,_2t=180/Math.PI,$ue=Xh[3]*Xh[4],Yue=Xh[1]*Xh[4],Xue=Xh[1]*Xh[2]-Xh[0]*Xh[3],w2t=({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)*_2t-120),i!==void 0&&(s.alpha=i),s},mfe=w2t,A2t=({h:e,s:t,l:r,alpha:i})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*b2t,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=A2t,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))}},T2t=()=>sw("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))}},S2t=(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))}},E2t=(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))}},k2t=()=>{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)}},C2t=()=>sw("yiq",[.5053,.299,.1957]),D2t=()=>sw("itp",[518400,129600,518400]),G1=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 F2t(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 L2t={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:U1},s:ws,l:ws,alpha:{use:ws,fixup:yh}},difference:{h:t6},average:{h:G1}},bfe=L2t,P2t=({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=P2t,z2t=({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=z2t,_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},wqr=Math.pow(29,3)/Math.pow(3,3),Aqr=Math.pow(6,3)/Math.pow(29,3),wV=e=>Math.pow(e,3)>wfe?Math.pow(e,3):(116*e-16)/_fe,I2t=({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=I2t,R2t=e=>Tg(cU(e)),i6=R2t,AV=e=>e>wfe?Math.cbrt(e):(_fe*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=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=B2t,q2t=e=>{let t=hU(Ag(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},n6=q2t,WD=1,Afe=1,e6=26/180*Math.PI,$D=Math.cos(e6),YD=Math.sin(e6),Tfe=100/Math.log(139/100),O2t=({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=O2t,N2t=({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=N2t,Zue=e=>XD(Jm(e,"dlch")),Kue=e=>Qm(ZD(e),"dlab"),V2t={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=V2t,U2t={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:U1},alpha:{use:ws,fixup:yh}},difference:{h:r6},average:{h:G1}},Sfe=U2t;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}},j2t=H2t,W2t=new RegExp(`^hsla?\\(\\s*${Ugt}${aw}${JT}${aw}${JT}\\s*(?:,\\s*${uU}\\s*)?\\)$`),$2t=e=>{let t=e.match(W2t);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=j2t(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=$2t;function Y2t(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=Y2t,X2t={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:U1},s:ws,l:ws,alpha:{use:ws,fixup:yh}},difference:{h:t6},average:{h:G1}},dU=X2t;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 K2t(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=K2t,J2t={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:U1},w:ws,b:ws,alpha:{use:ws,fixup:yh}},difference:{h:gfe},average:{h:G1}},Bfe=J2t,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),Q2t=({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=Q2t,EV=(e=0)=>Math.max(e*qfe,0),ext=({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=ext,txt={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=txt,rxt=134.03437499999998,ixt=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),rxt)},CV=(e=0)=>Math.max(e*203,0),nxt=({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)-ixt,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=nxt,axt=134.03437499999998,Jue=16295499532821565e-27,DV=e=>{if(e<0)return 0;let t=Math.pow(e,1/axt);return 1e4*Math.pow((rF-t)/(nF*t-iF),1/tF)},FV=e=>e/203,oxt=({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=oxt,sxt=e=>{let t=yU(Ag(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},xU=sxt,lxt=e=>Tg(gU(e)),bU=lxt,uxt={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=uxt,fxt=({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=fxt,cxt=({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=cxt,hxt={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:U1},c:ws,j:ws,alpha:{use:ws,fixup:yh}},difference:{h:r6},average:{h:G1}},Ufe=hxt,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,dxt=({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=dxt,pxt=({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=pxt,vxt=e=>lw(oF(e)),wU=vxt,mxt=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=mxt,PV=e=>e>_U?Math.cbrt(e):(aF*e+16)/116,yxt=({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=yxt,gxt=e=>{let t=sF(uw(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},AU=gxt;function xxt(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=xxt,bxt={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=bxt,_xt=$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=_xt;function wxt(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=wxt,Axt={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:U1},c:ws,l:ws,alpha:{use:ws,fixup:yh}},difference:{h:r6},average:{h:G1}},uF=Axt,Txt=$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=Txt,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=w0(Math.atan2(r,t)*180/Math.PI)),i!==void 0&&(a.alpha=i),a},TU=Mxt,Sxt=({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=Sxt,$fe=(e,t,r)=>4*e/(e+15*t+3*r),Yfe=(e,t,r)=>9*t/(e+15*t+3*r),Ext=$fe(mh.X,mh.Y,mh.Z),kxt=Yfe(mh.X,mh.Y,mh.Z),Cxt=e=>e<=_U?aF*e:116*Math.cbrt(e)-16,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=Cxt(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-Ext),o=13*n*(o-kxt));let s={mode:"luv",l:n,u:a,v:o};return i!==void 0&&(s.alpha=i),s},KD=Dxt,Fxt=(e,t,r)=>4*e/(e+15*t+3*r),Lxt=(e,t,r)=>9*t/(e+15*t+3*r),Pxt=Fxt(mh.X,mh.Y,mh.Z),zxt=Lxt(mh.X,mh.Y,mh.Z),Ixt=({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)+Pxt,a=r/(13*e)+zxt,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=Ixt,Rxt=e=>TU(KD(uw(e))),Bxt=e=>lw(JD(MU(e))),qxt={mode:"lchuv",toMode:{luv:MU,rgb:Bxt},fromMode:{rgb:Rxt,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:U1},c:ws,l:ws,alpha:{use:ws,fixup:yh}},difference:{h:r6},average:{h:G1}},Xfe=qxt,Oxt=$l(Gs({},Wx),{mode:"lrgb",toMode:{rgb:Yx},fromMode:{rgb:$x},parse:["srgb-linear"],serialize:"srgb-linear"}),Zfe=Oxt,Nxt={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=Nxt,Vxt=({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=Vxt,Uxt=e=>{let t=SU($x(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},a6=Uxt,Gxt=({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=Gxt,Hxt=e=>Yx(fw(e)),o6=Hxt;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 jxt(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=jxt(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 Wxt(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=Wxt(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=$xt;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 Yxt=$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=Yxt;function Xxt(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=Xxt,Zxt=$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=Zxt;function Kxt(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=Kxt,Jxt=$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=Jxt,Qxt=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=Qxt,ebt=({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=ebt,tbt=$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=tbt,zV=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},rbt=({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=rbt,IV=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},ibt=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=ibt,nbt=$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=nbt,Que=1.09929682680944,abt=.018053968510807,RV=e=>{let t=Math.abs(e);return t>abt?(Math.sign(e)||1)*(Que*Math.pow(t,.45)-(Que-1)):4.5*e},obt=({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=obt,efe=1.09929682680944,sbt=.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=lbt,ubt=$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=ubt,Hx=.0037930732552754493,lce=Math.cbrt(Hx),qV=e=>Math.cbrt(e)-lce,fbt=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=fbt,OV=e=>Math.pow(e+lce,3),cbt=({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=cbt,hbt={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=hbt,dbt={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=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:"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=pbt,vbt=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=vbt,mbt={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=mbt,ybt=({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=ybt,gbt=({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=gbt,xbt={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=xbt,bbt=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,_bt=(e=4)=>t=>typeof t=="number"?bbt(t,e):t,xce=_bt,KT=xce(2),QT=e=>Math.max(0,Math.min(1,e||0)),jx=e=>Math.round(QT(e)*255),CU=Lf("rgb"),wbt=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))})`},Abt=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)},Tbt=e=>DU(CU(e)),Mbt=e=>bce(CU(e)),Sbt=e=>_ce(CU(e)),Ebt=e=>wce(wbt(e)),kbt={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},Cbt=(e,t="normal",r="rgb")=>{let i=typeof t=="function"?t:kbt[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})})},Dbt=Cbt,Fbt=([e,t])=>e+Math.random()*(t-e),Lbt=e=>Object.keys(e).reduce((t,r)=>{let i=e[r];return t[r]=Array.isArray(i)?i:[i,i],t},{}),Pbt=(e="rgb",t={})=>{let r=q0(e),i=Lbt(t);return r.channels.reduce((n,a)=>((i.alpha||a!=="alpha")&&(n[a]=Fbt(i[a]||r.ranges[a])),n),{mode:e})},zbt=Pbt,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,Ibt=(e=1,t=1,r=0)=>(i,n)=>n!=="alpha"?e*Math.pow(i,t)+r:i,Rbt=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=qbt,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))}),Bbt(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})}},Obt=(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},Nbt=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},Vbt=e=>Cce(Fce(e)),Ubt=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]}},Gbt=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)},Hbt=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)},jbt=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)},Wbt=(e=1)=>e===1?t=>t:t=>Math.pow(t,e),Lce=Wbt,$bt=(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 Xbt(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 Zbt(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 Kbt(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 Jbt=(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]))},Qbt=Jbt,RU=e=>Math.max(e,0),BU=e=>Math.max(Math.min(e,1),0),e_t=(e,t,r)=>e===void 0||t===void 0?void 0:e+r*(t-e),t_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]},r_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]},i_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]},n_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)},o_t=(e=1,t="rgb")=>{let r=RU(e);return s6(FU(r,(1-r)/2),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")=>cF(i_t(e),t,!0),f_t=(e=1,t="rgb")=>{let r=BU(e);return s6((i,n)=>n==="alpha"?i:e_t(r,1-r,i),t,!0)},c_t=(e=0,t="rgb")=>cF(n_t(e),t,!0),h_t=Lf("rgb"),d_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]],p_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]],v_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}=h_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)}},m_t=(e=1)=>qU(d_t,e),y_t=(e=1)=>qU(p_t,e),g_t=(e=1)=>qU(v_t,e),x_t=e=>e*e*(3-2*e),b_t=e=>.5-Math.sin(Math.asin(1-2*e)/3),__t=e=>e*e*e*(e*(e*6-15)+10),w_t=__t,A_t=e=>(1-Math.cos(e*Math.PI))/2,T_t=A_t;function sU(e){let t=Lf("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function M_t(e,t){let r=sU(e),i=sU(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}var S_t=uf(vfe),E_t=uf(bfe),k_t=uf(Mfe),C_t=uf(Sfe),D_t=uf(Cfe),F_t=uf(dU),L_t=uf(mU),P_t=uf(Bfe),z_t=uf(Nfe),I_t=uf(Vfe),R_t=uf(Ufe),B_t=uf(lF),q_t=uf(Hfe),O_t=uf(uF),N_t=uf(Wfe),V_t=uf(Xfe),U_t=uf(Zfe),G_t=uf(Kfe),H_t=uf(Qfe),j_t=uf(ece),W_t=uf(rce),$_t=uf(nce),Y_t=uf(ace),X_t=uf(oce),Z_t=uf(sce),K_t=uf(Wx),J_t=uf(cce),Q_t=uf(hce),e3t=uf(vce),t3t=uf(gce)});var OU={};Fl(OU,{default:()=>i3t});var r3t,i3t,NU=ps(()=>{"use strict";r3t={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(" ")}},i3t=r3t});var Mg=K((Eqr,Gce)=>{"use strict";var{format:n3t,width:a3t,height:o3t,scale:s3t}=(NU(),or(OU)).default,Oce=s3t,{dflt:Sqr}=Oce,l3t=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:n3t,filename:{valType:"string"},width:a3t,height:o3t,scale:l3t},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((Cqr,Hce)=>{"use strict";var VU=No(),u3t=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;u3t(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((Lqr,ehe)=>{"use strict";var{converter:Wce,formatHex:f3t,formatRgb:c3t,wcagContrast:h3t,wcagLuminance:d3t}=qce(),{isArrayOrTypedArray:$ce}=Yh(),{warn:p3t}=ey(),{background:f6,defaultLine:$U,defaults:v3t,lightLine:m3t}=Gc(),Yce=Wce("rgb"),y3t=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,g3t={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=>c3t(Zce(e)),x3t=e=>f3t(Zce(e)),b3t=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&&p3t(`Invalid color specifier: ${b3t(e)}. Defaulting to "#000"`),g3t)},u6=e=>Kd($l(Gs({},lc(e)),{alpha:1})),_3t=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]),w3t=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}},A3t=(e,t)=>{let r=Kce(e)?w3t(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},T3t=(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)})},M3t=(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=y3t(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)=>h3t(lc(e),lc(t)),Qce=e=>hF(e,f6)>hF(e,$U),S3t=Kd(lc(f6)),E3t=Kd(lc($U)),k3t=(e,t,r)=>(lc(e).alpha!==1&&(e=Jce(e,f6)),Qce(e)?t?WU(e,t):S3t:r?WU(e,-r):E3t),C3t=(e,t)=>{e.style({stroke:u6(t),"stroke-opacity":lc(t).alpha})},D3t=(e,t)=>{e.style({fill:u6(t),"fill-opacity":lc(t).alpha})},F3t=(e,t)=>!!(e&&t&&u6(e)===u6(t)),L3t=e=>Xce(e)!==void 0,P3t=(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)}))},z3t=(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})},I3t=(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},R3t=e=>Kd(lc(e)),B3t=e=>x3t(lc(e)).toUpperCase(),q3t=e=>{let t=lc(e);return[O0(t.r)*255,O0(t.g)*255,O0(t.b)*255,O0(t.alpha)]},O3t=([e,t,r,i])=>Kd({mode:"rgb",r:e/255,g:t/255,b:r/255,alpha:i}),N3t=e=>{let t=lc(e);return d3t({mode:"rgb",r:O0(t.r),g:O0(t.g),b:O0(t.b)})};ehe.exports={addOpacity:T3t,adjustLightness:WU,background:f6,brighten:P3t,combine:Jce,contrast:k3t,defaultLine:$U,defaults:v3t,equals:F3t,fill:D3t,hexString:B3t,interpolate:M3t,isChannelArray:Kce,isDark:Qce,isValid:L3t,lightLine:m3t,luminosity:N3t,mix:z3t,mostReadable:I3t,normalize:A3t,opacity:_3t,parse:lc,rgb:u6,rgbaArray:q3t,rgbaArrayToString:O3t,rgbaString:R3t,stroke:C3t,wcagContrast:hF}});var Zx=K((zqr,ihe)=>{"use strict";var V3t=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 U3t(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;rW3t,HIDE_PLACEHOLDER:()=>j3t,SHOW_PLACEHOLDER:()=>H3t});var H3t,j3t,W3t,ry=ps(()=>{"use strict";H3t=100,j3t=1e3,W3t=.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,$3t=Tu(),Y3t=Zx(),ZU=wo(),X3t=(ry(),or(ty)).DESELECTDIM,dw=VT(),ahe=(hw(),or(c6)).counter,Z3t=(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(Y3t.get(e,r))}},angle:{coerceFunction:function(e,t,r){Sg(e)&&(e=Eg(e)),e==="auto"?t.set("auto"):XU(e)?t.set(Z3t(+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((Bqr,lhe)=>{"use strict";lhe.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),n=0;n{uhe.exports=K3t;function K3t(){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((Oqr,che)=>{che.exports=J3t;function J3t(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((Nqr,dhe)=>{dhe.exports=Q3t;function Q3t(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((Vqr,vhe)=>{vhe.exports=ewt;function ewt(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((Uqr,mhe)=>{mhe.exports=twt;function twt(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((Gqr,ghe)=>{ghe.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],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((Hqr,bhe)=>{bhe.exports=iwt;function iwt(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((jqr,whe)=>{whe.exports=nwt;function nwt(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((Wqr,The)=>{The.exports=awt;function awt(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(($qr,She)=>{She.exports=owt;function owt(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((Yqr,khe)=>{khe.exports=swt;function swt(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((Xqr,Dhe)=>{Dhe.exports=lwt;function lwt(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((Zqr,Lhe)=>{Lhe.exports=uwt;function uwt(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((Kqr,zhe)=>{zhe.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[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((Jqr,Rhe)=>{Rhe.exports=cwt;function cwt(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((Qqr,qhe)=>{qhe.exports=hwt;function hwt(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((eOr,Nhe)=>{Nhe.exports=dwt;function dwt(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((tOr,Uhe)=>{Uhe.exports=pwt;function pwt(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((rOr,Hhe)=>{Hhe.exports=vwt;function vwt(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((iOr,Whe)=>{Whe.exports=mwt;function mwt(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((nOr,Yhe)=>{Yhe.exports=ywt;function ywt(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((aOr,Zhe)=>{Zhe.exports=gwt;function gwt(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((oOr,Jhe)=>{Jhe.exports=xwt;function xwt(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((sOr,e0e)=>{e0e.exports=bwt;function bwt(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((lOr,r0e)=>{r0e.exports=_wt;function _wt(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((uOr,n0e)=>{n0e.exports=wwt;function wwt(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((fOr,o0e)=>{o0e.exports=Awt;function Awt(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((cOr,l0e)=>{var Twt=JU();l0e.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?Twt(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((hOr,f0e)=>{f0e.exports=Swt;function Swt(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((dOr,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 Ewt=QU();Sc.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var kwt=No(),d0e=ey(),Cwt=mF(),Dwt=QU();function Fwt(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 Lwt(e){var t=kwt.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 Pwt(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 zwt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&p0e(r)}function Iwt(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 Rwt(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=Cwt.convertCssMatrix(n);r=Dwt.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=[];Bwt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function Bwt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function qwt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}g0e.exports={getGraphDiv:Fwt,isPlotDiv:Lwt,removeElement:p0e,addStyleRule:Pwt,addRelatedStyleRule:v0e,deleteRelatedStyleRule:zwt,setStyleOnHover:Iwt,getFullTransformMatrix:Rwt,getElementTransformMatrix:m0e,getElementAndAncestors:y0e,equalDomRects:qwt}});var d6=K((mOr,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((yOr,S0e)=>{"use strict";var _0e=Os().extendFlat,Owt=_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"]},Nwt=w0e.flags.slice().concat(["fullReplot"]),Vwt=A0e.flags.slice().concat("layoutReplot");S0e.exports={traces:w0e,layout:A0e,traceFlags:function(){return b0e(Nwt)},layoutFlags:function(){return b0e(Vwt)},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:()=>Gwt,FORMAT_LINK:()=>Uwt});var Uwt,Gwt,rG=ps(()=>{"use strict";Uwt="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",Gwt="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var gu=K(pw=>{"use strict";var{DATE_FORMAT_LINK:Hwt,FORMAT_LINK:jwt}=(rG(),or(tG)),Wwt=["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 $wt({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}".`,jwt,"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}".`,Hwt,"for details on the date formatting syntax.",Wwt].join(" ")}pw.templateFormatStringDescription=$wt;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((_Or,L0e)=>{"use strict";function kg(e,t){return t?t.d2l(e):e}function E0e(e,t){return t?t.l2d(e):e}function Ywt(e){return e.x0}function Xwt(e){return e.x1}function Zwt(e){return e.y0}function Kwt(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 Jwt(e,t){return Math.abs(yF(e,t))}function Qwt(e,t,r){return Math.abs(gF(e,t,r))}function eAt(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 tAt(e,t){return E0e((kg(e.x1,t)+C0e(e)+kg(e.x0,t)+k0e(e))/2,t)}function rAt(e,t,r){return E0e((kg(e.y1,r)+F0e(e)+kg(e.y0,r)+D0e(e))/2,r)}function iAt(e,t,r){return e.type!=="line"?void 0:gF(e,t,r)/yF(e,t)}var nAt=["x0","x1","y0","y1","dy","height","ycenter"],aAt=["x0","x1","y0","y1","dx","width","xcenter"];L0e.exports={x0:Ywt,x1:Xwt,y0:Zwt,y1:Kwt,slope:iAt,dx:yF,dy:gF,width:Jwt,height:Qwt,length:eAt,xcenter:tAt,ycenter:rAt,simpleXVariables:nAt,simpleYVariables:aAt}});var I0e=K((wOr,z0e)=>{"use strict";var oAt=Ef().overrideAll,Jx=Tu(),P0e=lf(),sAt=gh().dash,Cg=Os().extendFlat,{shapeTexttemplateAttrs:lAt,templatefallbackAttrs:uAt}=gu(),fAt=xF();z0e.exports=oAt({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({},sAt,{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:lAt({newshape:!0},{keys:Object.keys(fAt)}),texttemplatefallback:uAt({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((AOr,R0e)=>{"use strict";var cAt=gh().dash,hAt=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:hAt({},cAt,{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((TOr,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((MOr,U0e)=>{"use strict";var iG=lf(),dAt=d6(),_F=Gc(),O0e=I0e(),N0e=B0e(),pAt=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(pAt({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({},dAt.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(),kOr=h6().addStyleRule,W0e=Os(),vAt=Tu(),mAt=vw(),yAt=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 wAt=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,AAt=/^\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,TAt=/^\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=MAt(e,!!t);if(t<2)return r;var i=Ec.dateTime2ms(r,e);return i+=Ed*(t-1),Ec.ms2DateTime(i,0,e)};function MAt(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?TAt:AAt);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=wAt("%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 SAt=/%\d?f/g,EAt=/%h/g,kAt={1:"1",2:"1",3:"2",4:"2"};function tde(e,t,r,i){e=e.replace(SAt,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(EAt,function(){return kAt[r("%q")(n)]}),ny(i))try{e=iy.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(a){return"Invalid"}return r(e)(n)}var CAt=[59,59.9,59.99,59.999,59.9999];function DAt(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),CAt[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 DAt(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 FAt=Hs(),LAt=ey(),PAt=m6(),zAt=(Il(),or(Bl)).BADNUM,sG=1e-9;ay.findBin=function(e,t,r){if(FAt(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?IAt:RAt:l=r?qAt:BAt,e+=o*sG*(r?-1:1)*(o>=0?1:-1);i90&&LAt.log("Long binary search..."),i-1};function IAt(e,t){return et}function qAt(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]===zAt;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||PAt;for(var r=1/0,i,n=0;nNAt});function OAt(e){return Object.keys(e).sort()}var NAt,eb=ps(()=>{"use strict";NAt=OAt});var sde=K(kc=>{"use strict";var y6=Hs(),VAt=Yh().isArrayOrTypedArray;kc.aggNums=function(e,t,r,i){var n,a;if((!i||i>r.length)&&(i=r.length),y6(t)||(t=!1),VAt(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((zOr,cde)=>{"use strict";var lde=(tw(),or(ew)),lG=lde.mod,UAt=lde.modHalf,g6=Math.PI,Lg=2*g6;function GAt(e){return e/180*g6}function HAt(e){return e/g6*180}function uG(e){return Math.abs(e[1]-e[0])>Lg-1e-14}function ude(e,t){return UAt(t-e,Lg)}function jAt(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 WAt(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((qOr,gde)=>{"use strict";gde.exports=function(t){t._clearResponsive&&(t._clearResponsive(),delete t._clearResponsive)}});var bde=K((OOr,DF)=>{"use strict";DF.exports=dG;DF.exports.isMobile=dG;DF.exports.default=dG;var ZAt=/(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,KAt=/CrOS/,JAt=/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=ZAt.test(t)&&!KAt.test(t)||!!e.tablet&&JAt.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((NOr,_de)=>{"use strict";var QAt=Hs(),e4t=bde();_de.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=t4t(),typeof r!="string")return!0;var i=e4t({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(QAt(u)&&(u=+u),u>=13)return!0}}}return i};function t4t(){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((VOr,Ade)=>{"use strict";var r4t=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]=r4t.select(this)}),n}});var Sde=K((UOr,Mde)=>{"use strict";var i4t=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=i4t.localeRegistry}var u=i.split("-")[0];if(u===i)break;i=u}return r}});var pG=K((GOr,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=o4t(t)?a4t:n4t,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:()=>u4t});function l4t(e){return typeof e=="string"&&(e=e.replace(s4t,"")),(0,Lde.default)(e)?Number(e):void 0}var Lde,s4t,u4t,zde=ps(()=>{"use strict";Lde=N1(Hs());Il();s4t=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;u4t=l4t});var Bde=K(($Or,Rde)=>{"use strict";var f4t=/<[^>]*>/g,c4t=/[\p{S}\p{P}]/gu,h4t=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,d4t=/�/g,p4t=/\s+/g,FF="-",Ide=FF.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),v4t=new RegExp(Ide+"{3,}","g"),m4t=new RegExp(Ide+"$","g"),y4t=60;function g4t(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}Rde.exports=function(t,r=y4t){var i=g4t(t!=null?t:"").replace(d4t,"").replace(f4t," ").replace(c4t,n=>n===FF?n:"").toLowerCase().trim().replace(p4t,FF).replace(h4t,"").replace(v4t,FF);return i.length<=r?i:Array.from(i).slice(0,r).join("").replace(m4t,"")}});var St=K((YOr,Xde)=>{"use strict";var b6=No(),x4t=J3().utcFormat,b4t=uV().format,Gde=Hs(),Hde=(Il(),or(Bl)),jde=Hde.FP_SAFE,_4t=-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=b4t(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 H1=hde();vr.deg2rad=H1.deg2rad;vr.rad2deg=H1.rad2deg;vr.angleDelta=H1.angleDelta;vr.angleDist=H1.angleDist;vr.isFullCircle=H1.isFullCircle;vr.isAngleInsideSector=H1.isAngleInsideSector;vr.isPtInsideSector=H1.isPtInsideSector;vr.pathArc=H1.pathArc;vr.pathSector=H1.pathSector;vr.pathAnnulus=H1.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 w4t=(hw(),or(c6));vr.counterRegex=w4t.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<_4t?qde:t):qde};vr.isIndex=function(e,t){return t!==void 0&&e>=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;nM4t.test(window.navigator.userAgent);var S4t=/Firefox\/(\d+)\.\d+/;vr.getFirefoxVersion=function(){var e=S4t.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 C4t={max:10,count:0,name:"hovertemplate"};vr.hovertemplateString=e=>yG($l(Gs({},e),{opts:C4t}));var D4t={max:10,count:0,name:"texttemplate"};vr.texttemplateString=e=>yG($l(Gs({},e),{opts:D4t}));var F4t=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function L4t(e){var t=e.match(F4t);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var P4t={max:10,count:0,name:"texttemplate",parseMultDiv:!0};vr.texttemplateStringForShapes=e=>yG($l(Gs({},e),{opts:P4t}));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=L4t(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(),z4t=Ude!==null&&Ude<86;vr.getPositionFromD3Event=function(){return z4t?[b6.event.layerX,b6.event.layerY]:[b6.event.offsetX,b6.event.offsetY]}});var Jde=K(()=>{"use strict";var I4t=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"),I4t.addStyleRule(Kde,Zde[gG]);var Kde,gG});var xG=K((JOr,Qde)=>{Qde.exports=!0});var _G=K((QOr,epe)=>{"use strict";var R4t=xG(),bG;typeof window.matchMedia=="function"?bG=!window.matchMedia("(hover: none)").matches:bG=R4t;epe.exports=bG});var nb=K((eNr,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 B4t(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=V4t;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,B4t(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 q4t(){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=q4t.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():O4t(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?N4t(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,G4t={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(),H4t=Mg().dfltConfig;function j4t(e,t){for(var r=[],i,n=0;nH4t.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(),W4t=TG(),$4t=d6(),Y4t=Mg().configAttributes,mpe=Ef(),jv=_6.extendDeepAll,Tw=_6.isPlainObject,X4t=_6.isArrayOrTypedArray,OF=_6.nestedProperty,Z4t=_6.valObjectMeta,SG="_isSubplotObj",NF="_isLinkedToArray",K4t="_arrayAttrRegexps",gpe="_deprecated",EG=[SG,NF,K4t,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]=Q4t(t)}),{defs:{valObjects:Z4t,metaKeys:EG.concat(["description","role","editType","impliedEdits"]),editType:{traces:mpe.traces,layout:mpe.layout},impliedEdits:{}},traces:e,layout:e5t(),frames:t5t(),animation:Mw($4t),config:Mw(Y4t)}};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)X4t(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 Q4t(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 e5t(){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(),o5t=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,{},o5t,"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:()=>c5t,AX_NAME_PATTERN:()=>h5t,DFLTRANGEX:()=>b5t,DFLTRANGEY:()=>_5t,DRAGGERSIZE:()=>g5t,HOUR_PATTERN:()=>p5t,MINDRAG:()=>m5t,MINZOOM:()=>y5t,REDRAWDELAY:()=>x5t,SUBPLOT_PATTERN:()=>d5t,WEEKDAY_PATTERN:()=>v5t,attrRegex:()=>l5t,clipOnAxisFalseQuery:()=>A5t,idRegex:()=>s5t,layerValue2layerClass:()=>T5t,traceLayerClasses:()=>w5t,xAxisMatch:()=>u5t,yAxisMatch:()=>f5t,zindexSeparator:()=>M5t});var s5t,l5t,u5t,f5t,c5t,h5t,d5t,p5t,v5t,m5t,y5t,g5t,x5t,b5t,_5t,w5t,A5t,T5t,M5t,jc=ps(()=>{"use strict";hw();s5t={x:Kx("x","( domain)?"),y:Kx("y","( domain)?")},l5t=Kx("[xy]axis"),u5t=Kx("xaxis"),f5t=Kx("yaxis"),c5t=/^[xyz][0-9]*( domain)?$/,h5t=/^[xyz]axis[0-9]*$/,d5t=/^x([0-9]*)y([0-9]*)$/,p5t="hour",v5t="day of week",m5t=8,y5t=20,g5t=20,x5t=50,b5t=[-1,6],_5t=[-1,4],w5t=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],A5t=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],T5t={"above traces":"above","below traces":"below"},M5t="z"});var Vf=K(kd=>{"use strict";var S5t=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 E5t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function k5t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}Ape.exports={clearOutlineControllers:E5t,clearOutline:k5t}});var VF=K((uNr,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(),fNr=(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 C5t=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((pNr,qpe)=>{"use strict";var dNr=No(),F5t=J3().timeFormatLocale,L5t=uV().formatLocale,w6=Hs(),P5t=cV(),z5t=NT().version,xu=Ho(),I5t=Sw(),R5t=cu(),os=St(),B5t=wo(),Cpe=(Il(),or(Bl)).BADNUM,Cd=Vf(),q5t=Rg().clearOutline,O5t=VF(),FG=d6(),N5t=TG(),V5t=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=z5t;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 U5t=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],G5t=["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,U5t);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=W5t(h,n.separators),n._extraFormat=Fpe(e,G5t),n._initialAutoSizeIsDone=!0,n._dataLength=l.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=j5t(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=H5t(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&&q5t({_fullLayout:i}),$5t(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 X5t(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)||X5t(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)?P5t.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:()=>tTt,xlink:()=>Npe,xmlns:()=>eTt});var eTt,Ope,Npe,tTt,Rp=ps(()=>{"use strict";eTt="http://www.w3.org/2000/xmlns/",Ope="http://www.w3.org/2000/svg",Npe="http://www.w3.org/1999/xlink",tTt={xmlns:Ope,"xmlns:xlink":Npe}});var Wc={};Fl(Wc,{CAP_SHIFT:()=>oTt,FROM_BL:()=>rTt,FROM_BR:()=>nTt,FROM_TL:()=>iTt,LINE_SPACING:()=>aTt,MID_SHIFT:()=>sTt,OPPOSITE_SIDE:()=>lTt});var rTt,iTt,nTt,aTt,oTt,sTt,lTt,$c=ps(()=>{"use strict";rTt={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},iTt={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},nTt={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},aTt=1.3,oTt=.7,sTt=.35,lTt={left:"right",right:"left",top:"bottom",bottom:"top"}});var Du=K(N0=>{"use strict";var mc=No(),Bp=St(),uTt=Bp.strTranslate,LG=(Rp(),or(Ip)),fTt=($c(),or(Wc)).LINE_SPACING,cTt=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,IG=e=>e?e.match(cTt):null;N0.matchTex=IG;var hTt=e=>{var t=IG(e);return!!t&&!t[1]&&!t[3]};N0.isPureTex=hTt;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]+")"+uTt(-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 dTt(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&&!yTt()&&(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=ETt(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");gTt(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()),dTt(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 pTt=/(<|<|<)/g,vTt=/(>|>|>)/g;function mTt(e){return e.replace(pTt,"\\lt ").replace(vTt,"\\gt ")}var PG=null,$pe=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,Vpe=!1,Upe=!1;function yTt(){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 gTt(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=mTt(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"},xTt={sub:"0.3em",sup:"-0.6em"},bTt={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,_Tt=//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,wTt=/(^|[\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 ATt=/(^|;)\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 TTt={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},MTt=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function WF(e){return e.replace(MTt,function(t,r){var i;return r.charAt(0)==="#"?i=STt(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=TTt[r],i||t})}N0.convertEntities=WF;function STt(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 ETt(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*fTt+"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=_Tt.test(t);f?o():(n=e,i=[{node:e}]);for(var c=t.split(RG),h=0;h{"use strict";var kTt=No(),T6=Hs(),$F=St(),ub=wo(),CTt=Zx().isValid;function DTt(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)),LTt=ave.FORMAT_LINK,PTt=ave.DATE_FORMAT_LINK;function zTt(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: "+LTt+"."].join(" ")}function ove(e,t){return OG(e,t)+[" And for dates see: "+PTt+".","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:zTt,descriptionOnlyNumbers:OG,descriptionWithDates:ove}});var Ph=K((xNr,Tve)=>{"use strict";var lve=lf(),Cw=Gc(),Ave=gh().dash,VG=Os().extendFlat,uve=cu().templatedArray,gNr=gu().templateFormatStringDescription,fve=zf().descriptionWithDates,ITt=(Il(),or(Bl)).ONEDAY,j1=(jc(),or(Hc)),RTt=j1.HOUR_PATTERN,BTt=j1.WEEKDAY_PATTERN,NG={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},qTt=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:[j1.idRegex.x.toString(),j1.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:[j1.idRegex.x.toString(),j1.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:[BTt,RTt,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:ITt},editType:"calc"}),tickmode:qTt,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",j1.idRegex.x.toString(),j1.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",j1.idRegex.x.toString(),j1.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"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},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((bNr,Sve)=>{"use strict";var If=Ph(),Mve=lf(),UG=Os().extendFlat,OTt=Ef().overrideAll;Sve.exports=OTt({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((wNr,kve)=>{"use strict";var NTt=YF(),VTt=(hw(),or(c6)).counter,UTt=(eb(),or(Qx)).default,Eve=Zx().scales,_Nr=UTt(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=NTt),r.noColorAxis||(T.coloraxis={valType:"subplotid",regex:VTt("coloraxis"),dflt:null,editType:"calc"}),T}});var HG=K((ANr,Cve)=>{"use strict";var GTt=Os().extendFlat,HTt=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:GTt({_isSubplotObj:!0,editType:"calc"},HTt("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var jG=K((TNr,Dve)=>{"use strict";var jTt=St();Dve.exports=function(t){return jTt.isPlainObject(t.colorbar)}});var YG=K($G=>{"use strict";var WG=Hs(),Fve=St(),Lve=(Il(),or(Bl)),WTt=Lve.ONEDAY,$Tt=Lve.ONEWEEK;$G.dtick=function(e,t){var r=t==="log",i=t==="date",n=t==="category",a=i?WTt: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%$Tt===0?1:0));if(!(i==="D1"||i==="D2"))return WG(e)?Number(e):0}});var fb=K((SNr,zve)=>{"use strict";var Pve=YG(),YTt=St().isArrayOrTypedArray,XTt=Yh().isTypedArraySpec,ZTt=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 XTt(M)&&(M=ZTt(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;YTt(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((ENr,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((kNr,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((CNr,qve)=>{"use strict";var ZF=St(),KTt=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=KTt.arrayTemplater(r,n,a),f,c;for(f=0;f{"use strict";var KG=St(),JTt=wo().contrast,Ove=Ph(),QTt=ZG(),e6t=A0();Nve.exports=function(t,r,i,n,a){a||(a={});var o=i("labelalias");KG.isPlainObject(o)||delete r.labelalias;var s=QTt(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?JTt(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");e6t(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:t6t}),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 t6t(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((FNr,Vve)=>{"use strict";var r6t=ZG();Vve.exports=function(t,r,i,n,a){a||(a={});var o=a.tickSuffixDflt,s=r6t(t),l=i("tickprefix");l&&i("showtickprefix",s);var u=i("ticksuffix",o);u&&i("showticksuffix",s)}});var JG=K((LNr,Uve)=>{"use strict";var Og=St(),i6t=cu(),n6t=fb(),a6t=Dw(),o6t=Bg(),s6t=qg(),l6t=YF();Uve.exports=function(t,r,i){var n=i6t.newContainer(r,"colorbar"),a=t.colorbar||{};function o(S,C){return Og.coerce(a,n,l6t,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"),n6t(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"),s6t(a,n,o,"linear",A),o6t(a,n,o,"linear",A),a6t(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((PNr,jve)=>{"use strict";var Gve=Hs(),eH=St(),u6t=jG(),f6t=JG(),Hve=Zx().isValid,c6t=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=c6t(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(),h6t=cu(),$ve=HG(),d6t=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=h6t.newContainer(r,l,"coloraxis"),o._name=l,d6t(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var f=0;f{"use strict";var p6t=St(),v6t=Kh().hasColorscale,m6t=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?p6t.nestedProperty(f,c.container).get():f;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=m6t(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(),y6t=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=y6t(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((BNr,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((qNr,r1e)=>{"use strict";var t1e=St(),g6t=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)||g6t(t.size))}}});var M6=K((ONr,i1e)=>{"use strict";var x6t=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 x6t(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},A6t=/([astvzqmhlc])([^astvzqmhlc]*)/gi,T6t=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function M6t(e){let t=[];return e.replace(A6t,(r,i,n)=>{let a=i.toLowerCase(),o=i,s=S6t(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 E6t=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=E6t(r),l="",u=0;u{"use strict";var bh=No(),Ou=St(),k6t=Ou.numberFormat,Vg=Hs(),QF=Ho(),uh=wo(),C6t=gf(),k6=Ou.strTranslate,eL=Du(),D6t=(Rp(),or(Ip)),F6t=($c(),or(Wc)),L6t=F6t.LINE_SPACING,A1e=(ry(),or(ty)).DESELECTDIM,P6t=ff(),z6t=M6(),I6t=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(B6t(f))),l&&e.style("text-shadow",l==="auto"?eL.makeTextShadow(uh.contrast(a)):sH(l)),u&&e.style("text-decoration-line",sH(q6t(u)))};function sH(e){return e==="none"?void 0:e}var R6t={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function B6t(e){return R6t[e]}function q6t(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 O6t=Po.symbolNames.length,N6t="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>=O6t||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?N6t:"")}var v1e=k6t("~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=P6t.isBubble(e)?z6t(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={};I6t(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(D6t.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,G6t=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>=G6t&&(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 H6t=/\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(H6t,"");n+=i,n=n.trim(),this.setAttribute("transform",n)})}};var j6t=/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(j6t);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((HNr,B1e)=>{"use strict";var zw=No(),W6t=Hs(),$6t=yf(),vH=Ho(),pb=St(),z1e=pb.strTranslate,tL=Is(),rL=wo(),Iw=Du(),I1e=(ry(),or(ty)),Y6t=($c(),or(Wc)).OPPOSITE_SIDE,R1e=/ [XY][0-9]* /,mH=1.6,yH=1.6;function X6t(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 $6t.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=Y6t[l.side],ye=l.side==="left"||l.side==="top"?-1:1,V=W6t(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:X6t,SUBTITLE_PADDING_EM:yH,SUBTITLE_PADDING_MATHJAX_EM:mH}});var Y1=K((jNr,U1e)=>{"use strict";var Z6t=No(),K6t=J3().utcFormat,cf=St(),J6t=cf.numberFormat,W1=Hs(),Ug=cf.cleanNumber,Q6t=cf.ms2DateTime,q1e=cf.dateTime2ms,$1=cf.ensureNumber,O1e=cf.isArrayOrTypedArray,Gg=(Il(),or(Bl)),iL=Gg.FP_SAFE,Wv=Gg.BADNUM,eMt=Gg.LOG_CLIP,tMt=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}var rMt=2;function iMt(e,t){if(e<=0)return 0;let r=Math.max(0,t-rMt);return e>r?r/e:1}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*eMt*Math.abs(x-T))}else return Wv}function o(b,M,x,T){if((T||{}).msUTC&&W1(b))return+b;var A=q1e(b,x||t.calendar);if(A===Wv)if(W1(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 Q6t(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:$1,t.l2c=t.type==="log"?C6:$1,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=$1,t.d2p=t.r2p=function(b){return t.l2p(Ug(b))},t.p2d=t.p2r=m,t.cleanPos=$1):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=$1,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=$1):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=$1,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:$1(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=$1,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:$1(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(!W1(x[T]))if(!(g||E)&&W1(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,t.domainpad=x.domainpad}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";let C=(S?M.h:M.w)*(t.domain[1]-t.domain[0]),k=t.domainpad,D=0,F=0;if(k){D=(S?k.top:k.left)||0,F=(S?k.bottom:k.right)||0;let B=iMt(D+F,C);D*=B,F*=B}if(t._length=C-D-F,t._padStart=D,t._padEnd=F,S?(t._offset=M.t+(1-t.domain[1])*M.h+D,t._m=t._length/(g-E),t._b=-t._m*E):(t._offset=M.l+t.domain[0]*M.w+D,t._m=t._length/(E-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var P,I;if(t._rangebreaks=t.locateBreaks(Math.min(g,E),Math.max(g,E)),t._rangebreaks.length){for(P=0;PE&&(L=!L),L&&t._rangebreaks.reverse();var z=L?-1:1;for(t._m2=z*t._length/(Math.abs(E-g)-t._lBreaks),t._B.push(-t._m2*(S?E:g)),P=0;PA&&(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(),nMt=(Il(),or(Bl)).BADNUM,fL=xH.isArrayOrTypedArray,aMt=xH.isDateTime,oMt=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&&cMt(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 fMt(e,t){for(var r=e.length,i=j1e(r),n=0,a=0,o={},s=0;sn*2}function cMt(e){return fL(e[0])&&fL(e[1])}});var $v=K(($Nr,eme)=>{"use strict";var hMt=No(),Z1e=Hs(),Hg=St(),cL=(Il(),or(Bl)).FP_SAFE,dMt=Ho(),pMt=Is(),K1e=Vf(),vMt=K1e.getFromId,mMt=K1e.isLinked;eme.exports={applyAutorangeOptions:Q1e,getAutoRange:bH,makePadFn:_H,doAutoRange:gMt,findExtremes:xMt,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,bMt)}function AH(e,t,r,i){J1e(e,t,r,i,_Mt)}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 wMt(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 AMt(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=wMt(r,t),i=AMt(i,t),[r,i]}});var Cs=K((XNr,wme)=>{"use strict";var qp=No(),Cc=Hs(),Bw=yf(),F6=Ho(),il=St(),qw=il.strTranslate,mb=Du(),TMt=vb(),L6=wo(),Qd=Is(),MMt=Ph(),tme=YG(),YNr=(jc(),or(Hc)),Qh=(Il(),or(Bl)),SMt=Qh.ONEMAXYEAR,vL=Qh.ONEAVGYEAR,mL=Qh.ONEMINYEAR,EMt=Qh.ONEMAXQUARTER,kH=Qh.ONEAVGQUARTER,yL=Qh.ONEMINQUARTER,kMt=Qh.ONEMAXMONTH,Ow=Qh.ONEAVGMONTH,gL=Qh.ONEMINMONTH,ep=Qh.ONEWEEK,V0=Qh.ONEDAY,jg=V0/2,Z1=Qh.ONEHOUR,P6=Qh.ONEMIN,xL=Qh.ONESEC,CMt=Qh.ONEMILLI,DMt=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,FMt=wL.OPPOSITE_SIDE,bL=3,wa=wme.exports={};wa.setConvert=Y1();var LMt=Rw(),K1=Vf(),PMt=K1.idSort,zMt=K1.isLinked;wa.id2name=K1.id2name;wa.name2id=K1.name2id;wa.cleanId=K1.cleanId;wa.list=K1.list;wa.listIds=K1.listIds;wa.getFromId=K1.getFromId;wa.getFromTrace=K1.getFromTrace;var dme=$v();wa.getAutoRange=dme.getAutoRange;wa.findExtremes=dme.findExtremes;var IMt=1e-4;function IH(e){var t=(e[1]-e[0])*IMt;return[e[0]-t,e[1]+t]}function RMt(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<=SMt?c=u:c=vL:r===kH&&f>=yL?u>=yL&&u<=EMt?c=u:c=kH:f>=gL?u>=gL&&u<=kMt?c=u:c=Ow:r===ep&&f>=ep?c=ep:f>=V0?c=V0:r===jg&&f>=jg?c=jg:r===Z1&&f>=Z1&&(c=Z1);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=UMt(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:RMt(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*X1(t,i,dL);else if(a>Ow)t/=Ow,e.dtick="M"+X1(t,1,lme);else if(a>V0){if(e.dtick=X1(t,V0,e._hasDayOfWeekBreaks?[1,2,7,14]:GMt),!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>Z1?e.dtick=X1(t,Z1,lme):a>P6?e.dtick=X1(t,P6,ume):a>xL?e.dtick=X1(t,xL,ume):(i=n(10),e.dtick=X1(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"+X1(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=X1(t,i,HMt)):(e.tick0=0,i=n(10),e.dtick=X1(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>=Z1)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 WMt(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 $Mt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function YMt(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 XMt(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 ZMt(e,t,r,i,n){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=KMt(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 KMt(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"],JMt=["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 QMt(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"?JMt[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=hSt(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]=iSt(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=eSt(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=rSt(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 eSt(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 nSt(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 PMt(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 aSt(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 oSt(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,TMt.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)||!sSt(e,t,r,i)||lSt(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=DMt:/%L/.test(t)?e>=CMt:/%[SX]/.test(t)?e>=xL:/%M/.test(t)?e>=P6:/%[HI]/.test(t)?e>=Z1:/%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((ZNr,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((KNr,Tme)=>{"use strict";var pSt=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&&(pSt(i,f,s),(o==="linear"||o==="-")&&i("rangemode")),r.cleanRange()}});var Sme=K((JNr,Mme)=>{var vSt={left:0,top:0};Mme.exports=mSt;function mSt(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=ySt(t);return r[0]=i-a.left,r[1]=n-a.top,r}function ySt(e){return e===window||e===document||e===document.body?vSt:e.getBoundingClientRect()}});var ML=K((QNr,Eme)=>{"use strict";var gSt=xG();function xSt(){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=gSt&&xSt()});var Cme=K((eVr,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((tVr,Fme)=>{"use strict";var Dme=St(),bSt=[["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),bSt[r][t]}});var zme=K((rVr,Pme)=>{"use strict";var _St=Aw(),wSt=CF(),ASt=h6().getGraphDiv,TSt=($T(),or(WT)),GH=Pme.exports={};GH.wrapped=function(e,t,r){var a;e=ASt(e),e._fullLayout&&wSt.clear(e._fullLayout._uid+TSt.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&&_St.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((iVr,qme)=>{"use strict";var MSt=Sme(),HH=_G(),SSt=ML(),ESt=St().removeElement,kSt=(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,SSt?(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 MSt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Yv=K((nVr,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((aVr,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;aRSt,itemGap:()=>ISt,itemHeightPad:()=>qSt,itemMinHeight:()=>BSt,scrollBarColor:()=>FSt,scrollBarEnterAttrs:()=>PSt,scrollBarMargin:()=>LSt,scrollBarMinHeight:()=>DSt,scrollBarWidth:()=>CSt,titlePad:()=>zSt});var CSt,DSt,FSt,LSt,PSt,zSt,ISt,RSt,BSt,qSt,EL=ps(()=>{"use strict";CSt=6,DSt=20,FSt="#808BA4",LSt=4,PSt={rx:20,ry:3,width:0,height:0},zSt=2,ISt=5,RSt=6,BSt=16,qSt=3});var $H=K((oVr,Hme)=>{"use strict";var WH=lf(),OSt=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:OSt.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((lVr,jme)=>{"use strict";var kL=Ho(),tp=St(),NSt=cu(),VSt=Tu(),USt=$H(),GSt=vw(),YH=O6();function HSt(e,t,r,i,n){var a=t[e]||{},o=NSt.newContainer(r,e);function s(B,O){return tp.coerce(a,o,USt,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,VSt,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(),jSt=ZH.pushUnique,WSt=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 $St=Is(),YSt=wo();Kme.exports=function(t,r,i,n){var a=i.marker.pattern;a&&a.shape?$St.pointStyle(t,i,n,r):YSt.fill(t,r.color)}});var Vw=K((dVr,tye)=>{"use strict";var Qme=wo(),eye=$g().castOption,XSt=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(XSt,r,i,n).style("stroke-width",s).call(Qme.stroke,o)}});var aj=K((pVr,oye)=>{"use strict";var G0=No(),tj=Ho(),M0=St(),rj=M0.strTranslate,rp=Is(),Op=wo(),ij=Kh().extractOpts,FL=ff(),ZSt=Vw(),KSt=$g().castOption,rye=(EL(),or(SL)),iye=12,nye=5,_b=2,JSt=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,JSt,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(KSt(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);ZSt(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((vVr,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(),QSt=aj(),jw=O6(),Gw=1,eEt=/^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(eEt)&&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)&&nEt(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(rEt,e,r)}).call(QSt,e,r).each(function(A){s||A[0].groupTitle&&r.groupclick==="toggleitem"||H0.select(this).call(iEt,e,n)}),Dc.syncOrAsync([sj.previousPromises,function(){return sEt(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=lEt(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 rEt(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 iEt(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 nEt(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(){aEt(t,r,i,n)})}function aEt(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 oEt(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 sEt(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=oEt(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()&&tEt(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 lEt(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(),uEt=Jf.pushUnique,fj=Jf.strTranslate,fEt=Jf.strRotate,cEt=Aw(),Uf=Du(),hEt=Ume(),J1=Is(),Yc=wo(),BL=U0(),Xv=Cs(),dEt=(jc(),or(Hc)).zindexSeparator,Ab=Ho(),ip=ud(),Tb=($T(),or(WT)),pEt=XH(),vEt=uj(),Mye=Tb.YANGLE,hj=Math.PI*Mye/180,mEt=1/Math.sin(hj),yEt=Math.cos(hj),gEt=Math.sin(hj),Rf=Tb.HOVERARROWSIZE,iu=Tb.HOVERTEXTPAD,mye={box:!0,ohlc:!0,violin:!0,candlestick:!0},xEt={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(){_Et(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=Cye(n),o=Dye(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=Eye(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=Tye("x",We,s),at=Tye("y",We,s);te(tt,at);var Ge=[],ge={},Be=0,Ze=function(Et){var er=mye[Et.trace.type]?Sye(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=Cye(e),Se=Dye(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=Eye(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);hEt(cy.select(n),rt?"pointer":"")}var ft=MEt(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 Sye(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 wEt=/([\s\S]*)<\/extra>/;function cj(e,t){return qL(e,Uf.getMathOrTextNode(t))}function Eye(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};pEt(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?fEt(Mye):""))}}),{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=Aye(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(wEt,(p,v)=>(o=Aye(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=kye(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?mEt: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 kye(e,t){var r=0,i=e.offset;return t&&(i*=-gEt,r=e.offset*yEt),{x:r,y:i}}function AEt(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=AEt(o),h=kye(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(J1.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 TEt(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:Xv.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:Xv.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=Xv.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Xv.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=Xv.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+f+" / -"+Xv.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){let i=t._id.charAt(0)==="y",n=1/0,a=-1/0;for(let o of t._counterAxes||[]){let s=Xv.getFromId(e,o);if(!s)continue;let l=s._padStart||0,u=s._padEnd||0;i?(n=Math.min(n,r.l+s.domain[0]*r.w+l),a=Math.max(a,r.l+s.domain[1]*r.w-u)):(n=Math.min(n,r.t+(1-s.domain[1])*r.h+l),a=Math.max(a,r.t+(1-s.domain[0])*r.h-u))}if(t.anchor==="free"){let o=i?r.l+t.position*r.w:r.t+(1-t.position)*r.h;n=Math.min(n,o),a=Math.max(a,o)}return[n,a]}function _ye(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=Xv.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){let L=bye(e,f,a);M=L[0],x=L[1]}i.insert("line",":first-child").attr({x1:M,x2:x,y1:p,y2:p,"stroke-width":w,stroke:_,"stroke-dasharray":J1.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 T=t.vLinePoint,A,g;u=T&&T.xa,f=T&&T.ya;var E=u.spikesnap;E==="cursor"?(A=o.pointerX,g=o.pointerY):(A=u._offset+T.x,g=f._offset+T.y);var S=Yc.wcagContrast(T.color,c)<1.5?Yc.contrast(c):T.color,C=u.spikemode,k=u.spikethickness,D=u.spikecolor||S,F=Xv.getPxPosition(e,u),P,I;if(C.indexOf("toaxis")!==-1||C.indexOf("across")!==-1){if(C.indexOf("toaxis")!==-1&&(P=F,I=g),C.indexOf("across")!==-1){let L=bye(e,u,a);P=L[0],I=L[1]}i.insert("line",":first-child").attr({x1:A,x2:A,y1:P,y2:I,"stroke-width":k,stroke:D,"stroke-dasharray":J1.dashStyle(u.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:A,x2:A,y1:P,y2:I,"stroke-width":k+2,stroke:c}).classed("spikeline",!0).classed("crisp",!0)}C.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:A,cy:F-(u.side!=="top"?k:-k),r:k,fill:D}).classed("spikeline",!0)}}}function MEt(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 wye(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Aye(e,t){return Uf.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function SEt(e,t){for(var r=t.charAt(0),i=[],n=[],a=[],o=0;oe.offsetTop+e.clientTop,Dye=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((yVr,Fye)=>{"use strict";var EEt=St(),kEt=wo(),CEt=ud().isUnifiedHover;Fye.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&&CEt(r.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(n.bgcolor||(n.bgcolor=kEt.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),EEt.coerceFont(i,"hoverlabel.font",n.font),i("hoverlabel.align",n.align)}});var Pye=K((gVr,Lye)=>{"use strict";var DEt=St(),FEt=V6(),LEt=wg();Lye.exports=function(t,r){function i(n,a){return DEt.coerce(t,r,LEt,n,a)}FEt(t,r,i)}});var Rye=K((xVr,Iye)=>{"use strict";var zye=St(),PEt=rw(),zEt=V6();Iye.exports=function(t,r,i,n){function a(s,l){return zye.coerce(t,r,PEt,s,l)}var o=zye.extendFlat({},n.hoverlabel);r.hovertemplate&&(o.namelength=-1),zEt(t,r,a,o)}});var vj=K((bVr,Bye)=>{"use strict";var IEt=St(),REt=wg();Bye.exports=function(t,r){function i(n,a){return r[n]!==void 0?r[n]:IEt.coerce(t,r,REt,n,a)}return i("clickmode"),i("hoversubplots"),i("hoveranywhere"),i("clickanywhere"),i("hovermode")}});var Nye=K((_Vr,Oye)=>{"use strict";var qye=St(),BEt=wg(),qEt=vj(),OEt=V6();Oye.exports=function(t,r){function i(u,f){return qye.coerce(t,r,BEt,u,f)}var n=qEt(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"),OEt(t,r,i),qye.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var Gye=K((wVr,Uye)=>{"use strict";var mj=St(),Vye=Ho();Uye.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 VEt=Ho(),Hye=ud(),UEt=pj().hover;jye.exports=function(t,r,i){var n=VEt.getComponentMethod("annotations","onClick")(t,t._hoverdata),a=t._fullLayout;i!==void 0&&UEt(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&&Hye.c2dApply(t._hoverXAxes,t._hoverXVals)),(c=s.yvals)!=null||(s.yvals=t._hoverYVals&&Hye.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((TVr,Xye)=>{"use strict";var GEt=No(),NL=St(),HEt=U0(),U6=ud(),$ye=wg(),Yye=pj();Xye.exports={moduleType:"component",name:"fx",constants:($T(),or(WT)),schema:{layout:$ye},attributes:rw(),layoutAttributes:$ye,supplyLayoutGlobalDefaults:Pye(),supplyDefaults:Rye(),supplyLayoutDefaults:Nye(),calc:Gye(),getDistanceFunction:U6.getDistanceFunction,getClosest:U6.getClosest,inbox:U6.inbox,quadrature:U6.quadrature,appendArrayPointValue:U6.appendArrayPointValue,castHoverOption:WEt,castHoverinfo:$Et,hover:Yye.hover,unhover:HEt.unhover,loneHover:Yye.loneHover,loneUnhover:jEt,click:Wye()};function jEt(e){var t=NL.isD3Selection(e)?e:GEt.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function WEt(e,t,r){return NL.castOption(e,t,"hoverlabel."+r)}function $Et(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((SVr,Zye)=>{"use strict";Zye.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((EVr,Kye)=>{"use strict";Kye.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:()=>YEt,SQRT2:()=>tkt,cos45:()=>QEt,i000:()=>XEt,i090:()=>ZEt,i180:()=>KEt,i270:()=>JEt,sin45:()=>ekt});var YEt,XEt,ZEt,KEt,JEt,QEt,ekt,tkt,GL=ps(()=>{"use strict";YEt=32,XEt=0,ZEt=8,KEt=16,JEt=24,QEt=Math.cos(Math.PI/4),ekt=Math.sin(Math.PI/4),tkt=Math.sqrt(2)});var HL=K((kVr,Qye)=>{"use strict";var rkt=St().strTranslate;function Jye(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 ikt(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 nkt(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return Jye(e,r[t])}}function akt(e){return rkt(e.xaxis._offset,e.yaxis._offset)}Qye.exports={p2r:Jye,r2p:ikt,axValue:nkt,getTransform:akt}});var Yg=K(dy=>{"use strict";var okt=iH(),rge=(GL(),or(UL)),Ww=rge.CIRCLE_SIDES,yj=rge.SQRT2,ige=HL(),ege=ige.p2r,tge=ige.r2p,skt=[0,3,4,5,6,1,2],lkt=[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 nge=Vf(),uge=Q1(),ukt=uge.drawMode,fkt=uge.openMode,$w=(GL(),or(UL)),age=$w.i000,oge=$w.i090,sge=$w.i180,lge=$w.i270,ckt=$w.cos45,hkt=$w.sin45,fge=HL(),WL=fge.p2r,Xg=fge.r2p,dkt=Rg(),pkt=dkt.clearOutline,$L=Yg(),vkt=$L.readPaths,mkt=$L.writePaths,ykt=$L.ellipseOver,gkt=$L.fixDatesForPaths;function xkt(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(!ukt(a)&&n!==void 0){var s=i._fullLayout._activeShapeIndex;if(s{"use strict";var bkt=Q1(),_kt=bkt.selectMode,wkt=Rg(),Akt=wkt.clearOutline,gj=Yg(),Tkt=gj.readPaths,Mkt=gj.writePaths,Skt=gj.fixDatesForPaths;dge.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(!_kt(c)&&f!==void 0){var d=a._fullLayout._activeSelectionIndex;if(dFkt,paramIsX:()=>Ckt,paramIsY:()=>Dkt,paramRE:()=>kkt,segmentRE:()=>Ekt});var Ekt,kkt,Ckt,Dkt,Fkt,W6=ps(()=>{"use strict";Ekt=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,kkt=/[^\s,]+/g,Ckt={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:{}},Dkt={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:{}},Fkt={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)),pge=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 Lkt(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 Lkt(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.*/,""),pge.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((PVr,yge)=>{"use strict";var Pkt=St(),rm=Cs(),vge=Du(),mge=Is(),zkt=Yg().readPaths,Mb=Kg(),Ikt=Mb.getPathString,$6=xF(),Rkt=($c(),or(Wc)).FROM_TL;yge.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=Pkt.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=Ikt(t,i),A=zkt(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=Bkt(_,M,b,x):F=0),w.call(function(O){return O.call(mge.font,v).attr({}),vge.convertToTspans(O,t),O});var P=mge.bBox(w.node()),I=qkt(_,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(vge.positionText,L,z)}};function Bkt(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 qkt(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 Okt=St(),Nkt=Okt.strTranslate,gge=U0(),_ge=Q1(),Vkt=_ge.drawMode,wge=_ge.selectMode,Age=Ho(),xge=wo(),ZL=(GL(),or(UL)),Ukt=ZL.i000,Gkt=ZL.i090,Hkt=ZL.i180,jkt=ZL.i270,Wkt=Rg(),Tge=Wkt.clearOutlineControllers,wj=Yg(),XL=wj.pointsOnRectangle,_j=wj.pointsOnEllipse,$kt=wj.writePaths,Ykt=YL().newShapes,Xkt=YL().createShapeObj,Zkt=xj(),Kkt=bj();Mge.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=Ykt(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,L=Zkt(r,i),a._fullLayout._reselect=!0),Object.keys(L).length&&Age.call((I||{}).redrawing?"relayout":"_guiRelayout",a,L)}var l=a._fullLayout,u=l._zoomlayer,f=i.dragmode,c=Vkt(f),h=wge(f);(c||h)&&(a._fullLayout._outlining=!0),Tge(a),r.attr("d",$kt(t));var d,p,v,y,m;if(!n&&(i.isActiveShape||i.isActiveSelection)){m=Jkt([],t);var w=u.append("g").attr("class","outline-controllers");E(w),P()}if(c&&i.hasText){var _=u.select(".label-temp"),b=Xkt(r,i,i.dragmode);Kkt(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=bge(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 eCt=No(),Fge=Ho(),Tj=St(),Sb=Cs(),tCt=Yg().readPaths,rCt=KL(),QL=bj(),Lge=Rg().clearOutlineControllers,Aj=wo(),eP=Is(),iCt=cu().arrayEditor,Sge=U0(),Ege=Gf(),kge=Yv(),Eb=(W6(),or(j6)),Dd=Kg(),Mj=Dd.getPathString;Ige.exports={draw:Sj,drawOne:Pge,eraseActiveShape:lCt,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&&Ege.hover(e,o,r.id)}}),i.addEventListener("click",a=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(a);o&&Ege.click(e,o,r.id)}})}function zge(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=aCt(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 aCt(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 oCt(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=eCt.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;Sge.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?Sge.getCursor(oe/Ee,1-Y/we):"move";kge(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)||(kge(t),ze(n),zge(t,e,r),Fge.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=Cge(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=Cge(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 Cge(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 sCt(e,t){if(tP(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){Dge(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=Dge,Sj(e)}}}function Dge(e){if(tP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(Lge(e),delete e._fullLayout._activeShapeIndex,Sj(e))}}function lCt(e){if(tP(e)){Lge(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var Yw=St()._,uCt=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")}};Rge.exports=uCt});var Nge=K((BVr,Oge)=>{"use strict";var qge=No(),{dfltConfig:fCt}=Mg(),cCt=Bge(),hCt=(e,t,r,i,n)=>{let a=cCt(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===fCt.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)},dCt=(e,t,r)=>{let i=qge.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",()=>{qge.event.target===n.node()&&a()}),hCt(e,n,t,()=>{a(),r()},a)};Oge.exports=dCt});var Cj=K((qVr,$ge)=>{"use strict";var np=Ho(),pCt=yf(),Uge=Vf(),Mu=VL(),vCt=rP().eraseActiveShape,mCt=Nge(),Xw=St(),nu=Xw._,bu={};$ge.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}mCt(e,t,function(){pCt.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:vCt};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=Uge.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"?Vge*h:1/Vge*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:jge};function Hge(e){var t=e._fullLayout;return t.hovermode?!1:t._has("cartesian")?t._isHoriz?"y":"x":"closest"}function jge(e){var t=Hge(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 Yge=Cj(),bCt=Object.keys(Yge),Xge=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],Zge=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Xge,["downloadJson"]),Zw=[],_Ct=function(e){if(Zge.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)}};bCt.forEach(function(e){_Ct(Yge[e])});Zw.sort();Kge.exports={DRAW_MODES:Xge,backButtons:Zge,foreButtons:Zw}});var Lj={};Fl(Lj,{default:()=>ACt});var Fj,wCt,ACt,Pj=ps(()=>{"use strict";Fj=N1(Dj()),wCt={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(" ")}},ACt=wCt});var Qge=K((NVr,Jge)=>{"use strict";var TCt=St(),Y6=wo(),MCt=cu(),SCt=(Pj(),or(Lj)).default;Jge.exports=function(t,r){var i=t.modebar||{},n=MCt.newContainer(r,"modebar");function a(s,l){return TCt.coerce(i,n,SCt,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 i2e=K((VVr,r2e)=>{"use strict";var zj=No(),ECt=Hs(),aP=St(),e2e=VL(),kCt=NT().version,CCt=new DOMParser;function t2e(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var im=t2e.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||e2e.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};im.createIcon=function(e){var t=ECt(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=CCt.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 LCt=Vf(),n2e=ff(),Ij=Ho(),PCt=ud().isUnifiedHover,zCt=i2e(),oP=Cj(),ICt=Dj().DRAW_MODES,RCt=St().extendDeep;a2e.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=UCt(a):!i.displayModeBar&&i.watermark?o=[]:o=BCt(t),n?n.update(t,o):r._modeBar=zCt(t,o)};function BCt(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"),(NCt(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"]),OCt(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";s2e.exports={moduleType:"component",name:"modebar",layoutAttributes:(Pj(),or(Lj)).default,supplyLayoutDefaults:Qge(),manage:o2e()}});var Bj=K((HVr,l2e)=>{"use strict";var GCt=($c(),or(Wc)).FROM_BL;l2e.exports=function(t,r,i){i===void 0&&(i=GCt[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(),Zv=Vf().id2name,HCt=Ph(),u2e=Bj(),jCt=Y1(),WCt=(Il(),or(Bl)).ALMOST_EQUAL,$Ct=($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 XCt(e,t){for(var r=t._size,i=r.h/r.w,n={},a=Object.keys(e),o=0;oWCt*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=x0){let l=i[1]-i[0],u=l-s;u>0&&(o=l/(u/t+s))}e.domain=e._input.domain=[a+(i[0]-a)/o,a+(i[1]-a)/o],e.setScale()}});var J6=K(_h=>{"use strict";var lP=No(),W0=Ho(),ap=yf(),Np=St(),Vj=Du(),Uj=G6(),Z6=wo(),Kw=Is(),d2e=vb(),g2e=Rj(),K6=Cs(),py=($c(),or(Wc)),x2e=Cb(),KCt=x2e.enforce,JCt=x2e.clean,p2e=$v().doAutoRange,b2e="start",QCt="middle",_2e="end",eDt=(jc(),or(Hc)).zindexSeparator;_h.layoutStyles=function(e){return Np.syncOrAsync([ap.doAutoMargin,rDt],e)};function tDt(e,t,r){for(var i=0;i=e[1]||n[1]<=e[0])&&a[0]t[0])return!0}return!1}function rDt(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),g2e.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){oDt(e,a,u,l),s.attr({x:o,y:a,"text-anchor":i,dy:y2e(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+d2e.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:v,"text-anchor":i,dy:y2e(t.yanchor)}).call(Vj.positionText,o,v)}}}};function iDt(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=nDt(a,i,n,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function oDt(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"&&iDt(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 sDt(e,t){var r=e.title,i=e._size,n=0;return t===b2e?n=r.pad.l:t===_2e&&(n=-r.pad.r),r.xref==="paper"?i.l+i.w*r.x+n:e.width*r.x+n}function lDt(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 y2e(e){return e==="top"?py.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":py.MID_SHIFT+"em"}function uDt(e){var t=e.title,r=QCt;return Np.isRightAnchor(t)?r=_2e:Np.isLeftAnchor(t)&&(r=b2e),r}function fDt(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 cDt=Yg().readPaths,hDt=KL(),w2e=Rg().clearOutlineControllers,Gj=wo(),A2e=Is(),dDt=cu().arrayEditor,T2e=Kg(),pDt=T2e.getPathString;S2e.exports={draw:uP,drawOne:M2e,activateLastSelection:yDt};function uP(e){var t=e._fullLayout;w2e(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(A2e.dashLine,y?"solid":d,y?4+h:h);if(vDt(m,e,i),p){var w=dDt(e.layout,"selections",i);m.style({cursor:"move"});var _={element:m.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=cDt(s,e);hDt(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 mDt(e,M)})}}function vDt(e,t,r){var i=r.xref+r.yref;A2e.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function mDt(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 yDt(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&&(w2e(e),delete e._fullLayout._activeSelectionIndex,uP(e))}}});var k2e=K((YVr,E2e)=>{function gDt(){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}E2e.exports=gDt});var D2e=K((XVr,C2e)=>{function xDt(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}C2e.exports=xDt});var L2e=K((ZVr,F2e)=>{var bDt={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}};F2e.exports=bDt});var z2e=K((KVr,P2e)=>{var Q6=L2e();function _Dt(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 wDt(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 ADt={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)}};B2e.exports=ADt});var N2e=K((eUr,O2e)=>{var TDt={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 MDt=k2e(),SDt=D2e(),V2e=z2e(),EDt=R2e(),tM=q2e(),U2e=N2e(),Vp=!1,rM=SDt(),Fd;Fd={buildLog:function(e){return e===!0?Vp=MDt():e===!1&&(Vp=!1),Vp===!1?!1:Vp.list},epsilon:function(e){return rM.epsilon(e)},segments:function(e){var t=V2e(!0,rM,Vp);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=V2e(!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:EDt(e.segments,rM,Vp),inverted:e.inverted}},polygonFromGeoJSON:function(e){return U2e.toPolygon(Fd,e)},polygonToGeoJSON:function(e){return U2e.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);G2e.exports=Fd});var W2e=K((rUr,j2e)=>{j2e.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((iUr,$2e)=>{"use strict";var Wj=mF().dot,cP=(Il(),or(Bl)).BADNUM,hP=$2e.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 Y2e={};Fl(Y2e,{BENDPX:()=>kDt,MINSELECT:()=>CDt,SELECTDELAY:()=>DDt,SELECTID:()=>FDt});var kDt,CDt,DDt,FDt,X2e=ps(()=>{"use strict";kDt=1.5,CDt=12,DDt=100,FDt="-select"});var yxe=K((nUr,mxe)=>{"use strict";var Z2e=H2e(),LDt=W2e(),sM=Ho(),PDt=Is().dashStyle,aM=wo(),zDt=Gf(),IDt=ud().makeEventData,hM=Q1(),RDt=hM.freeMode,BDt=hM.rectMode,lM=hM.drawMode,Zj=hM.openMode,Kj=hM.selectMode,K2e=Kg(),J2e=(W6(),or(j6)),ixe=KL(),nxe=Rg().clearOutline,axe=Yg(),$j=axe.handleEllipse,qDt=axe.readPaths,ODt=YL().newShapes,NDt=xj(),VDt=jj().activateLastSelection,pP=St(),UDt=pP.sorterAsc,oxe=nM(),oM=CF(),Up=Vf().getFromId,GDt=G6(),HDt=J6().redrawReglTraces,vP=(X2e(),or(Y2e)),nm=vP.MINSELECT,jDt=oxe.filter,Jj=oxe.tester,Qj=HL(),Q2e=Qj.p2r,WDt=Qj.axValue,$Dt=Qj.getTransform;function eW(e){return e.subplot!==void 0}function YDt(e,t,r,i,n){var a=!eW(i),o=RDt(n),s=BDt(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=$Dt(_),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;lxe(e,p,i),o&&(L=jDt([[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":PDt(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;dxe(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&&sxe(me,p,i.xaxes,i.yaxes,i.subplot,i,H),ze==="event"&&cM(p,void 0);zDt.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 sxe(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(QDt(s)){lxe(e,t,a),h=mP(t,r,i,n);var x=eFt(s,h),T=x.pointNumbers.length>0;if(T?tFt(h,x):rFt(h)&&(w=txe(x))){for(o&&o.remove(),M=0;M=0}function JDt(e){return e._fullLayout._activeSelectionIndex>=0}function uM(e,t){var r=e.dragmode,i=e.plotinfo,n=e.gd;KDt(n)&&n._fullLayout._deactivateShape(n),JDt(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=ODt(u,e)),f&&sM.call("_guiRelayout",n,{shapes:f});var c;l&&!eW(e)&&(c=NDt(u,e)),c&&(n._fullLayout._noEmitSelectedAtStart=!0,sM.call("_guiRelayout",n,{selections:c}).then(function(){t&&VDt(n)})),n._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function exe(e){return e._id}function mP(e,t,r,i){if(!e.calcdata)return[];var n=[],a=t.map(exe),o=r.map(exe),s,l,u;for(u=0;u0,a=n?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function tFt(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=rxe(e,!0);if(de.length){var me=de[0].xref,ze=de[0].yref;if(me&&ze){var ke=pxe(de),le=vxe([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,aFt(s,l,f)||dxe(e,s,l,i),re&&($.points.length?cM(e,$):iW(e)),h._deselect=!1}return{eventData:$,selectionTesters:r}}function nFt(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";gxe.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:()=>fFt});function fFt(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((sUr,_xe)=>{"use strict";var xxe=nW(),bxe=lf(),yP=(jc(),or(Hc)),cFt=cu().templatedArray,oUr=(pM(),or(dM));_xe.exports=cFt("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:bxe({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:xxe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:xxe.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:bxe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var am={};Fl(am,{PTS_LINESONLY:()=>hFt,eventDataKeys:()=>mFt,maxScreensAway:()=>vFt,minTolerance:()=>dFt,toleranceGrowth:()=>pFt});var hFt,dFt,pFt,vFt,mFt,om=ps(()=>{"use strict";hFt=20,dFt=.2,pFt=10,vFt=20,mFt=[]});var sm=K((lUr,wxe)=>{"use strict";wxe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Qf=K((uUr,Dxe)=>{"use strict";var Axe=zf().axisHoverFormat,{hovertemplateAttrs:yFt,texttemplateAttrs:gFt,templatefallbackAttrs:Txe}=gu(),Mxe=Wu(),xFt=lf(),Sxe=gh().dash,bFt=gh().pattern,_Ft=Is(),wFt=(om(),or(am)),vM=Os().extendFlat,AFt=sm();function Exe(e){return{valType:"any",dflt:0,editType:"calc"}}function kxe(e){return{valType:"any",editType:"calc"}}function Cxe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Dxe.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:Exe("x"),yperiod:Exe("y"),xperiod0:kxe("x0"),yperiod0:kxe("y0"),xperiodalignment:Cxe("x"),yperiodalignment:Cxe("y"),xhoverformat:Axe("x"),yhoverformat:Axe("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:gFt(),texttemplatefallback:Txe({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:yFt({},{keys:wFt.eventDataKeys}),hovertemplatefallback:Txe(),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({},Sxe,{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:AFt(!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:bFt,marker:vM({symbol:{valType:"enumerated",values:_Ft.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({},Sxe,{arrayOk:!0}),editType:"calc"},Mxe("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"},Mxe("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:xFt({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var aW=K((cUr,Pxe)=>{"use strict";var Fxe=Qg(),Lxe=Qf().line,TFt=gh().dash,gP=Os().extendFlat,MFt=Ef().overrideAll,SFt=cu().templatedArray,fUr=(pM(),or(dM));Pxe.exports=MFt(SFt("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:gP({},Fxe.xref,{}),yref:gP({},Fxe.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:Lxe.color,width:gP({},Lxe.width,{min:1,dflt:1}),dash:gP({},TFt,{dflt:"dot"})}}),"arraydraw","from-root")});var Bxe=K((hUr,Rxe)=>{"use strict";var zxe=St(),xP=Cs(),EFt=A0(),kFt=aW(),Ixe=Kg();Rxe.exports=function(t,r){EFt(t,r,{name:"selections",handleItemDefaults:CFt});for(var i=r.selections,n=0;n{"use strict";qxe.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((pUr,Uxe)=>{"use strict";var DFt=Ho(),Nxe=St(),Vxe=Vf();Uxe.exports=function(t){return function(i,n){var a=i[t];if(Array.isArray(a))for(var o=DFt.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 Gxe=jj(),yM=yxe();Hxe.exports={moduleType:"component",name:"selections",layoutAttributes:aW(),supplyLayoutDefaults:Bxe(),supplyDrawNewSelectionDefaults:Oxe(),includeBasePlot:mM()("selections"),draw:Gxe.draw,drawOne:Gxe.drawOne,reselect:yM.reselect,prepSelect:yM.prepSelect,clearOutline:yM.clearOutline,clearSelectionsCache:yM.clearSelectionsCache,selectOnClick:yM.selectOnClick}});var dW=K((mUr,ube)=>{"use strict";var cW=No(),Gp=St(),jxe=Gp.numberFormat,FFt=ML(),bP=Ho(),Qxe=Gp.strTranslate,LFt=Du(),sW=wo(),e2=Is(),PFt=Gf(),Wxe=Cs(),zFt=Yv(),IFt=U0(),ebe=Q1(),_P=ebe.selectingOrDrawing,RFt=ebe.freeMode,BFt=($c(),or(Wc)).FROM_TL,qFt=G6(),OFt=J6().redrawReglTraces,NFt=yf(),lW=Vf().getFromId,VFt=fh().prepSelect,UFt=fh().clearOutline,GFt=fh().selectOnClick,oW=Bj(),hW=(jc(),or(Hc)),$xe=hW.MINDRAG,fd=hW.MINZOOM,Yxe=!0;function HFt(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&&GFt(pe,fe,v,y,t.id,O),Re.indexOf("event")>-1&&PFt.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=jFt(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(LFt.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)})}}IFt.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=ibe(l,Q,m,w,N),$=nbe(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 $Ft(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function ibe(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 nbe(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",Qxe(t,r)).attr("d","M0,0Z")}function abe(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"),obe(e,t,n,a)}function obe(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 sbe(e){Yxe&&e.data&&e._context.showTips&&(Gp.notifier(Gp._(e,"Double-click to zoom back out"),"long",e),Yxe=!1)}function YFt(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 XFt(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 Kxe(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(),AP=Gf(),KFt=U0(),JFt=Yv(),Kv=dW().makeDragBox,wh=(jc(),or(Hc)).DRAGGERSIZE;TP.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=Kv(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,KFt.unhover(t,h))},t._context.showAxisDragHandles&&(Kv(t,o,s._offset-wh,l._offset-wh,wh,wh,"n","w"),Kv(t,o,s._offset+s._length,l._offset-wh,wh,wh,"n","e"),Kv(t,o,s._offset-wh,l._offset+l._length,wh,wh,"s","w"),Kv(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),Kv(t,o,s._offset+s._length*.1,f,s._length*.8,wh,"","ew"),Kv(t,o,s._offset,f,s._length*.1,wh,"","w"),Kv(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),Kv(t,o,c,l._offset+l._length*.1,wh,l._length*.8,"ns",""),Kv(t,o,c,l._offset+l._length*.9,wh,l._length*.1,"s",""),Kv(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";JFt(t._draggers,r)}});var hbe=K((gUr,cbe)=>{"use strict";var fbe=Ho();cbe.exports=function(t){for(var r=fbe.layoutArrayContainers,i=fbe.layoutArrayRegexes,n=t.split("[")[0],a,o,s=0;s{"use strict";var QFt=_g(),vW=vF(),gM=ey(),eLt=SF().sorterAsc,mW=Ho();xM.containerArrayMatch=hbe();var tLt=xM.isAddVal=function(t){return t==="add"||QFt(t)},dbe=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(dbe(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(eLt),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),dbe(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 gbe=Hs(),xbe=Ho(),$0=St(),bM=yf(),bbe=Vf(),_M=bbe.cleanId,rLt=bbe.getFromTrace,yW=xbe.traceIs,iLt=["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=ybe(t);r;){if(r in e)return!0;r=ybe(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(),oLt=Hs(),sLt=_G(),Ro=St(),xf=Ro.nestedProperty,bW=Aw(),cd=ppe(),jp=Ho(),RP=Sw(),ll=yf(),Y0=Cs(),lLt=UH(),uLt=Ph(),EP=Is(),fLt=wo(),cLt=pW().initInteractions,hLt=(Rp(),or(Ip)),dLt=fh().clearOutline,Sbe=Mg().dfltConfig,SP=pbe(),Lc=_be(),Nu=J6(),t2=Ef(),pLt=(jc(),or(Hc)).AX_NAME_PATTERN,xW=0,wbe=5;function vLt(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)}kbe(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)&&(OLt(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 yLt(e){return Ro.extendFlat(Sbe,e)}function Ebe(e,t){try{e._fullLayout._paper.style("background",t)}catch(r){Ro.error(r)}}function gLt(e,t){var r=fLt.combine(t,"white");Ebe(e,r)}function kbe(e,t){if(!e._context){e._context=Ro.extendDeep({},Sbe);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 Cbe(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 _Lt(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(qbe))x(k),xf(i,D+"._inputRange").set(null);else if(k.match(Obe)){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(MLt)&&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(pLt)){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,_),!D&&q&&g&&(g.range!==void 0||g.autorange!==void 0)&&(x(`${C}.range`),q._inputRange=null)}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)}}(Vbe(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 kLt(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),DLt(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=PLt(e,l,h,d,p),y=v.newDataRevision,m=LLt(e,s,c,d,p,y);if(Vbe(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 LLt(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 ILt(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&&xWA.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 BLt(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 qLt(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 OLt(e){var t=CP.select(e),r=e._fullLayout;if(r._calcInverseTransform=qLt,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(hLt.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=zLt;su.addFrames=ILt;su.deleteFrames=RLt;su.addTraces=zbe;su.deleteTraces=Ibe;su.extendTraces=Lbe;su.moveTraces=_W;su.prependTraces=Pbe;su.newPlot=bLt;su._doPlot=vLt;su.purge=BLt;su.react=FLt;su.redraw=xLt;su.relayout=wM;su.restyle=LP;su.setPlotConfig=yLt;su.update=zP;su._guiRelayout=wW(wM);su._guiRestyle=wW(LP);su._guiUpdate=wW(zP);su._storeDirectGUIEdit=TLt});var my=K(Wp=>{"use strict";var NLt=Ho();Wp.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};Wp.getRedrawFunc=function(e){return function(){NLt.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 Ube=window.URL||window.webkitURL;Wp.createObjectURL=function(e){return Ube.createObjectURL(e)};Wp.revokeObjectURL=function(e){return Ube.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=VLt(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 VLt(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),n=0;n{"use strict";var TW=No(),TUr=St(),ULt=Is(),GLt=wo(),MUr=(Rp(),or(Ip)),AW=/"/g,Db="TOBESTRIPPED",HLt=new RegExp(`("${Db})|(${Db}")|("${Db})|(${Db}")`,"g"),jLt=["&","&","&",""",""",""","'","'","'"],WLt=["<","<","<"],$Lt=[">",">",">"];function YLt(e){let t=TW.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,i=>{let n=i.toLowerCase();return jLt.includes(n)?i:WLt.includes(n)?"<":$Lt.includes(n)?">":i.includes("<")||i.includes(">")?"":t.html(i).text()});return t.remove(),r}function XLt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}Gbe.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(ULt.setRect,0,0,s,l).call(GLt.fill,n.paper_bgcolor);var f=n._basePlotModules||[];for(u=0;u{"use strict";var ZLt=St(),KLt=nb().EventEmitter,TM=my();function JLt(e){var t=e.emitter||new KLt,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=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}Hbe.exports=JLt});var SW=K((kUr,$be)=>{"use strict";var jbe=Hs(),Wbe=qP(),QLt=yf(),lm=St(),MM=my(),ePt=OP(),tPt=NP(),rPt=NT().version,MW=(NU(),or(OU)).default;function iPt(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&&jbe(a.width)&&(y.width=a.width),c?y.height=c:t.height===null&&jbe(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=ePt(v,u,h),g=v._fullLayout.width,E=v._fullLayout.height;function S(){Wbe.purge(v),document.body.removeChild(v)}if(u==="full-json"){var C=QLt.graphJson(v,!1,"object",!0,!0);return C.version=rPt,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(),tPt({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){Wbe.newPlot(v,r,y,m).then(w).then(_).then(b).then(function(A){x(M(A))}).catch(function(A){T(A)})})}$be.exports=iPt});var Zbe=K((CUr,Xbe)=>{"use strict";var $p=St(),nPt=yf(),aPt=Sw(),oPt=Mg().dfltConfig,Jv=$p.isPlainObject,Lb=Array.isArray,EW=$p.isArrayOrTypedArray;Xbe.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=aPt.get(),n=[],a={_context:$p.extendFlat({},oPt)},o,s;Lb(t)?(a.data=$p.extendDeep([],t),o=t):(a.data=[],o=[],n.push(Ah("array","data"))),Jv(r)?(a.layout=$p.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&n.push(Ah("object","layout"))),nPt.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 dPt=St(),UP=my();function pPt(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(dPt.isSafari()){var f=r==="svg"?",":";base64,";return UP.octetStream(f+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Kbe.exports=pPt});var kW=K((FUr,r_e)=>{"use strict";var GP=St(),Qbe=Du(),vPt=SW(),mPt=Jbe(),e_e=my(),t_e=40;function yPt(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=vPt(e,t),o=t.filename||e.fn;if(!o){let l=e_e.getPlotTitle(e);if(l&&!Qbe.matchTex(l))o=GP.slugify(l,t_e);else{let u=e_e.getPlotSubtitle(e);u&&!Qbe.matchTex(u)&&(o=GP.slugify(u,t_e))}}var s=o||"plot-image";s+="."+t.format.replace("-","."),a.then(function(l){return r&&(r._snapshotInProgress=!1),mPt(l,s,t.format)}).then(function(l){i(l)}).catch(function(l){r&&(r._snapshotInProgress=!1),n(l)})})}r_e.exports=yPt});var s_e=K(CW=>{"use strict";var Ld=St(),Pd=Ld.isPlainObject,i_e=Sw(),n_e=yf(),gPt=Tu(),a_e=cu(),o_e=Mg().dfltConfig;CW.makeTemplate=function(e){e=Ld.isPlainObject(e)?e:Ld.getGraphDiv(e),e=Ld.extendDeep({_context:o_e},{data:e.data,layout:e.layout}),n_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,bPt.bind(null,d));var v=Ld.coerce(d,{},gPt,"type"),y=i.data[v];y||(y=i.data[v]=[]),y.push(p)}),SM(r,i.layout,xPt.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)&&_Pt(x)&&w(x,T)}}if(w({data:l,layout:s},""),o.length)return o.map(wPt)};function _Pt(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 APt=h6().getGraphDiv,TPt=rP().eraseActiveShape;Bf.deleteActiveShape=function(e){return TPt(APt(e))};Bf.toImage=SW();Bf.validate=Zbe();Bf.downloadImage=kW();var l_e=s_e();Bf.makeTemplate=l_e.makeTemplate;Bf.validateTemplate=l_e.validateTemplate});var Pb=K((zUr,f_e)=>{"use strict";var DW=St(),MPt=Ho();f_e.exports=function(t,r,i,n){var a=n("x"),o=n("y"),s,l=MPt.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 Qv=K((IUr,d_e)=>{"use strict";var c_e=St().dateTick0,SPt=(Il(),or(Bl)),EPt=SPt.ONEWEEK;function h_e(e,t){return e%EPt===0?c_e(t,1):c_e(t,0)}d_e.exports=function(t,r,i,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",h_e(o,r.xcalendar)),n("xperiodalignment"))}if(a.y){var s=n("yperiod");s&&(n("yperiod0",h_e(s,r.ycalendar)),n("yperiodalignment"))}}});var m_e=K((RUr,v_e)=>{"use strict";var p_e=["orientation","groupnorm","stackgaps"];v_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 y_e=wo(),g_e=Kh().hasColorscale,x_e=xh(),kPt=ff();b_e.exports=function(t,r,i,n,a,o={}){var s=kPt.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),g_e(t,"marker")&&x_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=y_e.background:u=y_e.defaultLine,a("marker.line.color",u),g_e(t,"marker.line")&&x_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 e1=K((qUr,__e)=>{"use strict";var CPt=St().isArrayOrTypedArray,DPt=Kh().hasColorscale,FPt=xh();__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),DPt(t,"line"))FPt(t,r,n,a,{prefix:"line.",cLetter:"c"});else{var l=(CPt(s)?!1:s)||i;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var Qw=K((OUr,w_e)=>{"use strict";w_e.exports=function(t,r,i){var n=i("line.shape");n==="spline"&&i("line.smoothing")}});var t1=K((NUr,A_e)=>{"use strict";var LPt=St();A_e.exports=function(e,t,r,i,n){n=n||{},i("textposition"),LPt.coerceFont(i,"textfont",n.font||r.font,n),n.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var um=K((VUr,M_e)=>{"use strict";var WP=wo(),T_e=St().isArrayOrTypedArray;function PPt(e){for(var t=WP.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var S_e=St(),zPt=Ho(),IPt=Qf(),RPt=(om(),or(am)),eA=ff(),BPt=Pb(),qPt=Qv(),OPt=m_e(),NPt=Xp(),VPt=e1(),E_e=Qw(),UPt=t1(),GPt=um(),HPt=St().coercePattern;k_e.exports=function(t,r,i,n){function a(d,p){return S_e.coerce(t,r,IPt,d,p)}var o=BPt(t,r,n,a);if(o||(r.visible=!1),!!r.visible){qPt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=OPt(t,r,n,a);n.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var jPt=Cb().getAxisGroup;D_e.exports=function(t,r,i,n,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=jPt(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((HUr,F_e)=>{"use strict";var WPt=St(),$Pt=zb(),YPt=Qf();F_e.exports=function(t,r){var i,n,a,o=r.scattermode;function s(h){return WPt.coerce(n._input,n,YPt,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 P_e=K((jUr,L_e)=>{"use strict";var XPt=St(),ZPt=VF();L_e.exports=function(e,t){function r(n,a){return XPt.coerce(e,t,ZPt,n,a)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var r1=K((WUr,I_e)=>{"use strict";var KPt=Hs(),z_e=St(),JPt=z_e.dateTime2ms,$P=z_e.incrementMonth,QPt=(Il(),or(Bl)),e9t=QPt.ONEAVGMONTH;I_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(KPt(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=JPt(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(($Ur,B_e)=>{"use strict";var LW=Kh().hasColorscale,PW=T0(),R_e=ff();B_e.exports=function(t,r){R_e.hasLines(r)&&LW(r,"line")&&PW(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),R_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((YUr,q_e)=>{"use strict";var uc=St();q_e.exports=function(t,r){for(var i=0;i{"use strict";var O_e=St();N_e.exports=function(t,r){O_e.isArrayOrTypedArray(r.selectedpoints)&&O_e.tagSelected(t,r)}});var Kp=K((ZUr,$_e)=>{"use strict";var V_e=Hs(),IW=St(),EM=Cs(),U_e=r1(),zW=(Il(),or(Bl)).BADNUM,RW=ff(),t9t=Zp(),r9t=fm(),i9t=op();function n9t(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=U_e(t,i,"x",a),l=U_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;j_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=H_e(t,c);G_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";Y_e.exports=YP;var a9t=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;ao9t,eventDataKeys:()=>s9t});var o9t,s9t,i2=ps(()=>{"use strict";o9t=3,s9t=["value","label"]});var Ib=K((JUr,Q_e)=>{"use strict";var Jp=Hs(),{isArrayOrTypedArray:yy}=St(),{BADNUM:tA}=(Il(),or(Bl)),l9t=Ho(),kM=Cs(),{getAxisGroup:u9t}=Cb(),XP=X_e(),{TEXTPAD:f9t}=(i2(),or(r2)),{LINE_SPACING:c9t}=($c(),or(Wc)),{BR_TAG_ALL:h9t}=Du();function d9t(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*c9t*r+f9t;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 A9t(e,t,r,i){for(var n=rA(i),a=0;a{"use strict";var e3e=Kp(),t3e=Ib().setGroupPositions;function M9t(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 E9t=Is(),s3e=(Il(),or(Bl)),CM=s3e.BADNUM,l3e=s3e.LOG_CLIP,n3e=l3e+.5,a3e=l3e-.5,ZP=St(),k9t=ZP.segmentsIntersect,o3e=ZP.constrain,HW=(om(),or(am));u3e.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?n3e:a3e)/(a._m*l*(a._m>0?n3e:a3e)))),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[o3e(ge[0],U,J),o3e(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 f3e={tonextx:1,tonexty:1,tonext:1};c3e.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 i1=No(),C9t=Ho(),DM=St(),iA=DM.ensureSingle,d3e=DM.identity,yc=Is(),nA=ff(),D9t=jW(),F9t=WW(),KP=nM().tester;p3e.exports=function(t,r,i,n,a,o){var s,l,u=!a,f=!!a&&a.duration>0,c=F9t(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(),L9t(t,s,r),f){o&&(l=o());var h=i1.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){h3e(t,p,r,d,c,this,a)})})}else s.each(function(d,p){h3e(t,p,r,d,c,this,a)});u&&s.exit().remove(),n.selectAll("path:not([d])").remove()};function L9t(e,t,r){t.each(function(i){var n=iA(i1.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,d3e);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){a[l]=iA(i1.select(this),"path","js-fill")})})}function h3e(e,t,r,i,n,a,o){var s=e._context.staticPlot,l;P9t(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=i1.select(a),y=iA(v,"g","errorbars"),m=iA(v,"g","lines"),w=iA(v,"g","points"),_=iA(v,"g","text");if(C9t.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=D9t(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";v3e.exports={container:"marker",min:"cmin",max:"cmax"}});var QP=K((nGr,m3e)=>{"use strict";var JP=Cs();m3e.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((aGr,y3e)=>{"use strict";var $W=No(),oA=Is(),z9t=Ho();function I9t(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),z9t.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 R9t(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))}y3e.exports={style:I9t,stylePoints:YW,styleText:XW,styleOnSelect:R9t}});var lA=K((oGr,g3e)=>{"use strict";var sA=wo(),B9t=ff();g3e.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)&&B9t.hasLines(t)&&t.line.width?i:t.fillcolor)}});var uA=K((sGr,b3e)=>{"use strict";var e9=St(),x3e=Gf(),q9t=Ho(),O9t=lA(),ZW=wo(),N9t=e9.fillText;b3e.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((lGr,w3e)=>{"use strict";var _3e=ff();w3e.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&&!_3e.hasMarkers(s)&&!_3e.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";A3e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var JW=K((fGr,E3e)=>{"use strict";var t9=Ho().traceIs,KW=Rw();E3e.exports=function(t,r,i,n){i("autotypenumbers",n.autotypenumbersDflt);var a=i("type",(n.splomStash||{}).type);a==="-"&&(V9t(r,n.data),r.type==="-"?r.type="linear":t.type=r.type)};function V9t(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n;r.indexOf("scene")!==-1&&(r=i);var a=U9t(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,S3e(a,i)){var u=M3e(a),f=[];for(n=0;n0&&(n["_"+r+"axes"]||{})[t])return n;if((n[r+"axis"]||r)===t){if(S3e(n,r))return n;if((n[r]||[]).length||n[r+"0"])return n}}}function M3e(e){return{v:"x",h:"y"}[e.orientation||"v"]}function S3e(e,t){var r=M3e(e),i=t9(e,"box-violin");return i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var r9=K((cGr,k3e)=>{"use strict";var G9t=Yh().isTypedArraySpec;function H9t(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||G9t(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=H9t(r,n).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var FM=K((hGr,D3e)=>{"use strict";var C3e=wo(),j9t=Gc(),W9t=St();D3e.exports=function(t,r,i,n){n=n||{};var a=n.dfltColor;function o(A,g){return W9t.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=C3e.mix(a,n.bgColor,n.blend||j9t.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=C3e.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((dGr,R3e)=>{"use strict";var F3e=Hs(),$9t=Ho(),LM=St(),Y9t=cu(),X9t=A0(),QW=Ph(),L3e=fb(),P3e=Dw(),Z9t=Bg(),K9t=qg(),J9t=r9(),Q9t=FM(),e8t=UH(),z3e=Y1(),i9=(jc(),or(Hc)).WEEKDAY_PATTERN,t8t=(jc(),or(Hc)).HOUR_PATTERN;R3e.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=$9t.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"),z3e(r,a),e8t(t,r,i,n),J9t(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(K9t(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}}),L3e(t,r,i,c);var w=n.hasMinor;if(w&&(Y9t.newContainer(r,"minor"),L3e(t,r,i,c,{isMinor:!0})),Z9t(t,r,i,c,n),P3e(t,r,i,n),w){var _=n.isMinor;n.isMinor=!0,P3e(t,r,i,n),n.isMinor=_}Q9t(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(X9t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:r8t}),!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=I3e(a[s]),l){o=i9;break}}var u=i("pattern",o);if(u===i9)for(s=0;s<2;s++)l=I3e(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(!F3e(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 t8t:if(!F3e(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 n8t=Hs(),n9=St();B3e.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||(n8t(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),s==="x"?(i("domainpad.left"),i("domainpad.right")):(i("domainpad.top"),i("domainpad.bottom")),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var W3e=K((vGr,j3e)=>{"use strict";var Bb=St(),q3e=wo(),a8t=ud().isUnifiedHover,o8t=vj(),O3e=cu(),s8t=vw(),N3e=Ph(),l8t=JW(),V3e=PM(),u8t=Cb(),U3e=a9(),t$=Vf(),cm=t$.id2name,G3e=t$.name2id,f8t=(jc(),or(Hc)).AX_ID_PATTERN,H3e=Ho(),o9=H3e.traceIs,e$=H3e.getComponentMethod;function s9(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}j3e.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 c8t=No(),$3e=Ho(),l9=St(),sp=Is(),u9=Cs();Y3e.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(),Z3e=Ho(),qb=St(),h8t=yf(),d8t=Is(),K3e=Zh().getModuleCalcData,n2=Vf(),n1=(jc(),or(Hc)),p8t=(Rp(),or(Ip)),Su=qb.ensureSingle;function f9(e,t,r){return qb.ensureSingle(e,t,r,function(i){i.datum(r)})}var Ob=n1.zindexSeparator;S0.name="cartesian";S0.attr=["xaxis","yaxis"];S0.idRoot=["x","y"];S0.idRegex=n1.idRegex;S0.attrRegex=n1.attrRegex;S0.attributes=T3e();S0.layoutAttributes=Ph();S0.supplyLayoutDefaults=W3e();S0.transitionAxes=X3e();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 ewe(e,t){if(e){var r={};e.each(function(l){var u=l[0],f=c9.select(this);f.remove(),twe(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();rwe.exports={hasLines:h9.hasLines,hasMarkers:h9.hasMarkers,hasText:h9.hasText,isBubble:h9.isBubble,attributes:Qf(),layoutAttributes:VF(),supplyDefaults:C_e(),crossTraceDefaults:FW(),supplyLayoutDefaults:P_e(),calc:Kp().calc,crossTraceCalc:i3e(),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 owe=K((xGr,awe)=>{"use strict";var m8t=No(),y8t=wo(),nwe=nW(),r$=St(),g8t=r$.strScale,x8t=r$.strRotate,b8t=r$.strTranslate;awe.exports=function(t,r,i){var n=t.node(),a=nwe[i.arrowhead||0],o=nwe[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 swe=No(),i$=Ho(),_8t=yf(),o2=St(),n$=o2.strTranslate,IM=Cs(),Nb=wo(),gy=Is(),lwe=Gf(),a$=Du(),o$=Yv(),zM=U0(),w8t=cu().arrayEditor,A8t=owe();cwe.exports={draw:T8t,drawOne:uwe,drawRaw:fwe};function T8t(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(A8t(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 ywe=K((_Gr,mwe)=>{"use strict";var hwe=St(),M8t=Ho(),dwe=cu().arrayEditor;mwe.exports={hasClickToShow:S8t,onClick:E8t};function S8t(e,t){var r=vwe(e,t);return r.on.length>0||r.explicitOff.length>0}function E8t(e,t){var r=vwe(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();gwe.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 bwe=K((AGr,xwe)=>{"use strict";var u$=St(),Vb=Cs(),k8t=A0(),C8t=l$(),D8t=Qg();xwe.exports=function(t,r){k8t(t,r,{name:"annotations",handleItemDefaults:F8t})};function F8t(e,t,r){function i(_,b){return u$.coerce(e,t,D8t,_,b)}var n=i("visible"),a=i("clicktoshow");if(n||a){C8t(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 Awe=K((TGr,wwe)=>{"use strict";var f$=St(),Ub=Cs(),L8t=d9().draw;wwe.exports=function(t){var r=t._fullLayout,i=f$.filterVisible(r.annotations);if(i.length&&t._fullData.length)return f$.syncOrAsync([L8t,P8t],t)};function P8t(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"&&_we(r,i),o==="range"&&_we(r,n)})}function _we(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 Mwe=K((MGr,Twe)=>{"use strict";var z8t=Hs(),I8t=ND();Twe.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=I8t(p,r.range):v=Math.pow(10,p),z8t(v)||(v=null),n(f+d,v)}for(var h=0;h{"use strict";var c$=d9(),Swe=ywe();Ewe.exports={moduleType:"component",name:"annotations",layoutAttributes:Qg(),supplyLayoutDefaults:bwe(),includeBasePlot:mM()("annotations"),calcAutorange:Awe(),draw:c$.draw,drawOne:c$.drawOne,drawRaw:c$.drawRaw,hasClickToShow:Swe.hasClickToShow,onClick:Swe.onClick,convertCoords:Mwe()}});var p9=K((EGr,Cwe)=>{"use strict";var bf=Qg(),R8t=Ef().overrideAll,B8t=cu().templatedArray;Cwe.exports=R8t(B8t("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 Fwe=K((kGr,Dwe)=>{"use strict";var h$=St(),q8t=Cs(),O8t=A0(),N8t=l$(),V8t=p9();Dwe.exports=function(t,r,i){O8t(t,r,{name:"annotations",handleItemDefaults:U8t,fullLayout:i.fullLayout})};function U8t(e,t,r,i){function n(s,l){return h$.coerce(e,t,V8t,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],q8t.coercePosition(t,u,n,s,s,.5)}var o=n("visible");o&&(N8t(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 Iwe=K((CGr,zwe)=>{"use strict";var Lwe=St(),Pwe=Cs();zwe.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 H8t(e,t){var r=d$(e.projection,d$(e.view,d$(e.model,[t[0],t[1],t[2],1])));return r}Rwe.exports=H8t});var qwe=K((FGr,Bwe)=>{"use strict";var j8t=d9().drawRaw,W8t=p$(),$8t=["x","y","z"];Bwe.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=W8t(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*i[0],r.yaxis.r2l(o.y)*i[1],r.zaxis.r2l(o.z)*i[2]]),j8t(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var Vwe=K((LGr,Nwe)=>{"use strict";var Y8t=Ho(),Owe=St();Nwe.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:p9()}}},layoutAttributes:p9(),handleDefaults:Fwe(),includeBasePlot:X8t,convert:Iwe(),draw:qwe()};function X8t(e,t){var r=Y8t.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,n=Object.keys(e),a=0;a{"use strict";var PGr=(jc(),or(Hc)),Uwe=lf(),Gwe=Qf().line,Z8t=gh().dash,a1=Os().extendFlat,K8t=cu().templatedArray,zGr=(pM(),or(dM)),cA=Tu(),Hwe=Qg(),{shapeTexttemplateAttrs:J8t,templatefallbackAttrs:Q8t}=gu(),ezt=xF();jwe.exports=K8t("shape",{visible:a1({},cA.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:a1({},cA.legend,{editType:"calc+arraydraw"}),legendgroup:a1({},cA.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:a1({},cA.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:Uwe({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:a1({},cA.legendrank,{editType:"calc+arraydraw"}),legendwidth:a1({},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:a1({},Hwe.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:a1({},Hwe.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:a1({},Gwe.color,{editType:"arraydraw"}),width:a1({},Gwe.width,{editType:"calc+arraydraw"}),dash:a1({},Z8t,{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:J8t({},{keys:Object.keys(ezt)}),texttemplatefallback:Q8t({editType:"arraydraw"}),font:Uwe({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 $we=K((RGr,Wwe)=>{"use strict";var hA=St(),lp=Cs(),tzt=A0(),rzt=v$(),RM=Kg();Wwe.exports=function(t,r){tzt(t,r,{name:"shapes",handleItemDefaults:nzt})};function izt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function nzt(e,t,r){function i(_,b){return hA.coerce(e,t,rzt,_,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",izt(v,w)),i("label.padding"),hA.coerceFont(i,"label.font",r.font)}}});var Zwe=K((BGr,Xwe)=>{"use strict";var azt=wo(),Ywe=St();function ozt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}Xwe.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"),Ywe.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",azt.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",ozt(o,u)),i("newshape.label.padding"),Ywe.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var iAe=K((qGr,rAe)=>{"use strict";var m$=St(),Qp=Cs(),hm=(W6(),or(j6)),y$=Kg();rAe.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,Jwe(a))})}else a.xref!=="paper"&&l!=="domain"&&(o=Qp.getFromId(t,a.xref),s=eAe(o,a,hm.paramIsX),s&&(a._extremes[o._id]=Qp.findExtremes(o,s,Jwe(a))));if(u==="array"){let f=Kwe(t,a,"y");Object.entries(f).forEach(([c,h])=>{o=Qp.getFromId(t,c),a._extremes[o._id]=Qp.findExtremes(o,h,Qwe(a))})}else a.yref!=="paper"&&u!=="domain"&&(o=Qp.getFromId(t,a.yref),s=eAe(o,a,hm.paramIsY),s&&(a._extremes[o._id]=Qp.findExtremes(o,s,Qwe(a))))}};function Kwe(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 Jwe(e){return tAe(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function Qwe(e){return tAe(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function tAe(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 eAe(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 oAe=K((OGr,aAe)=>{"use strict";var nAe=rP();aAe.exports={moduleType:"component",name:"shapes",layoutAttributes:v$(),supplyLayoutDefaults:$we(),supplyDrawNewShapeDefaults:Zwe(),includeBasePlot:mM()("shapes"),calcAutorange:iAe(),draw:nAe.draw,drawOne:nAe.drawOne}});var g$=K((VGr,lAe)=>{"use strict";var sAe=(jc(),or(Hc)),szt=cu().templatedArray,NGr=(pM(),or(dM));lAe.exports=szt("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",sAe.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",sAe.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var fAe=K((UGr,uAe)=>{"use strict";var lzt=St(),x$=Cs(),uzt=A0(),fzt=g$(),czt="images";uAe.exports=function(t,r){var i={name:czt,handleItemDefaults:hzt};uzt(t,r,i)};function hzt(e,t,r){function i(h,d){return lzt.coerce(e,t,fzt,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 pAe=K((GGr,dAe)=>{"use strict";var cAe=No(),dzt=Is(),dA=Cs(),hAe=Vf(),pzt=(Rp(),or(Ip));dAe.exports=function(t){var r=t._fullLayout,i=[],n={},a=[],o,s;for(s=0;s{"use strict";var vAe=Hs(),vzt=ND();mAe.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";gAe.exports={moduleType:"component",name:"images",layoutAttributes:g$(),supplyLayoutDefaults:fAe(),includeBasePlot:mM()("images"),draw:pAe(),convertCoords:yAe()}});var v9={};Fl(v9,{activeColor:()=>Nzt,arrowOffsetX:()=>Bzt,arrowPadX:()=>Lzt,arrowSymbol:()=>Uzt,autoMarginIdRoot:()=>Ezt,blankHeaderOpts:()=>kzt,buttonClassName:()=>Azt,containerClassName:()=>yzt,dropdownButtonClassName:()=>wzt,dropdownButtonGroupClassName:()=>_zt,gapButton:()=>Ozt,gapButtonHeader:()=>qzt,headerArrowClassName:()=>bzt,headerClassName:()=>xzt,headerGroupClassName:()=>gzt,hoverColor:()=>Vzt,itemRectClassName:()=>Tzt,itemTextClassName:()=>Mzt,menuIndexAttrName:()=>Szt,minHeight:()=>Dzt,minWidth:()=>Czt,name:()=>mzt,rx:()=>Pzt,ry:()=>zzt,textOffsetX:()=>Izt,textOffsetY:()=>Rzt,textPadX:()=>Fzt});var mzt,yzt,gzt,xzt,bzt,_zt,wzt,Azt,Tzt,Mzt,Szt,Ezt,kzt,Czt,Dzt,Fzt,Lzt,Pzt,zzt,Izt,Rzt,Bzt,qzt,Ozt,Nzt,Vzt,Uzt,m9=ps(()=>{"use strict";mzt="updatemenus",yzt="updatemenu-container",gzt="updatemenu-header-group",xzt="updatemenu-header",bzt="updatemenu-header-arrow",_zt="updatemenu-dropdown-button-group",wzt="updatemenu-dropdown-button",Azt="updatemenu-button",Tzt="updatemenu-item-rect",Mzt="updatemenu-item-text",Szt="updatemenu-active-index",Ezt="updatemenu-",kzt={label:" "},Czt=30,Dzt=30,Fzt=24,Lzt=16,Pzt=2,zzt=2,Izt=12,Rzt=3,Bzt=4,qzt=5,Ozt=2,Nzt="#F4FAFF",Vzt="#F4FAFF",Uzt={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var b$=K((WGr,_Ae)=>{"use strict";var Gzt=lf(),Hzt=Gc(),jzt=Os().extendFlat,Wzt=Ef().overrideAll,$zt=bF(),bAe=cu().templatedArray,Yzt=bAe("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}});_Ae.exports=Wzt(bAe("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:Yzt,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:jzt($zt({editType:"arraydraw"}),{}),font:Gzt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Hzt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var MAe=K(($Gr,TAe)=>{"use strict";var y9=St(),wAe=A0(),AAe=b$(),Xzt=(m9(),or(v9)),Zzt=Xzt.name,Kzt=AAe.buttons;TAe.exports=function(t,r){var i={name:Zzt,handleItemDefaults:Jzt};wAe(t,r,i)};function Jzt(e,t,r){function i(o,s){return y9.coerce(e,t,AAe,o,s)}var n=wAe(e,t,{name:"buttons",handleItemDefaults:Qzt}),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 Qzt(e,t){function r(n,a){return y9.coerce(e,t,Kzt,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 kAe=K((YGr,EAe)=>{"use strict";EAe.exports=ec;var o1=No(),SAe=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(SAe.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(SAe.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=o1.behavior.drag().on("dragstart",function(){o1.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=o1.behavior.drag().on("dragstart",function(){o1.event.sourceEvent.preventDefault(),o1.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-=o1.event.dx),this.vbar&&(r-=o1.event.dy),this.setTranslate(t,r)};ec.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=o1.event.deltaY),this.vbar&&(r+=o1.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(o1.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(o1.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 qAe=K((XGr,BAe)=>{"use strict";var vA=No(),BM=yf(),qM=wo(),mA=Is(),up=St(),x9=Du(),eIt=cu().arrayEditor,DAe=($c(),or(Wc)).LINE_SPACING,sl=(m9(),or(v9)),tIt=kAe();BAe.exports=function(t){var r=t._fullLayout,i=up.filterVisible(r[sl.name]);function n(h){BM.autoMargin(t,IAe(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,rIt);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 uIt=(m9(),or(v9));OAe.exports={moduleType:"component",name:uIt.name,layoutAttributes:b$(),supplyLayoutDefaults:MAe(),draw:qAe()}});var NM={};Fl(NM,{arrowOffsetX:()=>CIt,autoMarginIdRoot:()=>MIt,containerClassName:()=>cIt,currentValueClass:()=>wIt,currentValueInset:()=>rRt,currentValuePadding:()=>tRt,gripBgActiveColor:()=>jIt,gripBgColor:()=>HIt,gripBorder:()=>VIt,gripBorderColor:()=>GIt,gripBorderWidth:()=>UIt,gripHeight:()=>NIt,gripRadius:()=>qIt,gripRectClass:()=>mIt,gripWidth:()=>OIt,groupClassName:()=>hIt,inputAreaClass:()=>dIt,inputProxyClass:()=>gIt,labelClass:()=>_It,labelGroupClass:()=>bIt,labelOffset:()=>$It,labelPadding:()=>WIt,labelsClass:()=>xIt,menuIndexAttrName:()=>TIt,minHeight:()=>EIt,minWidth:()=>SIt,minorTickColor:()=>QIt,minorTickLength:()=>eRt,minorTickOffset:()=>JIt,name:()=>fIt,railBgColor:()=>IIt,railBorder:()=>LIt,railBorderColor:()=>zIt,railBorderWidth:()=>PIt,railHeight:()=>AIt,railInset:()=>RIt,railRadius:()=>DIt,railRectClass:()=>pIt,railTouchRectClass:()=>vIt,railWidth:()=>FIt,stepInset:()=>BIt,textPadX:()=>kIt,tickColor:()=>XIt,tickLength:()=>KIt,tickOffset:()=>ZIt,tickRectClass:()=>yIt,tickWidth:()=>YIt});var 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,QIt,eRt,tRt,rRt,VM=ps(()=>{"use strict";fIt="sliders",cIt="slider-container",hIt="slider-group",dIt="slider-input-area",pIt="slider-rail-rect",vIt="slider-rail-touch-rect",mIt="slider-grip-rect",yIt="slider-tick-rect",gIt="slider-input-proxy",xIt="slider-labels",bIt="slider-label-group",_It="slider-label",wIt="slider-current-value",AIt=5,TIt="slider-active-index",MIt="slider-",SIt=30,EIt=30,kIt=40,CIt=4,DIt=2,FIt=5,LIt=4,PIt=1,zIt="#bec8d9",IIt="#f8fafc",RIt=8,BIt=10,qIt=10,OIt=20,NIt=20,VIt=20,UIt=1,GIt="#bec8d9",HIt="#f6f8fa",jIt="#dbdde0",WIt=8,$It=0,YIt=1,XIt="#333",ZIt=25,KIt=7,JIt=25,QIt="#333",eRt=4,tRt=8,rRt=0});var T$=K((KGr,GAe)=>{"use strict";var VAe=lf(),iRt=bF(),nRt=Os().extendDeepAll,aRt=Ef().overrideAll,oRt=d6(),UAe=cu().templatedArray,Gb=(VM(),or(NM)),sRt=UAe("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}});GAe.exports=aRt(UAe("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:sRt,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:nRt(iRt({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:oRt.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:VAe({})},font:VAe({}),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 $Ae=K((JGr,WAe)=>{"use strict";var yA=St(),HAe=A0(),jAe=T$(),lRt=(VM(),or(NM)),uRt=lRt.name,fRt=jAe.steps;WAe.exports=function(t,r){HAe(t,r,{name:uRt,handleItemDefaults:cRt})};function cRt(e,t,r){function i(c,h){return yA.coerce(e,t,jAe,c,h)}for(var n=HAe(e,t,{name:"steps",handleItemDefaults:hRt}),a=0,o=0;o{"use strict";var s1=No(),b9=yf(),s2=wo(),l1=Is(),fp=St(),dRt=fp.strTranslate,UM=Du(),pRt=cu().arrayEditor,ql=(VM(),or(NM)),E$=($c(),or(Wc)),ZAe=E$.LINE_SPACING,M$=E$.FROM_TL,S$=E$.FROM_BR;r4e.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,n=vRt(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,KAe(f))}if(a.exit().each(function(){s1.select(this).selectAll("g."+ql.groupClassName).each(o)}).remove(),n.length!==0){var s=a.selectAll("g."+ql.groupClassName).data(n,mRt);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",dRt(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 XAe(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 ARt(e,t,r){var i=r._dims,n=fp.ensureSingle(e,"rect",ql.railTouchRectClass,function(a){a.call(e4e,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),l1.setTranslate(n,0,i.currentValueTotalHeight)}function TRt(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"),l1.setTranslate(n,ql.railInset,(r.inputAreaWidth-ql.railWidth)*.5+r.currentValueTotalHeight)}});var a4e=K((eHr,n4e)=>{"use strict";var MRt=(VM(),or(NM));n4e.exports={moduleType:"component",name:MRt.name,layoutAttributes:T$(),supplyLayoutDefaults:$Ae(),draw:i4e()}});var w9=K((tHr,s4e)=>{"use strict";var o4e=Gc();s4e.exports={bgcolor:{valType:"color",dflt:o4e.background,editType:"plot"},bordercolor:{valType:"color",dflt:o4e.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((rHr,l4e)=>{"use strict";l4e.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:()=>kRt,containerClassName:()=>ERt,extraPad:()=>KRt,grabAreaCursor:()=>WRt,grabAreaFill:()=>jRt,grabAreaMaxClassName:()=>BRt,grabAreaMinClassName:()=>zRt,grabAreaWidth:()=>$Rt,grabberMaxClassName:()=>RRt,grabberMinClassName:()=>PRt,handleMaxClassName:()=>qRt,handleMinClassName:()=>IRt,handleRadius:()=>XRt,handleStrokeWidth:()=>ZRt,handleWidth:()=>YRt,maskColor:()=>VRt,maskMaxClassName:()=>FRt,maskMaxOppAxisClassName:()=>NRt,maskMinClassName:()=>DRt,maskMinOppAxisClassName:()=>ORt,maskOppAxisColor:()=>URt,name:()=>SRt,rangePlotClassName:()=>CRt,slideBoxClassName:()=>LRt,slideBoxCursor:()=>HRt,slideBoxFill:()=>GRt});var SRt,ERt,kRt,CRt,DRt,FRt,LRt,PRt,zRt,IRt,RRt,BRt,qRt,ORt,NRt,VRt,URt,GRt,HRt,jRt,WRt,$Rt,YRt,XRt,ZRt,KRt,T9=ps(()=>{"use strict";SRt="rangeslider",ERt="rangeslider-container",kRt="rangeslider-bg",CRt="rangeslider-rangeplot",DRt="rangeslider-mask-min",FRt="rangeslider-mask-max",LRt="rangeslider-slidebox",PRt="rangeslider-grabber-min",zRt="rangeslider-grabarea-min",IRt="rangeslider-handle-min",RRt="rangeslider-grabber-max",BRt="rangeslider-grabarea-max",qRt="rangeslider-handle-max",ORt="rangeslider-mask-min-opp-axis",NRt="rangeslider-mask-max-opp-axis",VRt="rgba(0,0,0,0.4)",URt="rgba(0,0,0,0.2)",GRt="transparent",HRt="ew-resize",jRt="transparent",WRt="col-resize",$Rt=10,YRt=4,XRt=1,ZRt=1,KRt=15});var c4e=K(S9=>{"use strict";var JRt=Vf(),QRt=Du(),u4e=(T9(),or(A9)),eBt=($c(),or(Wc)).LINE_SPACING,M9=u4e.name;function f4e(e){var t=e&&e[M9];return t&&t.visible}S9.isVisible=f4e;S9.makeData=function(e){for(var t=JRt.list({_fullLayout:e},"x",!0),r=e.margin,i=[],n=0;n{"use strict";var E9=St(),h4e=cu(),d4e=Vf(),tBt=w9(),rBt=C$();p4e.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=h4e.newContainer(a,"rangeslider");function l(M,x){return E9.coerce(o,s,tBt,M,x)}var u,f;function c(M,x){return E9.coerce(u,f,rBt,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")))===d4e.name2id(i)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),v=E9.simpleMap(p,d4e.id2name),y=0;y{"use strict";var iBt=Vf().list,nBt=$v().getAutoRange,aBt=(T9(),or(A9));m4e.exports=function(t){for(var r=iBt(t,"x",!0),i=0;i{"use strict";var k9=No(),oBt=Ho(),sBt=yf(),xc=St(),C9=xc.strTranslate,x4e=Is(),l2=wo(),lBt=vb(),uBt=gc(),D$=Vf(),fBt=U0(),cBt=Yv(),tu=(T9(),or(A9));b4e.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=I.max)F=E[P+1];else if(D=I.pmax)F=E[P+1];else if(D0?e.touches[0].clientX:0}function hBt(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=g4e(l),c=f-e.node().getBoundingClientRect().left,h=i.d2p(r._rl[0]),d=i.d2p(r._rl[1]),p=fBt.coverSlip();this.addEventListener("touchmove",v),this.addEventListener("touchend",y),p.addEventListener("mousemove",v),p.addEventListener("mouseup",y);function v(m){var w=g4e(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 wBt=St(),ABt=w9(),TBt=C$(),F$=c4e();w4e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:wBt.extendFlat({},ABt,{yaxis:TBt})}}},layoutAttributes:w9(),handleDefaults:v4e(),calcAutorange:y4e(),draw:_4e(),isVisible:F$.isVisible,makeData:F$.makeData,autoMarginOpts:F$.autoMarginOpts}});var D9=K((lHr,M4e)=>{"use strict";var MBt=lf(),T4e=Gc(),SBt=cu().templatedArray,EBt=SBt("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"});M4e.exports={visible:{valType:"boolean",editType:"plot"},buttons:EBt,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:MBt({editType:"plot"}),bgcolor:{valType:"color",dflt:T4e.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:T4e.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var L$={};Fl(L$,{darkAmount:()=>PBt,lightAmount:()=>LBt,minButtonWidth:()=>CBt,rx:()=>DBt,ry:()=>FBt,yPad:()=>kBt});var kBt,CBt,DBt,FBt,LBt,PBt,P$=ps(()=>{"use strict";kBt=.02,CBt=30,DBt=3,FBt=3,LBt=25,PBt=10});var k4e=K((uHr,E4e)=>{"use strict";var F9=St(),zBt=wo(),IBt=cu(),RBt=A0(),S4e=D9(),z$=(P$(),or(L$));E4e.exports=function(t,r,i,n,a){var o=t.rangeselector||{},s=IBt.newContainer(r,"rangeselector");function l(d,p){return F9.coerce(o,s,S4e,d,p)}var u=RBt(o,s,{name:"buttons",handleItemDefaults:BBt,calendar:a}),f=l("visible",u.length>0);if(f){var c=qBt(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",zBt.contrast(h,z$.lightAmount,z$.darkAmount)),l("bordercolor"),l("borderwidth")}};function BBt(e,t,r,i){var n=i.calendar;function a(l,u){return F9.coerce(e,t,S4e.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 qBt(e,t,r){for(var i=r.filter(function(s){return t[s].anchor===e._id}),n=0,a=0;a{"use strict";var OBt=lV(),NBt=St().titleCase;C4e.exports=function(t,r){var i=t._name,n={};if(r.step==="all")n[i+".autorange"]=!0;else{var a=VBt(t,r);n[i+".range[0]"]=a[0],n[i+".range[1]"]=a[1]}return n};function VBt(e,t){var r=e.range,i=new Date(e.r2l(r[1])),n=t.step,a=OBt["utc"+NBt(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 q4e=K((cHr,B4e)=>{"use strict";var P9=No(),UBt=Ho(),GBt=yf(),F4e=wo(),R4e=Is(),xy=St(),L4e=xy.strTranslate,L9=Du(),HBt=Vf(),B$=($c(),or(Wc)),P4e=B$.LINE_SPACING,z4e=B$.FROM_TL,I4e=B$.FROM_BR,R$=(P$(),or(L$)),jBt=D4e();B4e.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(WBt(t),$Bt);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=jBt(o,u);u._isActive=YBt(o,u,c),f.call(I$,s,u),f.call(ZBt,s,u,t),f.on("click",function(){t._dragged||UBt.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)})}),JBt(t,l,s,o._name,a)})};function WBt(e){for(var t=HBt.list(e,"x",!0),r=[],i=0;i{"use strict";O4e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:D9()}}},layoutAttributes:D9(),handleDefaults:k4e(),draw:q4e()}});var kf=K(q$=>{"use strict";var V4e=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:V4e({},r,{}),y:V4e({},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 QBt=St(),e7t=(hw(),or(c6)).counter,t7t=kf().attributes,U4e=(jc(),or(Hc)).idRegex,r7t=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:[e7t("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[U4e.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[U4e.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:t7t({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 i7t(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=r7t.newContainer(t,"grid");function h(x,T){return QBt.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:G4e("x",h,w,b,p),y:G4e("y",h,_,M,d,m)}}function G4e(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";W4e.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 X4e=K((mHr,Y4e)=>{"use strict";var $4e=Hs(),a7t=Ho(),o7t=St(),s7t=cu(),l7t=V$();Y4e.exports=function(e,t,r,i){var n="error_"+i.axis,a=s7t.newContainer(t,n),o=e[n]||{};function s(p,v){return o7t.coerce(o,a,l7t,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||$4e(o.thickness)||$4e(o.width)))}(!i.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",a7t.traceIs(t,"gl3d")?0:4))}}});var U$=K((yHr,K4e)=>{"use strict";K4e.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=Z4e(r,t.value),s=Z4e(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 Z4e(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 e5e=K((gHr,Q4e)=>{"use strict";var G$=Hs(),u7t=Ho(),H$=Cs(),f7t=St(),c7t=U$();Q4e.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var t5e=No(),u2=Hs(),h7t=Is(),d7t=ff();r5e.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=d7t.hasMarkers(c)&&c.marker.maxdisplayed>0;!d.visible&&!h.visible&&(f=[]);var y=t5e.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),h7t.setClipUrl(y,i.layerClipId,t),y.each(function(w){var _=t5e.select(this),b=p7t(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 p7t(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 o5e=K((bHr,a5e)=>{"use strict";var v7t=No(),n5e=wo();a5e.exports=function(t){t.each(function(r){var i=r[0].trace,n=i.error_y||{},a=i.error_x||{},o=v7t.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(n5e.stroke,n.color),a.copy_ystyle&&(a=n),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(n5e.stroke,a.color)})}});var u5e=K((_Hr,l5e)=>{"use strict";var GM=St(),s5e=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;l5e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Hb,bar:Hb,histogram:Hb,scatter3d:s5e(jM,"calc","nested"),scattergl:s5e(Hb,"calc","nested")}},supplyDefaults:X4e(),calc:e5e(),makeComputeError:U$(),plot:i5e(),style:o5e(),hoverInfo:m7t};function m7t(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 f5e={};Fl(f5e,{cn:()=>y7t});var y7t,c5e=ps(()=>{"use strict";y7t={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 x5e=K((wHr,g5e)=>{"use strict";var f2=No(),R9=yf(),h5e=Ho(),by=Cs(),I9=U0(),ev=St(),f1=ev.strTranslate,y5e=Os().extendFlat,j$=Yv(),u1=Is(),gA=wo(),g7t=vb(),x7t=Du(),b7t=Kh().flipScale,_7t=PM(),w7t=a9(),A7t=Ph(),$$=($c(),or(Wc)),d5e=$$.LINE_SPACING,p5e=$$.FROM_TL,v5e=$$.FROM_BR,Hf=(c5e(),or(f5e)).cn;function T7t(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Hf.colorbar).data(M7t(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=S7t(n,i,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&E7t(n,i,e)}),r.exit().each(function(i){R9.autoMargin(e,i._id)}).remove(),r.order()}function M7t(e){var t=e._fullLayout,r=e.calcdata,i=[],n,a,o,s;function l(_){return y5e(_,{_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?b7t(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]],m5e=(e,t)=>[e[0],Math.max(e[1]-t,e[0])];function S7t(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=k7t(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=C7t(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=m5e(W$([q,q+z],re),re),N.setScale(),e.attr("transform",f1(Math.round(b.l),Math.round(b.t)));var de=e.select("."+Hf.cbtitleunshift).attr("transform",f1(-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(),g7t.draw(r,V,y5e(_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-d5e*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)*d5e);var se;if(xe?(se=u1.bBox(xe),Ee=se.width,te=se.height,te>Ae&&(_e[1]-=(te-Ae)/2)):ue.node()&&!ue.classed(Hf.jsPlaceholder)&&(se=u1.bBox(ue.node()),Ee=se.width,te=se.height),i){if(te){if(te+=5,A==="top")N.domain=m5e(N.domain,te/b.h),_e[1]*=-1;else{N.domain=W$(N.domain,te/b.h);var pe=x7t.lineCount(ue);_e[1]+=(1-pe)*Ae}V.attr("transform",f1(_e[0],_e[1])),N.setScale()}}else Ee&&(A==="right"&&(N.domain=W$(N.domain,(Ee+ze/2)/b.w)),V.attr("transform",f1(_e[0],_e[1])),N.setScale())}e.selectAll("."+Hf.cbfills+",."+Hf.cblines).attr("transform",i?f1(0,Math.round(b.h*(1-N.domain[1]))):f1(Math.round(b.w*N.domain[0]),0)),ke.attr("transform",i?f1(0,Math.round(-b.t)):f1(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)u1.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(u1.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=u1.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=u1.bBox(fe),_e=V.width,pe=V.height):(V=u1.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",f1(_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",f1(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=u1.bBox(De),Pe=u1.getTranslate(e),Se=2;Ze.each(function(tr,Ye){var nt=0,st=Le-1;if(Ye===nt||Ye===st){var dt=u1.bBox(this),rt=u1.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=p5e[c],ut=v5e[c],_t=p5e[h],At=v5e[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 E7t(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+f1(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?h5e.call("_guiRestyle",r,u,t._traceIndex):h5e.call("_guiRelayout",r,u)}}})}function k7t(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";b5e.exports={moduleType:"component",name:"colorbar",attributes:YF(),supplyDefaults:JG(),draw:x5e().draw,hasColorbar:jG()}});var A5e=K((THr,w5e)=>{"use strict";w5e.exports={moduleType:"component",name:"legend",layoutAttributes:$H(),supplyLayoutDefaults:XH(),draw:uj(),style:aj()}});var M5e=K((MHr,T5e)=>{"use strict";T5e.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 E5e=K((SHr,S5e)=>{"use strict";S5e.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((EHr,F5e)=>{"use strict";var D7t=Ho(),D5e=St(),Y$=D5e.extendFlat,k5e=D5e.extendDeep;function C5e(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 F7t(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}F5e.exports=function(t,r){var i,n=t.data,a=t.layout,o=k5e([],n),s=k5e({},a,C5e(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 L7t=nb().EventEmitter,P7t=Ho(),z7t=St(),L5e=my(),I7t=X$(),R7t=OP(),B7t=NP();function q7t(e,t){var r=new L7t,i=I7t(e,{format:"png"}),n=i.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function a(){var s=L5e.getDelay(n._fullLayout);setTimeout(function(){var l=R7t(n),u=document.createElement("canvas");u.id=z7t.randstr(),r=B7t({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=L5e.getRedrawFunc(n);return P7t.call("_doPlot",n,i.data,i.layout,i.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}P5e.exports=q7t});var B5e=K((CHr,R5e)=>{"use strict";var I5e=my(),O7t={getDelay:I5e.getDelay,getRedrawFunc:I5e.getRedrawFunc,clone:X$(),toSVG:OP(),svgToImg:NP(),toImage:z5e(),downloadImage:kW()};R5e.exports=O7t});var O5e=K(_y=>{"use strict";_y.version=NT().version;pue();Jde();var N7t=Ho(),WM=_y.register=N7t.register,K$=u_e(),q5e=Object.keys(K$);for(B9=0;B9{"use strict";N5e.exports=O5e()});var dm=K((LHr,W5e)=>{"use strict";var fc=Qf(),U5e=zf().axisHoverFormat,{hovertemplateAttrs:V7t,texttemplateAttrs:U7t,templatefallbackAttrs:G5e}=gu(),j5e=Wu(),G7t=lf(),H5e=(i2(),or(r2)),H7t=gh().pattern,jb=Os().extendFlat,J$=G7t({editType:"calc",arrayOk:!0,colorEditType:"style"}),j7t=fc.marker,W7t=j7t.line,$7t=jb({},W7t.width,{dflt:0}),Y7t=jb({width:$7t,editType:"calc"},j5e("marker.line")),X7t=jb({line:Y7t,editType:"calc"},j5e("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:H7t,cornerradius:{valType:"any",editType:"calc"}});W5e.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:U5e("x"),yhoverformat:U5e("y"),text:fc.text,texttemplate:U7t({editType:"plot"},{keys:H5e.eventDataKeys}),texttemplatefallback:G5e({editType:"plot"}),hovertext:fc.hovertext,hovertemplate:V7t({},{keys:H5e.eventDataKeys}),hovertemplatefallback:G5e(),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:X7t,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((PHr,$5e)=>{"use strict";$5e.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((zHr,Z5e)=>{"use strict";var Z7t=wo(),Y5e=Kh().hasColorscale,X5e=xh(),K7t=St().coercePattern;Z5e.exports=function(t,r,i,n,a){var o=i("marker.color",n),s=Y5e(t,"marker");s&&X5e(t,r,a,i,{prefix:"marker.",cLetter:"c"}),i("marker.line.color",Z7t.defaultLine),Y5e(t,"marker.line")&&X5e(t,r,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width"),i("marker.opacity"),K7t(i,"marker.pattern",o,s),i("selected.marker.color"),i("unselected.marker.color")}});var cp=K((IHr,rTe)=>{"use strict";var K5e=Hs(),bA=St(),J5e=wo(),J7t=Ho(),Q7t=Pb(),eqt=Qv(),tqt=N9(),rqt=zb(),Q5e=dm(),V9=bA.coerceFont;function iqt(e,t,r,i){function n(u,f){return bA.coerce(e,t,Q5e,u,f)}var a=Q7t(e,t,i,n);if(!a){t.visible=!1;return}eqt(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");tTe(e,t,i,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),tqt(e,t,n,r,i);var s=(t.marker.line||{}).color,l=J7t.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||J5e.defaultLine,{axis:"y"}),l(e,t,s||J5e.defaultLine,{axis:"x",inherit:"y"}),bA.coerceSelectionMarkerOpacity(t,n)}function nqt(e,t){var r,i;function n(s,l){return bA.coerce(i._input,i,Q5e,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&K5e(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function tTe(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")}rTe.exports={supplyDefaults:iqt,crossTraceDefaults:nqt,handleText:tTe,validateCornerradius:eTe}});var Q$=K((RHr,iTe)=>{"use strict";var aqt=Ho(),oqt=Cs(),sqt=St(),lqt=O9(),uqt=cp().validateCornerradius;iTe.exports=function(e,t,r){function i(v,y){return sqt.coerce(e,t,lqt,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=oqt.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=uqt(p)}});var $M=K((BHr,nTe)=>{"use strict";var _A=St();nTe.exports=function(t,r){for(var i=0;i{"use strict";var aTe=Cs(),oTe=r1(),sTe=Kh().hasColorscale,lTe=T0(),fqt=$M(),cqt=op();uTe.exports=function(t,r){var i=aTe.getFromId(t,r.xaxis||"x"),n=aTe.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=oTe(r,n,"y",s),u=!!r.yperiodalignment,f="y"):(a=n.makeCalcdata(r,"y",c),s=i.makeCalcdata(r,"x"),l=oTe(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 hqt=No(),dqt=St();function pqt(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=hqt.select(this).select("text");dqt.setTransormAndDisplay(u,l)}})}}function vqt(e,t,r){if(r.uniformtext.mode){var i=cTe(e),n=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var yqt=wo(),gqt=Hs(),dTe=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(gqt(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 yqt.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 dTe(e)?t{"use strict";var YM=No(),xqt=wo(),XM=Is(),pTe=St(),vTe=Ho(),mTe=E0().resizeText,eY=dm(),bqt=eY.textfont,_qt=eY.insidetextfont,wqt=eY.outsidetextfont,t0=U9();function Aqt(e){var t=YM.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");mTe(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;yTe(a,o,e)}),vTe.getComponentMethod("errorbars","style")(t)}function yTe(e,t,r){XM.pointStyle(e.selectAll("path"),t,r),gTe(e,t,r)}function gTe(e,t,r){e.selectAll("text").each(function(i){var n=YM.select(this),a=pTe.ensureUniformFontSize(r,xTe(n,i,t,r));XM.font(n,a)})}function Tqt(e,t,r){var i=t[0].trace;i.selectedpoints?Mqt(r,i,e):(yTe(r,i,e),vTe.getComponentMethod("errorbars","style")(r))}function Mqt(e,t,r){XM.selectedPointStyle(e.selectAll("path"),t),Sqt(e.selectAll("text"),t,r)}function Sqt(e,t,r){e.each(function(i){var n=YM.select(this),a;if(i.selected){a=pTe.ensureUniformFontSize(r,xTe(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 xTe(e,t,r,i){var n=i._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=ATe(t,r);a=_Te(r,t.i,n,o)}else e.classed("bartext-outside")&&(a=wTe(r,t.i,n));return a}function bTe(e,t,r){return tY(bqt,e.textfont,t,r)}function _Te(e,t,r,i){var n=bTe(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:xqt.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(_qt,e.insidetextfont,t,n)}function wTe(e,t,r){var i=bTe(e,t,r);return tY(wqt,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 ATe(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}TTe.exports={style:Aqt,styleTextPoints:gTe,styleOnSelect:Tqt,getInsideTextFont:_Te,getOutsideTextFont:wTe,getBarColor:ATe,resizeText:mTe}});var Yb=K((UHr,LTe)=>{"use strict";var G9=No(),H9=Hs(),Ih=St(),Eqt=Du(),kqt=wo(),c2=Is(),Cqt=Ho(),j9=Cs().tickText,MTe=E0(),Dqt=MTe.recordMinTextSize,Fqt=MTe.clearMinTextSize,rY=tv(),wA=U9(),Lqt=(i2(),or(r2)),STe=dm(),Pqt=STe.text,zqt=STe.textposition,Iqt=ud().appendArrayPointValue,X0=Lqt.TEXTPAD;function Rqt(e){return e.id}function Bqt(e){if(e.ids)return Rqt}function iY(e){return(e>0)-(e<0)}function c1(e,t){return e0}function Oqt(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},Fqt("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=kTe(n),T=Ih.ensureSingle(h,"g","points"),A=Bqt(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=qqt(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-=c1(F,P)*b,P+=c1(F,P)*b):(I-=c1(I,L)*b,L+=c1(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=kqt.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=ETe(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)}Nqt(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)});Cqt.getComponentMethod("errorbars","plot")(e,f,t,n)}function Nqt(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(Eqt.convertToTspans,e);return me}var w=i[0].trace,_=w.orientation==="h",b=jqt(i,_,d,p),M=Gqt(v,i,n,d,p);y=Hqt(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=Uqt(a,o,s,l,W,{isHorizontal:_,constrained:j,angle:U,zeroBarDir:b})):(j=w.constraintext==="both"||w.constraintext==="inside",J=FTe(a,o,s,l,W,{isHorizontal:_,constrained:j,angle:U,anchor:F,hasB:g,r:u,overhead:f})),J.fontSize=H.size,Dqt(w.type==="histogram"?"bar":w.type,J,v),T.transform=J;var $=ETe(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 CTe(e){return e==="auto"?0:e}function DTe(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 FTe(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=CTe(l);l==="auto"&&!(w<=b&&_<=M)&&(w>b||_>M)&&(!(w>M||_>b)||w<_!=bX0){var S=Vqt(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?c1(e,t):c1(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 Vqt(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 Uqt(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=CTe(l),y=DTe(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?c1(t,e):c1(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 Gqt(e,t,r,i,n){var a=t[0].trace,o=a.texttemplate,s;return o?s=Wqt(e,t,r,i,n):a.textinfo?s=$qt(t,r,i,n):s=wA.getValue(a.text,r),wA.coerceString(Pqt,s)}function Hqt(e,t){var r=wA.getValue(e.textposition,t);return wA.coerceEnumerated(zqt,r)}function jqt(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=-c1(l.range[0],l.range[1]);return a?n?0:-u:u}function Wqt(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={};Iqt(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 $qt(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("
")}LTe.exports={plot:Oqt,toMoveInsideBar:FTe}});var AA=K((GHr,RTe)=>{"use strict";var ZM=Gf(),Yqt=Ho(),PTe=wo(),Xqt=St().fillText,Zqt=U9().getLineWidth,nY=Cs().hoverLabelText,Kqt=(Il(),or(Bl)).BADNUM;function Jqt(e,t,r,i,n){var a=zTe(e,t,r,i,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=ITe(s,l),Yqt.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function zTe(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!==Kqt){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),Xqt(W,o,e),e.hovertemplate=o.hovertemplate,e}}function ITe(e,t){var r=t.mcc||e.marker.color,i=t.mlcc||e.marker.line.color,n=Zqt(e,t);if(PTe.opacity(r))return r;if(PTe.opacity(i)&&n)return i}RTe.exports={hoverPoints:Jqt,hoverOnBars:zTe,getTraceColor:ITe}});var qTe=K((HHr,BTe)=>{"use strict";BTe.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((jHr,OTe)=>{"use strict";OTe.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";NTe.exports={attributes:dm(),layoutAttributes:O9(),supplyDefaults:cp().supplyDefaults,crossTraceDefaults:cp().crossTraceDefaults,supplyLayoutDefaults:Q$(),calc:fTe(),crossTraceCalc:Ib().crossTraceCalc,colorbar:e0(),arraysToCalcdata:$M(),plot:Yb().plot,style:tv().style,styleOnSelect:tv().styleOnSelect,hoverPoints:AA().hoverPoints,eventData:qTe(),selectPoints:TA(),moduleType:"trace",name:"bar",basePlotModule:gc(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var GTe=K(($Hr,UTe)=>{"use strict";UTe.exports=VTe()});var KM=K((YHr,$Te)=>{"use strict";var eOt=sm(),rv=Qf(),HTe=dm(),tOt=Gc(),jTe=zf().axisHoverFormat,{hovertemplateAttrs:rOt,templatefallbackAttrs:iOt}=gu(),wy=Os().extendFlat,MA=rv.marker,WTe=MA.line;$Te.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:jTe("x"),yhoverformat:jTe("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({},WTe.color,{arrayOk:!1,dflt:tOt.defaultLine,editType:"style"}),width:wy({},WTe.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:eOt(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:HTe.offsetgroup,alignmentgroup:HTe.alignmentgroup,selected:{marker:rv.selected.marker,editType:"style"},unselected:{marker:rv.unselected.marker,editType:"style"},text:wy({},rv.text,{}),hovertext:wy({},rv.hovertext,{}),hovertemplate:rOt({}),hovertemplatefallback:iOt(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:rv.zorder}});var JM=K((XHr,YTe)=>{"use strict";YTe.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((ZHr,JTe)=>{"use strict";var iv=St(),nOt=Ho(),aOt=wo(),oOt=Qv(),sOt=zb(),XTe=Rw(),QM=KM();function lOt(e,t,r,i){function n(p,v){return iv.coerce(e,t,QM,p,v)}if(ZTe(e,t,n,i),t.visible!==!1){oOt(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",aOt.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"),KTe(e,t,n,{prefix:"box"}),n("zorder")}}function ZTe(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=nOt.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],i)}function KTe(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 uOt(e,t){var r,i;function n(l){return iv.coerce(i._input,i,QM,l)}for(var a=0;a{"use strict";var fOt=Ho(),cOt=St(),hOt=JM();function QTe(e,t,r,i,n){for(var a=n+"Layout",o=!1,s=0;s{"use strict";var oY=Hs(),$9=Cs(),pOt=r1(),Pc=St(),hp=(Il(),or(Bl)).BADNUM,Ay=Pc._;u6e.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=vOt(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:n6e(M,T,A);var L=k("upperfence");M.uf=L!==hp&&L>=M.q3?L:a6e(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=o6e(M),M.uo=s6e(M);var O=k("notchspan");O=O!==hp&&O>0?O:l6e(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=mOt(_,b),Q=_.length,N=yOt(Q);for(l=0;l=0&&U0){if(M={},M.pos=M[d]=_[l],x=M.pts=N[l].sort(r6e),T=M[c]=x.map(i6e),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=n6e(M,T,A),M.uf=a6e(M,T,A),M.lo=o6e(M),M.uo=s6e(M);var ze=l6e(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 gOt(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 vOt(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=pOt(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 f6e=Cs(),xOt=St(),bOt=Cb().getAxisGroup,c6e=["v","h"];function _Ot(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(),wOt=Is(),p6e=5,AOt=.01;function TOt(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),v6e(l,{pos:h,val:d},c,f,n),m6e(l,{x:a,y:o},c,f),y6e(l,{pos:h,val:d},c,f)})}function v6e(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 m6e(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*AOt,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(wOt.translatePoints,n,a)}function y6e(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":""))})}g6e.exports={plot:TOt,plotBoxAndWhiskers:v6e,plotPoints:m6e,plotBoxMean:y6e}});var Z9=K((tjr,x6e)=>{"use strict";var lY=No(),uY=wo(),fY=Is();function MOt(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 SOt(e,t,r){var i=t[0].trace,n=r.selectAll("path.point");i.selectedpoints?fY.selectedPointStyle(n,i):fY.pointStyle(n,i,e)}x6e.exports={style:MOt,styleOnSelect:SOt}});var hY=K((rjr,A6e)=>{"use strict";var EOt=Cs(),cY=St(),h2=Gf(),b6e=wo(),kOt=cY.fillText;function COt(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(_6e(e,t,r,i))),o.indexOf("points")!==-1&&(l=w6e(e,t,r)),i==="closest"?l?[l]:s:(l&&s.push(l),s)}function _6e(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;b6e.opacity(F)&&s.line.width?e.color=F:b6e.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";T6e.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((njr,S6e)=>{"use strict";S6e.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";E6e.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:M6e(),selectPoints:dY(),moduleType:"trace",name:"box",basePlotModule:gc(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var D6e=K((ojr,C6e)=>{"use strict";C6e.exports=k6e()});var EA=K((sjr,L6e)=>{"use strict";var DOt=Wu(),{extendFlat:zd}=Os(),FOt=Tu(),{axisHoverFormat:pY}=zf(),LOt=lf(),{hovertemplateAttrs:POt,templatefallbackAttrs:F6e,texttemplateAttrs:zOt}=gu(),dp=Qf();L6e.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:POt(),hovertemplatefallback:F6e(),texttemplate:zOt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:F6e({editType:"plot"}),textfont:LOt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:zd({},FOt.showlegend,{dflt:!1}),zorder:dp.zorder},DOt("",{cLetter:"z",autoColorDflt:!1}))});var J9=K((ljr,z6e)=>{"use strict";var IOt=Hs(),K9=St(),ROt=Ho();z6e.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=P6e(a,i),u=P6e(o,i),!BOt(s))return 0;i("transpose"),r._length=null}var h=ROt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],n),!0};function P6e(e,t){var r=t(e),i=r?t(e+"type","array"):"scaled";return i==="scaled"&&(t(e+"0"),t("d"+e)),r}function BOt(e){for(var t=!0,r=!1,i=!1,n,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var I6e=St();R6e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var i=I6e.extendFlat({},r.font,{color:"auto",size:"auto"});I6e.coerceFont(t,"textfont",i)}});var vY=K((fjr,B6e)=>{"use strict";B6e.exports=function(t,r,i){var n=i("zsmooth");n===!1&&(i("xgap"),i("ygap")),i("zhoverformat")}});var N6e=K((cjr,O6e)=>{"use strict";var q6e=St(),qOt=J9(),OOt=tS(),NOt=Qv(),VOt=vY(),UOt=xh(),GOt=EA();O6e.exports=function(t,r,i,n){function a(s,l){return q6e.coerce(t,r,GOt,s,l)}var o=qOt(t,r,a,n);if(!o){r.visible=!1;return}NOt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),OOt(a,n),VOt(t,r,a,n),a("hoverongaps"),a("connectgaps",q6e.isArray1D(r.z)&&r.zsmooth!==!1),UOt(t,r,n,a,{prefix:"",cLetter:"z"}),a("zorder")}});var mY=K((hjr,V6e)=>{"use strict";var kA=Hs();V6e.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";U6e.exports={percent:function(e,t){for(var r=e.length,i=100/t,n=0;n{"use strict";G6e.exports=function(t,r){for(var i=t.length,n=0,a=0;a{"use strict";var CA=(Il(),or(Bl)),Zb=CA.ONEAVGYEAR,H6e=CA.ONEAVGMONTH,e8=CA.ONEDAY,j6e=CA.ONEHOUR,W6e=CA.ONEMIN,$6e=CA.ONESEC,Y6e=Cs().tickIncrement;K6e.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(M$6e?e>e8?e>Zb*1.1?Zb:e>H6e*1.1?H6e:e8:e>j6e?j6e:e>W6e?W6e:$6e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function HOt(e,t,r,i,n,a){if(i&&e>e8){var o=Z6e(t,n,a),s=Z6e(r,n,a),l=e===Zb?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function Z6e(e,t,r){var i=t.c2d(e,Zb,r).split("-");return i[0]===""&&(i.unshift(),i[0]="-"+i[0]),i}});var wY=K((mjr,rMe)=>{"use strict";var bY=Hs(),Z0=St(),J6e=Ho(),nv=Cs(),{hasColorscale:Q6e}=Kh(),eMe=T0(),jOt=$M(),tMe=mY(),WOt=yY(),$Ot=gY(),YOt=xY();function XOt(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=tMe.count,D=WOt[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=tMe[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),Q6e(t,"marker")&&eMe(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),Q6e(t,"marker.line")&&eMe(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),jOt(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 ZOt(e,t,r,i,n){var a=e._fullLayout,o=KOt(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())}}rMe.exports={calc:XOt,calcAllAutoBins:_Y}});var fMe=K((yjr,uMe)=>{"use strict";var iMe=St(),DA=Cs(),nMe=mY(),QOt=yY(),eNt=gY(),tNt=xY(),aMe=wY().calcAllAutoBins;uMe.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=aMe(t,r,i,"x"),y=v[0],m=v[1],w=aMe(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=nMe.count,Z=QOt[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=nMe[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(),cMe=(Il(),or(Bl)).BADNUM,hMe=r1();dMe.exports=function(t,r,i,n,a,o){var s=t._length,l=r.makeCalcdata(t,n),u=i.makeCalcdata(t,a);l=hMe(t,r,n,l).vals,u=hMe(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 rNt=Hs(),iNt=St(),r8=(Il(),or(Bl)).BADNUM;pMe.exports=function(t,r,i,n){var a,o,s,l,u,f;function c(m){if(rNt(m))return+m}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var nNt=St(),vMe=.01,aNt=[[-1,0],[1,0],[0,-1],[0,1]];function oNt(e){return .5-.25*Math.min(1,e*.5)}yMe.exports=function(t,r){var i=1,n;for(mMe(t,r),n=0;nvMe;n++)i=mMe(t,r,oNt(i));return i>vMe&&nNt.log("interp2d didn't converge quickly",i),t};function mMe(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((_jr,gMe)=>{"use strict";var sNt=St().maxRowLength;gMe.exports=function(t){var r=[],i={},n=[],a=t[0],o=[],s=[0,0,0],l=sNt(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((wjr,_Me)=>{"use strict";var xMe=Ho(),bMe=St().isArrayOrTypedArray;_Me.exports=function(t,r,i,n,a,o){var s=[],l=xMe.traceIs(t,"contour"),u=xMe.traceIs(t,"histogram"),f,c,h,d=bMe(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 wMe=Ho(),TY=St(),o8=Cs(),AMe=r1(),lNt=fMe(),uNt=T0(),fNt=t8(),cNt=i8(),hNt=n8(),dNt=a8(),s8=AY(),MY=(Il(),or(Bl)).BADNUM;MMe.exports=function(t,r){var i=o8.getFromId(t,r.xaxis||"x"),n=o8.getFromId(t,r.yaxis||"y"),a=wMe.traceIs(r,"contour"),o=wMe.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=lNt(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(_)?(fNt(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=AMe(r,i,"x",c).vals,h=AMe(r,n,"y",v).vals,r._x=l,r._y=h),u=r.x0,f=r.dx,d=r.y0,p=r.dy,y=cNt(_,r,i,n)}(i.rangebreaks||n.rangebreaks)&&(y=pNt(l,h,y),o||(l=TMe(l),h=TMe(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=dNt(y),hNt(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||uNt(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 TMe(e){for(var t=[],r=e.length,i=0;iSMe,STYLE:()=>vNt});var SMe,vNt,f8=ps(()=>{"use strict";SMe=[["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"]],vNt=SMe.map(e=>e.join(": ")+"; ").join("")});var EY=K((Tjr,kMe)=>{"use strict";var EMe=(f8(),or(u8)),mNt=Is(),SY=St(),FA=null;function yNt(){if(FA!==null)return FA;FA=!1;var e=SY.isSafari()||SY.isMacWKWebView()||SY.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(EMe.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=mNt.tester.append("image").attr("style",EMe.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}kMe.exports=yNt});var c8=K((Mjr,qMe)=>{"use strict";var CMe=No(),gNt=Ho(),xNt=Is(),bNt=Cs(),av=St(),DMe=Du(),_Nt=QP(),FMe=wo(),wNt=gf().extractOpts,ANt=gf().makeColorScaleFuncFromTrace,TNt=(Rp(),or(Ip)),MNt=($c(),or(Wc)),kY=MNt.LINE_SPACING,SNt=EY(),ENt=(f8(),or(u8)).STYLE,RMe="heatmap-label";function BMe(e){return e.selectAll("g."+RMe)}function LMe(e){BMe(e).remove()}qMe.exports=function(e,t,r,i){var n=t.xaxis,a=t.yaxis;av.makeTraceGroups(i,r,"hm").each(function(o){var s=CMe.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=gNt.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(),LMe(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=ANt(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?zMe:PMe,Ae=y?zMe:PMe,se,pe,fe;for(C=0;C_t||_t>a._length))for(k=Se;kGt||Gt>n._length)){var Dt=_Nt({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=bNt.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";OMe.exports={min:"zmin",max:"zmax"}});var h8=K((Ejr,NMe)=>{"use strict";var kNt=No();NMe.exports=function(t){kNt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var p8=K((kjr,UMe)=>{"use strict";var VMe=Gf(),rS=St(),d8=rS.isArrayOrTypedArray,CNt=Cs(),DNt=gf().extractOpts;UMe.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(VMe.inbox(r-c[0],r-c[c.length-1],0)>0||VMe.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";GMe.exports={attributes:EA(),supplyDefaults:N6e(),calc:l8(),plot:c8(),colorbar:LA(),style:h8(),hoverPoints:p8(),moduleType:"trace",name:"heatmap",basePlotModule:gc(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var WMe=K((Djr,jMe)=>{"use strict";jMe.exports=HMe()});var CY=K((Fjr,$Me)=>{"use strict";$Me.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var YMe={};Fl(YMe,{eventDataKeys:()=>FNt});var FNt,XMe=ps(()=>{"use strict";FNt=["binNumber"]});var v8=K((Ljr,QMe)=>{"use strict";var Id=dm(),ZMe=zf().axisHoverFormat,{hovertemplateAttrs:LNt,texttemplateAttrs:PNt,templatefallbackAttrs:KMe}=gu(),DY=lf(),JMe=CY(),zNt=(XMe(),or(YMe)),FY=Os().extendFlat;QMe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:ZMe("x"),yhoverformat:ZMe("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:JMe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:JMe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:LNt({},{keys:zNt.eventDataKeys}),hovertemplatefallback:KMe(),texttemplate:PNt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:KMe({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 iSe=K((Pjr,rSe)=>{"use strict";var eSe=Ho(),iS=St(),tSe=wo(),INt=cp().handleText,RNt=N9(),BNt=v8();rSe.exports=function(t,r,i,n){function a(w,_){return iS.coerce(t,r,BNt,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");INt(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=eSe.getComponentMethod("calendars","handleTraceDefaults");p(t,r,["x","y"],n);var v=r[h];v&&a("histfunc"),a("histnorm"),a("autobin"+c),RNt(t,r,a,i,n),iS.coerceSelectionMarkerOpacity(r,a);var y=(r.marker.line||{}).color,m=eSe.getComponentMethod("errorbars","supplyDefaults");m(t,r,y||tSe.defaultLine,{axis:"y"}),m(t,r,y||tSe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var y8=K((zjr,oSe)=>{"use strict";var nS=St(),qNt=Vf(),m8=Ho().traceIs,ONt=zb(),NNt=cp().validateCornerradius,nSe=nS.nestedProperty,LY=Cb().getAxisGroup,aSe=[{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"}],VNt=["x","y"];oSe.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=qNt.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 UNt=AA().hoverPoints,GNt=Cs().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.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=GNt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var PY=K((Rjr,uSe)=>{"use strict";uSe.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 cSe=K((Bjr,fSe)=>{"use strict";fSe.exports={attributes:v8(),layoutAttributes:O9(),supplyDefaults:iSe(),crossTraceDefaults:y8(),supplyLayoutDefaults:Q$(),calc:wY().calc,crossTraceCalc:Ib().crossTraceCalc,plot:Yb().plot,layerName:"barlayer",style:tv().style,styleOnSelect:tv().styleOnSelect,colorbar:e0(),hoverPoints:lSe(),selectPoints:TA(),eventData:PY(),moduleType:"trace",name:"histogram",basePlotModule:gc(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var dSe=K((qjr,hSe)=>{"use strict";hSe.exports=cSe()});var x8=K((Ojr,mSe)=>{"use strict";var h1=v8(),pSe=CY(),g8=EA(),HNt=Tu(),zY=zf().axisHoverFormat,{hovertemplateAttrs:jNt,texttemplateAttrs:WNt,templatefallbackAttrs:vSe}=gu(),$Nt=Wu(),aS=Os().extendFlat;mSe.exports=aS({x:h1.x,y:h1.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:h1.histnorm,histfunc:h1.histfunc,nbinsx:h1.nbinsx,xbins:pSe("x"),nbinsy:h1.nbinsy,ybins:pSe("y"),autobinx:h1.autobinx,autobiny:h1.autobiny,bingroup:aS({},h1.bingroup,{}),xbingroup:aS({},h1.bingroup,{}),ybingroup:aS({},h1.bingroup,{}),xgap:g8.xgap,ygap:g8.ygap,zsmooth:g8.zsmooth,xhoverformat:zY("x"),yhoverformat:zY("y"),zhoverformat:zY("z",1),hovertemplate:jNt({},{keys:["z"]}),hovertemplatefallback:vSe(),texttemplate:WNt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:vSe({editType:"plot"}),textfont:g8.textfont,showlegend:aS({},HNt.showlegend,{dflt:!1})},$Nt("",{cLetter:"z",autoColorDflt:!1}))});var IY=K((Njr,gSe)=>{"use strict";var YNt=Ho(),ySe=St();gSe.exports=function(t,r,i,n){var a=i("x"),o=i("y"),s=ySe.minRowLength(a),l=ySe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=YNt.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 bSe=K((Vjr,xSe)=>{"use strict";var XNt=St(),ZNt=IY(),KNt=vY(),JNt=xh(),QNt=tS(),eVt=x8();xSe.exports=function(t,r,i,n){function a(o,s){return XNt.coerce(t,r,eVt,o,s)}ZNt(t,r,a,n),r.visible!==!1&&(KNt(t,r,a,n),JNt(t,r,n,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),QNt(a,n),a("xhoverformat"),a("yhoverformat"))}});var ASe=K((Ujr,wSe)=>{"use strict";var tVt=p8(),_Se=Cs().hoverLabelText;wSe.exports=function(t,r,i,n,a){var o=tVt(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=_Se(t.xa,[h[0],h[1]],c.xhoverformat),t.yLabel=_Se(t.ya,[d[0],d[1]],c.yhoverformat),o}}});var MSe=K((Gjr,TSe)=>{"use strict";TSe.exports={attributes:x8(),supplyDefaults:bSe(),crossTraceDefaults:y8(),calc:l8(),plot:c8(),layerName:"heatmaplayer",colorbar:LA(),style:h8(),hoverPoints:ASe(),eventData:PY(),moduleType:"trace",name:"histogram2d",basePlotModule:gc(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var ESe=K((Hjr,SSe)=>{"use strict";SSe.exports=MSe()});var b8={};Fl(b8,{COMPARISON_OPS:()=>rVt,COMPARISON_OPS2:()=>iVt,CONSTRAINT_REDUCTION:()=>oVt,INTERVAL_OPS:()=>nVt,SET_OPS:()=>aVt});var rVt,iVt,nVt,aVt,oVt,_8=ps(()=>{"use strict";rVt=["=","!=","<",">=",">","<="],iVt=["=","<",">=",">","<="],nVt=["[]","()","[)","(]","][",")(","](",")["],aVt=["{}","}{"],oVt={"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}});var oS=K((jjr,FSe)=>{"use strict";var zc=EA(),w8=Qf(),CSe=zf(),RY=CSe.axisHoverFormat,sVt=CSe.descriptionOnlyNumbers,lVt=Wu(),uVt=gh().dash,fVt=lf(),PA=Os().extendFlat,DSe=(_8(),or(b8)),cVt=DSe.COMPARISON_OPS2,hVt=DSe.INTERVAL_OPS,kSe=w8.line;FSe.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:fVt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:sVt("contour label")},operation:{valType:"enumerated",values:[].concat(cVt).concat(hVt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:PA({},kSe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:uVt,smoothing:PA({},kSe.smoothing,{}),editType:"plot"},zorder:w8.zorder},lVt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var qY=K((Wjr,PSe)=>{"use strict";var k0=x8(),vm=oS(),dVt=Wu(),BY=zf().axisHoverFormat,LSe=Os().extendFlat;PSe.exports=LSe({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:LSe({},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},dVt("",{cLetter:"z",editTypeOverride:"calc"}))});var A8=K(($jr,zSe)=>{"use strict";zSe.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((Yjr,ISe)=>{"use strict";var pVt=St();ISe.exports=function(t,r,i,n){n||(n={});var a=t("contours.showlabels");if(a){var o=r.font;pVt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:i}}),t("contours.labelformat")}n.hasHover!==!1&&t("zhoverformat")}});var T8=K((Xjr,RSe)=>{"use strict";var vVt=xh(),mVt=OY();RSe.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,vVt(t,r,n,i,{prefix:"",cLetter:"z"})),i("line.smoothing"),mVt(i,n,l,a)}});var NSe=K((Zjr,OSe)=>{"use strict";var BSe=St(),yVt=IY(),gVt=A8(),xVt=T8(),bVt=tS(),qSe=qY();OSe.exports=function(t,r,i,n){function a(s,l){return BSe.coerce(t,r,qSe,s,l)}function o(s){return BSe.coerce2(t,r,qSe,s)}yVt(t,r,a,n),r.visible!==!1&&(gVt(t,r,a,o),xVt(t,r,a,n),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&bVt(a,n))}});var UY=K((Kjr,USe)=>{"use strict";var VY=Cs(),NY=St();USe.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=VSe(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=VSe(s,l,t.ncontours).dtick,u.size=i.size=f}}};function VSe(e,t,r){var i={type:"linear",range:[e,t]};return VY.autoTicks(i,(t-e)/(r||15)),i}});var sS=K((Jjr,GSe)=>{"use strict";GSe.exports=function(t){return t.end+t.size/1e6}});var GY=K((Qjr,jSe)=>{"use strict";var HSe=gf(),_Vt=l8(),wVt=UY(),AVt=sS();jSe.exports=function(t,r){var i=_Vt(t,r),n=i[0].z;wVt(r,n);var a=r.contours,o=HSe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=AVt(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 HSe.calc(t,r,{vals:s,cLetter:"z"}),i}});var lS={};Fl(lS,{BOTTOMSTART:()=>TVt,CHOOSESADDLE:()=>CVt,LABELDISTANCE:()=>FVt,LABELINCREASE:()=>LVt,LABELMAX:()=>zVt,LABELMIN:()=>PVt,LABELOPTIMIZER:()=>IVt,LEFTSTART:()=>SVt,NEWDELTA:()=>kVt,RIGHTSTART:()=>EVt,SADDLEREMAINDER:()=>DVt,TOPSTART:()=>MVt});var TVt,MVt,SVt,EVt,kVt,CVt,DVt,FVt,LVt,PVt,zVt,IVt,uS=ps(()=>{"use strict";TVt=[1,9,13,104,713],MVt=[4,6,7,104,713],SVt=[8,12,14,208,1114],EVt=[2,3,11,208,1114],kVt=[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]],CVt={104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},DVt={1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},FVt=2,LVt=10,PVt=3,zVt=10,IVt={EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}});var HY=K((eWr,WSe)=>{"use strict";var M8=(uS(),or(lS));WSe.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((tWr,XSe)=>{"use strict";var S8=St(),zA=(uS(),or(lS));XSe.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(YSe(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 YSe(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 QSe=K((rWr,JSe)=>{"use strict";var WY=(_8(),or(b8)),OVt=Hs();JSe.exports={"[]":ZSe("[]"),"][":ZSe("]["),">":$Y(">"),"<":$Y("<"),"=":$Y("=")};function KSe(e,t){var r=Array.isArray(t),i;function n(a){return OVt(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 ZSe(e){return function(t){t=KSe(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=KSe(e,t),{start:t,end:1/0,size:1/0}}}});var YY=K((iWr,tEe)=>{"use strict";var eEe=St(),NVt=QSe(),VVt=sS();tEe.exports=function(t,r,i){for(var n=t.type==="constraint"?NVt[t._operation](t.value):t,a=n.size,o=[],s=VVt(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){eEe.warn("Too many contours, clipping at 1000",t);break}return o}});var XY=K((nWr,iEe)=>{"use strict";var IA=St();iEe.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";nEe.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(),UVt=gf(),sEe=Du(),aEe=Cs(),oEe=Y1(),GVt=c8(),lEe=HY(),uEe=jY(),HVt=YY(),jVt=XY(),fEe=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=HVt(d,r,u),v=Rh.ensureSingle(l,"g","heatmapcoloring"),y=[];d.coloring==="heatmap"&&(y=[s]),GVt(t,r,y,v),lEe(p),uEe(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=jVt(p,d._operation)),WVt(l,M,d),$Vt(l,x,M,d),YVt(l,p,t,u,d),ZVt(l,r,t,u,M)})};function WVt(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 $Vt(e,t,r,i){var n=i.coloring==="fill"||i.type==="constraint"&&i._operation!=="=",a="M"+r.join("L")+"Z";n&&fEe(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:"")+cEe(l,r);u?hS.select(this).attr("d",u).style("stroke","none"):hS.select(this).remove()})}function cEe(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 XVt(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 JVt=No(),KY=gf(),QVt=sS();hEe.exports=function(t){var r=t.contours,i=r.start,n=QVt(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(),dEe=Is(),eUt=h8(),tUt=JY();pEe.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?tUt(a):null;n.selectAll("g.contourlevel").each(function(y){k8.select(this).selectAll("path").call(dEe.lineGroupStyle,s.width,c?d(y.level):s.color,s.dash)});var p=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(y){dEe.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))}}),eUt(t)}});var D8=K((uWr,mEe)=>{"use strict";var vEe=gf(),rUt=JY(),iUt=sS();function nUt(e,t,r){var i=t.contours,n=t.line,a=i.size||1,o=i.coloring,s=rUt(t,{isColorbar:!0});if(o==="heatmap"){var l=vEe.extractOpts(t);r._fillgradient=l.reversescale?vEe.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:iUt(i),size:a}}mEe.exports={min:"zmin",max:"zmax",calc:nUt}});var QY=K((fWr,yEe)=>{"use strict";var F8=wo(),aUt=p8();yEe.exports=function(t,r,i,n,a){a||(a={}),a.isContour=!0;var o=aUt(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 xEe=K((cWr,gEe)=>{"use strict";gEe.exports={attributes:qY(),supplyDefaults:NSe(),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 _Ee=K((hWr,bEe)=>{"use strict";bEe.exports=xEe()});var eX=K((dWr,EEe)=>{"use strict";var wEe=Hs(),oUt=OY(),MEe=wo(),AEe=MEe.addOpacity,sUt=MEe.opacity,SEe=(_8(),or(b8)),TEe=St().isArrayOrTypedArray,lUt=SEe.CONSTRAINT_REDUCTION,uUt=SEe.COMPARISON_OPS2;EEe.exports=function(t,r,i,n,a,o){var s=r.contours,l,u,f,c=i("contours.operation");if(s._operation=lUt[c],fUt(i,s),c==="="?l=s.showlines=!0:(l=i("contours.showlines"),f=i("fillcolor",AEe((t.line||{}).color||a,.5))),l){var h=f&&sUt(f)?AEe(r.fillcolor,1):a;u=i("line.color",h),i("line.width",2),i("line.dash")}i("line.smoothing"),oUt(i,n,u,o)};function fUt(e,t){var r;uUt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),TEe(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])]:wEe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),wEe(t.value)||(TEe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var DEe=K((pWr,CEe)=>{"use strict";var tX=St(),cUt=J9(),hUt=Qv(),dUt=eX(),pUt=A8(),vUt=T8(),mUt=tS(),kEe=oS();CEe.exports=function(t,r,i,n){function a(u,f){return tX.coerce(t,r,kEe,u,f)}function o(u){return tX.coerce2(t,r,kEe,u)}var s=cUt(t,r,a,n);if(!s){r.visible=!1;return}hUt(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?dUt(t,r,a,n,i):(pUt(t,r,a,o),vUt(t,r,a,n)),r.contours&&r.contours.coloring==="heatmap"&&mUt(a,n),a("zorder")}});var LEe=K((vWr,FEe)=>{"use strict";FEe.exports={attributes:oS(),supplyDefaults:DEe(),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 zEe=K((mWr,PEe)=>{"use strict";PEe.exports=LEe()});var rX=K((yWr,qEe)=>{"use strict";var{hovertemplateAttrs:yUt,texttemplateAttrs:gUt,templatefallbackAttrs:IEe}=gu(),xUt=sm(),pp=Qf(),bUt=Tu(),REe=Wu(),_Ut=gh().dash,d2=Os().extendFlat,ov=pp.marker,dS=pp.line,BEe=ov.line;qEe.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:gUt({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:IEe({editType:"plot"}),hovertext:d2({},pp.hovertext,{}),line:{color:dS.color,width:dS.width,dash:_Ut,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:xUt(),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:BEe.width,dash:BEe.dash,editType:"calc"},REe("marker.line")),gradient:ov.gradient,editType:"calc"},REe("marker")),textfont:pp.textfont,textposition:pp.textposition,selected:pp.selected,unselected:pp.unselected,hoverinfo:d2({},bUt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:pp.hoveron,hovertemplate:yUt(),hovertemplatefallback:IEe()}});var UEe=K((gWr,VEe)=>{"use strict";var OEe=St(),wUt=(om(),or(am)),RA=ff(),AUt=Xp(),TUt=e1(),NEe=Qw(),MUt=t1(),SUt=um(),EUt=rX();VEe.exports=function(t,r,i,n){function a(h,d){return OEe.coerce(t,r,EUt,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();GEe.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 YEe=K((bWr,$Ee)=>{"use strict";var nX=Hs(),kUt=Zp(),CUt=fm(),DUt=op(),FUt=Kp().calcMarkerSize,jEe=["a","b","c"],WEe={a:["b","c"],b:["a","c"],c:["a","b"]};$Ee.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 LUt=aA();XEe.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 PUt=uA();KEe.exports=function(t,r,i,n){var a=PUt(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 eke=K((AWr,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 hke=K((TWr,cke)=>{"use strict";var ske=No(),aX=Ho(),lv=St(),sv=lv.strTranslate,L8=lv._,dd=wo(),Kb=Is(),tke=Du(),pS=Y1(),oX=Os().extendFlat,zUt=yf(),My=Cs(),rke=U0(),ike=Gf(),lke=Q1(),nke=lke.freeMode,IUt=lke.rectMode,sX=vb(),RUt=fh().prepSelect,BUt=fh().selectOnClick,qUt=fh().clearOutline,OUt=fh().clearSelectionsCache,uke=(jc(),or(Hc));function fke(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}cke.exports=fke;var d1=fke.prototype;d1.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};d1.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)};d1.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"}})}};d1.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=NUt(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 NUt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Th=uke.MINZOOM/2+.87,VUt="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",UUt="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",GUt="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",HUt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",ake=!0;d1.clearOutline=function(){OUt(this.dragOptions),qUt(this.dragOptions.gd)};d1.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;nke(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)):(IUt(D)||nke(D))&&RUt(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;oke(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&&BUt(C,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),k.indexOf("event")>-1&&ike.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(){oke(r),f!==l&&(aX.call("_guiRelayout",r,y(f)),ake&&r.data&&r._context.showTips&&(lv.notifier(L8(r,"Double-click to zoom back out"),"long",r),ake=!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){ike.hover(r,S,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(S){r._dragging||rke.unhover(r,S)},rke.init(this.dragOptions)};function oke(e){ske.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var uX=K((MWr,dke)=>{"use strict";var jUt=Gc(),WUt=kf().attributes,lu=Ph(),$Ut=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=dke.exports=$Ut({domain:WUt({name:"ternary"}),bgcolor:{valType:"color",dflt:jUt.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((SWr,pke)=>{"use strict";var YUt=St(),XUt=cu(),ZUt=kf().defaults;pke.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 YUt.coerce(h,d,o,w,_)}for(var v=0;v{"use strict";var KUt=wo(),JUt=cu(),vS=St(),QUt=Jb(),eGt=Bg(),tGt=qg(),rGt=Dw(),iGt=fb(),nGt=FM(),mke=uX(),vke=["aaxis","baxis","caxis"];yke.exports=function(t,r,i){QUt(t,r,i,{type:"ternary",attributes:mke,handleDefaults:aGt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function aGt(e,t,r,i){var n=r("bgcolor"),a=r("sum");i.bgColor=KUt.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 oGt(e,t,r,i){var n=mke[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"),iGt(e,t,a,"linear"),tGt(e,t,a,"linear"),eGt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),rGt(e,t,a,{outerTicks:!0});var d=a("showticklabels");d&&(vS.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:l}}),a("tickangle"),a("tickformat")),nGt(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 xke=K(uv=>{"use strict";var sGt=hke(),lGt=Zh().getSubplotCalcData,uGt=St().counterRegex,qA="ternary";uv.name=qA;var fGt=uv.attr="subplot";uv.idRoot=qA;uv.idRegex=uv.attrRegex=uGt(qA);var cGt=uv.attributes={};cGt[fGt]={valType:"subplotid",dflt:"ternary",editType:"calc"};uv.layoutAttributes=uX();uv.supplyLayoutDefaults=gke();uv.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,n=r._subplots[qA],a=0;a{"use strict";bke.exports={attributes:rX(),supplyDefaults:UEe(),colorbar:e0(),formatLabels:HEe(),calc:YEe(),plot:ZEe(),style:hd().style,styleOnSelect:hd().styleOnSelect,hoverPoints:JEe(),selectPoints:Rb(),eventData:eke(),moduleType:"trace",name:"scatterternary",basePlotModule:xke(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var Ake=K((DWr,wke)=>{"use strict";wke.exports=_ke()});var fX=K((FWr,Mke)=>{"use strict";var Xc=KM(),OA=Os().extendFlat,Tke=zf().axisHoverFormat;Mke.exports={y:Xc.y,x:Xc.x,x0:Xc.x0,y0:Xc.y0,xhoverformat:Tke("x"),yhoverformat:Tke("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((LWr,Ske)=>{"use strict";var cX=JM(),hX=St().extendFlat;Ske.exports={violinmode:hX({},cX.boxmode,{}),violingap:hX({},cX.boxgap,{}),violingroupgap:hX({},cX.boxgroupgap,{})}});var Fke=K((PWr,Dke)=>{"use strict";var Eke=St(),hGt=wo(),kke=eS(),Cke=fX();Dke.exports=function(t,r,i,n){function a(M,x){return Eke.coerce(t,r,Cke,M,x)}function o(M,x){return Eke.coerce2(t,r,Cke,M,x)}if(kke.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",hGt.addOpacity(r.line.color,.5));kke.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 Pke=K((zWr,Lke)=>{"use strict";var dGt=St(),pGt=dX(),vGt=W9();Lke.exports=function(t,r,i){function n(a,o){return dGt.coerce(t,r,pGt,a,o)}vGt._supply(t,r,i,n,"violin")}});var I8=K(Qb=>{"use strict";var mGt=St(),yGt={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=yGt.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(),gGt=sY(),zke=I8(),xGt=(Il(),or(Bl)).BADNUM;Ike.exports=function(t,r){var i=gGt(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 AGt=Y9().setPositionOffset,Bke=["v","h"];qke.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(),TGt=Is(),gX=X9(),MGt=jW(),SGt=I8();Nke.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=MGt(f,{xaxis:s,yaxis:l,trace:c,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return TGt.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 Uke=No(),NA=wo(),EGt=hd().stylePoints;Gke.exports=function(t){var r=Uke.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=Uke.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),EGt(a,n,t)})}});var Yke=K((NWr,$ke)=>{"use strict";var kGt=wo(),xX=St(),CGt=Cs(),jke=hY(),Wke=I8();$ke.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=jke.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=Wke.getKdeValue(T,l,x),S=Wke.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"]=_+": "+CGt.hoverLabelText(M,x,l[_+"hoverformat"])+", "+s[0].t.labels.kde+" "+E.toFixed(3);for(var D=0,F=0;F{"use strict";Xke.exports={attributes:fX(),layoutAttributes:dX(),supplyDefaults:Fke(),crossTraceDefaults:eS().crossTraceDefaults,supplyLayoutDefaults:Pke(),calc:Rke(),crossTraceCalc:Oke(),plot:Vke(),style:Hke(),styleOnSelect:hd().styleOnSelect,hoverPoints:Yke(),selectPoints:dY(),moduleType:"trace",name:"violin",basePlotModule:gc(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var Jke=K((UWr,Kke)=>{"use strict";Kke.exports=Zke()});var Qke={};Fl(Qke,{eventDataKeys:()=>DGt});var DGt,eCe=ps(()=>{"use strict";DGt=["percentInitial","percentPrevious","percentTotal"]});var _X=K((GWr,nCe)=>{"use strict";var Cf=dm(),bX=Qf().line,FGt=Tu(),tCe=zf().axisHoverFormat,{hovertemplateAttrs:LGt,texttemplateAttrs:PGt,templatefallbackAttrs:rCe}=gu(),iCe=(eCe(),or(Qke)),Sy=Os().extendFlat,zGt=wo();nCe.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:tCe("x"),yhoverformat:tCe("y"),hovertext:Cf.hovertext,hovertemplate:LGt({},{keys:iCe.eventDataKeys}),hovertemplatefallback:rCe(),hoverinfo:Sy({},FGt.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:PGt({editType:"plot"},{keys:iCe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:rCe({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:IGt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Sy({},bX.color,{dflt:zGt.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 IGt(){var e=Sy({},Cf.marker);return delete e.pattern,delete e.cornerradius,e}});var wX=K((HWr,aCe)=>{"use strict";aCe.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((jWr,sCe)=>{"use strict";var R8=St(),RGt=zb(),BGt=cp().handleText,qGt=Pb(),OGt=Qv(),oCe=_X(),AX=wo();function NGt(e,t,r,i){function n(c,h){return R8.coerce(e,t,oCe,c,h)}var a=qGt(e,t,i,n);if(!a){t.visible=!1;return}OGt(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");BGt(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",VGt(l));var f=n("connector.line.width");f&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function VGt(e){var t=R8.isArrayOrTypedArray(e)?"#000":e;return AX.addOpacity(t,.5*AX.opacity(t))}function UGt(e,t){var r,i;function n(o){return R8.coerce(i._input,i,oCe,o)}for(var a=0;a{"use strict";var GGt=St(),HGt=wX();lCe.exports=function(e,t,r){var i=!1;function n(s,l){return GGt.coerce(e,t,HGt,s,l)}for(var a=0;a{"use strict";var VA=St();fCe.exports=function(t,r){for(var i=0;i{"use strict";var hCe=Cs(),dCe=r1(),jGt=cCe(),WGt=op(),mS=(Il(),or(Bl)).BADNUM;pCe.exports=function(t,r){var i=hCe.getFromId(t,r.xaxis||"x"),n=hCe.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=dCe(r,n,"y",s),u=!!r.yperiodalignment,f="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=dCe(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 mCe=Ib().setGroupPositions;yCe.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(),xCe=Is(),p2=(Il(),or(Bl)).BADNUM,$Gt=Yb(),YGt=E0().clearMinTextSize;_Ce.exports=function(t,r,i,n){var a=t._fullLayout;YGt("funnel",a),XGt(t,r,i,n),ZGt(t,r,i,n),$Gt.plot(t,r,i,n,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function XGt(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=bCe(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(xCe.setClipUrl,t.layerClipId,e)}})})}function ZGt(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=bCe(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(xCe.setClipUrl,t.layerClipId,e)}})})}function bCe(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((KWr,TCe)=>{"use strict";var yS=No(),ACe=Is(),SX=wo(),KGt=(ry(),or(ty)).DESELECTDIM,JGt=tv(),QGt=E0().resizeText,eHt=JGt.styleTextPoints;function tHt(e,t,r){var i=r||yS.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");QGt(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(ACe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?KGt:1)}}),eHt(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;ACe.lineGroupStyle(yS.select(this).selectAll("path"),s.width,s.color,s.dash)})})}TCe.exports={style:tHt}});var kCe=K((JWr,ECe)=>{"use strict";var SCe=wo().opacity,rHt=AA().hoverOnBars,EX=St().formatPercent;ECe.exports=function(t,r,i,n,a){var o=rHt(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=iHt(l,c),[o]}};function iHt(e,t){var r=e.marker,i=t.mc||r.color,n=t.mlc||r.line.color,a=t.mlw||r.line.width;if(SCe(i))return i;if(SCe(n)&&a)return n}});var DCe=K((QWr,CCe)=>{"use strict";CCe.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 LCe=K((e$r,FCe)=>{"use strict";FCe.exports={attributes:_X(),layoutAttributes:wX(),supplyDefaults:TX().supplyDefaults,crossTraceDefaults:TX().crossTraceDefaults,supplyLayoutDefaults:uCe(),calc:vCe(),crossTraceCalc:gCe(),plot:wCe(),style:MCe().style,hoverPoints:kCe(),eventData:DCe(),selectPoints:TA(),moduleType:"trace",name:"funnel",basePlotModule:gc(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var zCe=K((t$r,PCe)=>{"use strict";PCe.exports=LCe()});var ICe={};Fl(ICe,{eventDataKeys:()=>nHt});var nHt,RCe=ps(()=>{"use strict";nHt=["initial","delta","final"]});var DX=K((r$r,NCe)=>{"use strict";var hf=dm(),kX=Qf().line,aHt=Tu(),BCe=zf().axisHoverFormat,{hovertemplateAttrs:oHt,texttemplateAttrs:sHt,templatefallbackAttrs:qCe}=gu(),OCe=(RCe(),or(ICe)),UA=Os().extendFlat,lHt=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"}}NCe.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:BCe("x"),yhoverformat:BCe("y"),hovertext:hf.hovertext,hovertemplate:oHt({},{keys:OCe.eventDataKeys}),hovertemplatefallback:qCe(),hoverinfo:UA({},aHt.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:sHt({editType:"plot"},{keys:OCe.eventDataKeys.concat(["label"])}),texttemplatefallback:qCe({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:lHt.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((i$r,VCe)=>{"use strict";VCe.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:()=>fHt,INCREASING:()=>uHt});var uHt,fHt,HA=ps(()=>{"use strict";uHt={COLOR:"#3D9970",SYMBOL:"\u25B2"},fHt={COLOR:"#FF4136",SYMBOL:"\u25BC"}});var PX=K((n$r,jCe)=>{"use strict";var UCe=St(),cHt=zb(),hHt=cp().handleText,dHt=Pb(),pHt=Qv(),GCe=DX(),vHt=wo(),HCe=(HA(),or(GA)),mHt=HCe.INCREASING.COLOR,yHt=HCe.DECREASING.COLOR,gHt="#4499FF";function LX(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",vHt.defaultLine),e(t+".marker.line.width")}function xHt(e,t,r,i){function n(u,f){return UCe.coerce(e,t,GCe,u,f)}var a=dHt(e,t,i,n);if(!a){t.visible=!1;return}pHt(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");hHt(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",mHt),LX(n,"decreasing",yHt),LX(n,"totals",gHt);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 bHt(e,t){var r,i;function n(o){return UCe.coerce(i._input,i,GCe,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var _Ht=St(),wHt=FX();WCe.exports=function(e,t,r){var i=!1;function n(s,l){return _Ht.coerce(e,t,wHt,s,l)}for(var a=0;a{"use strict";var YCe=Cs(),XCe=r1(),ZCe=St().mergeArray,AHt=op(),KCe=(Il(),or(Bl)).BADNUM;function zX(e){return e==="a"||e==="absolute"}function IX(e){return e==="t"||e==="total"}JCe.exports=function(t,r){var i=YCe.getFromId(t,r.xaxis||"x"),n=YCe.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=XCe(r,n,"y",s),u=!!r.yperiodalignment,f="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=XCe(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 eDe=Ib().setGroupPositions;tDe.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 iDe=No(),q8=St(),THt=Is(),jA=(Il(),or(Bl)).BADNUM,MHt=Yb(),SHt=E0().clearMinTextSize;nDe.exports=function(t,r,i,n){var a=t._fullLayout;SHt("waterfall",a),MHt.plot(t,r,i,n,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),EHt(t,r,i,n)};function EHt(e,t,r,i){var n=t.xaxis,a=t.yaxis;q8.makeTraceGroups(i,r,"trace bars").each(function(o){var s=iDe.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=kHt(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(),oDe=Is(),sDe=wo(),CHt=(ry(),or(ty)).DESELECTDIM,DHt=tv(),FHt=E0().resizeText,LHt=DHt.styleTextPoints;function PHt(e,t,r){var i=r||O8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");FHt(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(sDe.fill,l.color).call(sDe.stroke,l.line.color).call(oDe.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?CHt:1)}}),LHt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;oDe.lineGroupStyle(O8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}lDe.exports={style:PHt}});var pDe=K((f$r,dDe)=>{"use strict";var zHt=Cs().hoverLabelText,fDe=wo().opacity,IHt=AA().hoverOnBars,cDe=(HA(),or(GA)),hDe={increasing:cDe.INCREASING.SYMBOL,decreasing:cDe.DECREASING.SYMBOL};dDe.exports=function(t,r,i,n,a){var o=IHt(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 zHt(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+" "+hDe.decreasing):w.push(o.deltaLabel+" "+hDe.increasing)),M("initial")&&w.push("Initial: "+o.initialLabel))}return w.length&&(o.extraText=w.join("
")),o.color=RHt(l,p),[o]};function RHt(e,t){var r=e[t.dir].marker,i=r.color,n=r.line.color,a=r.line.width;if(fDe(i))return i;if(fDe(n)&&a)return n}});var mDe=K((c$r,vDe)=>{"use strict";vDe.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 gDe=K((h$r,yDe)=>{"use strict";yDe.exports={attributes:DX(),layoutAttributes:FX(),supplyDefaults:PX().supplyDefaults,crossTraceDefaults:PX().crossTraceDefaults,supplyLayoutDefaults:$Ce(),calc:QCe(),crossTraceCalc:rDe(),plot:aDe(),style:uDe().style,hoverPoints:pDe(),eventData:mDe(),selectPoints:TA(),moduleType:"trace",name:"waterfall",basePlotModule:gc(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var bDe=K((d$r,xDe)=>{"use strict";xDe.exports=gDe()});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:()=>qHt});var _De,wDe,N8,ADe,TDe,MDe,SDe,BHt,qHt,qX=ps(()=>{"use strict";_De=N1(Os()),wDe=N1(Tu()),N8=N1(gu()),ADe=N1(Qf());WA();TDe=["rgb","rgba","rgba256","hsl","hsla"],MDe=[],SDe=[];for(let e of TDe){let t=RX[e];MDe.push(`For the \`${e}\` colormodel, it is [${(t.zminDflt||t.min).join(", ")}].`),SDe.push(`For the \`${e}\` colormodel, it is [${(t.zmaxDflt||t.max).join(", ")}].`)}BHt={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:TDe,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.",SDe.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,_De.extendFlat)({},wDe.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:ADe.zorder},qHt=BHt});var CDe=K((v$r,kDe)=>{"use strict";var OHt=St(),NHt=(qX(),or(BX)).default,EDe=(WA(),or(gS)),VHt=my().IMAGE_URL_PREFIX;kDe.exports=function(t,r){function i(o,s){return OHt.coerce(t,r,NHt,o,s)}i("source"),r.source&&!r.source.match(VHt)&&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=EDe.colormodel[r.colormodel],i("zmin",a.zminDflt||a.min),i("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=EDe.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((m$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((y$r,DDe)=>{DDe.exports=nb().EventEmitter});var PDe=K(V8=>{"use strict";V8.byteLength=GHt;V8.toByteArray=jHt;V8.fromByteArray=YHt;var ym=[],fv=[],UHt=typeof Uint8Array!="undefined"?Uint8Array:Array,VX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(e_=0,FDe=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 GHt(e){var t=LDe(e),r=t[0],i=t[1];return(r+i)*3/4-i}function HHt(e,t,r){return(t+r)*3/4-r}function jHt(e){var t,r=LDe(e),i=r[0],n=r[1],a=new UHt(HHt(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 WHt(e){return ym[e>>18&63]+ym[e>>12&63]+ym[e>>6&63]+ym[e&63]}function $Ht(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 zDe=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=PDe(),YA=zDe(),IDe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;ZA.Buffer=La;ZA.SlowBuffer=ejt;ZA.INSPECT_MAX_BYTES=50;var U8=2147483647;ZA.kMaxLength=U8;La.TYPED_ARRAY_SUPPORT=XHt();!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 XHt(){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 ODe(e,t,r)}La.poolSize=8192;function ODe(e,t,r){if(typeof e=="string")return KHt(e,t);if(ArrayBuffer.isView(e))return JHt(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=QHt(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 ODe(e,t,r)};Object.setPrototypeOf(La.prototype,Uint8Array.prototype);Object.setPrototypeOf(La,Uint8Array);function NDe(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 NDe(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 ZHt(e,t,r)};function $X(e){return NDe(e),ky(e<0?0:YX(e)|0)}La.allocUnsafe=function(e){return $X(e)};La.allocUnsafeSlow=function(e){return $X(e)};function KHt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!La.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=VDe(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 ejt(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 VDe(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 ZDe(e).length;default:if(n)return i?-1:WX(e).length;t=(""+t).toLowerCase(),n=!0}}La.byteLength=VDe;function tjt(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 cjt(this,t,r);case"utf8":case"utf-8":return GDe(this,t,r);case"ascii":return ujt(this,t,r);case"latin1":case"binary":return fjt(this,t,r);case"base64":return sjt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hjt(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+=" ... "),""};IDe&&(La.prototype[IDe]=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:RDe(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):RDe(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function RDe(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 rjt(this,t,r,i);case"utf8":case"utf-8":return ijt(this,t,r,i);case"ascii":case"latin1":case"binary":return njt(this,t,r,i);case"base64":return ajt(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ojt(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 sjt(e,t,r){return t===0&&r===e.length?GX.fromByteArray(e):GX.fromByteArray(e.slice(t,r))}function GDe(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 ljt(i)}var BDe=4096;function ljt(e){let t=e.length;if(t<=BDe)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 HDe(e,t,r,i,n){XDe(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 jDe(e,t,r,i,n){XDe(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 HDe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});La.prototype.writeBigUInt64BE=m2(function(t,r=0){return jDe(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 HDe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});La.prototype.writeBigInt64BE=m2(function(t,r=0){return jDe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function WDe(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 $De(e,t,r,i,n){return t=+t,r=r>>>0,n||WDe(e,t,r,4,34028234663852886e22,-34028234663852886e22),YA.write(e,t,r,i,23,4),r+4}La.prototype.writeFloatLE=function(t,r,i){return $De(this,t,r,!0,i)};La.prototype.writeFloatBE=function(t,r,i){return $De(this,t,r,!1,i)};function YDe(e,t,r,i,n){return t=+t,r=r>>>0,n||WDe(e,t,r,8,17976931348623157e292,-17976931348623157e292),YA.write(e,t,r,i,52,8),r+8}La.prototype.writeDoubleLE=function(t,r,i){return YDe(this,t,r,!0,i)};La.prototype.writeDoubleBE=function(t,r,i){return YDe(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=qDe(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=qDe(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function qDe(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 djt(e,t,r){XA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&xS(t,e.length-(r+1))}function XDe(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)}djt(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 pjt=/[^+/0-9A-Za-z-_]/g;function vjt(e){if(e=e.split("=")[0],e=e.trim().replace(pjt,""),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 mjt(e){let t=[];for(let r=0;r>8,n=r%256,a.push(n),a.push(i);return a}function ZDe(e){return GX.toByteArray(vjt(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 gjt=(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"?xjt:e}function xjt(){throw new Error("BigInt not supported")}});var H8=K((w$r,KDe)=>{"use strict";KDe.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((A$r,JDe)=>{"use strict";var bjt=H8();JDe.exports=function(){return bjt()&&!!Symbol.toStringTag}});var j8=K((T$r,QDe)=>{"use strict";QDe.exports=Object});var tFe=K((M$r,eFe)=>{"use strict";eFe.exports=Error});var iFe=K((S$r,rFe)=>{"use strict";rFe.exports=EvalError});var aFe=K((E$r,nFe)=>{"use strict";nFe.exports=RangeError});var sFe=K((k$r,oFe)=>{"use strict";oFe.exports=ReferenceError});var KX=K((C$r,lFe)=>{"use strict";lFe.exports=SyntaxError});var KA=K((D$r,uFe)=>{"use strict";uFe.exports=TypeError});var cFe=K((F$r,fFe)=>{"use strict";fFe.exports=URIError});var dFe=K((L$r,hFe)=>{"use strict";hFe.exports=Math.abs});var vFe=K((P$r,pFe)=>{"use strict";pFe.exports=Math.floor});var yFe=K((z$r,mFe)=>{"use strict";mFe.exports=Math.max});var xFe=K((I$r,gFe)=>{"use strict";gFe.exports=Math.min});var _Fe=K((R$r,bFe)=>{"use strict";bFe.exports=Math.pow});var AFe=K((B$r,wFe)=>{"use strict";wFe.exports=Math.round});var MFe=K((q$r,TFe)=>{"use strict";TFe.exports=Number.isNaN||function(t){return t!==t}});var EFe=K((O$r,SFe)=>{"use strict";var _jt=MFe();SFe.exports=function(t){return _jt(t)||t===0?t:t<0?-1:1}});var CFe=K((N$r,kFe)=>{"use strict";kFe.exports=Object.getOwnPropertyDescriptor});var i_=K((V$r,DFe)=>{"use strict";var W8=CFe();if(W8)try{W8([],"length")}catch(e){W8=null}DFe.exports=W8});var _S=K((U$r,FFe)=>{"use strict";var $8=Object.defineProperty||!1;if($8)try{$8({},"a",{value:1})}catch(e){$8=!1}FFe.exports=$8});var zFe=K((G$r,PFe)=>{"use strict";var LFe=typeof Symbol!="undefined"&&Symbol,wjt=H8();PFe.exports=function(){return typeof LFe!="function"||typeof Symbol!="function"||typeof LFe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:wjt()}});var JX=K((H$r,IFe)=>{"use strict";IFe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var QX=K((j$r,RFe)=>{"use strict";var Ajt=j8();RFe.exports=Ajt.getPrototypeOf||null});var OFe=K((W$r,qFe)=>{"use strict";var Tjt="Function.prototype.bind called on incompatible ",Mjt=Object.prototype.toString,Sjt=Math.max,Ejt="[object Function]",BFe=function(t,r){for(var i=[],n=0;n{"use strict";var Djt=OFe();NFe.exports=Function.prototype.bind||Djt});var Y8=K((Y$r,VFe)=>{"use strict";VFe.exports=Function.prototype.call});var X8=K((X$r,UFe)=>{"use strict";UFe.exports=Function.prototype.apply});var HFe=K((Z$r,GFe)=>{"use strict";GFe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var eZ=K((K$r,jFe)=>{"use strict";var Fjt=JA(),Ljt=X8(),Pjt=Y8(),zjt=HFe();jFe.exports=zjt||Fjt.call(Pjt,Ljt)});var Z8=K((J$r,WFe)=>{"use strict";var Ijt=JA(),Rjt=KA(),Bjt=Y8(),qjt=eZ();WFe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new Rjt("a function is required");return qjt(Ijt,Bjt,t)}});var JFe=K((Q$r,KFe)=>{"use strict";var Ojt=Z8(),$Fe=i_(),XFe;try{XFe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var tZ=!!XFe&&$Fe&&$Fe(Object.prototype,"__proto__"),ZFe=Object,YFe=ZFe.getPrototypeOf;KFe.exports=tZ&&typeof tZ.get=="function"?Ojt([tZ.get]):typeof YFe=="function"?function(t){return YFe(t==null?t:ZFe(t))}:!1});var K8=K((eYr,rLe)=>{"use strict";var QFe=JX(),eLe=QX(),tLe=JFe();rLe.exports=QFe?function(t){return QFe(t)}:eLe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return eLe(t)}:tLe?function(t){return tLe(t)}:null});var rZ=K((tYr,iLe)=>{"use strict";var Njt=Function.prototype.call,Vjt=Object.prototype.hasOwnProperty,Ujt=JA();iLe.exports=Ujt.call(Njt,Vjt)});var ez=K((rYr,uLe)=>{"use strict";var Fu,Gjt=j8(),Hjt=tFe(),jjt=iFe(),Wjt=aFe(),$jt=sFe(),r4=KX(),t4=KA(),Yjt=cFe(),Xjt=dFe(),Zjt=vFe(),Kjt=yFe(),Jjt=xFe(),Qjt=_Fe(),eWt=AFe(),tWt=EFe(),sLe=Function,iZ=function(e){try{return sLe('"use strict"; return ('+e+").constructor;")()}catch(t){}},wS=i_(),rWt=_S(),nZ=function(){throw new t4},iWt=wS?(function(){try{return arguments.callee,nZ}catch(e){try{return wS(arguments,"callee").get}catch(t){return nZ}}})():nZ,QA=zFe()(),i0=K8(),nWt=QX(),aWt=JX(),lLe=X8(),AS=Y8(),e4={},oWt=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%":Hjt,"%eval%":eval,"%EvalError%":jjt,"%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%":sLe,"%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%":Gjt,"%Object.getOwnPropertyDescriptor%":wS,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Fu:Promise,"%Proxy%":typeof Proxy=="undefined"?Fu:Proxy,"%RangeError%":Wjt,"%ReferenceError%":$jt,"%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%":iWt,"%TypedArray%":oWt,"%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%":Yjt,"%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%":lLe,"%Object.defineProperty%":rWt,"%Object.getPrototypeOf%":nWt,"%Math.abs%":Xjt,"%Math.floor%":Zjt,"%Math.max%":Kjt,"%Math.min%":Jjt,"%Math.pow%":Qjt,"%Math.round%":eWt,"%Math.sign%":tWt,"%Reflect.getPrototypeOf%":aWt};if(i0)try{null.error}catch(e){nLe=i0(i0(e)),n_["%Error.prototype%"]=nLe}var nLe,sWt=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},aLe={__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(),lWt=TS.call(AS,Array.prototype.concat),uWt=TS.call(lLe,Array.prototype.splice),oLe=TS.call(AS,String.prototype.replace),Q8=TS.call(AS,String.prototype.slice),fWt=TS.call(AS,RegExp.prototype.exec),cWt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,hWt=/\\(\\)?/g,dWt=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 oLe(t,cWt,function(a,o,s,l){n[n.length]=s?oLe(l,hWt,"$1"):o||a}),n},pWt=function(t,r){var i=t,n;if(J8(aLe,i)&&(n=aLe[i],i="%"+n[0]+"%"),J8(n_,i)){var a=n_[i];if(a===e4&&(a=sWt(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!")};uLe.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(fWt(/^%?[^%]*%?$/,t)===null)throw new r4("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=dWt(t),n=i.length>0?i[0]:"",a=pWt("%"+n+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(n=u[0],uWt(i,lWt([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((iYr,hLe)=>{"use strict";var fLe=ez(),cLe=Z8(),vWt=cLe([fLe("%String.prototype.indexOf%")]);hLe.exports=function(t,r){var i=fLe(t,!!r);return typeof i=="function"&&vWt(t,".prototype.")>-1?cLe([i]):i}});var vLe=K((nYr,pLe)=>{"use strict";var mWt=bS()(),yWt=a_(),aZ=yWt("Object.prototype.toString"),tz=function(t){return mWt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:aZ(t)==="[object Arguments]"},dLe=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]"},gWt=(function(){return tz(arguments)})();tz.isLegacyArguments=dLe;pLe.exports=gWt?tz:dLe});var _Le=K((aYr,bLe)=>{"use strict";var mLe=a_(),xWt=bS()(),bWt=rZ(),_Wt=i_(),lZ;xWt?(yLe=mLe("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=_Wt(t,"lastIndex"),i=r&&bWt(r,"value");if(!i)return!1;try{yLe(t,sZ)}catch(n){return n===oZ}}):(gLe=mLe("Object.prototype.toString"),xLe="[object RegExp]",lZ=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:gLe(t)===xLe});var yLe,oZ,rz,sZ,gLe,xLe;bLe.exports=lZ});var ALe=K((oYr,wLe)=>{"use strict";var wWt=a_(),AWt=_Le(),TWt=wWt("RegExp.prototype.exec"),MWt=KA();wLe.exports=function(t){if(!AWt(t))throw new MWt("`regex` must be a RegExp");return function(i){return TWt(t,i)!==null}}});var MLe=K((sYr,TLe)=>{"use strict";var SWt=function*(){}.constructor;TLe.exports=()=>SWt});var CLe=K((lYr,kLe)=>{"use strict";var ELe=a_(),EWt=ALe(),kWt=EWt(/^\s*(?:function)?\*/),CWt=bS()(),SLe=K8(),DWt=ELe("Object.prototype.toString"),FWt=ELe("Function.prototype.toString"),LWt=MLe();kLe.exports=function(t){if(typeof t!="function")return!1;if(kWt(FWt(t)))return!0;if(!CWt){var r=DWt(t);return r==="[object GeneratorFunction]"}if(!SLe)return!1;var i=LWt();return i&&SLe(t)===i.prototype}});var PLe=K((uYr,LLe)=>{"use strict";var FLe=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 PWt=/^\s*class\b/,cZ=function(t){try{var r=FLe.call(t);return PWt.test(r)}catch(i){return!1}},uZ=function(t){try{return cZ(t)?!1:(FLe.call(t),!0)}catch(r){return!1}},nz=Object.prototype.toString,zWt="[object Object]",IWt="[object Function]",RWt="[object GeneratorFunction]",BWt="[object HTMLAllCollection]",qWt="[object HTML document.all class]",OWt="[object HTMLCollection]",NWt=typeof Symbol=="function"&&!!Symbol.toStringTag,VWt=!(0 in[,]),hZ=function(){return!1};typeof document=="object"&&(DLe=document.all,nz.call(DLe)===nz.call(document.all)&&(hZ=function(t){if((VWt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=nz.call(t);return(r===BWt||r===qWt||r===OWt||r===zWt)&&t("")==null}catch(i){}return!1}));var DLe;LLe.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(NWt)return uZ(t);if(cZ(t))return!1;var r=nz.call(t);return r!==IWt&&r!==RWt&&!/^\[object HTML/.test(r)?!1:uZ(t)}});var RLe=K((fYr,ILe)=>{"use strict";var UWt=PLe(),GWt=Object.prototype.toString,zLe=Object.prototype.hasOwnProperty,HWt=function(t,r,i){for(var n=0,a=t.length;n=3&&(n=i),$Wt(t)?HWt(t,r,n):typeof t=="string"?jWt(t,r,n):WWt(t,r,n)}});var qLe=K((cYr,BLe)=>{"use strict";BLe.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var NLe=K((hYr,OLe)=>{"use strict";var dZ=qLe(),YWt=typeof globalThis=="undefined"?window:globalThis;OLe.exports=function(){for(var t=[],r=0;r{"use strict";var VLe=_S(),XWt=KX(),n4=KA(),ULe=i_();GLe.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=!!ULe&&ULe(t,r);if(VLe)VLe(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 XWt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var mZ=K((pYr,jLe)=>{"use strict";var vZ=_S(),HLe=function(){return!!vZ};HLe.hasArrayLengthDefineBug=function(){if(!vZ)return null;try{return vZ([],"length",{value:1}).length!==1}catch(t){return!0}};jLe.exports=HLe});var ZLe=K((vYr,XLe)=>{"use strict";var ZWt=ez(),WLe=pZ(),KWt=mZ()(),$Le=i_(),YLe=KA(),JWt=ZWt("%Math.floor%");XLe.exports=function(t,r){if(typeof t!="function")throw new YLe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||JWt(r)!==r)throw new YLe("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in t&&$Le){var o=$Le(t,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(a=!1)}return(n||a||!i)&&(KWt?WLe(t,"length",r,!0,!0):WLe(t,"length",r)),t}});var JLe=K((mYr,KLe)=>{"use strict";var QWt=JA(),e$t=X8(),t$t=eZ();KLe.exports=function(){return t$t(QWt,e$t,arguments)}});var MS=K((yYr,az)=>{"use strict";var r$t=ZLe(),QLe=_S(),i$t=Z8(),ePe=JLe();az.exports=function(t){var r=i$t(arguments),i=1+t.length-(arguments.length-1);return r$t(r,i>0?i:0,!0)};QLe?QLe(az.exports,"apply",{value:ePe}):az.exports.apply=ePe});var bZ=K((gYr,nPe)=>{"use strict";var lz=RLe(),n$t=NLe(),tPe=MS(),gZ=a_(),sz=i_(),oz=K8(),a$t=gZ("Object.prototype.toString"),iPe=bS()(),rPe=typeof globalThis=="undefined"?window:globalThis,yZ=n$t(),xZ=gZ("String.prototype.slice"),o$t=gZ("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i-1}function f$t(e){if(!e||typeof e!="object")return!1;if(!iPe){var t=xZ(a$t(e),8,-1);return u$t(t)?t:t!=="Object"?!1:l$t(e)}return sz?s$t(e):null}nPe.exports=f$t});var oPe=K((xYr,aPe)=>{"use strict";var c$t=bZ();aPe.exports=function(t){return!!c$t(t)}});var AZ=K(Lu=>{"use strict";var h$t=vLe(),d$t=CLe(),p1=bZ(),sPe=oPe();function a4(e){return e.call.bind(e)}var lPe=typeof BigInt!="undefined",uPe=typeof Symbol!="undefined",cv=a4(Object.prototype.toString),p$t=a4(Number.prototype.valueOf),v$t=a4(String.prototype.valueOf),m$t=a4(Boolean.prototype.valueOf);lPe&&(fPe=a4(BigInt.prototype.valueOf));var fPe;uPe&&(cPe=a4(Symbol.prototype.valueOf));var cPe;function ES(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}Lu.isArgumentsObject=h$t;Lu.isGeneratorFunction=d$t;Lu.isTypedArray=sPe;function y$t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}Lu.isPromise=y$t;function g$t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):sPe(e)||dPe(e)}Lu.isArrayBufferView=g$t;function x$t(e){return p1(e)==="Uint8Array"}Lu.isUint8Array=x$t;function b$t(e){return p1(e)==="Uint8ClampedArray"}Lu.isUint8ClampedArray=b$t;function _$t(e){return p1(e)==="Uint16Array"}Lu.isUint16Array=_$t;function w$t(e){return p1(e)==="Uint32Array"}Lu.isUint32Array=w$t;function A$t(e){return p1(e)==="Int8Array"}Lu.isInt8Array=A$t;function T$t(e){return p1(e)==="Int16Array"}Lu.isInt16Array=T$t;function M$t(e){return p1(e)==="Int32Array"}Lu.isInt32Array=M$t;function S$t(e){return p1(e)==="Float32Array"}Lu.isFloat32Array=S$t;function E$t(e){return p1(e)==="Float64Array"}Lu.isFloat64Array=E$t;function k$t(e){return p1(e)==="BigInt64Array"}Lu.isBigInt64Array=k$t;function C$t(e){return p1(e)==="BigUint64Array"}Lu.isBigUint64Array=C$t;function fz(e){return cv(e)==="[object Map]"}fz.working=typeof Map!="undefined"&&fz(new Map);function D$t(e){return typeof Map=="undefined"?!1:fz.working?fz(e):e instanceof Map}Lu.isMap=D$t;function cz(e){return cv(e)==="[object Set]"}cz.working=typeof Set!="undefined"&&cz(new Set);function F$t(e){return typeof Set=="undefined"?!1:cz.working?cz(e):e instanceof Set}Lu.isSet=F$t;function hz(e){return cv(e)==="[object WeakMap]"}hz.working=typeof WeakMap!="undefined"&&hz(new WeakMap);function L$t(e){return typeof WeakMap=="undefined"?!1:hz.working?hz(e):e instanceof WeakMap}Lu.isWeakMap=L$t;function wZ(e){return cv(e)==="[object WeakSet]"}wZ.working=typeof WeakSet!="undefined"&&wZ(new WeakSet);function P$t(e){return wZ(e)}Lu.isWeakSet=P$t;function dz(e){return cv(e)==="[object ArrayBuffer]"}dz.working=typeof ArrayBuffer!="undefined"&&dz(new ArrayBuffer);function hPe(e){return typeof ArrayBuffer=="undefined"?!1:dz.working?dz(e):e instanceof ArrayBuffer}Lu.isArrayBuffer=hPe;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 dPe(e){return typeof DataView=="undefined"?!1:pz.working?pz(e):e instanceof DataView}Lu.isDataView=dPe;var _Z=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function SS(e){return cv(e)==="[object SharedArrayBuffer]"}function pPe(e){return typeof _Z=="undefined"?!1:(typeof SS.working=="undefined"&&(SS.working=SS(new _Z)),SS.working?SS(e):e instanceof _Z)}Lu.isSharedArrayBuffer=pPe;function z$t(e){return cv(e)==="[object AsyncFunction]"}Lu.isAsyncFunction=z$t;function I$t(e){return cv(e)==="[object Map Iterator]"}Lu.isMapIterator=I$t;function R$t(e){return cv(e)==="[object Set Iterator]"}Lu.isSetIterator=R$t;function B$t(e){return cv(e)==="[object Generator]"}Lu.isGeneratorObject=B$t;function q$t(e){return cv(e)==="[object WebAssembly.Module]"}Lu.isWebAssemblyCompiledModule=q$t;function vPe(e){return ES(e,p$t)}Lu.isNumberObject=vPe;function mPe(e){return ES(e,v$t)}Lu.isStringObject=mPe;function yPe(e){return ES(e,m$t)}Lu.isBooleanObject=yPe;function gPe(e){return lPe&&ES(e,fPe)}Lu.isBigIntObject=gPe;function xPe(e){return uPe&&ES(e,cPe)}Lu.isSymbolObject=xPe;function O$t(e){return vPe(e)||mPe(e)||yPe(e)||gPe(e)||xPe(e)}Lu.isBoxedPrimitive=O$t;function N$t(e){return typeof Uint8Array!="undefined"&&(hPe(e)||pPe(e))}Lu.isAnyArrayBuffer=N$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((_Yr,bPe)=>{bPe.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 _Pe=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=U$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 U$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 G$t(e,t){return e}function H$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=j$t(e,t);if(n)return n;var a=Object.keys(t),o=H$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(APe(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=W$t(e,t,r,o,a):h=a.map(function(d){return EZ(e,t,r,o,d,u)}),e.seen.pop(),$$t(h,l,f)}function j$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(TPe(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 W$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 G$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 $$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]}Pu.types=AZ();function wPe(e){return Array.isArray(e)}Pu.isArray=wPe;function kZ(e){return typeof e=="boolean"}Pu.isBoolean=kZ;function bz(e){return e===null}Pu.isNull=bz;function H$t(e){return e==null}Pu.isNullOrUndefined=H$t;function APe(e){return typeof e=="number"}Pu.isNumber=APe;function _z(e){return typeof e=="string"}Pu.isString=_z;function j$t(e){return typeof e=="symbol"}Pu.isSymbol=j$t;function s_(e){return e===void 0}Pu.isUndefined=s_;function kS(e){return o4(e)&&CZ(e)==="[object RegExp]"}Pu.isRegExp=kS;Pu.types.isRegExp=kS;function o4(e){return typeof e=="object"&&e!==null}Pu.isObject=o4;function xz(e){return o4(e)&&CZ(e)==="[object Date]"}Pu.isDate=xz;Pu.types.isDate=xz;function CS(e){return o4(e)&&(CZ(e)==="[object Error]"||e instanceof Error)}Pu.isError=CS;Pu.types.isNativeError=CS;function yz(e){return typeof e=="function"}Pu.isFunction=yz;function W$t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}Pu.isPrimitive=W$t;Pu.isBuffer=TZ();function CZ(e){return Object.prototype.toString.call(e)}function SZ(e){return e<10?"0"+e.toString(10):e.toString(10)}var $$t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Y$t(){var e=new Date,t=[SZ(e.getHours()),SZ(e.getMinutes()),SZ(e.getSeconds())].join(":");return[e.getDate(),$$t[e.getMonth()],t].join(" ")}Pu.log=function(){console.log("%s - %s",Y$t(),Pu.format.apply(Pu,arguments))};Pu.inherits=Ey();Pu._extend=function(e,t){if(!t||!o4(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};function TPe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var o_=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(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 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{"use strict";function SPe(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 EPe(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;)lYt(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:sYt,value:function(r,i){return FZ(this,EPe(EPe({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var PZ=K((TYr,PPe)=>{"use strict";function uYt(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(LPe,r,a)):process.nextTick(LPe,r,a):t?(process.nextTick(Az,r),t(a)):process.nextTick(Az,r)}),this)}function LPe(e,t){LZ(e,t),Az(e)}function Az(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function fYt(){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 cYt(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}PPe.exports={destroy:uYt,undestroy:fYt,errorOrDestroy:cYt}});var l_=K((MYr,RPe)=>{"use strict";function hYt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var IPe={};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){hYt(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,IPe[e]=n}function zPe(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 dYt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function pYt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function vYt(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"&&dYt(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(pYt(e," argument"))n="The ".concat(e," ").concat(i," ").concat(zPe(t,"type"));else{var a=vYt(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(zPe(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");RPe.exports.codes=IPe});var zZ=K((SYr,BPe)=>{"use strict";var mYt=l_().codes.ERR_INVALID_OPT_VALUE;function yYt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function gYt(e,t,r,i){var n=yYt(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new mYt(a,n)}return Math.floor(n)}return e.objectMode?16:16*1024}BPe.exports={getHighWaterMark:gYt}});var OPe=K((EYr,qPe)=>{qPe.exports=xYt;function xYt(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((kYr,jPe)=>{"use strict";jPe.exports=Zc;function VPe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){WYt(t,e)}}var s4;Zc.WritableState=FS;var bYt={deprecate:OPe()},UPe=NX(),Mz=r_().Buffer,_Yt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function wYt(e){return Mz.from(e)}function AYt(e){return Mz.isBuffer(e)||e instanceof _Yt}var BZ=PZ(),TYt=zZ(),MYt=TYt.getHighWaterMark,g2=l_().codes,SYt=g2.ERR_INVALID_ARG_TYPE,EYt=g2.ERR_METHOD_NOT_IMPLEMENTED,kYt=g2.ERR_MULTIPLE_CALLBACK,CYt=g2.ERR_STREAM_CANNOT_PIPE,DYt=g2.ERR_STREAM_DESTROYED,FYt=g2.ERR_STREAM_NULL_VALUES,LYt=g2.ERR_STREAM_WRITE_AFTER_END,PYt=g2.ERR_UNKNOWN_ENCODING,l4=BZ.errorOrDestroy;Ey()(Zc,UPe);function zYt(){}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=MYt(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){VYt(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 VPe(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:bYt.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)),UPe.call(this)}Zc.prototype.pipe=function(){l4(this,new CYt)};function IYt(e,t){var r=new LYt;l4(e,r),process.nextTick(t,r)}function RYt(e,t,r,i){var n;return r===null?n=new FYt:typeof r!="string"&&!t.objectMode&&(n=new SYt("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&&AYt(e);return a&&!Mz.isBuffer(e)&&(e=wYt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=zYt),i.ending?IYt(this,r):(a||RYt(this,i,e,r))&&(i.pendingcb++,n=qYt(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&&GPe(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 PYt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Zc.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function BYt(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 qYt(e,t,r,i,n,a){if(!r){var o=BYt(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 $Yt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};$Pe.exports=xm;var WPe=VZ(),NZ=qZ();Ey()(xm,WPe);for(OZ=$Yt(NZ.prototype),Sz=0;Sz{var kz=r_(),bm=kz.Buffer;function YPe(e,t){for(var r in e)t[r]=e[r]}bm.from&&bm.alloc&&bm.allocUnsafe&&bm.allocUnsafeSlow?XPe.exports=kz:(YPe(kz,UZ),UZ.Buffer=f_);function f_(e,t,r){return bm(e,t,r)}f_.prototype=Object.create(bm.prototype);YPe(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(JPe=>{"use strict";var HZ=ZPe().Buffer,KPe=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 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 KYt(e){var t=ZYt(e);if(typeof t!="string"&&(HZ.isEncoding===KPe||!KPe(e)))throw new Error("Unknown encoding: "+e);return t||e}JPe.StringDecoder=LS;function LS(e){this.encoding=KYt(e);var t;switch(this.encoding){case"utf16le":this.text=iXt,this.end=nXt,t=4;break;case"utf8":this.fillLast=eXt,t=4;break;case"base64":this.text=aXt,this.end=oXt,t=3;break;default:this.write=sXt,this.end=lXt;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 JYt(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 QYt(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 eXt(e){var t=this.lastTotal-this.lastNeed,r=QYt(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 tXt(e,t){var r=JYt(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 rXt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function iXt(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 nXt(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 aXt(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 oXt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function sXt(e){return e.toString(this.encoding)}function lXt(e){return e&&e.length?this.write(e):""}});var Cz=K((FYr,t9e)=>{"use strict";var QPe=l_().codes.ERR_STREAM_PREMATURE_CLOSE;function uXt(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=hXt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hXt(e){var t=dXt(e,"string");return typeof t=="symbol"?t:String(t)}function dXt(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 pXt=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 vXt(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 mXt(e){process.nextTick(vXt,e)}function yXt(e,t){return function(r,i){e.then(function(){if(t[Fz]){r(_2(void 0,!0));return}t[WZ](r,i)},i)}}var gXt=Object.getPrototypeOf(function(){}),xXt=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(yXt(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),gXt),bXt=function(t){var r,i=Object.create(xXt,(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,pXt(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",mXt.bind(null,i)),i};r9e.exports=bXt});var a9e=K((PYr,n9e)=>{n9e.exports=function(){throw new Error("Readable.from is not available in the browser")}});var VZ=K((IYr,v9e)=>{"use strict";v9e.exports=$u;var u4;$u.ReadableState=u9e;var zYr=nb().EventEmitter,l9e=function(t,r){return t.listeners(r).length},IS=NX(),Lz=r_().Buffer,_Xt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function wXt(e){return Lz.from(e)}function AXt(e){return Lz.isBuffer(e)||e instanceof _Xt}var $Z=DZ(),Eu;$Z&&$Z.debuglog?Eu=$Z.debuglog("stream"):Eu=function(){};var TXt=FPe(),eK=PZ(),MXt=zZ(),SXt=MXt.getHighWaterMark,Pz=l_().codes,EXt=Pz.ERR_INVALID_ARG_TYPE,kXt=Pz.ERR_STREAM_PUSH_AFTER_EOF,CXt=Pz.ERR_METHOD_NOT_IMPLEMENTED,DXt=Pz.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,f4,YZ,XZ;Ey()($u,IS);var zS=eK.errorOrDestroy,ZZ=["error","close","destroy","pause","resume"];function FXt(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 u9e(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=SXt(this,e,"readableHighWaterMark",r),this.buffer=new TXt,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 u9e(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),f9e(this,e,t,!1,i)};$u.prototype.unshift=function(e){return f9e(this,e,null,!0,!1)};function f9e(e,t,r,i,n){Eu("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,zXt(e,a);else{var o;if(n||(o=LXt(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=wXt(t)),i)a.endEmitted?zS(e,new DXt):KZ(e,a,t,!0);else if(a.ended)zS(e,new kXt);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=o9e?e=o9e:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function s9e(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=PXt(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=s9e(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=d9e(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 zXt(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,c9e(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(c9e,e))}function c9e(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(IXt,e,t))}function IXt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&p9e(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),l9e(e,"error")===0&&zS(e,y)}FXt(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 RXt(e){return function(){var r=e._readableState;Eu("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&l9e(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(BXt,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(h9e,this),r};$u.prototype.removeAllListeners=function(e){var t=IS.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(h9e,this),t};function h9e(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 BXt(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,qXt(this,e)),e.paused=!1,this};function qXt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(OXt,e,t))}function OXt(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(NXt,t,e))}function NXt(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=a9e()),XZ($u,e,t)});function p9e(e,t){for(var r=0,i=e.length;r{"use strict";y9e.exports=Cy;var Iz=l_().codes,VXt=Iz.ERR_METHOD_NOT_IMPLEMENTED,UXt=Iz.ERR_MULTIPLE_CALLBACK,GXt=Iz.ERR_TRANSFORM_ALREADY_TRANSFORMING,HXt=Iz.ERR_TRANSFORM_WITH_LENGTH_0,Rz=u_();Ey()(Cy,Rz);function jXt(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new UXt);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";x9e.exports=RS;var g9e=rK();Ey()(RS,g9e);function RS(e){if(!(this instanceof RS))return new RS(e);g9e.call(this,e)}RS.prototype._transform=function(e,t,r){r(null,e)}});var M9e=K((qYr,T9e)=>{"use strict";var iK;function $Xt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var A9e=l_().codes,YXt=A9e.ERR_MISSING_ARGS,XXt=A9e.ERR_STREAM_DESTROYED;function _9e(e){if(e)throw e}function ZXt(e){return e.setHeader&&typeof e.abort=="function"}function KXt(e,t,r,i){i=$Xt(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,ZXt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(o||new XXt("pipe"))}}}function w9e(e){e()}function JXt(e,t){return e.pipe(t)}function QXt(e){return!e.length||typeof e[e.length-1]!="function"?_9e:e.pop()}function eZt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return KXt(o,l,u,function(f){n||(n=f),f&&a.forEach(w9e),!l&&(a.forEach(w9e),i(n))})});return t.reduce(JXt)}T9e.exports=eZt});var E9e=K((OYr,S9e)=>{S9e.exports=dv;var nK=nb().EventEmitter,tZt=Ey();tZt(dv,nK);dv.Readable=VZ();dv.Writable=qZ();dv.Duplex=u_();dv.Transform=rK();dv.PassThrough=b9e();dv.finished=Cz();dv.pipeline=M9e();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 k9e=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=iZt),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 iZt(e,t){var r=w2.styles[t];return r?"\x1B["+w2.colors[r][0]+"m"+e+"\x1B["+w2.colors[r][1]+"m":e}function nZt(e,t){return e}function aZt(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=oZt(e,t);if(n)return n;var a=Object.keys(t),o=aZt(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(D9e(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=sZt(e,t,r,o,a):h=a.map(function(d){return sK(e,t,r,o,d,u)}),e.seen.pop(),lZt(h,l,f)}function oZt(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(F9e(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 sZt(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 nZt(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 lZt(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]}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(` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}zu.types=AZ();function D9e(e){return Array.isArray(e)}zu.isArray=D9e;function lK(e){return typeof e=="boolean"}zu.isBoolean=lK;function Uz(e){return e===null}zu.isNull=Uz;function uZt(e){return e==null}zu.isNullOrUndefined=uZt;function F9e(e){return typeof e=="number"}zu.isNumber=F9e;function Gz(e){return typeof e=="string"}zu.isString=Gz;function fZt(e){return typeof e=="symbol"}zu.isSymbol=fZt;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 cZt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}zu.isPrimitive=cZt;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 hZt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dZt(){var e=new Date,t=[oK(e.getHours()),oK(e.getMinutes()),oK(e.getSeconds())].join(":");return[e.getDate(),hZt[e.getMonth()],t].join(" ")}zu.log=function(){console.log("%s - %s",dZt(),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 L9e(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 P9e(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 MZt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function SZt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function EZt(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"&&MZt(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(SZt(e," argument"))n="The ".concat(e," ").concat(i," ").concat(z9e(t,"type"));else{var a=EZt(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(z9e(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);R9e.exports.codes=I9e});var W9e=K((UYr,j9e)=>{"use strict";function B9e(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 q9e(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function qZt(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 v1="",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:"},OZt=10;function V9e(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 NZt(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],` +`),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<=OZt){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(zZt(" ",c),"^"),c=0)}}}for(var v=u[u.length-1],y=f[f.length-1];v===y&&(c++<2?o=` + `.concat(qZt(" ",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(p1,"...").concat(C0);w.length>27;)w.pop();return"".concat(m_.notIdentical,` +`);if(w.length>30)for(w[26]="".concat(v1,"...").concat(C0);w.length>27;)w.pop();return"".concat(m_.notIdentical,` `).concat(w.join(` `),` `)}c>3&&(o=` -`.concat(p1,"...").concat(C0).concat(o),s=!0),i!==""&&(o=` +`.concat(v1,"...").concat(C0).concat(o),s=!0),i!==""&&(o=` `.concat(i).concat(o),i="");var _=0,b=m_[r]+` -`.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(NS,"+ actual").concat(C0," ").concat(VS,"- expected").concat(C0),M=" ".concat(v1,"...").concat(C0," Lines skipped");for(c=0;c1&&c>2&&(x>4?(n+=` +`.concat(v1,"...").concat(C0),s=!0):x>3&&(n+=` `.concat(f[c-2]),_++),n+=` `.concat(f[c-1]),_++),a=c,i+=` `.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(v1,"...").concat(C0),s=!0):x>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),a=c,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(NS,"+").concat(C0," ").concat(u[c]),_++;else{var T=f[c],A=u[c],g=A!==T&&(!N9e(A,",")||A.slice(0,-1)!==T);g&&N9e(T,",")&&T.slice(0,-1)===A&&(g=!1,A+=","),g?(x>1&&c>2&&(x>4?(n+=` +`.concat(v1,"...").concat(C0),s=!0):x>3&&(n+=` `.concat(u[c-2]),_++),n+=` `.concat(u[c-1]),_++),a=c,n+=` `.concat(NS,"+").concat(C0," ").concat(A),i+=` `.concat(VS,"-").concat(C0," ").concat(T),_+=2):(n+=i,i="",(x===1||c===0)&&(n+=` `.concat(A),_++))}if(_>20&&c30)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(v1,"...").concat(C0).concat(i,` +`)+"".concat(v1,"...").concat(C0)}return"".concat(b).concat(s?M:"",` +`).concat(n).concat(i).concat(o).concat(h)}var VZt=(function(e,t){LZt(i,e);var r=PZt(i);function i(n){var a;if(CZt(this,i),Bd(n)!=="object"||n===null)throw new BZt("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?(v1="\x1B[34m",NS="\x1B[32m",C0="\x1B[39m",VS="\x1B[31m"):(v1="",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=V9e(u),f=V9e(f)),s==="deepStrictEqual"||s==="strictEqual")a=r.call(this,NZt(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(v1,"...").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(` `),` @@ -86,21 +86,21 @@ should equal -`):v=" ".concat(s," ").concat(v)),a=r.call(this,"".concat(p).concat(v))}return Error.stackTraceLimit=c,a.generatedMessage=!o,Object.defineProperty(dK(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(dK(a),l),a.stack,a.name="AssertionError",U9e(a)}return SZt(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return vK(this,B9e(B9e({},o),{},{customInspect:!1,depth:0}))}}]),i})(pK(Error),vK.custom);H9e.exports=BZt});var mK=K((OYr,$9e)=>{"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{"use strict";var $9e=Object.prototype.toString;Y9e.exports=function(t){var r=$9e.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&$9e.call(t.callee)==="[object Function]"),i}});var i8e=K((HYr,r8e)=>{"use strict";var t8e;Object.keys||(jS=Object.prototype.hasOwnProperty,yK=Object.prototype.toString,X9e=mK(),gK=Object.prototype.propertyIsEnumerable,Z9e=!gK.call({toString:null},"toString"),K9e=gK.call(function(){},"prototype"),WS=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],$z=function(e){var t=e.constructor;return t&&t.prototype===e},J9e={$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},Q9e=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!J9e["$"+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})(),e8e=function(e){if(typeof window=="undefined"||!Q9e)return $z(e);try{return $z(e)}catch(t){return!1}},t8e=function(t){var r=t!==null&&typeof t=="object",i=yK.call(t)==="[object Function]",n=X9e(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=K9e&&i;if(a&&t.length>0&&!jS.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var UZt=Array.prototype.slice,GZt=mK(),n8e=Object.keys,Yz=n8e?function(t){return n8e(t)}:i8e(),a8e=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 GZt(i)?a8e(UZt.call(i)):a8e(i)})}else Object.keys=Yz;return Object.keys||Yz};o8e.exports=Yz});var c8e=K((WYr,f8e)=>{"use strict";var HZt=xK(),l8e=H8()(),u8e=a_(),Xz=j8(),jZt=u8e("Array.prototype.push"),s8e=u8e("Object.prototype.propertyIsEnumerable"),WZt=l8e?Xz.getOwnPropertySymbols:null;f8e.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=c8e(),$Zt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},i=0;i{"use strict";var p8e=function(e){return e!==e};v8e.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||p8e(t)&&p8e(r))}});var Zz=K((XYr,m8e)=>{"use strict";var XZt=_K();m8e.exports=function(){return typeof Object.is=="function"?Object.is:XZt}});var b8e=K((ZYr,x8e)=>{"use strict";var y8e=ez(),g8e=MS(),ZZt=g8e(y8e("String.prototype.indexOf"));x8e.exports=function(t,r){var i=y8e(t,!!r);return typeof i=="function"&&ZZt(t,".prototype.")>-1?g8e(i):i}});var $S=K((KYr,T8e)=>{"use strict";var KZt=xK(),JZt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",QZt=Object.prototype.toString,eKt=Array.prototype.concat,_8e=pZ(),tKt=function(e){return typeof e=="function"&&QZt.call(e)==="[object Function]"},w8e=mZ()(),rKt=function(e,t,r,i){if(t in e){if(i===!0){if(e[t]===r)return}else if(!tKt(i)||!i())return}w8e?_8e(e,t,r,!0):_8e(e,t,r)},A8e=function(e,t){var r=arguments.length>2?arguments[2]:{},i=KZt(t);JZt&&(i=eKt.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n{"use strict";var iKt=Zz(),nKt=$S();M8e.exports=function(){var t=iKt();return nKt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var D8e=K((QYr,C8e)=>{"use strict";var aKt=$S(),oKt=MS(),sKt=_K(),E8e=Zz(),lKt=S8e(),k8e=oKt(E8e(),Object);aKt(k8e,{getPolyfill:E8e,implementation:sKt,shim:lKt});C8e.exports=k8e});var wK=K((eXr,F8e)=>{"use strict";F8e.exports=function(t){return t!==t}});var AK=K((tXr,L8e)=>{"use strict";var uKt=wK();L8e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:uKt}});var z8e=K((rXr,P8e)=>{"use strict";var fKt=$S(),cKt=AK();P8e.exports=function(){var t=cKt();return fKt(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var q8e=K((iXr,B8e)=>{"use strict";var hKt=MS(),dKt=$S(),pKt=wK(),I8e=AK(),vKt=z8e(),R8e=hKt(I8e(),Number);dKt(R8e,{getPolyfill:I8e,implementation:pKt,shim:vKt});B8e.exports=R8e});var nze=K((nXr,ize)=>{"use strict";function O8e(e,t){return xKt(e)||gKt(e,t)||yKt(e,t)||mKt()}function mKt(){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 yKt(e,t){if(e){if(typeof e=="string")return N8e(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 N8e(e,t)}}function N8e(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(kKt).concat(tI(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function Q8e(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 m1(e){"@babel/helpers - typeof";return m1=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},m1(e)}function aze(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 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 +`));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){bze(t,r,i,e,"match")};tc.doesNotMatch=function e(t,r,i){bze(t,r,i,e,"doesNotMatch")};function _ze(){for(var e=arguments.length,t=new Array(e),r=0;r{var JS=1e3,QS=JS*60,eE=QS*60,tE=eE*24,eJt=tE*365.25;Aze.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return tJt(e);if(r==="number"&&isNaN(e)===!1)return t.long?iJt(e):rJt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function tJt(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*eJt;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 rJt(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 iJt(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=Mze.exports=DK.debug=DK.default=DK;_f.coerce=lJt;_f.disable=oJt;_f.enable=aJt;_f.enabled=sJt;_f.humanize=Tze();_f.names=[];_f.skips=[];_f.formatters={};var CK;function nJt(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=kze.exports=Sze();vd.log=cJt;vd.formatArgs=fJt;vd.save=hJt;vd.load=Eze;vd.useColors=uJt;vd.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:dJt();vd.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function uJt(){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 fJt(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 cJt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function hJt(e){try{e==null?vd.storage.removeItem("debug"):vd.storage.debug=e}catch(t){}}function Eze(){var e;try{e=vd.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}vd.enable(Eze());function dJt(){try{return window.localStorage}catch(e){}}});var Bze=K((sXr,Rze)=>{var v4=jz(),E2=Cze()("stream-parser");Rze.exports=vJt;var Fze=-1,fI=0,pJt=1,Lze=2;function vJt(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=mJt,e._skipBytes=yJt,t&&(e._passthrough=gJt),t?e._transform=bJt:e._write=xJt}function rE(e){E2("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=Fze,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function mJt(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 yJt(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=pJt}function gJt(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=Lze}function xJt(e,t,r){this._parserInit||rE(this),E2("write(%o bytes)",e.length),typeof t=="function"&&(r=t),zze(this,e,null,r)}function bJt(e,t,r){this._parserInit||rE(this),E2("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),zze(this,e,t,r)}function Pze(e,t,r,i){return e._parserBytesLeft<=0?i(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return Dze(e,t,r,i)}:function(){var n=t.slice(0,e._parserBytesLeft);return Dze(e,n,r,function(a){if(a)return i(a);if(t.length>n.length)return function(){return Pze(e,t.slice(n.length),r,i)}})}}function Dze(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===Lze&&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=Fze,e._parserBuffers.splice(0),n){var a=[];t&&a.push(t),r&&a.push(r);var o=n.length>a.length;o&&a.push(Ize(i));var s=n.apply(e,a);if(!o||i===s)return i}}else return i}var zze=Ize(Pze);function Ize(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var qze=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 Oze=E9e().Transform,_Jt=Bze(),k2=qze();function iE(){Oze.call(this,{readableObjectMode:!0})}iE.prototype=Object.create(Oze.prototype);iE.prototype.constructor=iE;_Jt(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(SJt(e,t),!!t.sizes.length){var r=EJt(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 kJt(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 Uze=K((hXr,Vze)=>{"use strict";var CJt=Vu().str2arr,DJt=Vu().sliceEq,FJt=Vu().readUInt32BE,vI=Nze(),LJt=pI(),PJt=CJt("ftyp");Vze.exports=function(e){if(DJt(e,4,PJt)){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=FJt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),f=LJt.get_orientation(u);f>0&&(s.orientation=f)}return s}}}}}}});var Wze=K((dXr,jze)=>{"use strict";var zJt=Vu().str2arr,IJt=Vu().sliceEq,Gze=Vu().readInt16LE,Hze=Vu().readInt32LE,RJt=Vu().readUInt32LE,BJt=zJt("BM");jze.exports=function(e){if(!(e.length<26)&&IJt(e,0,BJt)){var t,r,i=RJt(e,14);if(i===12)r=Gze(e,18),t=Gze(e,20);else if(i>12)r=Hze(e,18),t=Hze(e,22);else return;return{width:r,height:Math.abs(t),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var Kze=K((pXr,Zze)=>{"use strict";var Xze=Vu().str2arr,$ze=Vu().sliceEq,Yze=Vu().readUInt16LE,qJt=Xze("GIF87a"),OJt=Xze("GIF89a");Zze.exports=function(e){if(!(e.length<10)&&!(!$ze(e,0,qJt)&&!$ze(e,0,OJt)))return{width:Yze(e,6),height:Yze(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var Qze=K((vXr,Jze)=>{"use strict";var zK=Vu().readUInt16LE,NJt=0,VJt=1,IK=16;Jze.exports=function(e){var t=zK(e,0),r=zK(e,2),i=zK(e,4);if(!(t!==NJt||r!==VJt||!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 tIe=K((mXr,eIe)=>{"use strict";var RK=Vu().readUInt16BE,UJt=Vu().str2arr,GJt=Vu().sliceEq,HJt=pI(),jJt=UJt("Exif\0\0");eIe.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&&GJt(e,t,jJt)&&(n=HJt.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 oIe=K((yXr,aIe)=>{"use strict";var nIe=Vu().str2arr,rIe=Vu().sliceEq,iIe=Vu().readUInt32BE,WJt=nIe(`\x89PNG\r  -`),GJt=iIe("IHDR");nIe.exports=function(e){if(!(e.length<24)&&tIe(e,0,UJt)&&tIe(e,12,GJt))return{width:rIe(e,16),height:rIe(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var lIe=K((pXr,sIe)=>{"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{"use strict";var YJt=Vu().str2arr,XJt=Vu().sliceEq,sIe=Vu().readUInt32BE,ZJt=YJt("8BPS\0");lIe.exports=function(e){if(!(e.length<22)&&XJt(e,0,ZJt))return{width:sIe(e,18),height:sIe(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:._-]*",cIe="[^\"'=<>`\\x00-\\x20]+",KJt="'[^']*'",JJt='"[^"]*"',QJt="(?:"+cIe+"|"+KJt+"|"+JJt+")",eQt="(?:\\s+"+BK+"(?:\\s*=\\s*"+QJt+")?)",tQt="<[?][\\s\\S]*?[?]>",rQt="",iQt="",nQt="]*(?:\\[[\\s\\S]*?\\][^>]*)?>",aQt=new RegExp("^(?:\\s+|"+tQt+"|"+rQt+"|"+iQt+"|"+nQt+")*"),oQt=new RegExp("^<("+BK+")("+eQt+"*)\\s*/?>"),fIe=new RegExp("\\s+("+BK+")(?:\\s*=\\s*(?:("+cIe+`)|'([^']*)'|"([^"]*)"))?`,"g"),sQt=/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(sQt);return r===null?"px":r[0]}qK.parse=function(e){var t=e.match(aQt)[0],r=oQt.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(fIe.lastIndex=0;(a=fIe.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 dIe=K((bXr,hIe)=>{"use strict";var lQt=OK().parse,uQt=OK().MAX_DATA_LENGTH;hIe.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+uQt),n=t;n{"use strict";var mIe=Vu().str2arr,pIe=Vu().sliceEq,fQt=Vu().readUInt16LE,cQt=Vu().readUInt16BE,hQt=Vu().readUInt32LE,dQt=Vu().readUInt32BE,pQt=mIe("II*\0"),vQt=mIe("MM\0*");function mI(e,t,r){return r?cQt(e,t):fQt(e,t)}function NK(e,t,r){return r?dQt(e,t):hQt(e,t)}function vIe(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)}yIe.exports=function(e){if(!(e.length<8)&&!(!pIe(e,0,pQt)&&!pIe(e,0,vQt))){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 _Ie=Vu().str2arr,xIe=Vu().sliceEq,bIe=Vu().readUInt16LE,VK=Vu().readUInt32LE,mQt=pI(),yQt=_Ie("RIFF"),gQt=_Ie("WEBP");function xQt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:bIe(e,t+6)&16383,height:bIe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function bQt(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 _Qt(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"}}wIe.exports=function(e){if(!(e.length<16)&&!(!xIe(e,0,yQt)||!xIe(e,8,gQt))){var t=12,r=null,i=0,n=VK(e,4)+8;if(!(n>e.length)){for(;t+8=10?r=r||xQt(e,t+8):a==="VP8L"&&o>=5?r=r||bQt(e,t+8):a==="VP8X"&&o>=10?r=r||_Qt(e,t+8):a==="EXIF"&&(i=mQt.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((AXr,TIe)=>{"use strict";TIe.exports={avif:Uze(),bmp:Wze(),gif:Kze(),ico:Qze(),jpeg:tIe(),png:oIe(),psd:uIe(),svg:dIe(),tiff:gIe(),webp:AIe()}});var SIe=K((TXr,GK)=>{"use strict";var UK=MIe();function wQt(e){for(var t=Object.keys(UK),r=0;r0&&i.height>0?i:null}return null}GK.exports=function(t){return wQt(t)};GK.exports.parsers=UK});var kIe=K(EIe=>{"use strict";var AQt=SIe(),TQt=my().IMAGE_URL_PREFIX,MQt=r_().Buffer;EIe.getImageSize=function(e){var t=e.replace(TQt,""),r=new MQt(t,"base64");return AQt(r)}});var FIe=K((SXr,DIe)=>{"use strict";var CIe=St(),SQt=(WA(),or(gS)),EQt=Hs(),yI=Cs(),kQt=St().maxRowLength,CQt=kIe().getImageSize;DIe.exports=function(t,r){var i,n;if(r._hasZ)i=r.z.length,n=kQt(r.z);else if(r._hasSource){var a=CQt(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 PQt=No(),y_=St(),LIe=y_.strTranslate,zQt=(Rp(),or(Ip)),IQt=(WA(),or(gS)),RQt=EY(),BQt=(f8(),or(u8)).STYLE;PIe.exports=function(t,r,i,n){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&RQt();y_.makeTraceGroups(n,i,"im").each(function(l){var u=PQt.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:"+LIe(W+"px",X+"px")+"scale("+(B?-1:1)+","+(O?-1:1)+")"+LIe(-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 RIe=K((kXr,IIe)=>{"use strict";var qQt=No();IIe.exports=function(t){qQt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var NIe=K((CXr,OIe)=>{"use strict";var BIe=Gf(),qIe=St(),gI=qIe.isArrayOrTypedArray,OQt=(WA(),or(gS));OIe.exports=function(t,r,i){var n=t.cd[0],a=n.trace,o=t.xa,s=t.ya;if(!(BIe.inbox(r-n.x0,r-(n.x0+n.w*a.dx),0)>0||BIe.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=OQt.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[qIe.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 UIe=K((DXr,VIe)=>{"use strict";VIe.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 HIe=K((FXr,GIe)=>{"use strict";GIe.exports={attributes:(qX(),or(BX)).default,supplyDefaults:CDe(),calc:FIe(),plot:zIe(),style:RIe(),hoverPoints:NIe(),eventData:UIe(),moduleType:"trace",name:"image",basePlotModule:gc(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var WIe=K((LXr,jIe)=>{"use strict";jIe.exports=HIe()});var g_=K((PXr,YIe)=>{"use strict";var xI=Tu(),NQt=kf().attributes,VQt=lf(),UQt=Gc(),{hovertemplateAttrs:GQt,texttemplateAttrs:HQt,templatefallbackAttrs:$Ie}=gu(),C2=Os().extendFlat,jQt=gh().pattern,bI=VQt({editType:"plot",arrayOk:!0,colorEditType:"plot"});YIe.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:UQt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:jQt,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:GQt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:$Ie(),texttemplate:HQt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:$Ie({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:NQt({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((zXr,KIe)=>{"use strict";var WQt=Hs(),aE=St(),$Qt=g_(),YQt=kf().defaults,XQt=cp().handleText,ZQt=St().coercePattern;function XIe(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 ZIe(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 KQt(e,t,r,i){function n(w,_){return aE.coerce(e,t,$Qt,w,_)}var a=n("labels"),o=n("values"),s=XIe(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,ZIe(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");XQt(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");YQt(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")}KIe.exports={handleLabelsAndValues:XIe,handleMarkerDefaults:ZIe,supplyDefaults:KQt}});var _I=K((IXr,JIe)=>{"use strict";JIe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var eRe=K((RXr,QIe)=>{"use strict";var JQt=St(),QQt=_I();QIe.exports=function(t,r){function i(n,a){return JQt.coerce(t,r,QQt,n,a)}i("hiddenlabels"),i("piecolorway",r.colorway),i("extendpiecolors")}});var x4=K((BXr,iRe)=>{"use strict";var eer=Hs(),g4=wo(),ter={};function rer(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 tRe(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 ier(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=rRe(a,ter));for(var s=0,l=0;l{"use strict";var ner=ud().appendArrayMultiPointValues;nRe.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]),ner(i,r,t.pts),r.type==="funnelarea"&&(delete i.v,delete i.i),i}});var MI=K((OXr,SRe)=>{"use strict";var qd=No(),aer=yf(),wI=Gf(),cRe=wo(),Fy=Is(),n0=St(),oer=n0.strScale,oRe=n0.strTranslate,HK=Du(),hRe=E0(),ser=hRe.recordMinTextSize,ler=hRe.clearMinTextSize,dRe=(i2(),or(r2)).TEXTPAD,fl=$g(),AI=aRe(),sRe=St().isValidTextValue;function uer(e,t){var r=e._context.staticPlot,i=e._fullLayout,n=i._size;ler("pie",i),mRe(t,e),ARe(t,n);var a=n0.makeTraceGroups(i._pielayer,t,"trace").each(function(o){var s=qd.select(this),l=o[0],u=l.trace;ger(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(pRe,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")}TRe(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"?cer(u,b,i.font):vRe(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=fRe(B,b);else if(O=yRe(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=fRe(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),MRe(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,ser(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=per(l):x=_Re(l,n),b.attr("transform",oRe(x.x,x.y)+oer(Math.min(1,x.scale))+oRe(x.tx,x.ty))}),h&&mer(c,u),fer(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;aer.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 fer(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(cRe.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function pRe(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 cer(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 vRe(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||cRe.contrast(t.color),family:n,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:f,shadow:c}}function mRe(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=lRe(e,i,o,l,u),y.textPosAngle=(t.startangle+t.stopangle)/2,v.push(y)),(p||h)&&(y=uRe(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 her(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 per(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 _Re(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=wRe(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=ver(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 ver(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 wRe(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 mer(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=der(u,t))}function TI(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"),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);sRe(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);(sRe(_)||_==="")&&(w.text=_),t.text=n0.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}SRe.exports={plot:uer,formatSliceLabel:TRe,transformInsideText:yRe,determineInsideTextFont:vRe,positionTitleOutside:_Re,prerenderTitles:mRe,layoutAreas:ARe,attachFxHandlers:pRe,computeTransform:MRe}});var CRe=K((NXr,kRe)=>{"use strict";var ERe=No(),xer=Vw(),ber=E0().resizeText;kRe.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");ber(t,r,"pie"),r.each(function(i){var n=i[0],a=n.trace,o=ERe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){ERe.select(this).call(xer,s,a,t)})})}});var FRe=K(b4=>{"use strict";var DRe=yf();b4.name="pie";b4.plot=function(e,t,r,i){DRe.plotBasePlot(b4.name,e,t,r,i)};b4.clean=function(e,t,r,i){DRe.cleanBasePlot(b4.name,e,t,r,i)}});var PRe=K((UXr,LRe)=>{"use strict";LRe.exports={attributes:g_(),supplyDefaults:x_().supplyDefaults,supplyLayoutDefaults:eRe(),layoutAttributes:_I(),calc:x4().calc,crossTraceCalc:x4().crossTraceCalc,plot:MI().plot,style:CRe(),styleOne:Vw(),moduleType:"trace",name:"pie",basePlotModule:FRe(),categories:["pie-like","pie","showLegend"],meta:{}}});var IRe=K((GXr,zRe)=>{"use strict";zRe.exports=PRe()});var BRe=K(_4=>{"use strict";var RRe=yf();_4.name="sunburst";_4.plot=function(e,t,r,i){RRe.plotBasePlot(_4.name,e,t,r,i)};_4.clean=function(e,t,r,i){RRe.cleanBasePlot(_4.name,e,t,r,i)}});var WK={};Fl(WK,{CLICK_TRANSITION_EASING:()=>wer,CLICK_TRANSITION_TIME:()=>_er,eventDataKeys:()=>Aer});var _er,wer,Aer,$K=ps(()=>{"use strict";_er=750,wer="linear",Aer=["currentPath","root","entry","percentRoot","percentEntry","percentParent"]});var sE=K((jXr,NRe)=>{"use strict";var Ter=Tu(),{hovertemplateAttrs:Mer,texttemplateAttrs:Ser,templatefallbackAttrs:qRe}=gu(),Eer=Wu(),ker=kf().attributes,Ly=g_(),ORe=($K(),or(WK)),oE=Os().extendFlat,Cer=gh().pattern;NRe.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:Cer,editType:"calc"},Eer("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:Ser({editType:"plot"},{keys:ORe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:qRe({editType:"plot"}),hovertext:Ly.hovertext,hoverinfo:oE({},Ter.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:Mer({},{keys:ORe.eventDataKeys}),hovertemplatefallback:qRe(),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:ker({name:"sunburst",trace:!0,editType:"calc"})}});var YK=K((WXr,VRe)=>{"use strict";VRe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var jRe=K(($Xr,HRe)=>{"use strict";var URe=St(),Der=sE(),Fer=kf().defaults,Ler=cp().handleText,Per=x_().handleMarkerDefaults,GRe=gf(),zer=GRe.hasColorscale,Ier=GRe.handleDefaults;HRe.exports=function(t,r,i,n){function a(h,d){return URe.coerce(t,r,Der,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"),Per(t,r,n,a);var u=r._hasColorscale=zer(t,"marker","colors")||(t.marker||{}).coloraxis;u&&Ier(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",URe.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c="auto";Ler(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"),Fer(r,n,a),r._length=null}});var $Re=K((YXr,WRe)=>{"use strict";var Rer=St(),Ber=YK();WRe.exports=function(t,r){function i(n,a){return Rer.coerce(t,r,Ber,n,a)}i("sunburstcolorway",r.colorway),i("extendsunburstcolors")}});var lE=K((SI,YRe)=>{(function(e,t){typeof SI=="object"&&typeof YRe!="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 XRe=lE(),qer=Hs(),w4=St(),Oer=gf().makeColorScaleFuncFromTrace,Ner=x4().makePullColorFn,Ver=x4().generateExtendedColors,Uer=gf().calc,Ger=(Il(),or(Bl)).ALMOST_EQUAL,Her={},jer={},Wer={};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||qer(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 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;v{});function Am(){}function JRe(){return this.rgb().formatHex()}function etr(){return this.rgb().formatHex8()}function ttr(){return aBe(this).formatHsl()}function QRe(){return this.rgb().formatRgb()}function L2(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=$er.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?eBe(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=Yer.exec(e))?new Mh(t[1],t[2],t[3],1):(t=Xer.exec(e))?new Mh(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Zer.exec(e))?kI(t[1],t[2],t[3],t[4]):(t=Ker.exec(e))?kI(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Jer.exec(e))?iBe(t[1],t[2]/100,t[3]/100,1):(t=Qer.exec(e))?iBe(t[1],t[2]/100,t[3]/100,t[4]):KRe.hasOwnProperty(e)?eBe(KRe[e]):e==="transparent"?new Mh(NaN,NaN,NaN,0):null}function eBe(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 tBe(){return`#${b_(this.r)}${b_(this.g)}${b_(this.b)}`}function rtr(){return`#${b_(this.r)}${b_(this.g)}${b_(this.b)}${b_((isNaN(this.opacity)?1:this.opacity)*255)}`}function rBe(){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 iBe(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new g1(e,t,r,i)}function aBe(e){if(e instanceof g1)return new g1(e.h,e.s,e.l,e.opacity);if(e instanceof Am||(e=L2(e)),!e)return new g1;if(e instanceof g1)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 g1(o,s,l,e.opacity)}function dE(e,t,r,i){return arguments.length===1?aBe(e):new g1(e,t,r,i==null?1:i)}function g1(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function nBe(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,$er,Yer,Xer,Zer,Ker,Jer,Qer,KRe,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*",$er=/^#([0-9a-f]{3,8})$/,Yer=new RegExp(`^rgb\\(${A4},${A4},${A4}\\)$`),Xer=new RegExp(`^rgb\\(${wm},${wm},${wm}\\)$`),Zer=new RegExp(`^rgba\\(${A4},${A4},${A4},${cE}\\)$`),Ker=new RegExp(`^rgba\\(${wm},${wm},${wm},${cE}\\)$`),Jer=new RegExp(`^hsl\\(${cE},${wm},${wm}\\)$`),Qer=new RegExp(`^hsla\\(${cE},${wm},${wm},${cE}\\)$`),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};Py(Am,L2,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:JRe,formatHex:JRe,formatHex8:etr,formatHsl:ttr,formatRgb:QRe,toString:QRe});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:tBe,formatHex:tBe,formatHex8:rtr,formatRgb:rBe,toString:rBe}));Py(g1,dE,D2(Am,{brighter(e){return e=e==null?w_:Math.pow(w_,e),new g1(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?F2:Math.pow(F2,e),new g1(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 g1(nBe(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("}${nBe(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 cBe(e){if(e instanceof Tm)return new Tm(e.l,e.a,e.b,e.opacity);if(e instanceof zy)return hBe(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)/sBe),a,o;return t===r&&r===i?a=o=n:(a=KK((.4360747*t+.3850649*r+.1430804*i)/oBe),o=KK((.0139322*t+.0971045*r+.7141733*i)/lBe)),new Tm(116*n-16,500*(a-n),200*(n-o),e.opacity)}function S4(e,t,r,i){return arguments.length===1?cBe(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>itr?Math.pow(e,1/3):e/fBe+uBe}function JK(e){return e>M4?e*e*e:fBe*(e-uBe)}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 ntr(e){if(e instanceof zy)return new zy(e.h,e.c,e.l,e.opacity);if(e instanceof Tm||(e=cBe(e)),e.a===0&&e.b===0)return new zy(NaN,0{EI();FI();ZK();zI=18,oBe=.96422,sBe=1,lBe=.82521,uBe=4/29,M4=6/29,fBe=3*M4*M4,itr=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=oBe*JK(t),e=sBe*JK(e),r=lBe*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 hBe(this).rgb()}}))});function atr(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=(mBe*i+pBe*t-vBe*r)/(mBe+pBe-vBe),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?atr(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 yBe,tJ,rJ,II,vE,pBe,vBe,mBe,gBe=ps(()=>{EI();FI();ZK();yBe=-.14861,tJ=1.78277,rJ=-.29227,II=-.90649,vE=1.97294,pBe=vE*II,vBe=vE*tJ,mBe=tJ*rJ-II*yBe;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*(yBe*i+tJ*n)),255*(t+r*(rJ*i+II*n)),255*(t+r*(vE*i)),this.opacity)}}))});var T_=ps(()=>{FI();dBe();gBe()});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 xBe(e,t){return function(r){return e+r*t}}function otr(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?xBe(e,r>180||r<-180?r-360*Math.round(r/360):r):k4(isNaN(e)?t:e)}function bBe(e){return(e=+e)==1?bc:function(t,r){return r-t?otr(t,r,e):k4(isNaN(t)?r:t)}}function bc(e,t){var r=t-e;return r?xBe(e,r):k4(isNaN(e)?t:e)}var M_=ps(()=>{aJ()});function _Be(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=bBe(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);wBe=_Be(RI),ABe=_Be(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 TBe(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 str(e){return function(){return e}}function ltr(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 MBe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var SBe=ps(()=>{});function EBe(e,t){var r=P2(+e,+t);return function(i){var n=r(i);return n-360*Math.floor(n/360)}}var kBe=ps(()=>{M_()});function CBe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var DBe=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{FBe=180/Math.PI,HI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function PBe(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 zBe(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,IBe=ps(()=>{LBe()});function RBe(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();IBe();BBe=RBe(PBe,"px, ","px)","deg)"),qBe=RBe(zBe,", ",")",")")});function NBe(e){return((e=Math.exp(e))+1/e)/2}function ftr(e){return((e=Math.exp(e))-1/e)/2}function ctr(e){return((e=Math.exp(2*e))-1)/(e+1)}var utr,VBe,UBe=ps(()=>{utr=1e-12;VBe=(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_();HBe=GBe(P2),jBe=GBe(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 $Be=ps(()=>{T_();M_()});function YBe(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 XBe,ZBe,KBe=ps(()=>{T_();M_();XBe=YBe(P2),ZBe=YBe(bc)});function JBe(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 QBe,e7e,t7e=ps(()=>{T_();M_();QBe=JBe(P2),e7e=JBe(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 i7e(e,t){for(var r=new Array(t),i=0;i{});var S_={};Fl(S_,{interpolate:()=>z2,interpolateArray:()=>TBe,interpolateBasis:()=>RI,interpolateBasisClosed:()=>qI,interpolateCubehelix:()=>QBe,interpolateCubehelixLong:()=>e7e,interpolateDate:()=>VI,interpolateDiscrete:()=>MBe,interpolateHcl:()=>XBe,interpolateHclLong:()=>ZBe,interpolateHsl:()=>HBe,interpolateHslLong:()=>jBe,interpolateHue:()=>EBe,interpolateLab:()=>vJ,interpolateNumber:()=>Od,interpolateNumberArray:()=>C4,interpolateObject:()=>UI,interpolateRgb:()=>mE,interpolateRgbBasis:()=>wBe,interpolateRgbBasisClosed:()=>ABe,interpolateRound:()=>CBe,interpolateString:()=>GI,interpolateTransformCss:()=>BBe,interpolateTransformSvg:()=>qBe,interpolateZoom:()=>VBe,piecewise:()=>mJ,quantize:()=>i7e});var E_=ps(()=>{yE();lJ();BI();nJ();uJ();SBe();kBe();gE();NI();fJ();DBe();dJ();OBe();UBe();oJ();WBe();$Be();KBe();t7e();r7e();n7e()});var WI=K((qKr,a7e)=>{"use strict";var htr=Is(),dtr=wo();a7e.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),htr.pointStyle(t,i,n,r)}else dtr.fill(t,l)}});var yJ=K((OKr,f7e)=>{"use strict";var o7e=No(),s7e=wo(),l7e=St(),ptr=E0().resizeText,vtr=WI();function mtr(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");ptr(e,t,"sunburst"),t.each(function(r){var i=o7e.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){o7e.select(this).call(u7e,o,a,e)})})}function u7e(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=l7e.castOption(r,o,"marker.line.color")||s7e.defaultLine,l=l7e.castOption(r,o,"marker.line.width")||0;e.call(vtr,t,r,i).style("stroke-width",l).call(s7e.stroke,s).style("opacity",a?r.leaf.opacity:null)}f7e.exports={style:mtr,styleOne:u7e}});var Iy=K(Gl=>{"use strict";var k_=St(),ytr=wo(),gtr=Yv(),c7e=$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 h7e(e){return e.data.data.pid}Gl.getParent=function(e,t){return Gl.findEntryWithLevel(e,h7e(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=c7e.formatPieValue;Gl.formatPercent=function(e,t){var r=k_.formatPercent(e,0);return r==="0%"&&(r=c7e.formatPiePercent(e,t)),r}});var _E=K((VKr,v7e)=>{"use strict";var D4=No(),d7e=Ho(),_tr=ud().appendArrayPointValue,xE=Gf(),p7e=St(),wtr=Aw(),hh=Iy(),Atr=$g(),Ttr=Atr.formatPieValue;v7e.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 p7e.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=Ttr(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,p7e.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=wtr.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){d7e.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()),d7e.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(),Mtr=lE(),x1=(E_(),or(S_)).interpolate,m7e=Is(),D0=St(),Str=Du(),b7e=E0(),y7e=b7e.recordMinTextSize,Etr=b7e.clearMinTextSize,_7e=MI(),ktr=$g().getRotationAngle,Ctr=_7e.computeTransform,Dtr=_7e.transformInsideText,Ftr=yJ().styleOne,Ltr=tv().resizeText,Ptr=_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(Etr("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){g7e(e,c,this,r)})})}else o.each(function(c){g7e(e,c,this,r)}),n.uniformtext.mode&&Ltr(e,n._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function g7e(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=ztr(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=ktr(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 _+x7e(H)[0]*(H.transform.rCenter||0)+(H.transform.x||0)},I=function(H){return b+x7e(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=Itr(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(Ptr,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(Ftr,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(m7e.font,J).call(Str.convertToTspans,e);var j=m7e.bBox(U.node());H.transform=Dtr(j,H,u),H.transform.targetX=P(H),H.transform.targetY=I(H);var $=function(ie,re){var de=ie.transform;return Ctr(de,re),de.fontSize=J.size,y7e(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 x1(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=x1(Q.transform.textPosAngle,H.transform.textPosAngle),j=x1(Q.rpx1,H.rpx1),$=x1(Q.x0,H.x0),ie=x1(Q.x1,H.x1),re=x1(Q.transform.scale,N.scale),de=x1(Q.transform.rotate,N.rotate),me=N.rCenter===0?3:Q.transform.rCenter===0?1/3:1,ze=x1(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 y7e(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,$=x1(Q.x0,Q.x1);N.x0=$(J/j),N.x1=$(J/j)}else N.x0=N.x1=0;return N}}function ztr(e){return Mtr.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 Itr(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 x7e(e){return Rtr(e.rpx1,e.transform.textPosAngle)}function Rtr(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var A7e=K((GKr,w7e)=>{"use strict";w7e.exports={moduleType:"trace",name:"sunburst",basePlotModule:BRe(),categories:[],animatable:!0,attributes:sE(),layoutAttributes:YK(),supplyDefaults:jRe(),supplyLayoutDefaults:$Re(),calc:fE().calc,crossTraceCalc:fE().crossTraceCalc,plot:YI().plot,style:yJ().style,colorbar:e0(),meta:{}}});var M7e=K((HKr,T7e)=>{"use strict";T7e.exports=A7e()});var E7e=K(F4=>{"use strict";var S7e=yf();F4.name="treemap";F4.plot=function(e,t,r,i){S7e.plotBasePlot(F4.name,e,t,r,i)};F4.clean=function(e,t,r,i){S7e.cleanBasePlot(F4.name,e,t,r,i)}});var C_={};Fl(C_,{CLICK_TRANSITION_EASING:()=>qtr,CLICK_TRANSITION_TIME:()=>Btr,eventDataKeys:()=>Otr,gapWithPathbar:()=>Ntr});var Btr,qtr,Otr,Ntr,D_=ps(()=>{"use strict";Btr=750,qtr="poly",Otr=["currentPath","root","entry","percentRoot","percentEntry","percentParent"],Ntr=1});var XI=K((WKr,D7e)=>{"use strict";var{hovertemplateAttrs:Vtr,texttemplateAttrs:Utr,templatefallbackAttrs:k7e}=gu(),Gtr=Wu(),Htr=kf().attributes,F_=g_(),mv=sE(),C7e=(D_(),or(C_)),xJ=Os().extendFlat,jtr=gh().pattern;D7e.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:jtr,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:mv.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},Gtr("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:Utr({editType:"plot"},{keys:C7e.eventDataKeys.concat(["label","value"])}),texttemplatefallback:k7e({editType:"plot"}),hovertext:F_.hovertext,hoverinfo:mv.hoverinfo,hovertemplate:Vtr({},{keys:C7e.eventDataKeys}),hovertemplatefallback:k7e(),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:Htr({name:"treemap",trace:!0,editType:"calc"})}});var bJ=K(($Kr,F7e)=>{"use strict";F7e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var I7e=K((YKr,z7e)=>{"use strict";var L7e=St(),Wtr=XI(),$tr=wo(),Ytr=kf().defaults,Xtr=cp().handleText,Ztr=(i2(),or(r2)).TEXTPAD,Ktr=x_().handleMarkerDefaults,P7e=gf(),Jtr=P7e.hasColorscale,Qtr=P7e.handleDefaults;z7e.exports=function(t,r,i,n){function a(y,m){return L7e.coerce(t,r,Wtr,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",L7e.isArrayOrTypedArray(f)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),h="auto";Xtr(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;Ktr(t,r,n,a);var p=r._hasColorscale=Jtr(t,"marker","colors")||(t.marker||{}).coloraxis;p?Qtr(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:$tr.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"),Ytr(r,n,a),r._length=null}});var B7e=K((XKr,R7e)=>{"use strict";var err=St(),trr=bJ();R7e.exports=function(t,r){function i(n,a){return err.coerce(t,r,trr,n,a)}i("treemapcolorway",r.colorway),i("extendtreemapcolors")}});var wJ=K(_J=>{"use strict";var q7e=fE();_J.calc=function(e,t){return q7e.calc(e,t)};_J.crossTraceCalc=function(e){return q7e._runCrossTraceCalc("treemap",e)}});var AJ=K((KKr,O7e)=>{"use strict";O7e.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(),rrr=AJ();N7e.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(irr(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)&&rrr(h,r,{swapXY:o,flipX:n,flipY:a}),h};function irr(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((QKr,H7e)=>{"use strict";var V7e=No(),P4=wo(),U7e=St(),MJ=Iy(),nrr=E0().resizeText,arr=WI();function orr(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");nrr(e,t,"treemap"),t.each(function(r){var i=V7e.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){V7e.select(this).call(G7e,o,a,e,{hovered:!1})})})}function G7e(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=U7e.castOption(r,s,"marker.line.color")||P4.defaultLine,u=U7e.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 j7e=No(),KI=St(),W7e=Is(),srr=Du(),lrr=TJ(),$7e=ZI().styleOne,SJ=(D_(),or(C_)),z4=Iy(),urr=_E(),EJ=!0;Y7e.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=lrr(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=j7e.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=j7e.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(urr,i,t,r,{styleOne:$7e,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($7e,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(W7e.font,I).call(srr.convertToTspans,t),C.textBB=W7e.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 Q7e=K((tJr,J7e)=>{"use strict";var Z7e=No(),kJ=(E_(),or(S_)).interpolate,I2=Iy(),AE=St(),K7e=(i2(),or(r2)).TEXTPAD,frr=Yb(),crr=frr.toMoveInsideBar,hrr=E0(),CJ=hrr.recordMinTextSize,drr=(D_(),or(C_)),prr=X7e();function L_(e){return I2.isHierarchyRoot(e)?"":I2.getPtId(e)}J7e.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=Z7e.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)-K7e,xe-=(f?ie:ie.r)-K7e,_e>=xe){var at=(_e+xe)/2;_e=at,xe=at}var Ge;ke?(Ge=se-(f?ie:ie.b),Ae{"use strict";var vrr=No(),mrr=Iy(),yrr=E0(),grr=yrr.clearMinTextSize,xrr=tv().resizeText,eqe=Q7e();tqe.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(grr(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&&mrr.hasTransition(i)){n&&(c=n());var d=vrr.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){eqe(t,p,this,i,s)})})}else f.each(function(p){eqe(t,p,this,i,s)}),l.uniformtext.mode&&xrr(t,u.selectAll(".trace"),o);h&&f.exit().remove()}});var oqe=K((iJr,aqe)=>{"use strict";var rqe=No(),JI=St(),iqe=Is(),brr=Du(),_rr=TJ(),nqe=ZI().styleOne,FJ=(D_(),or(C_)),R2=Iy(),wrr=_E(),Arr=YI().formatSliceLabel,LJ=!1;aqe.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=_rr(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=rqe.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=rqe.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(wrr,i,t,r,{styleOne:nqe,eventDataKeys:FJ.eventDataKeys,transitionTime:FJ.CLICK_TRANSITION_TIME,transitionEasing:FJ.CLICK_TRANSITION_EASING}).call(R2.setSliceCursor,t,{isTransitioning:t._transitioning}),W.call(nqe,z,x,t,{hovered:!1}),z.x0===z.x1||z.y0===z.y1?z._text="":B?z._text=E?"":R2.getPtLabel(z)||"":z._text=Arr(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(iqe.font,H).call(brr.convertToTspans,t),z.textBB=iqe.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 lqe=K((nJr,sqe)=>{"use strict";var Trr=DJ(),Mrr=oqe();sqe.exports=function(t,r,i,n){return Trr(t,r,i,n,{type:"treemap",drawDescendants:Mrr})}});var fqe=K((aJr,uqe)=>{"use strict";uqe.exports={moduleType:"trace",name:"treemap",basePlotModule:E7e(),categories:[],animatable:!0,attributes:XI(),layoutAttributes:bJ(),supplyDefaults:I7e(),supplyLayoutDefaults:B7e(),calc:wJ().calc,crossTraceCalc:wJ().crossTraceCalc,plot:lqe(),style:ZI().style,colorbar:e0(),meta:{}}});var hqe=K((oJr,cqe)=>{"use strict";cqe.exports=fqe()});var pqe=K(I4=>{"use strict";var dqe=yf();I4.name="icicle";I4.plot=function(e,t,r,i){dqe.plotBasePlot(I4.name,e,t,r,i)};I4.clean=function(e,t,r,i){dqe.cleanBasePlot(I4.name,e,t,r,i)}});var PJ=K((lJr,yqe)=>{"use strict";var{hovertemplateAttrs:Srr,texttemplateAttrs:Err,templatefallbackAttrs:vqe}=gu(),krr=Wu(),Crr=kf().attributes,TE=g_(),yp=sE(),QI=XI(),mqe=(D_(),or(C_)),Drr=Os().extendFlat,Frr=gh().pattern;yqe.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:Drr({colors:yp.marker.colors,line:yp.marker.line,pattern:Frr,editType:"calc"},krr("marker",{colorAttr:"colors",anim:!1})),leaf:yp.leaf,pathbar:QI.pathbar,text:TE.text,textinfo:yp.textinfo,texttemplate:Err({editType:"plot"},{keys:mqe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:vqe({editType:"plot"}),hovertext:TE.hovertext,hoverinfo:yp.hoverinfo,hovertemplate:Srr({},{keys:mqe.eventDataKeys}),hovertemplatefallback:vqe(),textfont:TE.textfont,insidetextfont:TE.insidetextfont,outsidetextfont:QI.outsidetextfont,textposition:QI.textposition,sort:TE.sort,root:yp.root,domain:Crr({name:"icicle",trace:!0,editType:"calc"})}});var zJ=K((uJr,gqe)=>{"use strict";gqe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var wqe=K((fJr,_qe)=>{"use strict";var xqe=St(),Lrr=PJ(),Prr=wo(),zrr=kf().defaults,Irr=cp().handleText,Rrr=(i2(),or(r2)).TEXTPAD,Brr=x_().handleMarkerDefaults,bqe=gf(),qrr=bqe.hasColorscale,Orr=bqe.handleDefaults;_qe.exports=function(t,r,i,n){function a(d,p){return xqe.coerce(t,r,Lrr,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",xqe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),c="auto";Irr(t,r,n,a,c,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),Brr(t,r,n,a);var h=r._hasColorscale=qrr(t,"marker","colors")||(t.marker||{}).coloraxis;h&&Orr(t,r,n,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:Prr.contrast(n.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*Rrr),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),zrr(r,n,a),r._length=null}});var Tqe=K((cJr,Aqe)=>{"use strict";var Nrr=St(),Vrr=zJ();Aqe.exports=function(t,r){function i(n,a){return Nrr.coerce(t,r,Vrr,n,a)}i("iciclecolorway",r.colorway),i("extendiciclecolors")}});var RJ=K(IJ=>{"use strict";var Mqe=fE();IJ.calc=function(e,t){return Mqe.calc(e,t)};IJ.crossTraceCalc=function(e){return Mqe._runCrossTraceCalc("icicle",e)}});var Eqe=K((dJr,Sqe)=>{"use strict";var Urr=lE(),Grr=AJ();Sqe.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=Urr.partition().padding(i.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||n||a)&&Grr(f,r,{swapXY:o,flipX:n,flipY:a}),f}});var BJ=K((pJr,Lqe)=>{"use strict";var kqe=No(),Cqe=wo(),Dqe=St(),Hrr=E0().resizeText,jrr=WI();function Wrr(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");Hrr(e,t,"icicle"),t.each(function(r){var i=kqe.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){kqe.select(this).call(Fqe,o,a,e)})})}function Fqe(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=Dqe.castOption(r,o,"marker.line.color")||Cqe.defaultLine,l=Dqe.castOption(r,o,"marker.line.width")||0;e.call(jrr,t,r,i).style("stroke-width",l).call(Cqe.stroke,s).style("opacity",a?r.leaf.opacity:null)}Lqe.exports={style:Wrr,styleOne:Fqe}});var Bqe=K((vJr,Rqe)=>{"use strict";var Pqe=No(),eR=St(),zqe=Is(),$rr=Du(),Yrr=Eqe(),Iqe=BJ().styleOne,qJ=(D_(),or(C_)),R4=Iy(),Xrr=_E(),Zrr=YI().formatSliceLabel,OJ=!1;Rqe.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=Yrr(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=Pqe.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=Pqe.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(Xrr,i,t,r,{styleOne:Iqe,eventDataKeys:qJ.eventDataKeys,transitionTime:qJ.CLICK_TRANSITION_TIME,transitionEasing:qJ.CLICK_TRANSITION_EASING}).call(R4.setSliceCursor,t,{isTransitioning:t._transitioning}),B.call(Iqe,L,x,t,{hovered:!1}),L.x0===L.x1||L.y0===L.y1?L._text="":L._text=Zrr(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(zqe.font,X).call($rr.convertToTspans,t),L.textBB=zqe.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 Oqe=K((mJr,qqe)=>{"use strict";var Krr=DJ(),Jrr=Bqe();qqe.exports=function(t,r,i,n){return Krr(t,r,i,n,{type:"icicle",drawDescendants:Jrr})}});var Vqe=K((yJr,Nqe)=>{"use strict";Nqe.exports={moduleType:"trace",name:"icicle",basePlotModule:pqe(),categories:[],animatable:!0,attributes:PJ(),layoutAttributes:zJ(),supplyDefaults:wqe(),supplyLayoutDefaults:Tqe(),calc:RJ().calc,crossTraceCalc:RJ().crossTraceCalc,plot:Oqe(),style:BJ().style,colorbar:e0(),meta:{}}});var Gqe=K((gJr,Uqe)=>{"use strict";Uqe.exports=Vqe()});var jqe=K(B4=>{"use strict";var Hqe=yf();B4.name="funnelarea";B4.plot=function(e,t,r,i){Hqe.plotBasePlot(B4.name,e,t,r,i)};B4.clean=function(e,t,r,i){Hqe.cleanBasePlot(B4.name,e,t,r,i)}});var NJ=K((bJr,$qe)=>{"use strict";var a0=g_(),Qrr=Tu(),eir=kf().attributes,{hovertemplateAttrs:tir,texttemplateAttrs:rir,templatefallbackAttrs:Wqe}=gu(),P_=Os().extendFlat;$qe.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:rir({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:Wqe({editType:"plot"}),hoverinfo:P_({},Qrr.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:tir({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:Wqe(),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:eir({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((_Jr,Yqe)=>{"use strict";var iir=_I().hiddenlabels;Yqe.exports={hiddenlabels:iir,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Kqe=K((wJr,Zqe)=>{"use strict";var Xqe=St(),nir=NJ(),air=kf().defaults,oir=cp().handleText,sir=x_().handleLabelsAndValues,lir=x_().handleMarkerDefaults;Zqe.exports=function(t,r,i,n){function a(v,y){return Xqe.coerce(t,r,nir,v,y)}var o=a("labels"),s=a("values"),l=sir(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,lir(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");oir(t,r,n,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");air(r,n,a);var p=a("title.text");p&&(a("title.position"),Xqe.coerceFont(a,"title.font",n.font)),a("aspectratio"),a("baseratio")}});var Qqe=K((AJr,Jqe)=>{"use strict";var uir=St(),fir=VJ();Jqe.exports=function(t,r){function i(n,a){return uir.coerce(t,r,fir,n,a)}i("hiddenlabels"),i("funnelareacolorway",r.colorway),i("extendfunnelareacolors")}});var UJ=K((TJr,tOe)=>{"use strict";var eOe=x4();function cir(e,t){return eOe.calc(e,t)}function hir(e){eOe.crossTraceCalc(e,{type:"funnelarea"})}tOe.exports={calc:cir,crossTraceCalc:hir}});var oOe=K((MJr,aOe)=>{"use strict";var z_=No(),GJ=Is(),B2=St(),dir=B2.strScale,rOe=B2.strTranslate,iOe=Du(),pir=Yb(),vir=pir.toMoveInsideBar,nOe=E0(),mir=nOe.recordMinTextSize,yir=nOe.clearMinTextSize,gir=$g(),q4=MI(),xir=q4.attachFxHandlers,bir=q4.determineInsideTextFont,_ir=q4.layoutAreas,wir=q4.prerenderTitles,Air=q4.positionTitleOutside,Tir=q4.formatSliceLabel;aOe.exports=function(t,r){var i=t._context.staticPlot,n=t._fullLayout;yir("funnelarea",n),wir(r,t),_ir(r,n._size),B2.makeTraceGroups(n._funnelarealayer,r,"trace").each(function(a){var o=z_.select(this),s=a[0],l=s.trace;Sir(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(xir,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),Tir(t,c,s);var w=gir.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,bir(l,c,n.font));b.text(c.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(GJ.font,M).call(iOe.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=vir(A,g,E,S,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),T.fontSize=M.size,mir(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(iOe.convertToTspans,t);var d=Air(s,n._size);c.attr("transform",rOe(d.x,d.y)+dir(Math.min(1,d.scale))+rOe(d.tx,d.ty))})})})};function HJ(e,t){var r=t[0]-e[0],i=t[1]-e[1];return"l"+r+","+i}function Mir(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function Sir(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=Mir(v.TR,v.BR),A=v.TL,g=v.TR}}});var uOe=K((SJr,lOe)=>{"use strict";var sOe=No(),Eir=Vw(),kir=E0().resizeText;lOe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");kir(t,r,"funnelarea"),r.each(function(i){var n=i[0],a=n.trace,o=sOe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){sOe.select(this).call(Eir,s,a,t)})})}});var cOe=K((EJr,fOe)=>{"use strict";fOe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:jqe(),categories:["pie-like","funnelarea","showLegend"],attributes:NJ(),layoutAttributes:VJ(),supplyDefaults:Kqe(),supplyLayoutDefaults:Qqe(),calc:UJ().calc,crossTraceCalc:UJ().crossTraceCalc,plot:oOe(),style:uOe(),styleOne:Vw(),meta:{}}});var dOe=K((kJr,hOe)=>{"use strict";hOe.exports=cOe()});var Bh=K((CJr,pOe)=>{"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)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; +`;for(ie=0,re=j*q,de=I,ze="",$=0;$0&&(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);pOe.exports=i})()});var Ry=K((DJr,vOe)=>{"use strict";var{normalize:Cir}=wo();function Dir(e){return e?Cir(e):[0,0,0,1]}vOe.exports=Dir});var By=K((FJr,_Oe)=>{"use strict";var xOe=Hs(),tR=gf(),O4=wo(),Fir=Gc().defaultLine,mOe=Yh().isArrayOrTypedArray,WJ=O4.normalize(Fir),bOe=1;function yOe(e,t){return[e[0],e[1],e[2],e[3]*t]}function jJ(e){return xOe(e)||!O4.isChannelArray(e)&&!O4.isValid(e)?WJ:O4.normalize(e)}function gOe(e){return xOe(e)?e:bOe}function Lir(e,t,r){var i=e.color;i&&i._inputArray&&(i=i._inputArray);var n=mOe(i),a=mOe(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?bOe:gOe(p[v])}:f=gOe,n||a)for(var d=0;dIir});var zir,Iir,YJ=ps(()=>{"use strict";zir={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]},Iir=zir});var rR={};Fl(rR,{default:()=>Bir});var Rir,Bir,iR=ps(()=>{"use strict";Rir={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"},Bir=Rir});var AOe=K((LJr,wOe)=>{"use strict";var qir=Ho();function XJ(e,t,r,i){if(!t||!t.visible)return null;for(var n=qir.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 Oir(e){for(var t=0;t{"use strict";var Vir=Bh().gl_line3d,TOe=Bh().gl_scatter3d,Uir=Bh().gl_error3d,Gir=Bh().gl_mesh3d,Hir=Bh().delaunay_triangulate,qy=St(),COe=Ry(),nR=By().formatColor,jir=M6(),ZJ=(YJ(),or($J)).default,Wir=(iR(),or(rR)).default,$ir=Cs(),Yir=ud().appendArrayPointValue,Xir=AOe();function DOe(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=DOe.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 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 SOe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function Jir(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=Gir(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 rnr(e,t){var r=new DOe(e,t.uid);return r.update(t),r}FOe.exports=rnr});var iQ=K((zJr,ROe)=>{"use strict";var Oy=Qf(),inr=lf(),rQ=Wu(),QJ=zf().axisHoverFormat,{hovertemplateAttrs:nnr,texttemplateAttrs:anr,templatefallbackAttrs:POe}=gu(),zOe=Tu(),onr=(YJ(),or($J)).default,snr=(iR(),or(rR)).default,b1=Os().extendFlat,lnr=Ef().overrideAll,IOe=(eb(),or(Qx)).default,unr=Oy.line,I_=Oy.marker,fnr=I_.line,cnr=b1({width:unr.width,dash:{valType:"enumerated",values:IOe(onr),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=ROe.exports=lnr({x:Oy.x,y:Oy.y,z:{valType:"data_array"},text:b1({},Oy.text,{}),texttemplate:anr(),texttemplatefallback:POe({editType:"calc"}),hovertext:b1({},Oy.hovertext,{}),hovertemplate:nnr(),hovertemplatefallback:POe(),xhoverformat:QJ("x"),yhoverformat:QJ("y"),zhoverformat:QJ("z"),mode:b1({},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:cnr,marker:b1({symbol:{valType:"enumerated",values:IOe(snr),dflt:"circle",arrayOk:!0},size:b1({},I_.size,{dflt:8}),sizeref:I_.sizeref,sizemin:I_.sizemin,sizemode:I_.sizemode,opacity:b1({},I_.opacity,{arrayOk:!1}),colorbar:I_.colorbar,line:b1({width:b1({},fnr.width,{arrayOk:!1})},rQ("marker.line"))},rQ("marker")),textposition:b1({},Oy.textposition,{dflt:"top center"}),textfont:inr({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:zOe.opacity,hoverinfo:b1({},zOe.hoverinfo)},"calc","nested");tQ.x.editType=tQ.y.editType=tQ.z.editType="calc+clearAxisTypes"});var OOe=K((IJr,qOe)=>{"use strict";var BOe=Ho(),hnr=St(),nQ=ff(),dnr=Xp(),pnr=e1(),vnr=t1(),mnr=iQ();qOe.exports=function(t,r,i,n){function a(d,p){return hnr.coerce(t,r,mnr,d,p)}var o=ynr(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)&&dnr(t,r,i,n,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),nQ.hasLines(r)&&(a("connectgaps"),pnr(t,r,i,n,a)),nQ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),vnr(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=BOe.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 ynr(e,t,r,i){var n=0,a=r("x"),o=r("y"),s=r("z"),l=BOe.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 VOe=K((RJr,NOe)=>{"use strict";var gnr=fm(),xnr=Zp();NOe.exports=function(t,r){var i=[{x:!1,y:!1,trace:r,t:{}}];return gnr(i,r),xnr(t,r),i}});var GOe=K((BJr,UOe)=>{UOe.exports=bnr;function bnr(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 _nr=GOe();HOe.exports=function(t){return _nr("webgl",t)}});var aQ=K((OJr,$Oe)=>{"use strict";var WOe=wo(),wnr=function(){};$Oe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=wnr);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=WOe.defaults[0],i.style.position="absolute",i.style.left=i.style.top="0px",i.style.width=i.style.height="100%",i.style["background-color"]=WOe.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 ZOe=K((NJr,XOe)=>{"use strict";var R_=Ry(),Anr=St(),Tnr=["xaxis","yaxis","zaxis"];function YOe(){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 Mnr=YOe.prototype;Mnr.merge=function(e,t){for(var r=this,i=0;i<3;++i){var n=t[Tnr[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?Anr.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 Snr(e,t){var r=new YOe;return r.merge(e,t),r}XOe.exports=Snr});var QOe=K((VJr,JOe)=>{"use strict";var Enr=Ry(),knr=["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 Cnr=KOe.prototype;Cnr.merge=function(e){for(var t=0;t<3;++t){var r=e[knr[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=Enr(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function Dnr(e){var t=new KOe;return t.merge(e),t}JOe.exports=Dnr});var rNe=K((UJr,tNe)=>{"use strict";tNe.exports=Inr;var eNe=Cs(),Fnr=St(),Lnr=["xaxis","yaxis","zaxis"],Pnr=[0,0,0];function znr(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){Pnr[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=znr(n)}});var uNe=K((GJr,lNe)=>{"use strict";var aNe=Bh().gl_plot3d,Rnr=aNe.createCamera,iNe=aNe.createScene,Bnr=jOe(),qnr=ML(),sR=Ho(),md=St(),oR=md.preserveDrawingBuffer(),lR=Cs(),_1=Gf(),Onr=Ry(),Nnr=aQ(),Vnr=p$(),Unr=ZOe(),Gnr=QOe(),Hnr=rNe(),jnr=$v().applyAutorangeOptions,ME,aR,oNe=!1;function sNe(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=Unr(t,t[this.id]),this.spikeOptions=Gnr(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=sNe.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=Bnr({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 nNe=!0;F0.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=iNe(t)}catch(i){if(e.staticMode||!nNe||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=iNe(t)}catch(n){oR=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return nNe=!1,r};F0.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=Rnr(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 Nnr(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(){oNe=!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)}},qnr?{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),Hnr(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};_1.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=[];_1.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:_1.castHoverOption(v,y,"bgcolor")||f.color,borderColor:_1.castHoverOption(v,y,"bordercolor"),fontFamily:_1.castHoverOption(v,y,"font.family"),fontSize:_1.castHoverOption(v,y,"font.size"),fontColor:_1.castHoverOption(v,y,"font.color"),nameLength:_1.castHoverOption(v,y,"namelength"),textAlign:_1.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||oNe)?t.emit("plotly_click",A):t.emit("plotly_hover",A),this.oldEventData=A}else _1.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 Wnr(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=jnr(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 Ynr(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 Xnr(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()),Xnr(e.camera)};F0.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,Ynr(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 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)}}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),Znr(a,i,n),Knr(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)};lNe.exports=sNe});var cNe=K((HJr,fNe)=>{"use strict";fNe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var sQ=K((jJr,hNe)=>{"use strict";var Jnr=wo(),Ll=Ph(),oQ=Os().extendFlat,Qnr=Ef().overrideAll;hNe.exports=Qnr({visible:Ll.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:Jnr.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((WJr,dNe)=>{"use strict";var lQ=sQ(),ear=kf().attributes,uQ=Os().extendFlat,tar=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"}}dNe.exports={_arrayAttrRegexps:[tar("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:ear({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 yNe=K(($Jr,mNe)=>{"use strict";var rar=wo(),pNe=St(),iar=cu(),nar=sQ(),aar=JW(),oar=PM(),vNe=["xaxis","yaxis","zaxis"],sar=13600/187;mNe.exports=function(t,r,i){var n,a;function o(u,f){return pNe.coerce(n,a,nar,u,f)}for(var s=0;s{"use strict";var lar=St(),uar=wo(),far=Ho(),car=Jb(),har=yNe(),gNe=cQ(),dar=Zh().getSubplotData,xNe="gl3d";bNe.exports=function(t,r,i){var n=r._basePlotModules.length>1;function a(o){if(!n){var s=lar.validate(t[o],gNe[o]);if(s)return t[o]}}car(t,r,i,{type:xNe,attributes:gNe,handleDefaults:par,fullLayout:r,font:r.font,fullData:i,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function par(e,t,r,i){for(var n=r("bgcolor"),a=uar.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 mar=Ef().overrideAll,yar=wg(),gar=uNe(),xar=Zh().getSubplotData,bar=St(),_ar=(Rp(),or(Ip)),N4="gl3d",hQ="scene";yd.name=N4;yd.attr=hQ;yd.idRoot=hQ;yd.idRegex=yd.attrRegex=bar.counterRegex("scene");yd.attributes=cNe();yd.layoutAttributes=cQ();yd.baseLayoutAttrOverrides=mar({hoverlabel:yar.hoverlabel},"plot","nested");yd.supplyLayoutDefaults=_Ne();yd.plot=function(t){for(var r=t._fullLayout,i=t._fullData,n=r._subplots[N4],a=0;a{"use strict";wNe.exports={plot:LOe(),attributes:iQ(),markerSymbols:(iR(),or(rR)).default,supplyDefaults:OOe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:VOe(),moduleType:"trace",name:"scatter3d",basePlotModule:q2(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var MNe=K((KJr,TNe)=>{"use strict";TNe.exports=ANe()});var EE=K((JJr,kNe)=>{"use strict";var SNe=wo(),war=Wu(),dQ=zf().axisHoverFormat,{hovertemplateAttrs:Aar,templatefallbackAttrs:Tar}=gu(),ENe=Tu(),pQ=Os().extendFlat,Mar=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:SNe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:SNe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var yQ=kNe.exports=Mar(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:Aar(),hovertemplatefallback:Tar(),xhoverformat:dQ("x"),yhoverformat:dQ("y"),zhoverformat:dQ("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},war("",{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({},ENe.hoverinfo),showlegend:pQ({},ENe.showlegend,{dflt:!1})}),"calc","nested");yQ.x.editType=yQ.y.editType=yQ.z.editType="calc+clearAxisTypes"});var xQ=K((QJr,FNe)=>{"use strict";var Sar=Ho(),CNe=St(),Ear=xh(),kar=EE(),gQ=.1;function Car(e,t){for(var r=[],i=32,n=0;n{"use strict";var LNe=T0();PNe.exports=function(t,r){r.surfacecolor?LNe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):LNe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var NNe=K((tQr,ONe)=>{"use strict";var Lar=Bh().gl_surface3d,V4=Bh().ndarray,Par=Bh().ndarray_linear_interpolate.d2,zar=n8(),Iar=a8(),kE=St().isArrayOrTypedArray,Rar=By().parseColorScale,INe=Ry(),Bar=gf().extractOpts;function BNe(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 w1=BNe.prototype;w1.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)};w1.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)};w1.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)};w1.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 qar(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 Oar(e,t){if(e0){r=U4[i];break}return r}function Var(e,t){if(!(e<1||t<1)){for(var r=bQ(e),i=bQ(t),n=1,a=0;auR;)i--,i/=Nar(i),i++,i1?n:1};function Gar(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 Har(e,t,r){return jar(e,t,Gar,r),e}function jar(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";VNe.exports={attributes:EE(),supplyDefaults:xQ().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:zNe(),plot:NNe(),moduleType:"trace",name:"surface",basePlotModule:q2(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var HNe=K((iQr,GNe)=>{"use strict";GNe.exports=UNe()});var G4=K((nQr,WNe)=>{"use strict";var Yar=Wu(),_Q=zf().axisHoverFormat,{hovertemplateAttrs:Xar,templatefallbackAttrs:Zar}=gu(),O2=EE(),jNe=Tu(),N2=Os().extendFlat;WNe.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:Xar({editType:"calc"}),hovertemplatefallback:Zar({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"}},Yar("",{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({},jNe.hoverinfo,{editType:"calc"}),showlegend:N2({},jNe.showlegend,{dflt:!1})})});var cR=K((aQr,YNe)=>{"use strict";var Kar=Wu(),fR=zf().axisHoverFormat,{hovertemplateAttrs:Jar,templatefallbackAttrs:Qar}=gu(),CE=G4(),$Ne=Tu(),wQ=Os().extendFlat,eor=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=YNe.exports=eor(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:Jar(),hovertemplatefallback:Qar(),xhoverformat:fR("x"),yhoverformat:fR("y"),zhoverformat:fR("z"),valuehoverformat:fR("value",1),showlegend:wQ({},$Ne.showlegend,{dflt:!1})},Kar("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:CE.opacity,lightposition:CE.lightposition,lighting:CE.lighting,flatshading:CE.flatshading,contour:CE.contour,hoverinfo:wQ({},$Ne.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((oQr,ZNe)=>{"use strict";var tor=St(),ror=Ho(),ior=cR(),nor=xh();function aor(e,t,r,i){function n(a,o){return tor.coerce(e,t,ior,a,o)}XNe(e,t,r,i,n)}function XNe(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=ror.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)}),nor(e,t,i,n,{prefix:"",cLetter:"c"}),t._length=null}ZNe.exports={supplyDefaults:aor,supplyIsoDefaults:XNe}});var hR=K((sQr,JNe)=>{"use strict";var EQ=St(),oor=T0();function sor(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=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=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 lor=T0(),uor=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=uor(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";eVe.exports=function(t,r,i,n){n=n||t.length;for(var a=new Array(n),o=0;o{"use strict";var cor=Bh().gl_mesh3d,hor=By().parseColorScale,dor=St().isArrayOrTypedArray,por=Ry(),vor=gf().extractOpts,tVe=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 yor(e,t){var r=e.glplot.gl,i=cor({gl:r}),n=new rVe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}nVe.exports={findNearestOnAxis:DE,generateIsoMeshes:iVe,createIsosurfaceTrace:yor}});var oVe=K((cQr,aVe)=>{"use strict";aVe.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 lVe=K((hQr,sVe)=>{"use strict";sVe.exports=oVe()});var FQ=K((dQr,fVe)=>{"use strict";var gor=Wu(),Ic=cR(),xor=EE(),uVe=Tu(),DQ=Os().extendFlat,bor=Ef().overrideAll,vR=fVe.exports=bor(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},gor("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Ic.colorbar,opacity:Ic.opacity,opacityscale:xor.opacityscale,lightposition:Ic.lightposition,lighting:Ic.lighting,flatshading:Ic.flatshading,contour:Ic.contour,hoverinfo:DQ({},uVe.hoverinfo),showlegend:DQ({},uVe.showlegend,{dflt:!1})}),"calc","nested");vR.x.editType=vR.y.editType=vR.z.editType=vR.value.editType="calc+clearAxisTypes"});var hVe=K((pQr,cVe)=>{"use strict";var _or=St(),wor=FQ(),Aor=MQ().supplyIsoDefaults,Tor=xQ().opacityscaleDefaults;cVe.exports=function(t,r,i,n){function a(o,s){return _or.coerce(t,r,wor,o,s)}Aor(t,r,i,n,a),Tor(t,r,n,a)}});var mVe=K((vQr,vVe)=>{"use strict";var Mor=Bh().gl_mesh3d,Sor=By().parseColorScale,Eor=St().isArrayOrTypedArray,kor=Ry(),Cor=gf().extractOpts,dVe=j4(),LQ=pR().findNearestOnAxis,Dor=pR().generateIsoMeshes;function pVe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var PQ=pVe.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 Eor(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=Dor(e);function i(l,u,f,c){return u.map(function(h){return l.d2l(h,0,c)*f})}var n=dVe(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=dVe(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:kor(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=Cor(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=Sor(e),this.mesh.update(o)};PQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function For(e,t){var r=e.glplot.gl,i=Mor({gl:r}),n=new pVe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}vVe.exports=For});var gVe=K((mQr,yVe)=>{"use strict";yVe.exports={attributes:FQ(),supplyDefaults:hVe(),calc:kQ(),colorbar:{min:"cmin",max:"cmax"},plot:mVe(),moduleType:"trace",name:"volume",basePlotModule:q2(),categories:["gl3d","showLegend"],meta:{}}});var bVe=K((yQr,xVe)=>{"use strict";xVe.exports=gVe()});var AVe=K((gQr,wVe)=>{"use strict";var Lor=Ho(),_Ve=St(),Por=xh(),zor=G4();wVe.exports=function(t,r,i,n){function a(f,c){return _Ve.coerce(t,r,zor,f,c)}function o(f){var c=f.map(function(h){var d=a(h);return d&&_Ve.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=Lor.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"),Por(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((xQr,TVe)=>{"use strict";var Ior=T0();TVe.exports=function(t,r){r.intensity&&Ior(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var DVe=K((bQr,CVe)=>{"use strict";var Ror=Bh().gl_mesh3d,Bor=Bh().delaunay_triangulate,qor=Bh().alpha_shape,Oor=Bh().convex_hull,Nor=By().parseColorScale,Vor=St().isArrayOrTypedArray,BQ=Ry(),Uor=gf().extractOpts,SVe=j4();function kVe(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=kVe.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 Vor(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function EVe(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=SVe(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=SVe(IQ(e.i),IQ(e.j),IQ(e.k))}else e.alphahull===0?a=Oor(n):e.alphahull>0?a=qor(e.alphahull,n):a=Gor(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=Uor(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=Nor(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=EVe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=EVe(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 Hor(e,t){var r=e.glplot.gl,i=Ror({gl:r}),n=new kVe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}CVe.exports=Hor});var LVe=K((_Qr,FVe)=>{"use strict";FVe.exports={attributes:G4(),supplyDefaults:AVe(),calc:MVe(),colorbar:{min:"cmin",max:"cmax"},plot:DVe(),moduleType:"trace",name:"mesh3d",basePlotModule:q2(),categories:["gl3d","showLegend"],meta:{}}});var zVe=K((wQr,PVe)=>{"use strict";PVe.exports=LVe()});var NQ=K((AQr,RVe)=>{"use strict";var jor=Wu(),W4=zf().axisHoverFormat,{hovertemplateAttrs:Wor,templatefallbackAttrs:$or}=gu(),Yor=G4(),IVe=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:Wor({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:$or({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({},IVe.showlegend,{dflt:!1})};OQ(mR,jor("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Xor=["opacity","lightposition","lighting"];Xor.forEach(function(e){mR[e]=Yor[e]});mR.hoverinfo=OQ({},IVe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});RVe.exports=mR});var qVe=K((TQr,BVe)=>{"use strict";var Zor=St(),Kor=xh(),Jor=NQ();BVe.exports=function(t,r,i,n){function a(d,p){return Zor.coerce(t,r,Jor,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"),Kor(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 NVe=K((MQr,OVe)=>{"use strict";var Qor=T0();OVe.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 esr=Bh().gl_cone3d,tsr=Bh().gl_cone3d.createConeMesh,rsr=St().simpleMap,isr=By().parseColorScale,nsr=gf().extractOpts,asr=St().isArrayOrTypedArray,VVe=j4();function UVe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var VQ=UVe.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 asr(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var osr={xaxis:0,yaxis:1,zaxis:2},ssr={tip:1,tail:0,cm:.25,center:.5},lsr={tip:1,tail:1,cm:.75,center:.5};function GVe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n={};function a(f,c){var h=r[c],d=i[osr[c]];return rsr(f,function(p){return h.d2l(p)*d})}n.vectors=VVe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),n.positions=VVe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=nsr(t);n.colormap=isr(t),n.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],n.coneOffset=ssr[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=esr(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=lsr[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}VQ.update=function(e){this.data=e;var t=GVe(this.scene,e);this.mesh.update(t)};VQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function usr(e,t){var r=e.glplot.gl,i=GVe(e,t),n=tsr(r,i),a=new UVe(e,t.uid);return a.mesh=n,a.data=t,n._trace=a,e.glplot.add(n),a}HVe.exports=usr});var $Ve=K((EQr,WVe)=>{"use strict";WVe.exports={moduleType:"trace",name:"cone",basePlotModule:q2(),categories:["gl3d","showLegend"],attributes:NQ(),supplyDefaults:qVe(),colorbar:{min:"cmin",max:"cmax"},calc:NVe(),plot:jVe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var XVe=K((kQr,YVe)=>{"use strict";YVe.exports=$Ve()});var GQ=K((CQr,KVe)=>{"use strict";var fsr=Wu(),$4=zf().axisHoverFormat,{hovertemplateAttrs:csr,templatefallbackAttrs:hsr}=gu(),dsr=G4(),ZVe=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:csr({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:hsr({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({},ZVe.showlegend,{dflt:!1})};UQ(yR,fsr("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var psr=["opacity","lightposition","lighting"];psr.forEach(function(e){yR[e]=dsr[e]});yR.hoverinfo=UQ({},ZVe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});KVe.exports=yR});var QVe=K((DQr,JVe)=>{"use strict";var vsr=St(),msr=xh(),ysr=GQ();JVe.exports=function(t,r,i,n){function a(h,d){return vsr.coerce(t,r,ysr,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"),msr(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 sUe=K((FQr,oUe)=>{"use strict";var rUe=Bh().gl_streamtube3d,gsr=rUe.createTubeMesh,xsr=St(),bsr=By().parseColorScale,_sr=gf().extractOpts,eUe=j4(),iUe={xaxis:0,yaxis:1,zaxis:2};function nUe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var jQ=nUe.prototype;jQ.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 tUe(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 aUe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n=t._len,a={};function o(C,k){var D=r[k],F=i[iUe[k]];return xsr.simpleMap(C,function(P){return D.d2l(P)*F})}if(a.vectors=eUe(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=eUe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var c=l[0],h=tUe(s),d=tUe(u),p=new Array(h.length*d.length),v=0,y=0;y{"use strict";lUe.exports={moduleType:"trace",name:"streamtube",basePlotModule:q2(),categories:["gl3d","showLegend"],attributes:GQ(),supplyDefaults:QVe(),colorbar:{min:"cmin",max:"cmax"},calc:hR().calc,plot:sUe(),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 cUe=K((PQr,fUe)=>{"use strict";fUe.exports=uUe()});var Y4=K((zQr,mUe)=>{"use strict";var{hovertemplateAttrs:Asr,texttemplateAttrs:Tsr,templatefallbackAttrs:hUe}=gu(),Msr=sm(),Sm=Qf(),Ssr=Tu(),dUe=Wu(),Esr=gh().dash,B_=Os().extendFlat,ksr=Ef().overrideAll,yv=Sm.marker,pUe=Sm.line,vUe=yv.line;mUe.exports=ksr({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:Tsr({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:hUe({editType:"plot"}),hovertext:B_({},Sm.hovertext,{}),textfont:Sm.textfont,textposition:Sm.textposition,line:{color:pUe.color,width:pUe.width,dash:Esr},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:vUe.width,dash:vUe.dash},dUe("marker.line")),gradient:yv.gradient},dUe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Msr(),selected:Sm.selected,unselected:Sm.unselected,hoverinfo:B_({},Ssr.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Asr(),hovertemplatefallback:hUe()},"calc","nested")});var gUe=K((IQr,yUe)=>{"use strict";var WQ=St(),$Q=ff(),Csr=Xp(),Dsr=e1(),Fsr=t1(),Lsr=um(),Psr=Y4();yUe.exports=function(t,r,i,n){function a(d,p){return WQ.coerce(t,r,Psr,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)&&Csr(t,r,i,n,a,{gradient:!0}),$Q.hasLines(r)&&(Dsr(t,r,i,n,a),a("connectgaps")),$Q.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),Fsr(t,r,n,a)),a("fill"),r.fill!=="none"&&Lsr(t,r,i,a),WQ.coerceSelectionMarkerOpacity(r,a)}});var _Ue=K((RQr,bUe)=>{"use strict";var xUe=Cs();bUe.exports=function(t,r,i){var n={},a=i[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=xUe.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=xUe.tickText(o,o.c2l(s[1]),!0).text,n}});var XQ=K((BQr,MUe)=>{"use strict";var YQ=Hs(),wUe=(Il(),or(Bl)).BADNUM,zsr=Zp(),Isr=fm(),Rsr=op(),Bsr=St().isArrayOrTypedArray,AUe=St()._;function TUe(e){return e&&typeof e=="string"}MUe.exports=function(t,r){var i=Bsr(r.locations),n=i?r.locations.length:r._length,a=new Array(n),o;r.geojson?o=function(h){return TUe(h)||YQ(h)}:o=TUe;for(var s=0;sOsr,clipPad:()=>Hsr,fillLayers:()=>Zsr,fitboundsIncompatible:()=>Usr,landColor:()=>Wsr,lataxisSpan:()=>Vsr,layerNameToAdjective:()=>elr,layers:()=>Jsr,layersForChoropleth:()=>Qsr,lineLayers:()=>Ksr,locationmodeToLayer:()=>Ysr,lonaxisSpan:()=>Nsr,precision:()=>jsr,projNames:()=>qsr,scopeDefaults:()=>Gsr,sphereSVG:()=>Xsr,waterColor:()=>$sr});var qsr,Osr,Nsr,Vsr,Usr,Gsr,Hsr,jsr,Wsr,$sr,Ysr,Xsr,Zsr,Ksr,Jsr,Qsr,elr,LE=ps(()=>{"use strict";qsr={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"},Osr=["lonaxis","lataxis"],Nsr={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},Vsr={"conic conformal":150,stereographic:179.5,"*":180},Usr=new Set(["albers usa","craig","peirce quincuncial","satellite"]),Gsr={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]}},Hsr=.001,jsr=.1,Wsr="#F0DC82",$sr="#3399FF",Ysr={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},Xsr={type:"Sphere"},Zsr={ocean:1,land:1,lakes:1},Ksr={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},Jsr=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],Qsr=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],elr={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var ZQ=K((gR,SUe)=>{(function(e,t){typeof gR=="object"&&typeof SUe!="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=EUe.exports={},tlr=(LE(),or(FE)).locationmodeToLayer,rlr=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=tlr[e.locationmode],i=t.objects[r];return rlr(t,i).features}});var zE=K(PE=>{"use strict";var ilr=(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,nlr=Object.getOwnPropertyDescriptor,alr=Object.getOwnPropertyNames,olr=Object.prototype.hasOwnProperty,slr=(e,t)=>{for(var r in t)QQ(e,r,{get:t[r],enumerable:!0})},llr=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of alr(t))!olr.call(e,n)&&n!==r&&QQ(e,n,{get:()=>t[n],enumerable:!(i=nlr(t,n))||i.enumerable});return e},ulr=e=>llr(QQ({},"__esModule",{value:!0}),e),kUe={};slr(kUe,{COUNTRIES:()=>CUe,byAlpha2:()=>dlr,byAlpha3:()=>hlr,byM49:()=>plr,createLookup:()=>DUe,lookup:()=>flr,lookupAlpha3:()=>clr,sanitize:()=>JQ});FUe.exports=ulr(kUe);var CUe=[{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 DUe(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=DUe(CUe),flr=IE.lookup,clr=IE.lookupAlpha3,hlr=IE.byAlpha3,dlr=IE.byAlpha2,plr=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 vlr(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 zUe(t).geometry;case"MultiLineString":return PUe(t).geometry;case"MultiPolygon":return IUe(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 mlr(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 glr(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 PUe(e,t,r={}){return V2({type:"MultiLineString",coordinates:e},t,r)}function zUe(e,t,r={}){return V2({type:"MultiPoint",coordinates:e},t,r)}function IUe(e,t,r={}){return V2({type:"MultiPolygon",coordinates:e},t,r)}function xlr(e,t,r={}){return V2({type:"GeometryCollection",geometries:e},t,r)}function blr(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 RUe(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 _lr(e,t){return BUe(aee(e,t))}function wlr(e){let t=e%360;return t<0&&(t+=360),t}function Alr(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function BUe(e){return e%(2*Math.PI)*180/Math.PI}function Tlr(e){return e%360*Math.PI/180}function Mlr(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return RUe(aee(e,t),r)}function Slr(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 Elr(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 klr(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 Clr(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=Alr;Yu.bearingToAzimuth=wlr;Yu.convertArea=Slr;Yu.convertLength=Mlr;Yu.degreesToRadians=Tlr;Yu.earthRadius=Rc;Yu.factors=tee;Yu.feature=V2;Yu.featureCollection=wR;Yu.geometry=vlr;Yu.geometryCollection=xlr;Yu.isNumber=_R;Yu.isObject=Elr;Yu.lengthToDegrees=_lr;Yu.lengthToRadians=aee;Yu.lineString=nee;Yu.lineStrings=glr;Yu.multiLineString=PUe;Yu.multiPoint=zUe;Yu.multiPolygon=IUe;Yu.point=ree;Yu.points=mlr;Yu.polygon=iee;Yu.polygons=ylr;Yu.radiansToDegrees=BUe;Yu.radiansToLength=RUe;Yu.removeBbox=bR;Yu.round=blr;Yu.validateBBox=klr;Yu.validateId=Clr});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 Rlr(e,t,r){var i=r,n=!1;return NUe(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 VUe(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 UUe=AR(),Nlr=MR();function jUe(e){return Nlr.geomReduce.call(void 0,e,(t,r)=>t+Vlr(r),0)}function Vlr(e){let t=0,r;switch(e.type){case"Polygon":return GUe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(HUe(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*Ulr}var Glr=jUe;SR.area=jUe;SR.default=Glr});var YUe=K(ER=>{"use strict";Object.defineProperty(ER,"__esModule",{value:!0});var Hlr=AR(),jlr=MR();function $Ue(e,t={}){let r=0,i=0,n=0;return jlr.coordEach.call(void 0,e,function(a){r+=a[0],i+=a[1],n++},!0),Hlr.point.call(void 0,[r/n,i/n],t.properties)}var Wlr=$Ue;ER.centroid=$Ue;ER.default=Wlr});var ZUe=K((kR,XUe)=>{(function(e,t){t(typeof kR=="object"&&typeof XUe!="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 KUe!="undefined"?t(CR,ZUe()):(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 eGe=K((jQr,QUe)=>{"use strict";var JUe={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"},$lr=new Set(Object.values(JUe));QUe.exports={usaLocationAbbreviations:$lr,usaLocationList:JUe}});var tGe={};Fl(tGe,{COUNTRIES_X:()=>Ylr});var Ylr,rGe=ps(()=>{"use strict";Ylr=[{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((WQr,aGe)=>{"use strict";var Xlr=No(),{COUNTRIES:Zlr,createLookup:Klr}=LUe(),{area:Jlr}=WUe(),{centroid:Qlr}=YUe(),{coordAll:eur}=MR(),{geoBounds:tur}=DR(),rur=m6(),U2=ey(),iur=_g(),nur=VT(),FR=nM(),{usaLocationAbbreviations:aur,usaLocationList:our}=eGe(),{COUNTRIES_X:sur}=(rGe(),or(tGe)),{lookupAlpha3:lur}=Klr([...Zlr,...sur]),uur={"ISO-3":rur,"USA-states":cur,"country names":fur};function fur(e){let t=lur(e);return t||(U2.log("Unrecognized country name: "+e+"."),!1)}function cur(e){e=e.trim();let t=aur.has(e.toUpperCase())?e.toUpperCase():our[e.toLowerCase()];return t||(U2.log("Unrecognized US location: "+e+"."),!1)}function hur(e,t,r){var n;if(!t||typeof t!="string")return!1;let i=uur[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 dur(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]:Qlr(r).geometry.coordinates}function mur(e){var t=window.PlotlyGeoAssets||{},r=[];function i(l){return new Promise(function(u,f){Xlr.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 eur(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]]=tur({type:"MultiPoint",coordinates:e});return[t,r,nGe([t,i])[1],n]}var gur=(e,t)=>t.fitbounds==="geojson"&&e.locationmode==="geojson-id",iGe=(e,t)=>gur(e,t)?fee(uee(e)):[],xur=(e,t)=>cee(iGe(e,t));function nGe([e,t]){return[e,e>t?t+LR:t]}aGe.exports={locationToFeature:hur,feature2polygons:dur,getTraceGeojson:uee,extractTraceFeature:pur,fetchTraceGeoData:mur,boundsOfCoords:cee,computeBbox:yur,coordsOf:fee,doesCrossAntiMeridian:lee,fitGeojsonBbox:xur,fitGeojsonCoords:iGe,unwrapLonRange:nGe,ANTIMERIDIAN_LON_SHIFT:LR}});var hee=K(($Qr,lGe)=>{"use strict";var bur=No(),_ur=Is(),oGe=wo(),sGe=hd(),wur=sGe.stylePoints,Aur=sGe.styleText;lGe.exports=function(t,r){r&&Tur(t,r)};function Tur(e,t){var r=t[0].trace,i=t[0].node3;i.style("opacity",t[0].trace.opacity),wur(i,r,e),Aur(i,r,e),i.selectAll("path.js-line").style("fill","none").each(function(n){var a=bur.select(this),o=n.trace,s=o.line||{};a.call(oGe.stroke,s.color).call(_ur.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(oGe.fill,o.fillcolor)})}});var IR=K((YQr,cGe)=>{"use strict";var uGe=No(),PR=St(),Mur=xR().getTopojsonFeatures,dee=zE(),zR=Ny(),fGe=$v().findExtremes,vee=(Il(),or(Bl)).BADNUM,Sur=Kp().calcMarkerSize,pee=ff(),Eur=hee();function kur(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&&uGe.select(s).remove()}n.selectAll("*").remove(),n.each(function(o){var s=uGe.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)}),Eur(e,o)})}function Cur(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):Mur(r,n.topojson);for(o=0;o{"use strict";var Fur=Gf(),Lur=(Il(),or(Bl)).BADNUM,Pur=lA(),zur=St().fillText,Iur=Y4();hGe.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]===Lur||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(Fur.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=Pur(a,h),t.extraText=Rur(a,h,t,n[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function Rur(e,t,r,i){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,a=n==="all"?Iur.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&&zur(t,e,f),f.join("
")}});var vGe=K((ZQr,pGe)=>{"use strict";pGe.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 gGe=K((KQr,yGe)=>{"use strict";var mGe=ff(),Bur=(Il(),or(Bl)).BADNUM;yGe.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=!mGe.hasMarkers(s)&&!mGe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof RR=="object"&&typeof xGe!="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 _Ge!="undefined"?t(BR,DR(),bGe()):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 EGe=K((JQr,SGe)=>{"use strict";var cc=No(),mee=St(),qur=Ho(),X4=Math.PI/180,q_=180/Math.PI,gee={cursor:"pointer"},xee={cursor:"auto"};function Our(e,t){var r=e.projection,i;return t._isScoped?i=Nur:t._isClipped?i=Uur:i=Vur,i(e,r)}SGe.exports=Our;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(),qur.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 Nur(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 Vur(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 Uur(e,t){var r={r:t.rotate(),k:t.scale()},i=bee(e,t),n=Zur(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=Gur(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=jur(s,E),C=$ur(Hur(b,S)),k=r.r=Wur(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])&&Yur(r)}function Gur(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 Hur(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 jur(e,t){if(!(!e||!t)){var r=Xur(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 Wur(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=AGe(r[0],r[1],d,v),w=AGe(r[0],r[1],p,y);return m<=w?[d,v,r[2]]:[p,y,r[2]]}function AGe(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 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 $ur(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 Yur(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 MGe(e,t){for(var r=0,i=0,n=e.length;i{"use strict";var Em=No(),Tee=DR(),Kur=Tee.geoPath,Jur=Tee.geoDistance,Qur=wGe(),efr=Ho(),qE=St(),tfr=qE.strTranslate,OR=wo(),BE=Is(),kGe=Gf(),rfr=yf(),Aee=Cs(),{concatExtremes:ifr,getAutoRange:CGe,makePadFn:DGe}=$v(),wee=U0(),nfr=fh().prepSelect,afr=fh().clearOutline,ofr=fh().selectOnClick,sfr=EGe(),gd=(LE(),or(FE)),Mee=Ny(),{unwrapLonRange:lfr}=Mee,LGe=xR(),ufr=ZQ().feature;function PGe(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 A1=PGe.prototype;zGe.exports=function(t){return new PGe(t)};A1.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),rfr.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()};A1.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=ffr(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=CGe(r,u),f.range=CGe(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=ifr(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=FGe(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(FGe(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])])}}};A1.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(ufr(i,i.objects[h])):o(h)&&d.datum(cfr(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"])})};A1.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};A1.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];efr.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&&afr(i)}};if(a==="pan"){n.node().onmousedown=null;let c=sfr(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){nfr(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]},kGe.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&&ofr(Em.event,i,[r.xaxis],[r.yaxis],r.id,f),o.indexOf("event")>-1&&kGe.click(i,Em.event))})};A1.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)};A1.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)};A1.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};A1._render=function(){var e=this.projection,t=e.getPath(),r;function i(a){var o=e(a.lonlat);return o?tfr(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 ffr(e){var t=e.projection,r=t.type,i=gd.projNames[r];i="geo"+qE.titleCase(i);for(var n=Tee[i]||Qur[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 Kur().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 cfr(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(),hfr=kf().attributes,dfr=gh().dash,Z4=(LE(),or(FE)),pfr=Ef().overrideAll,RGe=(eb(),or(Qx)).default,BGe={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:dfr},vfr=qGe.exports=pfr({domain:hfr({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:RGe(Z4.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:RGe(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:BGe,lataxis:BGe},"plot","from-root");vfr.uirevision={valType:"any",editType:"none"}});var VGe=K((tei,NGe)=>{"use strict";var NR=St(),mfr=Jb(),yfr=Zh().getSubplotData,{unwrapLonRange:gfr}=Ny(),OE=(LE(),or(FE)),xfr=See(),OGe=OE.axesNames;NGe.exports=function(t,r,i){mfr(t,r,i,{type:"geo",attributes:xfr,handleDefaults:bfr,fullData:i,partition:"y"})};function bfr(e,t,r,i){var n=yfr(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((rei,HGe)=>{"use strict";var _fr=Zh().getSubplotCalcData,wfr=St().counterRegex,Afr=IGe(),km="geo",UGe=wfr(km),GGe={};GGe[km]={valType:"subplotid",dflt:km,editType:"calc"};function Tfr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[km],n=0;n{"use strict";jGe.exports={attributes:Y4(),supplyDefaults:gUe(),colorbar:e0(),formatLabels:_Ue(),calc:XQ(),calcGeoJSON:IR().calcGeoJSON,fitCoords:IR().fitCoords,plot:IR().plot,style:hee(),styleOnSelect:hd().styleOnSelect,hoverPoints:dGe(),eventData:vGe(),selectPoints:gGe(),moduleType:"trace",name:"scattergeo",basePlotModule:Eee(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var YGe=K((nei,$Ge)=>{"use strict";$Ge.exports=WGe()});var NE=K((aei,KGe)=>{"use strict";var{hovertemplateAttrs:Efr,templatefallbackAttrs:kfr}=gu(),H2=Y4(),Cfr=Wu(),XGe=Tu(),Dfr=Gc().defaultLine,G2=Os().extendFlat,ZGe=H2.marker.line;KGe.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({},ZGe.color,{dflt:Dfr}),width:G2({},ZGe.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({},XGe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Efr(),hovertemplatefallback:kfr(),showlegend:G2({},XGe.showlegend,{dflt:!1})},Cfr("",{cLetter:"z",editTypeOverride:"calc"}))});var QGe=K((oei,JGe)=>{"use strict";var VR=St(),Ffr=xh(),Lfr=NE();JGe.exports=function(t,r,i,n){function a(h,d){return VR.coerce(t,r,Lfr,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"),Ffr(t,r,n,a,{prefix:"",cLetter:"z"}),VR.coerceSelectionMarkerOpacity(r,a)}});var kee=K((sei,rHe)=>{"use strict";var eHe=Hs(),Pfr=(Il(),or(Bl)).BADNUM,zfr=T0(),Ifr=fm(),Rfr=op();function tHe(e){return e&&typeof e=="string"}rHe.exports=function(t,r){var i=r._length,n=new Array(i),a;r.geojson?a=function(f){return tHe(f)||eHe(f)}:a=tHe;for(var o=0;o{"use strict";var Bfr=No(),qfr=wo(),Cee=Is(),Ofr=gf();function Nfr(e,t){t&&iHe(e,t)}function iHe(e,t){var r=t[0].trace,i=t[0].node3,n=i.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=Ofr.makeColorScaleFuncFromTrace(r);n.each(function(l){Bfr.select(this).attr("fill",s(l.z)).call(qfr.stroke,l.mlc||o.color).call(Cee.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),Cee.selectedPointStyle(n,r)}function Vfr(e,t){var r=t[0].node3,i=t[0].trace;i.selectedpoints?Cee.selectedPointStyle(r.selectAll(".choroplethlocation"),i):iHe(e,t)}nHe.exports={style:Nfr,styleOnSelect:Vfr}});var GR=K((uei,sHe)=>{"use strict";var Ufr=No(),aHe=St(),O_=Ny(),Gfr=xR().getTopojsonFeatures,oHe=$v().findExtremes,Hfr=UR().style;function jfr(e,t,r){var i=t.layers.backplot.select(".choroplethlayer");aHe.makeTraceGroups(i,r,"trace choropleth").each(function(n){var a=Ufr.select(this),o=a.selectAll("path.choroplethlocation").data(aHe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),Hfr(e,n)})}function Wfr(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):Gfr(r,n.topojson);let l=O_.fitGeojsonBbox(r,i);for(var u=[],f=[],c=0;c{"use strict";var Yfr=Cs(),Xfr=NE(),Zfr=St().fillText,{ANTIMERIDIAN_LON_SHIFT:Kfr}=Ny();lHe.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+Kfr,i];for(l=0;l")}}});var Fee=K((cei,uHe)=>{"use strict";uHe.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((hei,fHe)=>{"use strict";fHe.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";cHe.exports={attributes:NE(),supplyDefaults:QGe(),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 pHe=K((pei,dHe)=>{"use strict";dHe.exports=hHe()});var HR=K((vei,mHe)=>{"use strict";var Qfr=Ho(),gp=St(),ecr=lA(),tcr=Is();function rcr(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;Tscr,SYMBOL_SDF_SIZE:()=>ncr,SYMBOL_SIZE:()=>acr,SYMBOL_STROKE:()=>ocr,TOO_MANY_POINTS:()=>icr});var icr,ncr,acr,ocr,scr,V_=ps(()=>{"use strict";icr=1e5,ncr=200,acr=20,ocr=1,scr={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}});var VE=K((mei,bHe)=>{"use strict";var lcr=Tu(),ucr=lf(),fcr=sm(),jf=Qf(),yHe=zf().axisHoverFormat,gHe=Wu(),ccr=(eb(),or(Qx)).default,Pee=Os().extendFlat,hcr=Ef().overrideAll,dcr=(V_(),or(N_)).DASHES,xHe=jf.line,Vy=jf.marker,pcr=Vy.line,j2=bHe.exports=hcr({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:yHe("x"),yhoverformat:yHe("y"),text:jf.text,hovertext:jf.hovertext,textposition:jf.textposition,textfont:ucr({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:xHe.color,width:xHe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:ccr(dcr),dflt:"solid"}},marker:Pee({},gHe("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({},gHe("marker.line"),{width:pcr.width})}),connectgaps:jf.connectgaps,fill:Pee({},jf.fill,{dflt:"none"}),fillcolor:fcr(),selected:{marker:jf.selected.marker,textfont:jf.selected.textfont},unselected:{marker:jf.unselected.marker,textfont:jf.unselected.textfont},opacity:lcr.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:_He}=Is();zee.isOpenSymbol=e=>_He(e)%200>=100;zee.isDotSymbol=e=>_He(e)>=200});var THe=K((gei,AHe)=>{"use strict";var wHe=St(),vcr=Ho(),mcr=jR(),ycr=VE(),gcr=(om(),or(am)),WR=ff(),xcr=Pb(),bcr=Qv(),_cr=Xp(),wcr=e1(),Acr=um(),Tcr=t1();AHe.exports=function(t,r,i,n){function a(d,p){return wHe.coerce(t,r,ycr,d,p)}var o=t.marker?mcr.isOpenSymbol(t.marker.symbol):!1,s=WR.isBubble(t),l=xcr(t,r,n,a);if(!l){r.visible=!1;return}bcr(t,r,n,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var Mcr=QP();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]),Mcr(t,r,i)}});var kHe=K((bei,EHe)=>{"use strict";function Scr(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 Ecr(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 kcr(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 Ccr(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 Dcr(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)}EHe.exports={ge:function(e,t,r,i,n){return UE(e,t,r,i,n,Scr)},gt:function(e,t,r,i,n){return UE(e,t,r,i,n,Ecr)},lt:function(e,t,r,i,n){return UE(e,t,r,i,n,kcr)},le:function(e,t,r,i,n){return UE(e,t,r,i,n,Ccr)},eq:function(e,t,r,i,n){return UE(e,t,r,i,n,Dcr)}}});var Iee=K((_ei,CHe)=>{CHe.exports=Fcr;function Fcr(e,t,r){return tr?r:e:et?t:e}});var Cm=K((wei,FHe)=>{"use strict";FHe.exports=function(t,r,i){var n={},a,o;if(typeof r=="string"&&(r=DHe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var Lcr=Cm();LHe.exports=Pcr;function Pcr(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=Lcr(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((Tei,PHe)=>{"use strict";PHe.exports=zcr;function zcr(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";zHe.exports=function(){for(var t=0;t{RHe.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((Eei,qHe)=>{var BHe=$R();qHe.exports=Icr;function Icr(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(BHe(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";OHe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var UHe=K((Cei,VHe)=>{"use strict";VHe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var XHe=K((Dei,YHe)=>{"use strict";var GHe=kHe(),HHe=Iee(),Rcr=J4(),Bcr=U_(),jHe=Cm(),Bee=IHe(),qcr=G_(),Ocr=NHe(),Ncr=$R(),WHe=UHe(),Vcr=1073741824;YHe.exports=function(t,r){r||(r={}),t=qcr(t,"float64"),r=jHe(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,Bcr(t,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let a=$He(t,n),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(Ncr(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let m=0;mi||x>Vcr){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";ZHe.exports=XHe()});var JHe=K((Lei,KHe)=>{KHe.exports=Gcr;var qee={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},Ucr=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Gcr(e){var t=[];return e.replace(Ucr,function(r,i,n){var a=i.toLowerCase();for(n=jcr(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{QHe.exports=Wcr;function Wcr(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 $cr=(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}},Ycr=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}]},tje=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)},Xcr=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=tje(1,0,x,T),S=tje(x,T,A,g);return l===0&&S>0&&(S-=GE),l===1&&S<0&&(S+=GE),[b,M,E,S]},Zcr=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=Xcr(r,i,n,a,o,s,c,d,v,y,m,w),M=$cr(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";aje.exports=Jcr;var Kcr=ije();function Jcr(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 nje(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((Iei,sje)=>{"use strict";sje.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 uje=K((Rei,lje)=>{"use strict";var Qcr=JHe(),ehr=eje(),thr=oje(),rhr=Nee();lje.exports=ihr;function ihr(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!rhr(e))throw Error("String is not an SVG path.");e=Qcr(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=ehr(e),e=thr(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 dje=K((Bei,hje)=>{"use strict";hje.exports=nhr;var HE=1e20;function nhr(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);pyje});function yje(e,t={}){if(!(0,vje.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,pje.default)(e),s=[r/(o[2]-o[0]),i/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;T1.fillStyle="black",T1.fillRect(0,0,r,i),T1.fillStyle="white",a&&(typeof a!="number"&&(a=1),T1.strokeStyle=a>0?"white":"black",T1.lineWidth=Math.abs(a)),T1.translate(r*.5,i*.5),T1.scale(l,l);let u=new Path2D(e);return T1.fill(u),a&&T1.stroke(u),T1.setTransform(1,0,0,1,0,0),(0,mje.default)(T1,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:n*.5})}var pje,vje,mje,Vee,T1,xje=ps(()=>{pje=N1(uje()),vje=N1(Nee()),mje=N1(dje()),Vee=document.createElement("canvas"),T1=Vee.getContext("2d",{willReadFrequently:!0})});var W_=K((qei,Dje)=>{"use strict";var JR=Hs(),ahr=(xje(),or(gje)).default,{normalize:KR,rgbaString:j_}=wo(),ohr=Ho(),t5=St(),Bc=t5.isArrayOrTypedArray,Q4=Is(),bje=Vf(),_je=By().formatColor,e5=ff(),shr=M6(),Gee=jR(),jE=(V_(),or(N_)),lhr=(ry(),or(ty)).DESELECTDIM,wje={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},uhr=ud().appendArrayPointValue;function fhr(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=Cje(e,t),i.textSel=Tje(e,t,t.selected),i.textUnsel=Tje(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=_je(i,i.opacity,r),m=_je(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=wje[h],v=wje[d],y=f?f/.8+1:0,m=-v*y-v*.5;a.offset[o]=[p*y/c,m/c]}}return a}Dje.exports={style:fhr,markerStyle:jee,markerSelection:Hee,linePositions:hhr,errorBarPositions:dhr,textPosition:phr}});var Wee=K((Nei,Fje)=>{"use strict";var QR=St();Fje.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 vhr=YR(),r5=St(),Lje=Vf(),mhr=$v().findExtremes,Pje=r1(),$ee=Kp(),yhr=$ee.calcMarkerSize,ghr=$ee.calcAxisExpansion,xhr=$ee.setFirstScatter,bhr=Zp(),i5=W_(),_hr=Wee(),zje=(Il(),or(Bl)).BADNUM,whr=(V_(),or(N_)).TOO_MANY_POINTS;Rje.exports=function(t,r){var i=t._fullLayout,n=r._xA=Lje.getFromId(t,r.xaxis,"x"),a=r._yA=Lje.getFromId(t,r.yaxis,"y"),o=i._plots[r.xaxis+r.yaxis],s=r._length,l=s>=whr,u=s*2,f={},c,h=n.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),p=Pje(r,n,"x",h),v=Pje(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((Uei,Oje)=>{"use strict";var qje=St(),Thr=wo(),Mhr=(ry(),or(ty)).DESELECTDIM;function Shr(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=qje.extendFlat({},l),h,d;if(o.length||s.length){var p=u.color,v=f.color,y=l.color,m=qje.isArrayOrTypedArray(y);for(c.color=new Array(r._length),h=0;h{"use strict";var Nje=ff(),Ehr=Yee().styleTextSelection;Vje.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=Nje.hasText(s),v=Nje.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 khr=HR();Uje.exports={moduleType:"trace",name:"scattergl",basePlotModule:gc(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:VE(),supplyDefaults:THe(),crossTraceDefaults:FW(),colorbar:e0(),formatLabels:SHe(),calc:Bje(),hoverPoints:khr.hoverPoints,selectPoints:Xee(),meta:{}}});var jje=K((jei,Hje)=>{"use strict";Hje.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 Xje=K((Wei,Yje)=>{"use strict";var Wje=jje();Yje.exports=Chr;var $je={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Chr(e){var t,r=[],i=1,n;if(typeof e=="string")if(e=e.toLowerCase(),Wje[e])r=Wje[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($je[h]!==void 0)return $je[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 Kje=K(($ei,Zje)=>{"use strict";var Dhr=Xje();Zje.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,i,n,a=Dhr(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=Fhr(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function Fhr(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((Yei,Jje)=>{"use strict";var Lhr=Kje(),Phr=$R();Jje.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var i=Phr(r),n=new i(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=Lhr(t),t[0]/=255,t[1]/=255,t[2]/=255),zhr(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 zhr(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 eWe=K((Xei,tB)=>{"use strict";var eB=Iee();tB.exports=Qje;tB.exports.to=Qje;tB.exports.from=Ihr;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=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 Ihr(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 rWe=K((Zei,tWe)=>{tWe.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],i=0;i{"use strict";iWe.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=Rhr;var nWe=new Float32Array(1);function Rhr(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 Bhr=WE(),qhr=U_(),Ohr=eWe(),Nhr=YR(),iB=rWe(),Vhr=Cm(),Uhr=Zee(),Ghr=G_(),nB=rB(),Hhr=J4(),jhr=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; @@ -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)}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=` +`]),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=Vhr(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(Uhr(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=Ghr(p,"float64");let M=v.count=Math.floor(p.length/2),x=v.bounds=M?qhr(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=Nhr(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=>Hhr(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 Whr=function(e,t){var r=new jhr(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};aWe.exports=Whr});var Sh=K((eti,sWe)=>{"use strict";var oWe=Object.getOwnPropertySymbols,$hr=Object.prototype.hasOwnProperty,Yhr=Object.prototype.propertyIsEnumerable;function Xhr(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Zhr(){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}}sWe.exports=Zhr()?Object.assign:function(e,t){for(var r,i=Xhr(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=uWe(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=t0r(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 uWe(e,t,r,i,n){var a,o;if(n===ete(e,t,r,i)>0)for(a=t;a=t;a-=i)o=lWe(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&&o0r(e,i,n,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?Jhr(e,i,n,a):Khr(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=Qhr($_(e),t,r),YE(e,t,r,i,n,a,2)):o===2&&e0r(e,t,r,i,n,a):YE($_(e),t,r,i,n,a,1);break}}}}function Khr(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 Jhr(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 Qhr(e,t,r){var i=e;do{var n=i.prev,a=i.next.next;!lB(n,a)&&fWe(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 e0r(e,t,r,i,n,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&u0r(o,s)){var l=cWe(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 t0r(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&&a0r(o,r)))&&(o=r,c=h)),r=r.next;while(r!==l);return o}function a0r(e,t){return qc(e.prev,e,t.prev)<0&&qc(t.next,e,e.next)<0}function o0r(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,s0r(n)}function s0r(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 l0r(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 u0r(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!f0r(e,t)&&(XE(e,t)&&XE(t,e)&&c0r(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 fWe(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 f0r(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&&fWe(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 c0r(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 cWe(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 lWe(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 pWe=K((rti,dWe)=>{"use strict";var h0r=U_();dWe.exports=d0r;function d0r(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=h0r(e,t));for(var i=0;i{"use strict";vWe.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 gWe=K((nti,yWe)=>{"use strict";yWe.exports=function(){}});var W2=K((ati,xWe)=>{"use strict";var p0r=gWe()();xWe.exports=function(e){return e!==p0r&&e!==null}});var rte=K((oti,_We)=>{"use strict";var v0r=Object.create,m0r=Object.getPrototypeOf,bWe={};_We.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||v0r;return typeof e!="function"?!1:m0r(e(t(null),bWe))===bWe}});var ite=K((sti,wWe)=>{"use strict";var y0r=W2(),g0r={function:!0,object:!0};wWe.exports=function(e){return y0r(e)&&g0r[typeof e]||!1}});var Uy=K((lti,AWe)=>{"use strict";var x0r=W2();AWe.exports=function(e){if(!x0r(e))throw new TypeError("Cannot use null or undefined");return e}});var MWe=K((uti,TWe)=>{"use strict";var nte=Object.create,uB;rte()()||(uB=ate());TWe.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((fti,SWe)=>{"use strict";var b0r=ite(),_0r=Uy(),w0r=Object.prototype.isPrototypeOf,A0r=Object.defineProperty,T0r={configurable:!0,enumerable:!1,writable:!0,value:void 0},fB;fB=function(e,t){if(_0r(e),t===null||b0r(t))return e;throw new TypeError("Prototype must be null or an object")};SWe.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=w0r.call(i.nullPolyfill,n),o&&delete i.nullPolyfill.__proto__,a===null&&(a=i.nullPolyfill),n.__proto__=a,o&&A0r(i.nullPolyfill,"__proto__",T0r),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 cB=K((cti,EWe)=>{"use strict";EWe.exports=rte()()?Object.setPrototypeOf:ate()});var CWe=K((hti,kWe)=>{"use strict";var M0r=ite();kWe.exports=function(e){if(!M0r(e))throw new TypeError(e+" is not an Object");return e}});var FWe=K((dti,DWe)=>{"use strict";var S0r=Object.create(null),E0r=Math.random;DWe.exports=function(){var e;do e=E0r().toString(36).slice(2);while(S0r[e]);return e}});var Y_=K((pti,LWe)=>{"use strict";var k0r=void 0;LWe.exports=function(e){return e!==k0r&&e!==null}});var ote=K((vti,PWe)=>{"use strict";var C0r=Y_(),D0r={object:!0,function:!0,undefined:!0};PWe.exports=function(e){return C0r(e)?hasOwnProperty.call(D0r,typeof e):!1}});var IWe=K((mti,zWe)=>{"use strict";var F0r=ote();zWe.exports=function(e){if(!F0r(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var BWe=K((yti,RWe)=>{"use strict";var L0r=IWe();RWe.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!L0r(e)}});var ste=K((gti,qWe)=>{"use strict";var P0r=BWe(),z0r=/^\s*class[\s{/}]/,I0r=Function.prototype.toString;qWe.exports=function(e){return!(!P0r(e)||z0r.test(I0r.call(e)))}});var NWe=K((xti,OWe)=>{"use strict";OWe.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 UWe=K((bti,VWe)=>{"use strict";VWe.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var HWe=K((_ti,GWe)=>{"use strict";var R0r=W2(),B0r=Object.keys;GWe.exports=function(e){return B0r(R0r(e)?Object(e):e)}});var WWe=K((wti,jWe)=>{"use strict";jWe.exports=UWe()()?Object.keys:HWe()});var YWe=K((Ati,$We)=>{"use strict";var q0r=WWe(),O0r=Uy(),N0r=Math.max;$We.exports=function(e,t){var r,i,n=N0r(arguments.length,2),a;for(e=Object(O0r(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},i=1;i{"use strict";XWe.exports=NWe()()?Object.assign:YWe()});var lte=K((Mti,ZWe)=>{"use strict";var V0r=W2(),U0r=Array.prototype.forEach,G0r=Object.create,H0r=function(e,t){var r;for(r in e)t[r]=e[r]};ZWe.exports=function(e){var t=G0r(null);return U0r.call(arguments,function(r){V0r(r)&&H0r(Object(r),t)}),t}});var JWe=K((Sti,KWe)=>{"use strict";var ute="razdwatrzy";KWe.exports=function(){return typeof ute.contains!="function"?!1:ute.contains("dwa")===!0&&ute.contains("foo")===!1}});var e$e=K((Eti,QWe)=>{"use strict";var j0r=String.prototype.indexOf;QWe.exports=function(e){return j0r.call(this,e,arguments[1])>-1}});var fte=K((kti,t$e)=>{"use strict";t$e.exports=JWe()()?String.prototype.contains:e$e()});var Gy=K((Cti,a$e)=>{"use strict";var dB=Y_(),r$e=ste(),i$e=hB(),n$e=lte(),KE=fte(),W0r=a$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?i$e(n$e(a),o):o};W0r.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)?r$e(t)?dB(r)?r$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?i$e(n$e(a),o):o}});var JE=K((Dti,s$e)=>{"use strict";var o$e=Object.prototype.toString,$0r=o$e.call((function(){return arguments})());s$e.exports=function(e){return o$e.call(e)===$0r}});var QE=K((Fti,u$e)=>{"use strict";var l$e=Object.prototype.toString,Y0r=l$e.call("");u$e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||l$e.call(e)===Y0r)||!1}});var c$e=K((Lti,f$e)=>{"use strict";f$e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var p$e=K((Pti,d$e)=>{var h$e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};d$e.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return h$e()}try{return __global__||h$e()}finally{delete Object.prototype.__global__}})()});var ek=K((zti,v$e)=>{"use strict";v$e.exports=c$e()()?globalThis:p$e()});var y$e=K((Iti,m$e)=>{"use strict";var X0r=ek(),cte={object:!0,symbol:!0};m$e.exports=function(){var e=X0r.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 x$e=K((Rti,g$e)=>{"use strict";g$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((Bti,b$e)=>{"use strict";var Z0r=x$e();b$e.exports=function(e){if(!Z0r(e))throw new TypeError(e+" is not a symbol");return e}});var M$e=K((qti,T$e)=>{"use strict";var _$e=Gy(),K0r=Object.create,w$e=Object.defineProperty,J0r=Object.prototype,A$e=K0r(null);T$e.exports=function(e){for(var t=0,r,i;A$e[e+(t||"")];)++t;return e+=t||"",A$e[e]=!0,r="@@"+e,w$e(J0r,r,_$e.gs(null,function(n){i||(i=!0,w$e(this,r,_$e(n)),i=!1)})),r}});var E$e=K((Oti,S$e)=>{"use strict";var M1=Gy(),Kc=ek().Symbol;S$e.exports=function(e){return Object.defineProperties(e,{hasInstance:M1("",Kc&&Kc.hasInstance||e("hasInstance")),isConcatSpreadable:M1("",Kc&&Kc.isConcatSpreadable||e("isConcatSpreadable")),iterator:M1("",Kc&&Kc.iterator||e("iterator")),match:M1("",Kc&&Kc.match||e("match")),replace:M1("",Kc&&Kc.replace||e("replace")),search:M1("",Kc&&Kc.search||e("search")),species:M1("",Kc&&Kc.species||e("species")),split:M1("",Kc&&Kc.split||e("split")),toPrimitive:M1("",Kc&&Kc.toPrimitive||e("toPrimitive")),toStringTag:M1("",Kc&&Kc.toStringTag||e("toStringTag")),unscopables:M1("",Kc&&Kc.unscopables||e("unscopables"))})}});var D$e=K((Nti,C$e)=>{"use strict";var k$e=Gy(),Q0r=hte(),tk=Object.create(null);C$e.exports=function(e){return Object.defineProperties(e,{for:k$e(function(t){return tk[t]?tk[t]:tk[t]=e(String(t))}),keyFor:k$e(function(t){var r;Q0r(t);for(r in tk)if(tk[r]===t)return r})})}});var P$e=K((Vti,L$e)=>{"use strict";var Dm=Gy(),dte=hte(),pB=ek().Symbol,edr=M$e(),tdr=E$e(),rdr=D$e(),idr=Object.create,pte=Object.defineProperties,vB=Object.defineProperty,Q0,o5,F$e;if(typeof pB=="function")try{String(pB()),F$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)};L$e.exports=Q0=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return F$e?pB(t):(r=idr(o5.prototype),t=t===void 0?"":String(t),pte(r,{__description__:Dm("",t),__name__:Dm("",edr(t))}))};tdr(Q0);rdr(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((Uti,z$e)=>{"use strict";z$e.exports=y$e()()?ek().Symbol:P$e()});var R$e=K((Gti,I$e)=>{"use strict";var ndr=Uy();I$e.exports=function(){return ndr(this).length=0,this}});var s5=K((Hti,B$e)=>{"use strict";B$e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var O$e=K((jti,q$e)=>{"use strict";var adr=Y_(),odr=ote(),sdr=Object.prototype.toString;q$e.exports=function(e){if(!adr(e))return null;if(odr(e)){var t=e.toString;if(typeof t!="function"||t===sdr)return null}try{return""+e}catch(r){return null}}});var V$e=K((Wti,N$e)=>{"use strict";N$e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var G$e=K(($ti,U$e)=>{"use strict";var ldr=V$e(),udr=/[\n\r\u2028\u2029]/g;U$e.exports=function(e){var t=ldr(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(udr,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 j$e=K((Yti,H$e)=>{"use strict";var fdr=O$e(),cdr=G$e();H$e.exports=function(e,t,r){r&&r.errorMessage&&(e=fdr(r.errorMessage));var i=e.indexOf("%v"),n=i>-1?cdr(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((Xti,W$e)=>{"use strict";var hdr=Y_(),ddr=j$e();W$e.exports=function(e,t,r){if(r&&!hdr(e)){if("default"in r)return r.default;if(r.isOptional)return null}var i=r&&r.Error||TypeError,n=new i(ddr(t,e,r));throw r&&r.errorCode&&(n.code=r.errorCode),n}});var Y$e=K((Zti,$$e)=>{"use strict";var pdr=vte(),vdr=Y_();$$e.exports=function(e){if(vdr(e))return e;var t=arguments[1],r=t&&t.name?"Expected a value for %n, received %v":"Cannot use %v";return pdr(e,r,t)}});var Z$e=K((Kti,X$e)=>{"use strict";var mdr=vte(),ydr=ste();X$e.exports=function(e){if(ydr(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 mdr(e,r,t)}});var J$e=K((Jti,K$e)=>{"use strict";K$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 eYe=K((Qti,Q$e)=>{"use strict";var gdr=Object.prototype.toString,xdr=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);Q$e.exports=function(e){return typeof e=="function"&&xdr(gdr.call(e))}});var rYe=K((eri,tYe)=>{"use strict";tYe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var nYe=K((tri,iYe)=>{"use strict";iYe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var oYe=K((rri,aYe)=>{"use strict";aYe.exports=rYe()()?Math.sign:nYe()});var lYe=K((iri,sYe)=>{"use strict";var bdr=oYe(),_dr=Math.abs,wdr=Math.floor;sYe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:bdr(e)*wdr(_dr(e)))}});var fYe=K((nri,uYe)=>{"use strict";var Adr=lYe(),Tdr=Math.max;uYe.exports=function(e){return Tdr(0,Adr(e))}});var pYe=K((ari,dYe)=>{"use strict";var Mdr=$2().iterator,Sdr=JE(),Edr=eYe(),kdr=fYe(),cYe=s5(),Cdr=Uy(),Ddr=W2(),Fdr=QE(),hYe=Array.isArray,mte=Function.prototype.call,X_={configurable:!0,enumerable:!0,writable:!0,value:null},yte=Object.defineProperty;dYe.exports=function(e){var t=arguments[1],r=arguments[2],i,n,a,o,s,l,u,f,c,h;if(e=Object(Cdr(e)),Ddr(t)&&cYe(t),!this||this===Array||!Edr(this)){if(!t){if(Sdr(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(hYe(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=kdr(e.length),i&&(o=new i(s)),n=0;n{"use strict";vYe.exports=J$e()()?Array.from:pYe()});var gYe=K((sri,yYe)=>{"use strict";var Ldr=mYe(),Pdr=hB(),zdr=Uy();yYe.exports=function(e){var t=Object(zdr(e)),r=arguments[1],i=Object(arguments[2]);if(t!==e&&!r)return t;var n={};return r?Ldr(r,function(a){(i.ensure||a in e)&&(n[a]=e[a])}):Pdr(n,e),n}});var _Ye=K((lri,bYe)=>{"use strict";var Idr=s5(),Rdr=Uy(),Bdr=Function.prototype.bind,xYe=Function.prototype.call,qdr=Object.keys,Odr=Object.prototype.propertyIsEnumerable;bYe.exports=function(e,t){return function(r,i){var n,a=arguments[2],o=arguments[3];return r=Object(Rdr(r)),Idr(i),n=qdr(r),o&&n.sort(typeof o=="function"?Bdr.call(o,r):void 0),typeof e!="function"&&(e=n[e]),xYe.call(e,n,function(s,l){return Odr.call(r,s)?xYe.call(i,a,r[s],s,r,l):t})}}});var AYe=K((uri,wYe)=>{"use strict";wYe.exports=_Ye()("forEach")});var MYe=K((fri,TYe)=>{"use strict";var Ndr=s5(),Vdr=AYe(),Udr=Function.prototype.call;TYe.exports=function(e,t){var r={},i=arguments[2];return Ndr(t),Vdr(e,function(n,a,o,s){r[a]=Udr.call(t,i,n,a,o,s)}),r}});var CYe=K((cri,kYe)=>{"use strict";var Gdr=Y_(),Hdr=Y$e(),SYe=Z$e(),jdr=gYe(),Wdr=lte(),$dr=MYe(),Ydr=Function.prototype.bind,Xdr=Object.defineProperty,Zdr=Object.prototype.hasOwnProperty,EYe;EYe=function(e,t,r){var i=Hdr(t)&&SYe(t.value),n;return n=jdr(t),delete n.writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&Zdr.call(this,e)?i:(t.value=Ydr.call(i,r.resolveContext?r.resolveContext(this):this),Xdr(this,e,t),this[e])},n};kYe.exports=function(e){var t=Wdr(arguments[1]);return Gdr(t.resolveContext)&&SYe(t.resolveContext),$dr(e,function(r,i){return EYe(i,r,t)})}});var gte=K((hri,PYe)=>{"use strict";var Kdr=R$e(),Jdr=hB(),Qdr=s5(),epr=Uy(),Nd=Gy(),tpr=CYe(),DYe=$2(),FYe=Object.defineProperty,LYe=Object.defineProperties,rk;PYe.exports=rk=function(e,t){if(!(this instanceof rk))throw new TypeError("Constructor requires 'new'");LYe(this,{__list__:Nd("w",epr(e)),__context__:Nd("w",t),__nextIndex__:Nd("w",0)}),t&&(Qdr(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete rk.prototype.constructor;LYe(rk.prototype,Jdr({_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__){FYe(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__&&Kdr.call(this.__redo__),this.__nextIndex__=0})})));FYe(rk.prototype,DYe.iterator,Nd(function(){return this}))});var qYe=K((dri,BYe)=>{"use strict";var zYe=cB(),IYe=fte(),xte=Gy(),rpr=$2(),bte=gte(),RYe=Object.defineProperty,l5;l5=BYe.exports=function(e,t){if(!(this instanceof l5))throw new TypeError("Constructor requires 'new'");bte.call(this,e),t?IYe.call(t,"key+value")?t="key+value":IYe.call(t,"key")?t="key":t="value":t="value",RYe(this,"__kind__",xte("",t))};zYe&&zYe(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})});RYe(l5.prototype,rpr.toStringTag,xte("c","Array Iterator"))});var UYe=K((pri,VYe)=>{"use strict";var OYe=cB(),mB=Gy(),ipr=$2(),_te=gte(),NYe=Object.defineProperty,u5;u5=VYe.exports=function(e){if(!(this instanceof u5))throw new TypeError("Constructor requires 'new'");e=String(e),_te.call(this,e),NYe(this,"__length__",mB("",e.length))};OYe&&OYe(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)})});NYe(u5.prototype,ipr.toStringTag,mB("c","String Iterator"))});var HYe=K((vri,GYe)=>{"use strict";var npr=JE(),apr=W2(),opr=QE(),spr=$2().iterator,lpr=Array.isArray;GYe.exports=function(e){return apr(e)?lpr(e)||opr(e)||npr(e)?!0:typeof e[spr]=="function":!1}});var WYe=K((mri,jYe)=>{"use strict";var upr=HYe();jYe.exports=function(e){if(!upr(e))throw new TypeError(e+" is not iterable");return e}});var wte=K((yri,XYe)=>{"use strict";var fpr=JE(),cpr=QE(),$Ye=qYe(),hpr=UYe(),dpr=WYe(),YYe=$2().iterator;XYe.exports=function(e){return typeof dpr(e)[YYe]=="function"?e[YYe]():fpr(e)?new $Ye(e):cpr(e)?new hpr(e):new $Ye(e)}});var KYe=K((gri,ZYe)=>{"use strict";var ppr=JE(),vpr=s5(),mpr=QE(),ypr=wte(),gpr=Array.isArray,Ate=Function.prototype.call,xpr=Array.prototype.some;ZYe.exports=function(e,t){var r,i=arguments[2],n,a,o,s,l,u,f;if(gpr(e)||ppr(e)?r="array":mpr(e)?r="string":e=ypr(e),vpr(t),a=function(){o=!0},r==="array"){xpr.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 QYe=K((xri,JYe)=>{"use strict";JYe.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var rXe=K((bri,tXe)=>{"use strict";var bpr=W2(),gB=cB(),yB=CWe(),_pr=Uy(),wpr=FWe(),Hy=Gy(),Apr=wte(),Tpr=KYe(),Mpr=$2().toStringTag,eXe=QYe(),Spr=Array.isArray,Mte=Object.defineProperty,Tte=Object.prototype.hasOwnProperty,Epr=Object.getPrototypeOf,Y2;tXe.exports=Y2=function(){var e=arguments[0],t;if(!(this instanceof Y2))throw new TypeError("Constructor requires 'new'");return t=eXe&&gB&&WeakMap!==Y2?gB(new WeakMap,Epr(this)):this,bpr(e)&&(Spr(e)||(e=Apr(e))),Mte(t,"__weakMapData__",Hy("c","$weakMap$"+wpr())),e&&Tpr(e,function(r){_pr(r),t.set(r[0],r[1])}),t};eXe&&(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,Mpr,Hy("c","WeakMap"))});var Ste=K((_ri,iXe)=>{"use strict";iXe.exports=mWe()()?WeakMap:rXe()});var aXe=K((wri,nXe)=>{"use strict";nXe.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(),kpr=U_(),kte=Sh(),Cpr=Cm(),Dpr=G_(),oXe=hWe(),Fpr=pWe(),{float32:Lpr,fract32:Ete}=rB(),Ppr=Ste(),sXe=J4(),zpr=aXe(),Ipr=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -2248,7 +2248,7 @@ void main() { fragColor = color / 255.; } -`,Lpr=` +`,Rpr=` 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; } -`,Ppr=` +`,Bpr=` precision highp float; attribute vec2 position, positionFract; @@ -2294,14 +2294,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,zpr=` +`,qpr=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,Ipr=` +`,Opr=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -2505,7 +2505,7 @@ void main() { } } } -`,Rpr=` +`,Npr=` 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; } -`;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:` +`;lXe.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 Ppr;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:Ipr,frag:Rpr,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:Opr,frag:Npr,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:Bpr,frag:qpr,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=Cpr(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=zpr(_,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=oXe(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 dXe=K((Tri,hXe)=>{"use strict";var Vpr=U_(),Upr=WE(),Gpr=Zee(),Hpr=Cm(),uXe=Sh(),fXe=G_(),{float32:jpr,fract32:Dte}=rB();hXe.exports=Wpr;var cXe=[[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 Wpr(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:cXe}),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: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,`; + `,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:cXe.length}),uXe(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=Hpr(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=uXe({},u,M)),Gpr(T,M,[{lineWidth:A=>+A*.5,capSize:A=>+A*.5,opacity:parseFloat,errors:A=>(A=fXe(A),w+=A.length,A),positions:(A,g)=>(A=fXe(A,"float64"),g.count=Math.floor(A.length/2),g.bounds=Vpr(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 _=jpr(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 mXe=K((Mri,vXe)=>{var pXe=/[\'\"]/;vXe.exports=function(t){return t?(pXe.test(t.charAt(0))&&(t=t.substr(1)),pXe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var Fte=K((Sri,$pr)=>{$pr.exports=["inherit","initial","unset"]});var Lte=K((Eri,Ypr)=>{Ypr.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var Pte=K((kri,Xpr)=>{Xpr.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var zte=K((Cri,Zpr)=>{Zpr.exports=["normal","italic","oblique"]});var Ite=K((Dri,Kpr)=>{Kpr.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var bXe=K((Fri,xXe)=>{"use strict";function yXe(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 gXe(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)?gXe(e,t):yXe(e,t)}Rte.parse=yXe;Rte.stringify=gXe;xXe.exports=Rte});var AXe=K((Lri,wXe)=>{"use strict";var _Xe=bXe();wXe.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=_Xe.parse(t,{flat:!0,brackets:i.ignore}),a=n[0],o=a.split(r);if(i.escape){for(var s=[],l=0;l{Jpr.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var Bte=K((zri,MXe)=>{"use strict";var Qpr=TXe();MXe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||Qpr.indexOf(t)!==-1}}});var CXe=K((Iri,kXe)=>{"use strict";var evr=mXe(),tvr=Fte(),rvr=Lte(),ivr=Pte(),nvr=zte(),avr=Ite(),qte=AXe(),ovr=Bte().isSize;kXe.exports=EXe;var ik=EXe.cache={};function EXe(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(rvr.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(tvr.indexOf(i)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=i}),ik[e]=t;if(nvr.indexOf(i)!==-1){t.style=i;continue}if(i==="normal"||i==="small-caps"){t.variant=i;continue}if(avr.indexOf(i)!==-1){t.stretch=i;continue}if(ivr.indexOf(i)!==-1){t.weight=i;continue}if(ovr(i)){var n=qte(i,"/");if(t.size=n[0],n[1]!=null?t.lineHeight=SXe(n[1]):r[0]==="/"&&(r.shift(),t.lineHeight=SXe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=qte(r.join(" "),/\s*,\s*/).map(evr),ik[e]=t}throw new Error("Unknown or unsupported font token: "+i)}throw new Error("Missing required font-size.")}function SXe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var Nte=K((Rri,DXe)=>{"use strict";var svr=Cm(),lvr=Bte().isSize,uvr=ak(Fte()),fvr=ak(Lte()),cvr=ak(Pte()),hvr=ak(zte()),dvr=ak(Ite()),pvr={normal:1,"small-caps":1},vvr={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"};DXe.exports=function(t){if(t=svr(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,fvr),t.system;if(nk(t.style,hvr),nk(t.variant,pvr),nk(t.weight,cvr),nk(t.stretch,dvr),t.size==null&&(t.size=Ote.size),typeof t.size=="number"&&(t.size+="px"),!lvr)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 vvr[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]&&!uvr[e])throw Error("Unknown keyword `"+e+"`");return e}function ak(e){for(var t={},r=0;r{"use strict";FXe.exports={parse:CXe(),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(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:` +`),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 BXe=K((qri,RXe)=>{"use strict";var mvr=Cm();RXe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},zXe(t)?t={container:t}:yvr(t)?t={container:t}:gvr(t)?t={gl:t}:t=mvr(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}zXe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=IXe(),t.container.appendChild(t.canvas),PXe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=IXe(),t.container.appendChild(t.canvas),PXe(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 PXe(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 zXe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function yvr(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function gvr(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function IXe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var OXe=K((Ori,qXe)=>{"use strict";var xvr=Nte(),bvr=[32,126];qXe.exports=_vr;function _vr(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||bvr;if(i&&typeof i!="string"&&(i=xvr(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 NXe(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=NXe;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>>>NXe(e)+1}});var GXe=K((Vri,UXe)=>{"use strict";function VXe(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 wvr(e|0,t);break;case"object":if(typeof e.length=="number")return VXe(e,t,0);break}return[]}UXe.exports=Avr});var nZe=K(Iu=>{"use strict";var X2=jte(),L0=GXe(),HXe=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 Tvr=typeof Uint8ClampedArray!="undefined",Mvr=typeof BigUint64Array!="undefined",Svr=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(HXe.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 jXe(e){if(e){var t=e.length||e.byteLength,r=X2.log2(t);bB[r].push(e)}}function Evr(e){jXe(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=Evr;Iu.freeArrayBuffer=jXe;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 WXe(t);case"uint32":return $Xe(t);case"int8":return YXe(t);case"int16":return XXe(t);case"int32":return ZXe(t);case"float":case"float32":return KXe(t);case"double":case"float64":return JXe(t);case"uint8_clamped":return QXe(t);case"bigint64":return tZe(t);case"biguint64":return eZe(t);case"buffer":return iZe(t);case"data":case"dataview":return rZe(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 WXe(e){return new Uint16Array(Vd(2*e),0,e)}Iu.mallocUint16=WXe;function $Xe(e){return new Uint32Array(Vd(4*e),0,e)}Iu.mallocUint32=$Xe;function YXe(e){return new Int8Array(Vd(e),0,e)}Iu.mallocInt8=YXe;function XXe(e){return new Int16Array(Vd(2*e),0,e)}Iu.mallocInt16=XXe;function ZXe(e){return new Int32Array(Vd(4*e),0,e)}Iu.mallocInt32=ZXe;function KXe(e){return new Float32Array(Vd(4*e),0,e)}Iu.mallocFloat32=Iu.mallocFloat=KXe;function JXe(e){return new Float64Array(Vd(8*e),0,e)}Iu.mallocFloat64=Iu.mallocDouble=JXe;function QXe(e){return Tvr?new Uint8ClampedArray(Vd(e),0,e):Wte(e)}Iu.mallocUint8Clamped=QXe;function eZe(e){return Mvr?new BigUint64Array(Vd(8*e),0,e):null}Iu.mallocBigUint64=eZe;function tZe(e){return Svr?new BigInt64Array(Vd(8*e),0,e):null}Iu.mallocBigInt64=tZe;function rZe(e){return new DataView(Vd(e),0,e)}Iu.mallocDataView=rZe;function iZe(e){e=X2.nextPow2(e);var t=X2.log2(e),r=_B[t];return r.length>0?r.pop():new HXe(e)}Iu.mallocBuffer=iZe;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 oZe=K((Gri,aZe)=>{"use strict";var kvr=Object.prototype.toString;aZe.exports=function(e){var t;return kvr.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var $te=K((Hri,sZe)=>{sZe.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 fZe=K((jri,uZe)=>{"use strict";var Cvr=$te();uZe.exports=lZe;var sk=96;function Yte(e,t){var r=Cvr(getComputedStyle(e).getPropertyValue(t));return r[0]*lZe(r[1],e)}function Dvr(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 lZe(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 Dvr(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 dZe=K((Wri,hZe)=>{"use strict";hZe.exports=TB;var Fvr=TB.canvas=document.createElement("canvas"),wB=Fvr.getContext("2d"),cZe=AB([32,126]);TB.createPairs=AB;TB.ascii=cZe;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=cZe),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";mZe.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 pZe(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=vZe(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=vZe(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,pZe(d,s)}function pZe(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 _Ze=K((Yri,bZe)=>{"use strict";var f5=LXe(),Lvr=Cm(),Pvr=Gte(),zvr=BXe(),Ivr=Ste(),Xte=WE(),Rvr=OXe(),K2=nZe(),Bvr=J4(),qvr=oZe(),Ovr=$te(),Nvr=fZe(),Vvr=dZe(),Uvr=Sh(),Gvr=yZe(),Hvr=G_(),jvr=jte(),gZe=jvr.nextPow2,xZe=new Ivr,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){Wvr(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=zvr(t),this.shader=xZe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||Pvr({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(),xZe.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(qvr(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=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} + }`}),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=Lvr(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=Bvr(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=Hvr(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=Ovr(Z.size),$=Math.round(j[0]*Nvr(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:Gvr(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 Wvr(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}bZe.exports=df});var EB=K((Xri,wZe)=>{"use strict";var $vr=aQ(),Yvr=Gte();wZe.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=Yvr({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||$vr({container:n._glcontainer.node()}),a}});var Kte=K((Zte,kZe)=>{"use strict";var AZe=Kee(),TZe=Cte(),Xvr=dXe(),MZe=_Ze(),SZe=St(),{rgbaString:Zvr}=wo(),Kvr=Q1().selectMode,Jvr=EB(),Qvr=ff(),e1r=WW(),t1r=Yee().styleTextSelection,EZe={};function r1r(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;let d=(t._padStart||0)*i,p=(t._padEnd||0)*i,v=(r._padStart||0)*i,y=(r._padEnd||0)*i;return[s+t.domain[0]*c+d,l+r.domain[0]*h+y,a-u-(1-t.domain[1])*c-p,o-f-(1-r.domain[1])*h-v]}var Zte=kZe.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=Jvr(t,["ANGLE_instanced_arrays","OES_element_index_uint"],EZe);if(!f){a.init();return}var c=a.count,h=n._glcanvas.data()[0].regl;if(e1r(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=Xvr(h)),a.line2d===!0&&(a.line2d=TZe(h)),a.scatter2d===!0&&(a.scatter2d=AZe(h)),a.fill2d===!0&&(a.fill2d=TZe(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=SZe.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";CZe.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";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){"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((Jri,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,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((Qri,LZe)=>{"use strict";LZe.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((eii,PZe)=>{"use strict";PZe.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((tii,zZe)=>{"use strict";zZe.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((rii,IZe)=>{"use strict";IZe.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((iii,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,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((nii,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,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((aii,qZe)=>{"use strict";qZe.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((oii,OZe)=>{"use strict";var i1r=kB(),n1r=CB(),a1r=DB(),o1r=FB(),s1r=LB(),l1r=PB(),u1r=zB(),f1r=IB(),c1r=RB(),h1r=BB();OZe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":i1r,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":n1r,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":a1r,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":o1r,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":s1r,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:l1r,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:u1r,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:f1r,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:c1r,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:h1r}});var UZe=K((sii,VZe)=>{"use strict";var NZe=Kte(),d1r=Jte();Object.assign(NZe.reglPrecompiled,d1r);VZe.exports=NZe});var jZe=K((lii,HZe)=>{"use strict";var GZe=Gje();GZe.plot=UZe();HZe.exports=GZe});var Qte=K((uii,XZe)=>{"use strict";var p1r=Qf(),YZe=Wu(),WZe=zf().axisHoverFormat,{hovertemplateAttrs:v1r,templatefallbackAttrs:m1r}=gu(),lk=VE(),y1r=(jc(),or(Hc)).idRegex,g1r=cu().templatedArray,c5=Os().extendFlat,jy=p1r.marker,x1r=jy.line,b1r=c5(YZe("marker.line",{editTypeOverride:"calc"}),{width:c5({},x1r.width,{editType:"calc"}),editType:"calc"}),qB=c5(YZe("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:b1r,editType:"calc"});qB.color.editType=qB.cmin.editType=qB.cmax.editType="style";function $Ze(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:y1r[e],editType:"plot"}}}XZe.exports={dimensions:g1r("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:v1r(),hovertemplatefallback:m1r(),xhoverformat:WZe("x"),yhoverformat:WZe("y"),marker:qB,xaxes:$Ze("x"),yaxes:$Ze("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((fii,ZZe)=>{"use strict";ZZe.exports=function(e,t,r,i){i||(i=1/0);var n,a;for(n=0;n{"use strict";var ere=St(),_1r=A0(),KZe=Qte(),w1r=ff(),A1r=Xp(),T1r=OB(),M1r=jR().isOpenSymbol;JZe.exports=function(t,r,i,n){function a(d,p){return ere.coerce(t,r,KZe,d,p)}var o=_1r(t,r,{name:"dimensions",handleItemDefaults:S1r}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),f=T1r(r,o,"values");if(!f||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),A1r(t,r,i,n,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var c=M1r(r.marker.symbol),h=w1r.isBubble(r);a("marker.line.width",c||h?1:0),E1r(t,r,n,a),ere.coerceSelectionMarkerOpacity(r,a)};function S1r(e,t){function r(n,a){return ere.coerce(e,t,KZe.dimensions,n,a)}r("label");var i=r("values");i&&i.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function E1r(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 eKe=St();tKe.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]=eKe.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||eKe.extendFlat(l,o),l}});var aKe=K((dii,nKe)=>{"use strict";var tre=St(),NB=Vf(),k1r=Kp().calcMarkerSize,C1r=Kp().calcAxisExpansion,D1r=Zp(),iKe=W_().markerSelection,F1r=W_().markerStyle,L1r=rKe(),P1r=(Il(),or(Bl)).BADNUM,z1r=(V_(),or(N_)).TOO_MANY_POINTS;nKe.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;xz1r,m;for(y?m=a.sizeAvg||Math.max(a.size,3):m=k1r(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(oKe)});var uKe=K((pii,GB)=>{var I1r=sKe(),Wy=window,VB=["moz","webkit"],d5="AnimationFrame",p5=Wy["request"+d5],fk=Wy["cancel"+d5]||Wy["cancelRequest"+d5];for(h5=0;!p5&&h5{fKe.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 R1r=Kee(),B1r=Cm(),q1r=U_(),hKe=uKe(),O1r=cKe(),ire=J4(),N1r=G_();pKe.exports=Q2;function Q2(e,t){if(!(this instanceof Q2))return new Q2(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=R1r(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=hKe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,hKe(()=>{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 V1r(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 dKe(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 yKe=K((yii,mKe)=>{"use strict";var U1r=vKe(),nre=St(),jB=Vf(),G1r=Q1().selectMode;mKe.exports=function(t,r,i){if(i.length)for(var n=0;n(X||0)/Z;for(v=0;v-1,C=G1r(f)||!!n.selectedpoints||S,k=!0;if(C){var D=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var F=n.selectedpoints,P={};for(d=0;d{"use strict";gKe.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 xKe=are(),j1r=HR().calcHover,bKe=Cs().getFromId,W1r=Os().extendFlat;function $1r(e,t,r,i,n){n||(n={});var a=(i||"").charAt(0)==="x",o=(i||"").charAt(0)==="y",s=_Ke(e,t,r);if((a||o)&&n.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=n.gd,f=W1r({},e),c=0;c{"use strict";var EKe=St(),TKe=EKe.pushUnique,MKe=ff(),SKe=are();kKe.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=SKe.getDimIndex(n,l),d=SKe.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 DKe=St(),Y1r=Zp(),X1r=W_().markerStyle;FKe.exports=function(t,r){var i=r.trace,n=t._fullLayout._splomScenes[i.uid];if(n){Y1r(t,i),DKe.extendFlat(n.matrixOptions,X1r(t,i));var a=DKe.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(a,null)}}});var zKe=K((wii,PKe)=>{"use strict";var Z1r=Ho(),K1r=N$();PKe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:Qte(),supplyDefaults:QZe(),colorbar:e0(),calc:aKe(),plot:yKe(),hoverPoints:AKe().hoverPoints,selectPoints:CKe(),editStyle:LKe(),meta:{}};Z1r.register(K1r)});var NKe=K((Aii,OKe)=>{"use strict";var J1r=Cte(),Q1r=Ho(),{rgbaString:emr}=wo(),tmr=EB(),rmr=Zh().getModuleCalcData,ex=gc(),IKe=Vf().getFromId,RKe=Cs().shouldShowZeroLine,BKe="splom",qKe={};function imr(e){var t=e._fullLayout,r=Q1r.getModule(BKe),i=rmr(e.calcdata,r)[0],n=tmr(e,["ANGLE_instanced_arrays","OES_element_index_uint"],qKe);n&&(t._hasOnlyLargeSploms&&ore(e),r.plot(e,{},i))}function nmr(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&ore(e);for(var i=0;i{"use strict";var lmr=kB(),umr=CB(),fmr=DB(),cmr=FB(),hmr=LB(),dmr=PB(),pmr=zB(),vmr=IB(),mmr=RB(),ymr=BB();VKe.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":lmr,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":umr,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":fmr,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":cmr,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":hmr,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:dmr,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:pmr,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:vmr,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:mmr,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:ymr}});var jKe=K((Mii,HKe)=>{"use strict";var GKe=NKe(),gmr=UKe();Object.assign(GKe.reglPrecompiled,gmr);HKe.exports=GKe});var YKe=K((Sii,$Ke)=>{"use strict";var WKe=zKe();WKe.basePlotModule=jKe(),$Ke.exports=WKe});var ure=K((Eii,XKe)=>{"use strict";var xmr=Wu(),sre=Ph(),lre=lf(),bmr=kf().attributes,WB=Os().extendFlat,_mr=cu().templatedArray;XKe.exports={domain:bmr({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:_mr("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"},xmr("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:()=>Dmr,axisTitleOffset:()=>Cmr,bar:()=>Fmr,blockLineCount:()=>Emr,canvasPixelRatio:()=>Smr,cn:()=>Lmr,id:()=>Pmr,layers:()=>kmr,maxDimensionCount:()=>wmr,overdrag:()=>Amr,tickDistance:()=>Mmr,verticalPadding:()=>Tmr});var wmr,Amr,Tmr,Mmr,Smr,Emr,kmr,Cmr,Dmr,Fmr,Lmr,Pmr,hk=ps(()=>{"use strict";wmr=60,Amr=45,Tmr=2,Mmr=50,Smr=1,Emr=5e3,kmr=["contextLineLayer","focusLineLayer","pickLineLayer"],Cmr=28,Dmr=10,Fmr={width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},Lmr={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"},Pmr={filterBarPattern:"filter-bar-pattern"}});var Lm=K((kii,KKe)=>{"use strict";var zmr=m6();function ZKe(e){return[e]}KKe.exports={keyFun:function(e){return e.key},repeat:ZKe,descend:zmr,wrap:ZKe,unwrap:function(e){return e[0]}}});var hre=K((Cii,lJe)=>{"use strict";var Oc=(hk(),or(ck)),S1=No(),Imr=Lm().keyFun,$B=Lm().repeat,v5=St().sorterAsc,Rmr=St().strTranslate,JKe=Oc.bar.snapRatio;function QKe(e,t){return e*(1-JKe)+t*JKe}var eJe=Oc.bar.snapClose;function Bmr(e,t){return e*(1-eJe)+t*eJe}function XB(e,t,r,i){if(qmr(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 Omr(e){e.attr("x",-Oc.bar.captureWidth/2).attr("width",Oc.bar.captureWidth)}function Nmr(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function Vmr(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=tJe(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 rJe(){S1.select(document.body).style("cursor",null)}function cre(e){e.attr("stroke-dasharray",Vmr)}function YB(e,t){var r=S1.select(e).selectAll(".highlight, .highlight-shadow"),i=t?r.transition().duration(Oc.bar.snapDuration).each("end",t):r;cre(i)}function iJe(e,t){var r=e.brush,i=r.filterSpecified,n=NaN,a={},o;if(i){var s=e.height,l=r.filter.getConsolidated(),u=tJe(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 Gmr(e,t){S1.event.sourceEvent.stopPropagation();var r=t.height-S1.mouse(e)[1]-2*Oc.verticalPadding,i=t.unitToPaddedPx.invert(r),n=t.brush,a=iJe(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 nJe(e,t){S1.event.sourceEvent.stopPropagation();var r=t.height-S1.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 Hmr(e,t){var r=t.brush,i=r.filter,n=r.svgBrush;n._dragging||(aJe(e,t),nJe(e,t),t.brush.svgBrush.wasDragged=!1),n._dragging=!1;var a=S1.event;a.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,t.parent.inBrushDrag=!1,rJe(),!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 aJe(e,t){var r=t.height-S1.mouse(e)[1]-2*Oc.verticalPadding,i=iJe(t,r),n="crosshair";i.clickableOrdinalRange?n="pointer":i.region&&(n=i.region+"-resize"),S1.select(document.body).style("cursor",n)}function jmr(e){e.on("mousemove",function(t){S1.event.preventDefault(),t.parent.inBrushDrag||aJe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||rJe()}).call(S1.behavior.drag().on("dragstart",function(t){Gmr(this,t)}).on("drag",function(t){nJe(this,t)}).on("dragend",function(t){Hmr(this,t)}))}function oJe(e,t){return e[0]-t[0]}function Wmr(e,t,r){var i=r._context.staticPlot,n=e.selectAll(".background").data($B);n.enter().append("rect").classed("background",!0).call(Omr).call(Nmr).style("pointer-events",i?"none":"auto").attr("transform",Rmr(0,Oc.verticalPadding)),n.call(jmr).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 $mr(e,t,r){var i=e.selectAll("."+Oc.cn.axisBrush).data($B,Imr);i.enter().append("g").classed(Oc.cn.axisBrush,!0),Wmr(i,t,r)}function Ymr(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 Xmr(e){return function(r){var i=r.brush,n=Ymr(i),a=n.slice();i.filter.set(a),e()}}function sJe(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(v5)}).sort(oJe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=sJe(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 Kmr(e,t,r,i,n,a){var o=Zmr();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:i,brushCallback:Xmr(n),brushEndCallback:a}}}function Jmr(e,t){if(Array.isArray(e[0])?(e=e.map(function(i){return i.sort(v5)}),t.multiselect?e=sJe(e.sort(oJe)):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]}lJe.exports={makeBrush:Kmr,ensureAxisBrush:$mr,cleanRanges:Jmr}});var cJe=K((Dii,fJe)=>{"use strict";var tx=St(),Qmr=Kh().hasColorscale,eyr=xh(),tyr=kf().defaults,ryr=A0(),iyr=Cs(),uJe=ure(),nyr=hre(),dre=(hk(),or(ck)).maxDimensionCount,ayr=OB();function oyr(e,t,r,i,n){var a=n("line.color",r);if(Qmr(e,"line")&&tx.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),eyr(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function syr(e,t,r,i){function n(u,f){return tx.coerce(e,t,uJe.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},iyr.setConvert(t._ax,i.layout),n("multiselect");var l=n("constraintrange");l&&(t.constraintrange=nyr.cleanRanges(l,t))}}fJe.exports=function(t,r,i,n){function a(f,c){return tx.coerce(t,r,uJe,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=ryr(t,r,{name:"dimensions",layout:n,handleItemDefaults:syr}),l=oyr(t,r,i,n,a);tyr(r,n,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),ayr(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 dJe=K((Fii,hJe)=>{"use strict";var lyr=St().isArrayOrTypedArray,pre=gf(),uyr=Lm().wrap;hJe.exports=function(t,r){var i,n;return pre.hasColorscale(r,"line")&&lyr(r.line.color)?(i=r.line.color,n=pre.extractOpts(r.line).colorscale,pre.calc(t,r,{vals:i,containerStr:"line",cLetter:"c"})):(i=fyr(r._length),n=[[0,r.line.color],[1,r.line.color]]),uyr({lineColor:i,cscale:n})};function fyr(e){for(var t=new Array(e),r=0;r{"use strict";var cyr=St().isTypedArray;ZB.convertTypedArray=function(e){return cyr(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 AJe=K((Pii,wJe)=>{"use strict";var hyr=["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(` +`),dyr=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),dk=(hk(),or(ck)).maxDimensionCount,xJe=St(),pJe=1e-6,KB=2048,pyr=new Uint8Array(4),vJe=new Uint8Array(4),mJe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function vyr(e){e.read({x:0,y:0,width:1,height:1,data:pyr})}function bJe(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 myr(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],bJe(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 xyr(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&&bJe(n,0,0,u.canvasWidth,u.canvasHeight);var I=_(r);for(C=0;C{"use strict";var Oh=No(),$y=St(),yre=$y.isArrayOrTypedArray,CJe=$y.numberFormat,DJe=wo(),FJe=Cs(),Tyr=$y.strRotate,Pm=$y.strTranslate,Myr=Du(),JB=Is(),TJe=gf(),bre=Lm(),gv=bre.keyFun,zm=bre.repeat,LJe=bre.unwrap,m5=vre(),pu=(hk(),or(ck)),PJe=hre(),Syr=AJe();function MJe(e,t,r){return $y.aggNums(e,null,t,r)}function zJe(e,t){return _re(MJe(Math.min,e,t),MJe(Math.max,e,t))}function QB(e){var t=e.range;return t?_re(t[0],t[1]):zJe(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 Eyr(e,t){return t?function(r,i){var n=t[i];return n==null?e(r):n}:e}function kyr(e,t,r,i,n){var a=QB(r);return i?Oh.scale.ordinal().domain(i.map(Eyr(CJe(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 Cyr(e,t){return Oh.scale.linear().range([t,e-t])}function Dyr(e,t){return Oh.scale.linear().domain(QB(e)).range([t,1-t])}function Fyr(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 Lyr(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){let[o,s,l]=DJe.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 Pyr(e,t,r){var i=LJe(t),n=i.trace,a=m5.convertTypedArray(i.lineColor),o=n.line,s={color:DJe.normalize(n.unselected.line.color),opacity:n.unselected.line.opacity},l=TJe.extractOpts(o),u=l.reversescale?TJe.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:Lyr(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 zyr(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=Cyr(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=Dyr(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(CJe(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=Syr(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:IJe(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),Myr.convertToTspans(k,t)}).attr("transform",function(C){var k=EJe(C.model.labelAngle,C.model.labelSide),D=pu.axisTitleOffset;return(k.dir>0?"":Pm(0,2*D+C.model.height))+Tyr(k.degrees)+Pm(-D*k.dx,-D*k.dy)}).attr("text-anchor",function(C){var k=EJe(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(SJe),g.text(function(C){return kJe(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(SJe),S.text(function(C){return kJe(C,!1)}).each(function(C){JB.font(Oh.select(this),C.model.rangeFont)}),PJe.ensureAxisBrush(_,f,t)}});var Are=K((wre,VJe)=>{"use strict";var Byr=BJe(),qyr=EB(),qJe=vre().isVisible,NJe={};function OJe(e,t,r){var i=t.indexOf(r),n=e.indexOf(i);return n===-1&&(n+=t.length),n}function Oyr(e,t){return function(i,n){return OJe(e,t,i)-OJe(e,t,n)}}var wre=VJe.exports=function(t,r){var i=t._fullLayout,n=qyr(t,[],NJe);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=Oyr(p,o[d].filter(qJe));a[d].sort(v),o[d].filter(function(y){return!qJe(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]]])};Byr(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=NJe});var GJe=K(pk=>{"use strict";var UJe=No(),Nyr=Zh().getModuleCalcData,Vyr=Are(),Uyr=(Rp(),or(Ip));pk.name="parcoords";pk.plot=function(e){var t=Nyr(e.calcdata,"parcoords")[0];t.length&&Vyr(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=UJe.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:Uyr.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}i.each(n),window.setTimeout(function(){UJe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var jJe=K((Rii,HJe)=>{"use strict";HJe.exports={attributes:ure(),supplyDefaults:cJe(),calc:dJe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:GJe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var $Je=K((Bii,WJe)=>{"use strict";WJe.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 XJe=K((qii,YJe)=>{"use strict";YJe.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 KJe=K((Oii,ZJe)=>{"use strict";ZJe.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";JJe.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 tQe=K((Vii,eQe)=>{"use strict";var Gyr=$Je(),Hyr=XJe(),jyr=KJe(),Wyr=QJe();eQe.exports={"30680f8f6712ef1af5cf7547e0af35b036fb300c67b07967cf448492ff4de4d0":Gyr,"3fd666968f3ce90d1c048b7a9aab515f3ce387a5401a10f8b66121c9469d1c0d":Hyr,"453a70fefa48db31713162aeb1ac438cb8579f54504f3b23acf32128df3dfd45":jyr,a3970baf1d8cac9305ee830c7026550387343d4dde2353dd86a4d082c97d3470:Wyr}});var nQe=K((Uii,iQe)=>{"use strict";var rQe=Are(),$yr=tQe();Object.assign(rQe.reglPrecompiled,$yr);iQe.exports=rQe});var sQe=K((Gii,oQe)=>{"use strict";var aQe=jJe();aQe.plot=nQe();oQe.exports=aQe});var Tre=K((Hii,hQe)=>{"use strict";var uQe=Os().extendFlat,Yyr=Tu(),lQe=lf(),Xyr=Wu(),{hovertemplateAttrs:fQe,templatefallbackAttrs:cQe}=gu(),Zyr=kf().attributes,Kyr=uQe({editType:"calc"},Xyr("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:fQe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:cQe({editType:"plot"})});hQe.exports={domain:Zyr({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:uQe({},Yyr.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:fQe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:cQe({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:lQe({editType:"calc"}),tickfont:lQe({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:Kyr,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 vQe=K((jii,pQe)=>{"use strict";var y5=St(),Jyr=Kh().hasColorscale,Qyr=xh(),egr=kf().defaults,tgr=A0(),dQe=Tre(),rgr=OB(),igr=Yh().isTypedArraySpec;function ngr(e,t,r,i,n){n("line.shape"),n("line.hovertemplate"),n("line.hovertemplatefallback");var a=n("line.color",i.colorway[0]);if(Jyr(e,"line")&&y5.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),Qyr(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function agr(e,t){function r(u,f){return y5.coerce(e,t,dQe.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||igr(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")}}pQe.exports=function(t,r,i,n){function a(u,f){return y5.coerce(t,r,dQe,u,f)}var o=tgr(t,r,{name:"dimensions",handleItemDefaults:agr}),s=ngr(t,r,i,n,a);egr(r,n,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),rgr(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 yQe=K((Wii,mQe)=>{"use strict";var ogr=Lm().wrap,sgr=Kh().hasColorscale,lgr=T0(),ugr=pG(),fgr=Is(),vk=St(),cgr=Hs();mQe.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=ugr(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 SQe=K(($ii,MQe)=>{"use strict";var vu=No(),wgr=(E_(),or(S_)).interpolateNumber,Agr=qP(),Mre=wo(),gk=Gf(),rx=St(),mk=rx.strTranslate,gQe=Is(),Tgr=Du();function Mgr(e,t,r,i){var n=t._context.staticPlot,a=e.map(Vgr.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",Egr).on("mouseout",kgr).on("click",Cgr),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}),bQe(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){gQe.font(vu.select(this),w.parcatsViewModel.categorylabelfont),Tgr.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){gQe.font(vu.select(this),w.parcatsViewModel.labelfont)}),p.selectAll("rect.bandrect").on("mouseover",Rgr).on("mouseout",Bgr),p.exit().remove(),d.call(vu.behavior.drag().origin(function(w){return{x:w.x,y:0}}).on("dragstart",qgr).on("drag",Ogr).on("dragend",Ngr)),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()}MQe.exports=function(e,t,r,i){Mgr(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 Egr(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 Dgr(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}function bQe(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",1).attr("stroke-opacity",1)}function Fgr(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 Lgr(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)})}),Dgr(vu.select(e.parentNode))}function Pgr(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),Fgr(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 _Qe(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 zgr(e,t,r){var i=[];return vu.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var n=this;i.push(_Qe(e,t,n))}),i}function Igr(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 Rgr(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"?(Pgr(o),Lre(o,"plotly_hover",vu.event)):(Lgr(o),Fre(o,"plotly_hover",vu.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=_Qe(r,n,o):a==="color"?s=Igr(r,n,o):a==="dimension"&&(s=zgr(r,n,o)),s&&gk.loneHover(s,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}}function Bgr(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(kre(t.pathSelection),bQe(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 qgr(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),TQe(e.parcatsViewModel),AQe(e.parcatsViewModel)}}function Ngr(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){vu.select(this).selectAll("text").attr("font-weight","normal");var t={},r=wQe(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(){TQe(e.parcatsViewModel,!0),AQe(e.parcatsViewModel,!0)}).each("end",function(){(n||a)&&Agr.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function wQe(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)),Sgr(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((Yii,EQe)=>{"use strict";var Ggr=SQe();EQe.exports=function(t,r,i,n){var a=t._fullLayout,o=a._paper,s=a._size;Ggr(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 CQe=K(t7=>{"use strict";var Hgr=Zh().getModuleCalcData,jgr=Ire(),kQe="parcats";t7.name=kQe;t7.plot=function(e,t,r,i){var n=Hgr(e.calcdata,kQe);if(n.length){var a=n[0];jgr(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 FQe=K((Zii,DQe)=>{"use strict";DQe.exports={attributes:Tre(),supplyDefaults:vQe(),calc:yQe(),plot:Ire(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:CQe(),categories:["noOpacity"],meta:{}}});var PQe=K((Kii,LQe)=>{"use strict";LQe.exports=FQe()});var IQe=K((Jii,zQe)=>{"use strict";zQe.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 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"?` +{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 BQe=K((Qii,RQe)=>{"use strict";RQe.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((eni,UQe)=>{"use strict";var Wgr=(eb(),or(Qx)).default,$gr=IQe(),Ygr=BQe(),Xgr='\xA9 OpenStreetMap contributors',qQe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",OQe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",r7="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",Zgr="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",Kgr="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",Jgr="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",VQe={basic:r7,streets:r7,outdoors:r7,light:qQe,dark:OQe,satellite:Ygr,"satellite-streets":$gr,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:Xgr,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":qQe,"carto-darkmatter":OQe,"carto-voyager":r7,"carto-positron-nolabels":Zgr,"carto-darkmatter-nolabels":Kgr,"carto-voyager-nolabels":Jgr},NQe=Wgr(VQe);UQe.exports={styleValueDflt:"basic",stylesMap:VQe,styleValuesMap:NQe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",NQe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error.",fitBoundsPadding:20}});var bk=K((tni,$Qe)=>{"use strict";var GQe=St(),HQe=wo().defaultLine,Qgr=kf().attributes,e2r=lf(),t2r=Qf().textposition,r2r=Ef().overrideAll,i2r=cu().templatedArray,jQe=ix(),WQe=e2r({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});WQe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var n2r=$Qe.exports=r2r({_arrayAttrRegexps:[GQe.counterRegex("map",".layers",!0)],domain:Qgr({name:"map"}),style:{valType:"any",values:jQe.styleValuesMap,dflt:jQe.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:i2r("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:HQe},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:HQe}},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:WQe,textposition:GQe.extendFlat({},t2r,{arrayOk:!1})}})},"plot","from-root");n2r.uirevision={valType:"any",editType:"none"}});var i7=K((rni,KQe)=>{"use strict";var{hovertemplateAttrs:a2r,texttemplateAttrs:o2r,templatefallbackAttrs:YQe}=gu(),s2r=sm(),_k=Y4(),g5=Qf(),XQe=bk(),l2r=Tu(),u2r=Wu(),Z_=Os().extendFlat,f2r=Ef().overrideAll,c2r=bk(),ZQe=_k.line,x5=_k.marker;KQe.exports=f2r({lon:_k.lon,lat:_k.lat,cluster:{enabled:{valType:"boolean"},maxzoom:Z_({},c2r.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:o2r({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:YQe({editType:"plot"}),hovertext:Z_({},g5.hovertext,{}),line:{color:ZQe.color,width:ZQe.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},u2r("marker")),fill:_k.fill,fillcolor:s2r(),textfont:XQe.layers.symbol.textfont,textposition:XQe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:g5.selected.marker},unselected:{marker:g5.unselected.marker},hoverinfo:Z_({},l2r.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:a2r(),hovertemplatefallback:YQe()},"calc","nested")});var Rre={};Fl(Rre,{isSupportedFont:()=>d2r});function d2r(e){return h2r.indexOf(e)!==-1}var h2r,Bre=ps(()=>{"use strict";h2r=["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 eet=K((ini,QQe)=>{"use strict";var wk=St(),qre=ff(),p2r=Xp(),v2r=e1(),m2r=t1(),y2r=um(),JQe=i7(),g2r=(Bre(),or(Rre)).isSupportedFont;QQe.exports=function(t,r,i,n){function a(m,w){return wk.coerce(t,r,JQe,m,w)}function o(m,w){return wk.coerce2(t,r,JQe,m,w)}var s=x2r(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)){p2r(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)&&(v2r(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;m2r(t,r,n,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:g2r(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"&&y2r(t,r,i,a),wk.coerceSelectionMarkerOpacity(r,a)};function x2r(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((nni,ret)=>{"use strict";var tet=Cs();ret.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=tet.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=tet.tickText(o,o.c2l(s[1]),!0).text,n}});var Nre=K((ani,net)=>{"use strict";var iet=St();net.exports=function(t,r){var i=t.split(" "),n=i[0],a=i[1],o=iet.isArrayOrTypedArray(r)?iet.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 cet=K((oni,fet)=>{"use strict";var set=Hs(),s0=St(),b2r=(Il(),or(Bl)).BADNUM,a7=zE(),aet=gf(),_2r=Is(),w2r=M6(),o7=ff(),A2r=(Bre(),or(Rre)).isSupportedFont,T2r=Nre(),M2r=ud().appendArrayPointValue,S2r=Du().NEWLINES,E2r=Du().BR_TAG_ALL;fet.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=k2r(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":oet(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=C2r(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=T2r(i.textposition,_);s0.extendFlat(v.layout,{"text-size":i.textfont.size,"text-anchor":b.anchor,"text-offset":b.offset,"text-font":oet(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 k2r(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&&(aet.hasColorscale(t,"marker")?f=aet.makeColorScaleFuncFromTrace(r):f=s0.identity);var c;a&&(c=w2r(t));var h;o&&(h=function(_){var b=set(_)?+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"),A2r(s)||(s=r);var l=s.split(", ");return l}});var vet=K((sni,pet)=>{"use strict";var D2r=St(),het=cet(),b5=ix().traceLayerPrefix,xv={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function det(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=det.prototype;Ak.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&D2r.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])}};pet.exports=function(t,r){var i=r[0].trace,n=i.cluster&&i.cluster.enabled,a=i.visible!==!0,o=new det(t,i.uid,n,a),s=het(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 F2r=Gf(),Gre=St(),L2r=lA(),P2r=Gre.fillText,z2r=(Il(),or(Bl)).BADNUM,I2r=ix().traceLayerPrefix;function R2r(e,t,r){var i=e.cd,n=i[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=I2r+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]===z2r||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(F2r.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=L2r(n,y),e.extraText=met(n,y,i[0].t.labels),e.hovertemplate=n.hovertemplate,[e]}}function met(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)&&P2r(t,e,u),u.join("
")}yet.exports={hoverPoints:R2r,getExtraText:met}});var xet=K((uni,get)=>{"use strict";get.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var _et=K((fni,bet)=>{"use strict";var B2r=St(),q2r=ff(),{BADNUM:O2r}=(Il(),or(Bl)),u7=360,Hre=.001,f7=(e,t,r,i)=>[e.c2p([r,i]),t.c2p([r,i])];function N2r(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]}bet.exports=function(t,r){var f;let{cd:i,xaxis:n,yaxis:a}=t,{trace:o}=i[0];if(!q2r.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 X2r(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 prt(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 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 vrt(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 mrt(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 K2r(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 J2r(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 yrt(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 grt(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 xrt(){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 wet(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 brt(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 _rt(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 wrt(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 Art(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 Trt(e){return e[0]=0,e[1]=0,e[2]=0,e}function Q2r(){var e=new Ch(4);return Ch!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function exr(e,t,r,i){var n=new Ch(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function txr(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 rxr(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 Aet(){var e=new Ch(4);return Ch!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function ixr(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 Ert(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 nxr(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 Met(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 axr(e){var t=e[0],r=e[1];return t*t+r*r}function oxr(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=X2r([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 Crt(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 sxr(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 Y2r(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 lxr++}function uxr(e){return Math.log(e)/Math.LN2%1==0}function Lrt(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 D1(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 Prt(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 zrt([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 Irt(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 Rrt(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 fxr(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 Ort(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,fxr(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 k1(e){return e/Math.PI*180}function Fne(e,t){return e.roll==t.roll&&e.pitch==t.pitch&&e.bearing==t.bearing}function Nrt(e){let t=new Float64Array(9);Z2r(t,e);let r=k1(-Math.asin(Pl(t[2],-1,1))),i,n;return Math.hypot(t[5],t[8])<.001?(i=0,n=-k1(Math.atan2(t[3],t[4]))):(i=k1(t[5]===0&&t[8]===0?0:Math.atan2(t[5],t[8])),n=k1(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=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 k1(Math.atan2(a,oxr(i,n)))}function Pne(e,t,r){let i=new Float64Array(4);return nq(i,e,t-90,r),i}function Grt(e,t){return Vrt[t]&&"touches"in e}function Hrt(e,t){var n,a;if(!Urt[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 jrt(e){return Vrt[e]||Urt[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 Wrt(e,t){jd.REGISTERED_PROTOCOLS[e]=t}function $rt(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 hxr(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 dxr(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 Cet(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 vxr)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 tit(e){return e%=360,e<0&&(e+=360),e}function rit([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)/Krt),a=Yre((.0139322*e+.0971045*t+.7141733*r)/Jrt));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/eit+Qrt}function iit([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=Krt*Zre(a),o=Jrt*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:eit*(e-Qrt)}function gxr(e){let[t,r,i,n]=rit(e),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?tit(Math.atan2(i,r)*yxr):NaN,a,t,n]}function xxr([e,t,r,i]){return e=isNaN(e)?0:e*mxr,iit([r,Math.cos(e)*t,Math.sin(e)*t,i])}function bxr([e,t,r,i]){e=tit(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 _xr(e,t)?e[t]:void 0}function wxr(e){if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t=Vk(Axr,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?Det(+p,v):1];if(Fet(_))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?Det(+f,c):1];if(Fet(d))return bxr(d)}}}function h7(e){return parseInt(e.padEnd(2,e),16)/255}function Det(e,t){return A5(t?e/100:e,0,1)}function A5(e,t,r){return Math.min(Math.max(t,e),r)}function Fet(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 Txr(e){return e==="rgb"||e==="hcl"||e==="lab"}function ait(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 C1;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 kxr(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 cit(e,t,r=0,i=e.length-1,n=Cxr){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);cit(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 Cxr(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=Fxr(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 Uxr(e,t,r){return t<=r}function Gxr(e,t,r){return t>=r}function Ait(e,t,r,i){return i.compare(t,r)===0}function Hxr(e,t,r,i){return!Ait(e,t,r,i)}function jxr(e,t,r,i){return i.compare(t,r)<0}function Wxr(e,t,r,i){return i.compare(t,r)>0}function $xr(e,t,r,i){return i.compare(t,r)<=0}function Yxr(e,t,r,i){return i.compare(t,r)>=0}function Z5(e,t,r){let i=e!=="=="&&e!=="!=";return class Tit{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(!Pet(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(!Pet(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 Tit(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 nbr(e,t){let r=abr(e[0]),i=sbr(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[obr(i),lbr(n)]}function abr(e){return(180+e)/360}function obr(e){return e*360-180}function sbr(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function lbr(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 ubr(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 fbr(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 pbr([i[0]-r[0],i[1]-r[1]],n)!==0&&!!(zet(e,t,r,i)&&zet(r,i,e,t))}function cbr(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 vbr(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}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)for(let l of s){let u=[l.x+a[0],l.y+a[1]];Lit(u,t,r,n),o.push(u)}return o}function Ret(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){vbr(t);for(let s of o)for(let l of s)Lit(l,t,r,n)}return o}function mbr(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(!K5(s,a))return!1}if(t.type==="MultiPolygon"){let a=Fit(t.coordinates,i,n),o=Iet(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!hbr(s,a))return!1}return!0}function ybr(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=Ret(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!Dit(s,a))return!1}if(t.type==="MultiPolygon"){let a=Fit(t.coordinates,i,n),o=Ret(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!dbr(s,a))return!1}return!0}function zit(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 qet(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function Hne(e,t,r){if(!qet(e)||!qet(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(Oet(e,t))return 0}else if(Oet(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=_br(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=bbr(e[c],r,i);if(a=Math.min(a,h),a===0)return 0}}else{let c=mie(u,t);Net(o,a,i,e,s,c[0]),Net(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 Pit([[0,[0,e.length-1],[0,r.length-1]]],zit);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=gbr(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=xbr(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 Abr(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 Tbr(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 Mbr(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,wbr(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 Vet(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=ait(t,r,i,o);if(s)throw new hc(s,a);return new Ol(t/255,r/255,i/255,o,!1)}function Uet(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 kbr(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 Cbr(e){return Array.isArray(e)?`(${e.map(_c).join(", ")})`:`(${_c(e.type)}...)`}function B7(e){if(e instanceof mit)return B7(e.boundExpression);if(e instanceof v3&&e.name==="error"||e instanceof Mit||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 Nit(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 Dbr(e){return e}function Fbr(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 Lbr(e){switch(e){case"exponential":return Uit;case"interval":return zbr;case"categorical":return Pbr;case"identity":return Ibr;default:throw Error(`Unknown function type "${e}"`)}}function Vit(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=Fbr(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&&!Txr(e.colorSpace))throw Error(`Unknown color space: "${e.colorSpace}"`);let s=Lbr(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 Uit({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 Pbr(e,t,r,i,n){return AC(typeof r===n?i[r]:void 0,e.default,t.default)}function zbr(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 Uit(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=Rbr(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]||Dbr;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 Ibr(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 Rbr(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 Git(e,t,r,i){return`${e}${t}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function Hit(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){Hit(t);let n=new qit(F5,B7,[],r?Obr(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 Bbr(e){return e._styleExpression!==void 0}function jit(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&&!Nit(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 qbr(e,t,r,i){if(wq(e))return new Wit(e,t,r);if(Aq(e)){let n=jit(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 pit)t=F7(e.result);else if(e instanceof wit){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 Obr(e){let t={color:C1,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 Yit(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 Nbr(e){let t=!1;for(let r of e){let i=Xit(r);if(i==="expression")return"expression";i==="legacy"&&(t=!0)}return t?"legacy":"neutral"}function Xit(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 Nbr(e.slice(1));default:return"expression"}}function Kne(e){return Xit(e)!=="legacy"}function Get(e){return e==="$type"?["geometry-type"]:e==="$id"?["id"]:["get",e]}function Vbr(e){switch(e[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return e.length!==3||typeof e[1]!="string"?null:[e[0],Get(e[1]),e[2]];case"in":case"!in":{if(e.length<2||typeof e[1]!="string")return null;let t=["in",Get(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 Zit(e){if((e[0]==="<"||e[0]==="<="||e[0]===">"||e[0]===">=")&&e[1]==="$type")return`"$type" cannot be use with operator "${e[0]}"`;let t=Vbr(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}: ${Zit(r.legacyFilter)}`)}function G5(e,t,r){if(e==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Kne(e)?Ubr(e,t):e=O7(e);let i=Tq(e,t,Gbr,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:Kit(e),getGlobalStateRefs:()=>TC(i.value.expression)}}function Hbr(e,t){return et)}function Kit(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"?jbr(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"?Het(e[1],e.slice(2)):t==="!in"?v7(Het(e[1],e.slice(2))):t==="has"?jet(e[1]):t!=="!has"||v7(jet(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 jbr(e){return["any"].concat(e.map(O7))}function Het(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(Hbr)]]:["filter-in-small",e,["literal",t]]}}function jet(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function v7(e){return["!",e]}function Jit(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 Qit(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&&!Nit(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 Wbr(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 $br(e,t){let r=e;for(let i of t)r=r[i];return r}function Ybr(e,t){let r=Jne(t);return r?[new Ao(`${e.key}${r.path.map(i=>`[${i}]`).join("")}`,$br(e.value,r.path),Zit(r.legacyFilter),null,"warning")]:[]}function eae(e){let t=l3(e.value);return Kne(t)?[...Ybr(e,t),...H5(Jk({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:ent(e)}function ent(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 int(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 rnt(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 Xbr(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 ant(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:Wet,validateSpec:a}),s;case"raster-dem":return s=Xbr({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:Wet}),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 Zbr({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 ont(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 snt(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 lnt(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 Kbr(e){return px(e).length===0?[]:H5(e)}function Jbr(e){return px(e).length===0?[]:H5(e)}function Qbr(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(s_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>$et||u>$et?[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 cnt(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:Xrt,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(...l_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))?Qit(e):r.expression&&Aq(l3(t))?H5(e):r.type&&Yet[r.type]?Yet[r.type](e):bp(Jk({},e,{valueSpec:r.type?i[r.type]:r}))}function hnt(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:hnt,"*"(){return[]}}})),e.constants&&(r=r.concat(Jit({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:Gk}))),dnt(r)}function bv(e){return function(t){return e(Object.assign({},t,{validateSpec:Gk}))}}function dnt(e){return[].concat(e).sort((t,r)=>t.line-r.line)}function _v(e){return function(...t){return dnt(e.apply(this,t))}}function c_r(e,t,r){return new f_r(e,t,r)}function h_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=h_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 vnt(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 d_r(e){if(typeof e!="object"||!e)return!1;let t=iae(e);return t&&t!=="Object"}function mnt(e){return!d_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||vnt(e)||gx(e)||ArrayBuffer.isView(e)||e instanceof ImageData)}function Hk(e,t){if(mnt(e))return(vnt(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(mnt(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 Ket(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 ynt(e,t){let r=Ket(e),i=Ket(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=x_r(n.type),o=r=ett(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:ett(r,Math.max(i,t)),alignment:t}}function x_r(e){return g_r[e].BYTES_PER_ELEMENT}function ett(e,t){return Math.ceil(e/t)*t}function itt(e,t){return e=Pl(Math.floor(e),0,255),t=Pl(Math.floor(t),0,255),256*e+t}function ntt(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 B_r(e,t,r,i,n){e.emplaceBack(stt+t*8+i,stt+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 Nnt(e,t){if(e.length===1)return ltt(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(ltt(t,r))return!0;for(let r of t)if(uae(e,r))return!0;return!1}function q_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(O_r(e,i,r))return!0}return!1}function O_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 ltt(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 V_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 G_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 jnt(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 Jnt(e,t,r,i,n){let a=null;if(n===C3r(e,t,r,i)>0)for(let o=t;o=t;o-=i)a=mtt(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&&A3r(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?d3r(e,r,i,n):h3r(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=p3r(e,t),a=e,o=!0;continue}v3r(e,t,r,i,n);break}}}function h3r(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 d3r(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 p3r(e,t){let r=e,i=!1;do{let n=r.prev,a=r.next.next;eat(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 v3r(e,t,r,i,n){let a=e;do{let o=a.next.next;for(;o!==a.prev;){if(a.i!==o.i&&S3r(a,o)){let s=tat(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 m3r(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 b3r(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 ptt(e){let t=ene[e];for(;t.prev.next!==t;)t=t.next;return ene[e]=t,t}function vtt(e){let t=Qie[e];for(;t.prev.next!==t;)t=t.next;return Qie[e]=t,t}function _3r(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=ptt(h);r=vtt(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=ptt(h);r=vtt(h);do{if(r.prev.next===r&&i>=r.x&&r.x>=s&&i!==r.x&&$7(ni)&&(vo.x||r.x===o.x&&w3r(o,r)))&&(o=r,c=v)}r=r.next}while(r!==p)}return o}function w3r(e,t){return kh(e.prev,e,t.prev)<0&&kh(t.next,e,e.next)<0}function A3r(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);T3r(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 M3r(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 S3r(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))&&!E3r(e,t)&&(r||k3r(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 eat(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 E3r(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 k3r(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 tat(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 mtt(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&&b3r(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 C3r(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 z3r(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 nat(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 R3r(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 xtt(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 lat(e){let t=e.length;if(t<=1)return[e];let r=[],i,n;for(let a=0;aK3r(r,t))}function Z3r(e,t){let r=Y3r(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 Q3r(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 ewr(e,t){for(let r=0;r0?t+2*e:e}function bwr(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 _wr(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 xat(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 wwr(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 Awr(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 Twr(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 Ctt(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 Mwr(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 Dwr(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:Fwr(r),form:null}})}function Rwr(e){let t=e.filter(r=>r.type!=="T");for(let r=0;r0&&Lwr(t[r-1].type),a=r+1String.fromCodePoint(Owr(r))).join("")}function Vwr(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:Nwr)(e)}function Uwr(e,t,r){for(let i of e.sections)i.text=Vwr(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 Gwr(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&&Mwr(t[i],r)?t[i]+=r:t.push(r)}return t}function jwr(e){let t=new Set;if(_at){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 Wwr(e){for(let t of e)if(!$wr(t.codePointAt(0)))return!1;return!0}function $wr(e){return!bwr(e)}function Ptt(e){return!(qq(e)||Awr(e))}function wat(e){return new RegExp("\\p{sc=Arab}","u").test(String.fromCodePoint(e))}function Aat(e){return _wr(e)}function Tat(e){for(let t of e)if(Aat(t.codePointAt(0)))return!0;return!1}function Ywr(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||!Ptt(o.value.codePointAt(0))||C5[o.value])&&(r.premature||!Ptt(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 ztt(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 Itt(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]);tAr.has(n)?(e[i].level=t,r=!0):r&&eAr.has(n)?e[i].level=t:r=!1}}function nAr(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 sAr(e,t,r,i,n){let a=rAr(e,t,i,n);iAr(a,r);let o="",s=[];for(let l of nAr(a,r)){if(Qwr.test(l.text))continue;let u=aAr(l);o+=u,s.push(...Array(u.length).fill(l.index))}return{text:o,sourceIndices:s}}function lAr(e,t){let r=t.filter(a=>a>0&&aa-o),n=[];for(let a=0;a+1n.start))).map(([n,a])=>sAr(e,r,oAr(i,n),n,a))}function uAr(e,t){return Sat(e,t).map(r=>r.text)}function fAr(e,t,r){return Sat(e,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=t[n])!=null?a:0})])}function cAr(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 hAr(e,n,t);throw Error("Expected varint not more than 10 bytes")}function hAr(e,t,r){return r?t*4294967296+(e>>>0):(t>>>0)*4294967296+(e>>>0)}function dAr(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 pAr(e,t,r){e===1&&r.readMessage(vAr,t)}function vAr(e,t,r){if(e===3){let{id:i,bitmap:n,width:a,height:o,left:s,top:l,advance:u}=r.readMessage(mAr,{});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 mAr(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 kat(e){return new Eat(e).readFields(pAr,[])}function DC(e){return typeof(e==null?void 0:e.renderWithWebGL)=="function"}function Cat(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=>Ntt(a,e.sections,[...a].map(()=>0))):uAr(e.toString(),r).map(a=>hne([...a],e.sections,[...a].map(()=>0)));let n=_Ar(e);return i?i.processStyledBidirectionalText(e.text,n,r).map(([a,o])=>Ntt(a,e.sections,o)):fAr(e.text,n,r).map(([a,o])=>{let s=[...a];return hne(s,e.sections,Fat(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 Fat(e){let t=[],r=0;for(let i of e)t.push(r),r+=i.length;return t}function Ntt(e,t,r){let i=[...e],n=Fat(i),a=bAr(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=Tat(v.text)?wAr(v,y):xAr(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 FAr(_,t,r,i,m,o,s,l,c,u,h,p),!gAr(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 AAr(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 Lat(e){switch(e){case"top":return 0;case"center":return .5;default:return 1}}function TAr(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 MAr(e,t,r){return!(e===1||!t&&!qq(r)||t&&(gae(r)||wat(r)))}function L7(e){return new RegExp("\\p{Nd}","u").test(String.fromCodePoint(e))}function Pat(e){return new RegExp("\\p{Lu}","u").test(String.fromCodePoint(e))}function SAr(e){return/[\p{P}\p{S}]/u.test(String.fromCodePoint(e))}function EAr(e){let t=e.some(L7)&&e.every(i=>L7(i)||SAr(i)),r=e.length<=3&&e.every(i=>Pat(i)||L7(i));return t||r}function kAr(e){return(L7(e)||Pat(e))&&!wat(e)}function CAr(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 Vtt(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 Gtt(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}=BAr(r.zoomStops,e);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=qAr(r),n=r.evaluate(new Xu(e+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function BAr(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=OAr(e,t):e.kind==="composite"&&(r=NAr(e,t)),{uSizeT:r,uSize:i}}function OAr({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 NAr({interpolationType:e,minZoom:t,maxZoom:r},i){return e?Pl(Sv.interpolationFactor(e,i,t,r),0,1):0}function Rat(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 Bat(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||Rat(e,v,s,o,t)?v:void 0}l+=d}}function UAr(e,t,r,i,n,a,o,s,l){let u=qat(i,a,o),f=Oat(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||Rat(e,x,a,i,n))&&d.push(x)}}c+=m}return!s&&!d.length&&!o&&(d=Nat(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 Htt(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=zat(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=jtt(f,v,d),F=jtt(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 WAr(e,t){return t.max-e.max}function $Ar(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,Vnt(e,l,u))}return(r?1:-1)*Math.sqrt(i)}function YAr(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,Vat(u,s));return new Nm(l)}return null}function XAr(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=Wwr(T)?A:0,E=i.get("text-anchor").evaluate(h,{},e.canonical),S=Uat(r,h,e.canonical);if(!S){let F=i.get("text-radial-offset").evaluate(h,{},e.canonical);_=F?Vat(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||JAr(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=UAr(L,M,A,r.vertical||y,i,24,_,e.overscaling,Aa);for(let B of z){let O=y;(!O||!QAr(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=VAr(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=jAr(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 KAr(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 Gat(e){for(let t in e)return e[t];return null}function JAr(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=Htt(n,le,x,te),we=o?Htt(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+=Wtt(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+=Wtt(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=Uat(s,b,T),[ze,ke]=KAr(e.textAnchorOffsets,me);g&&(X=e4r(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 QAr(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 s4r(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 Wat(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 c4r(e,t);switch(e.type){case"background":return new f4r(e,t);case"circle":return new Q_r(e,t);case"color-relief":return new u3r(e,t);case"fill":return new N3r(e,t);case"fill-extrusion":return new nwr(e,t);case"heatmap":return new r3r(e,t);case"hillshade":return new a3r(e,t);case"line":return new mwr(e,t);case"raster":return new y_r(e,t);case"symbol":return new o4r(e,t)}}function p4r(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 _4r(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 w4r(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 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;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 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;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 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;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 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;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 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;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 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;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 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,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 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,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 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,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 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,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 P4r(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 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;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 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;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 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;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 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,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 q4r(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 O4r(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 N4r(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 V4r(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 U4r(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 Qat(){let e=new Uint8Array(G4r);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 H4r(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:Qat()}}function j4r(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 W4r(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 $4r(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=x4r(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 Y4r(e,t,r,i,n){switch(n){case 1:P4r(e,t,r,i);break;case 2:z4r(e,t,r,i);break;case 3:I4r(e,t,r,i);break;case 4:R4r(e,t,r,i);break;case 5:B4r(e,t,r,i);break;case 6:q4r(e,t,r,i);break;case 7:O4r(e,t,r,i);break;case 8:N4r(e,t,r,i);break;case 16:V4r(e,t,r,i);break;default:U4r(e,t,r,i,n)}return t+(n<<3)|0}function X4r(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 K4r(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=K4r(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 Q4r(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=W4r(e,h,f,a),v=f,y=$4r(e,d,a);return a.dataPointers.fill(0),J4r(e,o,l,u,t,i|0,n/256|0,p,v,a),y}function e5r(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=Q4r(e,t,l,s,u,a),s=s+u|0}return l}function t5r(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 r5r(e,t,r){let i=0,n=0,a=new Uint32Array(t),o=r!=null?r:Qat();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=e5r(e,a,i,n,u,o),n=n+u|0}let s=e.length-i|0,l=t-n|0;return t5r(e,i,s,a,n,l),a}function i5r(e,t,r,i,n){switch(n){case 2:_4r(e,t,r,i);return;case 3:w4r(e,t,r,i);return;case 4:A4r(e,t,r,i);return;case 5:T4r(e,t,r,i);return;case 6:M4r(e,t,r,i);return;case 7:S4r(e,t,r,i);return;case 8:E4r(e,t,r,i);return;case 9:k4r(e,t,r,i);return;case 10:C4r(e,t,r,i);return;case 11:D4r(e,t,r,i);return;case 12:F4r(e,t,r,i);return;case 16:L4r(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 o5r(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 u5r(e,t,r,i){return f5r(e,t,r,i,H4r(r>>>2))}function f5r(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=j4r(n,o);n5r(e,a,r,s);let l=r5r(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 c5r(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 ert(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 S5r(e,t,r,i){let n=tot(e,t,r,i);return new Uint32Array(n)}function E5r(e){return e[1]}function k5r(e){return yu(e[1])}function C5r(e){if(e.length===2){let t=yu(e[1]);return[t,t]}return[yu(e[2]),yu(e[3])]}function D5r(e){return e[1]}function F5r(e){return z0(e[1])}function L5r(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=N5r(e,t);return r.logicalLevelTechnique1===Xl.MORTON?q5r(r,e,t):(Xl.RLE===r.logicalLevelTechnique1||Xl.RLE===r.logicalLevelTechnique2)&&_p.NONE!==r.physicalLevelTechnique?O5r(r,e,t):r}function q5r(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 O5r(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 N5r(e,t){let r=e[t.get()],i=P5r[r>>4],n={};switch(i){case th.DATA:n={dictionaryType:I5r[r&15]};break;case th.OFFSET:n={offsetType:R5r[r&15]};break;case th.LENGTH:n={lengthType:B5r[r&15]}}t.increment();let a=e[t.get()],o=trt[a>>5],s=trt[a>>2&7],l=z5r[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?j5r.decode(e.subarray(t,r)):W5r(e,t,r)}function W5r(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 K5r(iT(e,t,r),r,i,n)}function P0(e,t,r,i,n){return J5r(iT(e,t,r),r,i,n)}function lx(e,t,r){return eTr(iT(e,t,r),r)}function iT(e,t,r){let i=r.physicalLevelTechnique;switch(i){case _p.FAST_PFOR:return u5r(e,r.numValues,r.byteLength,t);case _p.VARINT:return I0(e,t,r.numValues);case _p.NONE:return G5r(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 H5r(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function $5r(e,t,r){let i=iT(e,t,r);return i.length===1?yu(i[0]):k5r(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]:E5r(i)}function aot(e,t,r){return C5r(iT(e,t,r))}function oot(e,t,r){return L5r(Iae(e,t,r.numValues))}function sot(e,t,r,i){return uot(qC(e,t,r),r,i)}function Oae(e,t,r,i){return fot(qC(e,t,r),r,i)}function Y5r(e,t,r,i){let n=X5r(e,t,r,!1);return i?b3(n,i,0):n}function X5r(e,t,r,i){if(r.physicalLevelTechnique===_p.VARINT)return Q5r(o5r(e,t,r.numValues),r,i);let n=qC(e,t,r),a=i?uot(n,r):fot(n,r);return Float64Array.from(a,Number)}function Z5r(e,t,r){let i=qC(e,t,r);return i.length===1?z0(i[0]):F5r(i)}function lot(e,t,r){let i=qC(e,t,r);return i.length===1?r.logicalLevelTechnique1===Xl.DELTA?z0(i[0]):i[0]:D5r(i)}function K5r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case Xl.DELTA:if(t.logicalLevelTechnique2===Xl.RLE){let a=t;if(!i)return A5r(e,a.runs,a.numRleValues);e=gne(e,a.runs,a.numRleValues),n=Ktt(e)}else n=Ktt(e);break;case Xl.RLE:n=v5r(e,t.runs,t.numRleValues);break;case Xl.MORTON:Rae(e),n=new Int32Array(e);break;case Xl.COMPONENTWISE_DELTA:if(r&&!i)return tot(e,r.scale,r.min,r.max);n=x5r(e);break;case Xl.NONE:n=c5r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?b3(n,i,0):n}function J5r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case Xl.DELTA:if(t.logicalLevelTechnique2===Xl.RLE){let a=t;n=Qtt(gne(e,a.runs,a.numRleValues))}else n=Qtt(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?S5r(e,r.scale,r.min,r.max):M5r(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 uot(e,t,r){let i;switch(t.logicalLevelTechnique1){case Xl.DELTA:if(t.logicalLevelTechnique2===Xl.RLE){let n=t;if(!r)return T5r(e,n.runs,n.numRleValues);e=xne(e,n.runs,n.numRleValues),i=Jtt(e)}else i=Jtt(e);break;case Xl.RLE:i=m5r(e,t.runs,t.numRleValues);break;case Xl.NONE:i=h5r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?b3(i,r,BigInt(0)):i}function fot(e,t,r){let i;switch(t.logicalLevelTechnique1){case Xl.DELTA:if(t.logicalLevelTechnique2===Xl.RLE){let n=t;i=ert(xne(e,n.runs,n.numRleValues))}else i=ert(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 Q5r(e,t,r){switch(t.logicalLevelTechnique1){case Xl.DELTA:if(t.logicalLevelTechnique2===Xl.RLE){let i=t;e=eot(e,i.runs,i.numRleValues)}return p5r(e),e;case Xl.RLE:return rTr(e,t,r);case Xl.NONE:return r&&d5r(e),e;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}}function eTr(e,t){if(t.logicalLevelTechnique1===Xl.DELTA&&t.logicalLevelTechnique2===Xl.NONE)return b5r(e);if(t.logicalLevelTechnique1===Xl.RLE&&t.logicalLevelTechnique2===Xl.NONE){let r=t;return w5r(e,r.runs,r.numRleValues)}if(t.logicalLevelTechnique1===Xl.NONE&&t.logicalLevelTechnique2===Xl.NONE){g5r(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=_5r(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 F1?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 tTr(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 tTr(e,t,r){let i=new Kat(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 rTr(e,t,r){return r?y5r(e,t.runs,t.numRleValues):eot(e,t.runs,t.numRleValues)}function Nae(e,t,r){return{x:rrt(e,t)-r,y:rrt(e>>1,t)-r}}function rrt(e,t){let r=0;for(let i=0;i>i;return r}function iTr(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 ort(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 bot(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 F1(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 xot(v,m,n,a,o,s,y,c)}else f[h++]=new R5(v,m,n,a,y)}return f}function wTr(e,t,r,i){let n=ATr(r);if(i===0)return n.map(f=>new lrt(f,[]));let a=TTr(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 TTr(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-=MTr(e,t,o)),a-=STr(e,t,i,o),a-=ETr(e,t,i,o);let s,l=0;if(i&qm.PRESENCE){let f=kTr(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 MTr(e,t,r){let i=e[t.get()];t.add(1);let n=bot("",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=DTr(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=urt(e,t,r);return{value:_ot(e,t+2,a,i).value,nextIndex:a}}if(n===fx.START_LIST){let a=urt(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 wot(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 FTr(e,t,r,i,n,a){var o;return r.type==="scalarType"?a&&!a.has(r.name)?(rot(i,e,t),null):LTr(i,e,t,n,r.scalarType,r):((o=r.complexType)==null?void 0:o.physicalType)===hx.MAP?wTr(e,t,r,i):i===0?null:_Tr(e,t,r,a)}function LTr(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 F1(h,u.numValues)}let s=o!=null?o:i;switch(n.physicalType){case Bu.UINT_32:case Bu.INT_32:return BTr(t,r,a,n,s);case Bu.STRING:{let u=a.nullable?e-1:e;return(l=bot(a.name,t,r,u,o))!=null?l:null}case Bu.BOOLEAN:return PTr(t,r,a,i,s);case Bu.UINT_64:case Bu.INT_64:return RTr(t,r,a,s,n);case Bu.FLOAT:return zTr(t,r,a,s);case Bu.DOUBLE:return ITr(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=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 F1(u,o);return new pTr(r.name,f,n)}function zTr(e,t,r,i){let n=rc(e,t),a=OC(i)?i:void 0,o=iot(e,t,n.numValues,a);return new vTr(r.name,o,i)}function ITr(e,t,r,i){let n=rc(e,t),a=OC(i)?i:void 0,o=not(e,t,n.numValues,a);return new Cae(r.name,o,i)}function RTr(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?sot(e,t,a,u):Oae(e,t,a,u);return new cot(r.name,f,i)}if(o===Wf.SEQUENCE){let u=oot(e,t,a);return new hot(r.name,u[0],u[1],a.numRleValues,s)}let l=s?Z5r(e,t,a):lot(e,t,a);return new got(r.name,l,i,s)}function BTr(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=aot(e,t,a);return new Dae(r.name,u[0],u[1],a.numRleValues,s)}let l=s?$5r(e,t,a):qae(e,t,a);return new Fae(r.name,l,n,s)}function OC(e){return e instanceof F1}function Aot(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:Zat.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 UTr(e)}}function qTr(e){return e>=Nh.SCALAR_BASE}function Tot(e){return e===Nh.STRUCT||e===Nh.MAP}function OTr(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 NTr(e){var t;return e.type==="scalarType"&&((t=e.scalarType)==null?void 0:t.type)==="logicalType"&&e.scalarType.logicalType===Zat.ID}function VTr(e){var t;return e.type==="complexType"&&((t=e.complexType)==null?void 0:t.type)==="physicalType"&&e.complexType.physicalType===hx.GEOMETRY}function UTr(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),GTr.decode(a)}function HTr(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=I0(e,t,1)[0]>>>0,i=r>=Nh.SCALAR_BASE?Aot(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"&&Tot(r)){let a=n.complexType,o=I0(e,t,1)[0]>>>0;a.children=Array(o);for(let s=0;s>>0,i=Aot(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${frt}`);let n;if(qTr(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]=WTr(e,i),f=l.featureTables[0],c=null,h=null,d=[],p=0;for(let y of f.columns){let m=y.name;if(NTr(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 F1(x,b.numValues)}let _=rc(e,i);p=w?w.size():_.decompressedCount,c=YTr(e,y,i,m,_,w!=null?w:p,r)}else if(VTr(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=cTr(e,w,i,p,t)}else{let w=OTr(y)?I0(e,i,1)[0]:1;if(w===0)continue;let _=FTr(e,i,y,w,p,void 0);if(_)if(Array.isArray(_))for(let b of _)d.push(b);else d.push(_)}}let v=new g4r(f.name,h,c,d,u);n.push(v),i.set(o)}return n}function YTr(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=aot(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,Y5r(e,r,n,l),a):new cot(i,Oae(e,r,n,l),a);case Wf.SEQUENCE:{let c=oot(e,r,n);return new hot(i,c[0],c[1],n.numRleValues,!1)}case Wf.CONST:return new got(i,lot(e,r,n),a,!1)}throw Error("Vector type not supported for id column.")}function QTr(e){return typeof e=="object"&&!!e&&"evaluate"in e}function crt(e,t,r,i,n){return uq(e,(a,o)=>{let s=t instanceof Eq?t.get(o):null;return QTr(s)?s.evaluate(r,i,void 0,n):s})}function e6r(e,t){return t-e}var U2r,hrt,G2r,H2r,j2r,drt,bne,W2r,$2r,Tk,c7,Ch,Q7,L1,Um,hC,Srt,Tne,Tet,krt,Aa,lq,lxr,Eet,jre,Brt,qrt,P1,Vrt,Urt,ket,X5,jd,P7,B5,cxr,yC,gC,Ine,Yrt,Wd,tl,ah,Xrt,hn,Zrt,Ao,xC,ss,Yl,hu,C1,hq,i3,Kl,pxr,dq,bC,pq,Yk,vq,_C,mq,vxr,Krt,Jrt,Qrt,fie,eit,mxr,yxr,_xr,Axr,l0,Ol,Mxr,cie,Qy,Gm,Hm,Mv,hc,Sxr,Nm,Vm,ag,qne,N5,Exr,sit,One,Sv,ic,uit,d7,Zy,Let,k5,pit,mit,Lxr,Pxr,zxr,Ixr,Rxr,Bxr,wit,Xxr,Zxr,Kxr,Jxr,Qxr,ebr,Mit,tbr,rbr,ibr,Om,Une,Pit,Bet,Gne,Wne,Sbr,$ne,F5,Im,Ebr,qit,v3,Xne,Zne,Qk,q7,Wit,Gbr,Wet,$et,s_r,Yet,u_r,f_r,_d,tae,wie,Ky,N7,Xu,tC,Aie,MC,Xet,Zet,p_r,Tv,Eq,ms,al,rC,gnt,kq,Vh,Jet,rie,z1,Qet,v_r,m_r,Cq,y_r,g_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,xnt,nae,bnt,_nt,wnt,Ant,Tnt,Mnt,Snt,Ent,knt,Cnt,og,Dnt,Fnt,b_r,__r,w_r,A_r,T_r,_5,ttt,M_r,S_r,E_r,rtt,Lnt,k_r,Pnt,I1,Gie,znt,Hie,C_r,nc,D_r,F_r,L_r,P_r,H7,Int,sg,rl,gs,Jl,nd,Q5,lg,aae,oae,z_r,Dv,Bk,e3,Xy,E1,ox,Bnt,qnt,Ont,u3,$ie,ott,stt,sae,utt,Z_r,ftt,K_r,J_r,Gnt,Q_r,Hnt,ctt,e3r,t3r,Pq,qf,EC,Ynt,r3r,htt,i3r,n3r,Xnt,a3r,dtt,o3r,s3r,ph,Jy,l3r,Knt,u3r,Xie,f3r,aC,Zie,Jie,Qc,W7,Qie,ene,Av,Sk,J_,Ek,kk,Rm,o3,zq,P5,z5,D3r,aat,ytt,B3r,gtt,q3r,O3r,oat,N3r,ine,V3r,U3r,Ev,sat,kC,H3r,W3r,ad,Js,uat,Uu,_x,nie,dat,btt,twr,_tt,rwr,iwr,pat,nwr,lwr,uwr,one,fwr,sne,cwr,hwr,vat,Att,mat,Ttt,dwr,Mtt,pwr,Stt,vwr,b7,yat,mwr,ywr,gwr,xwr,ktt,gat,Y7,Swr,Ewr,kwr,Dtt,Cwr,bat,_at,Fk,Lk,C5,Xwr,Zwr,xae,bae,Qwr,eAr,tAr,cne,cni,qtt,Eat,Oq,yAr,Dat,Ott,Utt,I5,M7,HAr,E5,Vq,Aae,t4r,dne,pne,zC,$tt,n4r,Ytt,a4r,oie,Hat,Tae,o4r,Xtt,l4r,u4r,jat,f4r,$at,c4r,h4r,d4r,Yat,IC,RC,p0,sie,BC,y4r,Eae,x3,Gq,kae,Cae,Xat,Dae,Fae,g4r,Ok,Bu,hx,Zat,Kat,Xl,_p,Lae,mne,Pae,yne,G4r,th,td,Bm,Eh,P5r,trt,z5r,I5r,R5r,B5r,Wf,F1,j5r,cot,hot,u0,irt,vx,dot,pot,mot,yot,uTr,fTr,pTr,vTr,got,Vae,srt,R5,xot,lrt,qm,fx,Nh,GTr,frt,uie,XTr,ZTr,KTr,JTr,Sot,Eot=ps(()=>{U2r=Object.create,hrt=Object.defineProperty,G2r=Object.getOwnPropertyDescriptor,H2r=Object.getOwnPropertyNames,j2r=Object.getPrototypeOf,drt=Object.prototype.hasOwnProperty,bne=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),W2r=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=H2r(t),a=0,o=n.length,s;at[l]).bind(null,s),enumerable:!(i=G2r(t,s))||i.enumerable});return e},$2r=(e,t,r)=>(r=e==null?{}:U2r(j2r(e)),W2r(t||!e||!e.__esModule||!drt.call(e,"default")?hrt(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=K2r;L1=J2r;Um=tq,hC=Cv;(function(){var e=xrt();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,Tet(i,i))}})(),(function(){var e=Aet(),t=Aet();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],Tet(t,nxr(t,e))}})();krt=axr;(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.`)}}),qrt=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)});P1=85.051129,Vrt={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},Urt={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};ket="AbortError",X5=class extends Error{constructor(e=ket){super(e instanceof Error?e.message:e),this.name=ket,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}};cxr=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(!cxr(e.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return hxr(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 dxr(e,t)})},gC=(e,t)=>yC(js(e,{type:"json"}),t),Ine=(e,t)=>yC(js(e,{type:"arrayBuffer"}),t);Yrt=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={}),Cet(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={}),Cet(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}},Xrt={$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=Xrt,Zrt=["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"},C1={kind:"color"},hq={kind:"projectionDefinition"},i3={kind:"object"},Kl={kind:"value"},pxr={kind:"error"},dq={kind:"collator"},bC={kind:"formatted"},pq={kind:"padding"},Yk={kind:"colorArray"},vq={kind:"numberArray"},_C={kind:"resolvedImage"},mq={kind:"variableAnchorOffsetCollection"};vxr=[xC,ss,Yl,hu,C1,hq,bC,i3,ed(Kl),pq,vq,Yk,_C,mq];Krt=.96422,Jrt=.82521,Qrt=4/29,fie=6/29,eit=3*fie*fie,mxr=Math.PI/180,yxr=180/Math.PI;_xr=Object.hasOwn||function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};Axr={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=wxr(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",gxr(this.rgb))}get lab(){return this.overwriteGetter("lab",rit(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]=xxr([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]=iit(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),Mxr=["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 lit(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=kxr(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=C1: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,C1)&&!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},uit=class fit{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,C1),!f))return null;let c=null;if(s["vertical-align"]){if(typeof s["vertical-align"]=="string"&&!Mxr.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 fit(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 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=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())}},Let={"to-boolean":hu,"to-color":C1,"to-number":ss,"to-string":Yl},k5=class dit{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(!Let[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=Let[i],a=[];for(let o=1;o4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:ait(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())}},pit=class vit{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}},Pxr=class xit{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 xit(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}},zxr=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}},Ixr=class bit{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 bit(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()}},Rxr=class _it{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()}},Bxr=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}},wit=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())}};Xxr=Z5("==",qxr,Ait),Zxr=Z5("!=",Oxr,Hxr),Kxr=Z5("<",Nxr,jxr),Jxr=Z5(">",Vxr,Wxr),Qxr=Z5("<=",Uxr,$xr),ebr=Z5(">=",Gxr,Yxr),Mit=class Sit{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 Sit(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}},tbr=class Eit{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 Eit(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}},rbr=class kit{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 kit(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}},ibr=class Cit{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 Cit(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 mbr(t,this.geometries);if(t.geometryType()==="LineString")return ybr(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},Pit=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}},Bet=Math.PI/180,Gne=class{constructor(e){let t=Bet*6378.137*1e3,r=Math.cos(e*Bet),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 Abr(t,this.geometries);if(t.geometryType()==="LineString")return Tbr(t,this.geometries);if(t.geometryType()==="Polygon")return Mbr(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},Sbr=class Iit{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 Rit{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 Rit(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={"==":Xxr,"!=":Zxr,">":Jxr,"<":Kxr,">=":ebr,"<=":Qxr,array:Zy,at:Lxr,boolean:Zy,case:Rxr,coalesce:wit,collator:Mit,format:uit,image:rbr,in:Pxr,"index-of":zxr,interpolate:Sv,"interpolate-hcl":Sv,"interpolate-lab":Sv,length:ibr,let:pit,literal:N5,match:Ixr,number:Zy,"number-format":tbr,object:Zy,semiliteral:Sbr,slice:Bxr,step:One,string:Zy,"to-boolean":k5,"to-color":k5,"to-number":k5,"to-string":k5,var:mit,within:Une,distance:Wne,"global-state":$ne},Im=class extends Error{constructor(e,t){super(t),this.message=t,this.key=e}},Ebr=class Bit{constructor(t,r=[]){this.parent=t,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(t){return new Bit(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}},qit=class Oit{constructor(t,r,i=[],n,a=new Ebr,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 sit;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 Oit(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 qit(r.registry,B7,r.path,null,r.scope);let c=[],h=!1;for(let d=1;dCbr(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),[C1],(e,[t])=>{let[r,i,n,a]=t.evaluate(e).rgb;return[r*255,i*255,n*255,a]}],rgb:[C1,[ss,ss,ss],Vet],rgba:[C1,[ss,ss,ss,ss],Vet],has:{type:hu,overloads:[[[Yl],(e,[t])=>Uet(t.evaluate(e),e.properties())],[[Yl,i3],(e,[t,r])=>Uet(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])=>kbr(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 sit,this._defaultValue=r?Yit(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(Git(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}};Wit=class $it{constructor(t,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,Hit(r),this._parameters=t,this._specification=i,this._rootKey=r,this._defaultValue=Yit(i),this._warningHistory={};let n=Vit(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(Git(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(t){return new $it(t._parameters,t._rootKey,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};Gbr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};Wet={promoteId:Zbr};$et=1114111,s_r=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;Yet={"*"(){return[]},array:Qne,boolean:Wbr,number:Mq,color:bie,constants:Jit,enum:eC,filter:eae,function:Qit,layer:nnt,object:bp,source:ant,light:ont,sky:snt,terrain:lnt,projection:i_r,projectionDefinition:n_r,string:px,formatted:Kbr,resolvedImage:Jbr,padding:Qbr,numberArray:e_r,colorArray:t_r,variableAnchorOffsetCollection:r_r,sprite:unt,state:fnt,fontFaces:cnt};xp.source=_v(bv(ant)),xp.sprite=_v(bv(unt)),xp.glyphs=_v(bv(hnt)),xp.fontFaces=_v(bv(cnt)),xp.light=_v(bv(ont)),xp.sky=_v(bv(snt)),xp.terrain=_v(bv(lnt)),xp.state=_v(bv(fnt)),xp.layer=_v(bv(nnt)),xp.filter=_v(bv(eae)),xp.paintProperty=_v(bv(rnt)),xp.layoutProperty=_v(bv(int));u_r={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},f_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,u_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 pnt{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=qbr(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 Xet(this.property,this.value,t,js({},e.transition,this.transition),e.now)}untransitioned(){return new Xet(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):D1(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 Zet(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 Zet(this._properties);for(let t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}},Xet=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}},gnt=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",gnt),As("ColorRampProperty",kq);Jet=" 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?",z1=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=c_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 p_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+Jet);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+Jet)));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}},v_r=()=>Qet||(Qet=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")})),m_r={get paint(){return v_r()}},Cq=e=>e.type==="raster",y_r=class extends z1{constructor(e,t){super(e,m_r,t)}},g_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);xnt=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)}};xnt.prototype.size=20;nae=class extends Lie{get(e){return new xnt(this,e)}};As("CollisionBoxArray",nae);bnt=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]}};bnt.prototype.size=52;_nt=class extends Rie{get(e){return new bnt(this,e)}};As("PlacedSymbolArray",_nt);wnt=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]}};wnt.prototype.size=68;Ant=class extends Bie{get(e){return new wnt(this,e)}};As("SymbolInstanceArray",Ant);Tnt=class extends G7{getoffsetX(e){return this.float32[e*1+0]}};As("GlyphOffsetArray",Tnt);Mnt=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",Mnt);Snt=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]}};Snt.prototype.size=12;Ent=class extends qie{get(e){return new Snt(this,e)}};As("TextAnchorOffsetArray",Ent);knt=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]}};knt.prototype.size=8;Cnt=class extends Oie{get(e){return new knt(this,e)}};As("FeatureIndexArray",Cnt);og=class extends iC{},Dnt=class extends V7{},Fnt=class extends Tie{},b_r=class extends iC{},__r=class extends iC{},w_r=class extends Mie{},A_r=class extends Sie{},T_r=class extends nC{},_5=class extends Eie{},ttt=class extends kie{},M_r=class extends Cie{},S_r=class extends Die{},E_r=class extends Fie{},rtt=class extends Pie{},Lnt=class extends zie{},k_r=class extends Iie{},Pnt=class extends U7{},I1=class extends U7{},Gie=class extends Nie{},znt=class extends Vie{},Hie=dc([{name:"a_pos",components:2,type:"Int16"}],4),C_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);D_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"}]),F_r=dc([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),L_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)})),P_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=$2r(bne(((e,t)=>{var r=L_r(),i=P_r();t.exports=r,t.exports.murmur3=r,t.exports.murmur2=i}))(),1),Int=class Rnt{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,r,i,n){this.ids.push(ntt(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=ntt(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 Rnt;return r.ids=t.ids,r.positions=t.positions,r.indexed=!0,r}};As("FeaturePositionMap",Int);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 E1)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 E1)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 E1){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 E1)&&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 E1||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 E1||t instanceof ox)&&t.destroy()}}},u3=class{constructor(e,t,r=()=>!0){this.programConfigurations={};for(let i of e)this.programConfigurations[i.id]=new Ont(i,t,r);this.needsUpload=!1,this._featureMap=new Int,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",Bnt),As("CrossFadedDasharrayBinder",qnt),As("CompositeExpressionBinder",E1),As("ProgramConfiguration",Ont,{omit:["_buffers"]}),As("ProgramConfigurationSet",u3);$ie=2**14-1,ott=-$ie-1;stt=-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 b_r,this.indexArray=new I1,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,C_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;dutt||(utt=new Vh({"circle-sort-key":new al(hn.layout_circle["circle-sort-key"],"circle-sort-key")})),K_r=()=>ftt||(ftt=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")})),J_r={get paint(){return K_r()},get layout(){return Z_r()}},Gnt=e=>e.type==="circle",Q_r=class extends z1{constructor(e,t){super(e,J_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=X_r(l,n,o,s),d=u),Unt({queryGeometry:h,size:d,transform:n,unwrappedTileID:o,getElevation:s,pitchAlignment:c,pitchScale:f},i)}},Hnt=class extends sae{};As("HeatmapBucket",Hnt,{omit:["layers"]});e3r=()=>ctt||(ctt=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")})),t3r={get paint(){return e3r()}};Pq=class Wnt{constructor(t,r){cae(this,t,1,r)}resize(t){jnt(this,t,1)}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,1)}},qf=class $nt{constructor(t,r){cae(this,t,4,r)}resize(t){jnt(this,t,4)}replace(t,r){r?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new $nt({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",Ynt=e=>e.type==="heatmap",r3r=class extends z1{createBucket(e){return new Hnt(e)}constructor(e,t){super(e,t3r,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 Unt({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()}},i3r=()=>htt||(htt=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")})),n3r={get paint(){return i3r()}},Xnt=e=>e.type==="hillshade",a3r=class extends z1{constructor(e,t){super(e,n3r,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()}},o3r=()=>dtt||(dtt=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")})),s3r={get paint(){return o3r()}};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}},l3r=(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 Znt(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",u3r=class extends z1{constructor(e,t){super(e,s3r,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 P3r(this._vertexBuffer,L3r(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&&iat(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 __r,this.indexArray=new I1,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,f3r),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=rat(o,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;nat((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",aat,{omit:["layers","patternFeatures"]});B3r=()=>ytt||(ytt=new Vh({"fill-sort-key":new al(hn.layout_fill["fill-sort-key"],"fill-sort-key")})),q3r=()=>gtt||(gtt=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")})),O3r={get paint(){return q3r()},get layout(){return B3r()}},oat=e=>e.type==="fill",N3r=class extends z1{constructor(e,t){super(e,O3r,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 aat(e)}queryRadius(){return Fq(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:e,geometry:t,transform:r,pixelsToTileUnits:i}){return Nnt(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),V3r=dc([{name:"a_centroid",components:2,type:"Int16"}],4),U3r=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}},sat=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=lat(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"];H3r=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)}};W3r=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 [, ]")}},uat=2*Math.PI*ad;Uu=class cat{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 cat(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/uat*$3r(W5(this.y))}},_x=89.25;nie=8192;dat=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 w_r,this.centroidVertexArray=new og,this.indexArray=new I1,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?Z3r(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:X3r(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,U3r),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,V3r.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",dat,{omit:["layers","features"]});twr=()=>btt||(btt=new Vh({"fill-extrusion-rounded-corner-distance":new ms(hn["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),rwr=()=>_tt||(_tt=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")})),iwr={get paint(){return rwr()},get layout(){return twr()}},pat=e=>e.type==="fill-extrusion",nwr=class extends z1{constructor(e,t){super(e,iwr,t)}createBucket(e){return new dat(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=swr(s,o,0),c=owr(i,u,l,o),h=c[0],d=c[1];return awr(h,d,f)}};lwr="geojsonvt_clip_start",uwr="geojsonvt_clip_end",one=dc([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),fwr=one.members;one.size,one.alignment;sne=dc([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),cwr=sne.members;sne.size,sne.alignment;hwr=Math.cos(75/2*(Math.PI/180)),vat=1/2,Att=2**14/vat,mat=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 A_r,this.layoutVertexArray2=new T_r,this.indexArray=new I1,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,cwr)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,fwr),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[lwr],end:+e.properties[uwr]}}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>Att/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*(Att-1):this.scaledDistance)*vat;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",mat,{omit:["layers","patternFeatures"]});dwr=()=>Ttt||(Ttt=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")})),pwr=()=>Mtt||(Mtt=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")})),Stt={get paint(){return pwr()},get layout(){return dwr()}},vwr=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)}},yat=e=>e.type==="line",mwr=class extends z1{constructor(e,t){super(e,Stt,t),this.gradientVersion=0,b7||(b7=new vwr(Stt.paint.properties["line-width"].specification,"line-floorwidth"),b7.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e==="line-gradient"){let t=this.gradientExpression();this.stepInterpolant=Bbr(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 mat(e)}queryRadius(e){let t=e,r=Ett(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*Ett(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=H_r(i,l*a)),q_r(o,i,s)}isTileClipped(){return!0}};ywr=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),gwr=dc([{name:"a_projected_pos",components:3,type:"Float32"}],4);dc([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);xwr=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"}]);ktt=dc([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),gat=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}`)})}};Swr={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"},Ewr={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]},kwr={\u0644\u0622:[65269,65270],\u0644\u0623:[65271,65272],\u0644\u0625:[65273,65274],\u0644\u0627:[65275,65276]},Dtt=1604,Cwr=/[\u0600-\u06ff\u0750-\u077f\u0870-\u089f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/;bat=new Map;for(let[e,t]of Object.entries(Swr))Dwr(t,e,bat);_at=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"};Xwr={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};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=Ywr(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("\u200B")}trim(){let t=this.graphemes(),r=0;for(;rr&&Rtt(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=wwr(v),w=Ctt(v)&&Ctt(y);(Xwr[v]||m||"imageName"in this.getSection(d-1)||u[d+1]!==void 0&&Zwr[y]||w&&(f!=null?f:f=jwr(this.text)).has(h))&&o.push(Btt(d,c,s,o,Kwr(v,y,m&&l),!1))}gae(p.codePointAt(0))||(c+=ztt(p,this.getSection(d),i,n,t,a)),h+=p.length}return Mat(Btt(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+=ztt(u,f,i,n,t,a),s++}let l=Math.max(1,Math.ceil(o/r));return o/l}};bae=Jwr(),Qwr=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/,eAr=new Set(["WS","FSI","LRI","RLI","PDI"]),tAr=new Set(["S","B"]);cne=4294967296,cni=1/cne,qtt=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),Eat=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,cAr(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&&qtt?qtt.decode(this.buf.subarray(t,e)):dAr(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]}},yAr=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",yAr);Dat=(function(e){return e[e.none=0]="none",e[e.horizontal=1]="horizontal",e[e.vertical=2]="vertical",e[e.horizontalOnly=3]="horizontalOnly",e})(Dat||{});Ott=new RegExp("^\\p{gc=M}$","u");Utt=32640;I5=class Iat extends Jr{constructor(t,r,i,n){super(t,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new Iat(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)?zat(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}},HAr=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=$Ar(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;t4r=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];dne=class{constructor(e){this.layoutVertexArray=new M_r,this.indexArray=new I1,this.programConfigurations=e,this.segments=new nc,this.dynamicLayoutVertexArray=new S_r,this.opacityVertexArray=new E_r,this.hasVisibleVertices=!1,this.placedSymbolArray=new _nt}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,ywr.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,gwr.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,t4r,!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 k_r}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,xwr.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=Gtt(this.zoom,t["text-size"]),this.iconSizeData=Gtt(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=>Dat[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 Tnt,this.lineVertexArray=new Mnt,this.symbolInstances=new Ant,this.textAnchorOffsets=new Ent}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=r4r(S)),x=Uwr(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=Hwr(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}){XAr({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"]});n4r=()=>$tt||($tt=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")})),a4r=()=>Ytt||(Ytt=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:C1,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 a4r()},get layout(){return n4r()}},Hat=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",Hat,{omit:["defaultValue"]});Tae=e=>e.type==="symbol",o4r=class vne extends z1{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?i4r(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 Hat(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 uit?o(u.sections):u.eachChild(s)},l=i.value;l._styleExpression&&s(l._styleExpression.expression)}return a}};l4r=()=>Xtt||(Xtt=new Vh({"background-color":new ms(hn.paint_background["background-color"],"background-color"),"background-pattern":new gnt(hn.paint_background["background-pattern"],"background-pattern"),"background-opacity":new ms(hn.paint_background["background-opacity"],"background-opacity")})),u4r={get paint(){return l4r()}},jat=e=>e.type==="background",f4r=class extends z1{constructor(e,t){super(e,u4r,t)}};$at=e=>e.type==="custom",c4r=class extends z1{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")}};h4r=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=()=>{}}},d4r={once:!0},Yat=class{constructor(e,t){this.target=e,this.mapId=t,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new h4r(()=>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))},d4r):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(!p4r(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=v4r(this.x,this.y,this.z),n=m4r(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",y4r=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=lat(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]}},Xat=class extends x3{constructor(e,t,r,i){super(e,t,i),this.delta=r}},Dae=class extends Xat{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]}},g4r=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=Jat(Pae),G4r=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={}));P5r=[th.PRESENT,th.DATA,th.OFFSET,th.LENGTH],trt=[Xl.NONE,Xl.DELTA,Xl.COMPONENTWISE_DELTA,Xl.RLE,Xl.MORTON],z5r=[_p.NONE,_p.FAST_PFOR,_p.VARINT],I5r=[td.NONE,td.SINGLE,td.SHARED,td.VERTEX,td.MORTON,td.FSST],R5r=[Bm.VERTEX,Bm.INDEX,Bm.STRING,Bm.KEY],B5r=[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={}));F1=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}};j5r=new TextDecoder;cot=class extends Gq{getValueFromBuffer(e){return this.dataBuffer[e]}},hot=class extends Xat{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"})(irt||(irt={}));(function(e){e[e.MORTON=0]="MORTON",e[e.VEC_2=1]="VEC_2",e[e.VEC_3=2]="VEC_3"})(vx||(vx={}));dot=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 iTr(this)}get mortonSettings(){return this._mortonSettings}};pot=class extends dot{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}};mot=class extends dot{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 ZTr(i)}),{})}},JTr=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 Cnt,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 KTr(this.rawTileData).layers:this.vtLayers=new W3r(new Eat(this.rawTileData)).layers,this.sourceLayerCoder=new y4r(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)=>V_r(e.cameraQueryGeometry,v-l,y-l,m+l,w+l));for(let v of h)f.push(v);f.sort(e6r);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=crt(w.paint,y.paint,d,m,o),w.layout=crt(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",JTr,{omit:["rawTileData","sourceLayerCoder"]});Sot=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:()=>B5,AttributionControl:()=>yut,BoxZoomHandler:()=>aut,CanvasSource:()=>olt,CooperativeGesturesHandler:()=>vut,DoubleClickZoomHandler:()=>cut,DragPanHandler:()=>hut,DragRotateHandler:()=>dut,EXTENT:()=>Aa,EdgeInsets:()=>woe,ErrorEvent:()=>tl,Event:()=>Wd,Evented:()=>ah,FullscreenControl:()=>bDr,FullscreenEvent:()=>Coe,GPUInitializationError:()=>iut,GeoJSONSource:()=>tlt,GeolocateControl:()=>vDr,GeolocateErrorEvent:()=>Aut,GeolocateEvent:()=>A3,GeolocatePositionEvent:()=>koe,GlobeControl:()=>wDr,Hash:()=>nut,ImageSource:()=>uT,KeyboardHandler:()=>uut,LngLat:()=>Js,LngLatBounds:()=>q1,LogoControl:()=>gut,Map:()=>sDr,MapBoxZoomEvent:()=>hoe,MapContextEvent:()=>oO,MapLibreEvent:()=>Gh,MapLibreMap:()=>sDr,MapMouseEvent:()=>$d,MapMovementEvent:()=>ol,MapProjectionEvent:()=>Ust,MapSourceDataEvent:()=>Xf,MapStyleDataEvent:()=>Lv,MapStyleImageMissingEvent:()=>Gst,MapStyleLoadEvent:()=>coe,MapTerrainEvent:()=>Vst,MapTouchEvent:()=>ZC,MapWheelEvent:()=>Nst,Marker:()=>Eoe,MarkerClickEvent:()=>wut,MarkerDragEvent:()=>w3,MercatorCoordinate:()=>Uu,NavigationControl:()=>uDr,Point:()=>Jr,Popup:()=>MDr,PopupEvent:()=>Doe,RasterDEMTileSource:()=>Qst,RasterTileSource:()=>Ioe,ScaleControl:()=>yDr,ScrollZoomHandler:()=>fut,Style:()=>Toe,TerrainControl:()=>_Dr,TwoFingersTouchPitchHandler:()=>lut,TwoFingersTouchRotateHandler:()=>sut,TwoFingersTouchZoomHandler:()=>out,TwoFingersTouchZoomRotateHandler:()=>put,VectorTileSource:()=>Jst,VideoSource:()=>alt,addProtocol:()=>Wrt,addSourceType:()=>yMr,clearPrewarmedResources:()=>H6r,config:()=>jd,createTileMesh:()=>ilt,getGlobalDispatcher:()=>zoe,getMaxParallelImageRequests:()=>PDr,getRTLTextPluginStatus:()=>CDr,getVersion:()=>DDr,getWorkerCount:()=>FDr,getWorkerUrl:()=>IDr,importScriptInWorkers:()=>BDr,isTimeFrozen:()=>o6r,now:()=>Ku,prewarm:()=>G6r,removeProtocol:()=>$rt,restoreNow:()=>a6r,setMaxParallelImageRequests:()=>zDr,setNow:()=>n6r,setRTLTextPlugin:()=>kDr,setWorkerCount:()=>LDr,setWorkerUrl:()=>RDr});function Ost(){var e=new Ch(4);return Ch!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function t6r(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 r6r(e){return e[0]*e[3]-e[2]*e[1]}function i6r(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 n6r(e){xO.setNow(e)}function a6r(){xO.restoreNow()}function o6r(){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 h6r(e,t){let r={};for(let i in e)i!=="ref"&&(r[i]=e[i]);return Zrt.forEach(i=>{i in t&&(r[i]=t[i])}),r}function kot(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),m6r(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 g6r(){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 Lot(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 x6r(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(Lot(u,a,".json"),"SpriteJSON");o[l]=gC(f,i);let c=yield t.transformRequest(Lot(u,a,".png"),"SpriteImage");s[l]=B1.getImage(c,i)}return yield Promise.all([...Object.values(o),...Object.values(s)]),b6r(o,s)})}function b6r(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 M6r(e){let t=/^u\+([0-9a-f]*)(\?+)$/i.exec(e);if(t){let[,n,a]=t;return n.length+a.length>6?null:Pot(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 Pot(i,r[2]===void 0?i:parseInt(r[2],16))}function Pot(e,t){return e>t||e>doe?null:{start:e,end:Math.min(t,doe)}}function S6r(e,t){return e.ranges.some(({start:r,end:i})=>t>=r&&t<=i)}function zot(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 j6r(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 W6r(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 $6r(e,t,r,i,n,a,o){var c;let s=W6r((c=n==null?void 0:n.layers)!=null?c:null,t,e.id),l=a.maxPitchScaleFactor(),u=e.tilesIn(i,l,s);u.sort(Yst);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,j6r(a,h.tileID),o?(d,p)=>o(h.tileID,d,p):void 0)});return K6r(Z6r(f),e)}function Y6r(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(Yst);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 J6r(s,e,r)}function X6r(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 Yst(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 K6r(e,t){for(let r in e)for(let i of e[r])Xst(i,t);return e}function J6r(e,t,r){for(let i in e)for(let n of e[i]){let a=r[t[i].source];Xst(n,a)}return e}function Xst(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 Zst(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 Q6r(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 eMr(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 tMr(e,t,r){if(!e)return t||{};if(!t)return e||{};let i=qot(e,r),n=qot(t,r);rMr(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 nMr(a)}function rMr(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,iMr(n,i)),e.update.delete(r))}}function iMr(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 qot(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 nMr(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 elt(e){return!e||e.length===0?[]:typeof e[0]=="number"?[e]:e.flatMap(t=>elt(t))}function lO(e){return e.type==="GeometryCollection"?e.geometries.flatMap(t=>lO(t)):elt(e.coordinates)}function Oot(e){let t=new q1,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 aMr({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 q1([n,a],[o,s])}function lMr(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 uMr(e){return e>0?1/(1-e):1+e}function fMr(e){return e>0?1-1/(1.001-e):-e}function rlt(e,t){let r=ilt(t,"16bit"),i=og.deserialize({arrayBuffer:r.vertices,length:r.vertices.byteLength/2/2}),n=I1.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 ilt(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 pMr(e){let t=(1-4/e)/.9921875;return Math.max(0,t)}function nlt(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 gMr(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 xMr),$ae}function Not(e){let t=[];for(let r in e)t.push({id:r,state:e[r]});return t}function _Mr(e,t,r,i){let n=h0([],e,t),a=1/n[3]/r*i;return Srt(n,n,[a,a,1/n[3],a])}function wMr(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=Crt(e[c+n],l[c],r);o=h!==null&&h>=0?Math.max(o,h):Math.max(o,s[c])}let u=AMr(e,t),f=TMr(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 AMr(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 TMr(e,t){let r=hC(e),i=Mrt([],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 MMr(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 Vot(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*Vot(s-1,0,Yf(o/2)),f=Math.min(Yf(_x),l+Yf(o/2)),c=Math.min(f,l-Yf(o/2)),h=Vot(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 EMr(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 kMr(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 CMr(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:kMr(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}=CMr(r,i,e.cameraPosition,t.maxContentElevation));let n=hat(e),a=Uu.fromLngLat(e.center,e.elevation),o=EMr(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=MMr(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||SMr)(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 Uot(e){return e==="raster"||e==="image"||e==="video"}function DMr(e,t,r,i,n,a,o){let s=Ku(),l=Frt(t);for(let u of t){let f=e.getTileById(u.key);(f.fadingDirection===0||f.fadeOpacity===0)&&f.resetFadeLogic(),!FMr(e,f,r,s,i,n,o)&&(LMr(e,f,r,s,a,o)||PMr(f,l,s,o)||f.resetFadeLogic())}}function FMr(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 LMr(e,t,r,i,n,a){if(!t.hasData())return!1;let o=t.tileID.children(n),s=Got(e,t,o,r,i,n,a);if(s)return!0;for(let l of o)Got(e,t,l.children(n),r,i,n,a)&&(s=!0);return s}function Got(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 PMr(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 zMr(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 IMr(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||Hot(e,s),!((a=(n=s.neighboringTiles)==null?void 0:n[e.tileID.key])!=null&&a.backfilled)&&Hot(s,e)}}function Hot(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 BMr(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 qMr(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 OMr(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=Ost();o[0]=a[0],o[1]=a[1],o[2]=n[0],o[3]=n[1],t6r(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 VMr(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 hlt(e,t){return .5+e/t*.5}function UMr(e,t){return e.x>=-t[0]&&e.x<=t[0]&&e.y>=-t[1]&&e.y<=t[1]}function GMr(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 Yot(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=dlt(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=$ot(i.writingMode,_,b,u);if(M)return M}p=[w.first];for(let M=i.glyphStartIndex+1;M0?_.point:plt(t.tileAnchorPoint,w,y,1,t),M=Zq(y.x,y.y,t,r),x=Zq(b.x,b.y,t,r),T=$ot(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 plt(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 plt(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 vlt(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 HMr(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]=Prt(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=HMr(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 $Mr(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 Kot(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 Jot(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 Qot(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*JMr+t*QMr+r*eSr+t*tSr+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;ylt(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 ylt(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);ylt(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 tst(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 pO(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 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().maxzoom180?-360:r<-180?360:0}function ist(e){return Math.max(0,Math.floor(e))}function Hoe(e,t,r,i){if(i<0||i>=1)return ost;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 wlt(fO(e,t),e.near[2]+t*e.dz)}function sst({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(){uu("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function Slt(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=Nrt(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 Elt(e,t,r,i,n){let a=n.padding,o=R1(n.worldSize,r.getNorthWest()),s=R1(n.worldSize,r.getNorthEast()),l=R1(n.worldSize,r.getSouthEast()),u=R1(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){Mlt();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 Clt(e){let t=lT(e.worldSize,e.center.lat);return 2*Math.PI*t}function _Sr(e,t,r){let i=Uh(t),n=Uh(r),a=nh(i,n),o=Math.acos(a),s=Clt(e);return o/(2*Math.PI)*s}function wSr(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 ASr(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 TSr(e,t){return nq(mx(),-e.lng,-e.lat,t)}function MSr(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 fst(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-(P1-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 kSr(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 CSr(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 DSr(e,t){return 360/Clt({worldSize:e,center:{lat:t}})}function FSr(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=DSr(t.worldSize,t.center.lat);return new Js(t.center.lng-r.x*a*n,Pl(t.center.lat+r.y*a,-P1,P1))}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 cst(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 Flt(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 hst(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 zlt(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 pst(e,t){let{sample:r,radius:i}=zlt(e,t);return wlt(r,(i-1)*ad)}function vst(e,t){let r=Uh(e);return $f(r,r,1+t/ad)}function mst(e,t,r){let i=tq(Gu(),r,e);return nh(i,t)}function zSr(e,t,r){let i={constrainOverride:t};if(Array.isArray(e)){let n=new ust({type:e},r);return{projection:n,transform:new yst(i),cameraHelper:new gst(n)}}switch(e){case"mercator":return{projection:new _oe,transform:new vO(i),cameraHelper:new mO};case"globe":{let n=new ust({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]},{});return{projection:n,transform:new yst(i),cameraHelper:new gst(n)}}case"vertical-perspective":return{projection:new klt,transform:new Llt(i),cameraHelper:new Rlt};default:return uu(`Unknown projection name: ${e}. Falling back to mercator projection.`),{projection:new _oe,transform:new vO(i),cameraHelper:new mO}}}function GSr(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]=HSr[n];r=Math.ceil(r/o)*o,t[i]=r,r+=a}return{offsets:t,contentWords:r,sizeWords:Math.ceil(r/4)*4}}function qlt(e){return new Woe(e,_O.ProjectionUBO,Blt)}function xst(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 jSr(e,t){var a;if(!t){e.projectionUniformBuffer.bind();return}let r=t.uniformBufferKey;if(r===void 0){xst(e.projectionUniformBuffer,t);return}let i=e.keyedProjectionUniformBuffers.get(r);if(i){i.bind();return}let n=(a=e.freeProjectionUniformBuffers.pop())!=null?a:qlt(e);e.keyedProjectionUniformBuffers.set(r,n),xst(n,t)}function WSr(e){e.freeProjectionUniformBuffers.push(...e.keyedProjectionUniformBuffers.values()),e.keyedProjectionUniformBuffers.clear()}function $Sr(e){e.projectionUniformBuffer.destroy();for(let t of e.keyedProjectionUniformBuffers.values())t.destroy();for(let t of e.freeProjectionUniformBuffers)t.destroy()}function YSr(e){return new Woe(e,_O.TerrainUBO,Olt)}function XSr(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 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 JSr(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 gEr(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 jlt(e,t,r){return ig(e.transform,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}function kkr(e){return new Woe(e,_O.FrameUBO,Ylt)}function Ckr(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 Fkr(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 Ast(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 Lnt;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;qkr(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 Bkr(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 qkr(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;GMr(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?Pkr:te,we=L&&r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(1)!==0,oe;oe=L?F.iconsInText?IEr(z.kind,W,_,m,w,le,e,Ee,$,ie,Z,H,g,ze,ke):$lt(z.kind,W,_,m,w,le,e,Ee,$,ie,n,Z,we,g,ze,ke):Wlt(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,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),F&&!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 Nkr(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:fEr(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 Vkr(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"?Hkr(e,s,r,o,n):n.currentPass==="translucent"&&jkr(e,r,o,n))}a.viewport.set([0,0,e.width,e.height])}else n.currentPass==="offscreen"?Ukr(e,t,r,i,n):n.currentPass==="translucent"&&Gkr(e,r)}function Ukr(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]);Wkr(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,Glt(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 Gkr(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),Zlt(r,t).bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,i.TRIANGLES,mu.disabled,Zu.disabled,e.colorModeForRenderPass(),Hu.disabled,Hlt(e,t,0,1),null,null,t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom))}function Hkr(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=Xlt(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,Glt(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 jkr(e,t,r,i){let n=e.context,a=n.gl,o=e.transform;n.setColorMode(e.colorModeForRenderPass());let s=Zlt(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,Hlt(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 Wkr(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=Xlt(e,t.width/4,t.height/4),r.heatmapFbos.set(EC,n))}function Xlt(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 Zlt(e,t){return t.colorRampTexture||(t.colorRampTexture=new ph(e,t.colorRamp,e.gl.RGBA)),t.colorRampTexture}function Klt(e,t,r){let i=e.context,n=i.bindFramebuffer.get(),a=i.viewport.get(),[,,o,s]=a;return $kr(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 $kr(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 Jlt(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,FEr(t,0),null,null,i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom),e.currentStencilSource=void 0}function Qlt(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=sMr(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 aCr(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:oCr(e,a,r)}}return e.selfFading?{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:sCr(e,r)}:n}function oCr(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 sCr(e,t){let r=(Ku()-e.timeAdded)/t,i=Pl(r,0,1);return{tileOpacity:i,fadeMix:{opacity:i,mix:0}}}function lCr(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?OEr(o,e,h,{tileID:b,tileSize:c},_):qEr(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 pCr(e){let t=e.transform.padding;kst(e,e.transform.height-(t.top||0),3,uCr),kst(e,t.bottom||0,3,fCr),Cst(e,t.left||0,3,cCr),Cst(e,e.transform.width-(t.right||0),3,hCr);let r=e.transform.centerPoint;vCr(e,r.x,e.transform.height-r.y,dCr)}function vCr(e,t,r,i){gO(e,t-1,r-10,2,20,i),gO(e,t-10,r-1,20,2,i)}function kst(e,t,r,i){gO(e,0,t+r/2,e.transform.width,r,i)}function Cst(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 mCr(e,t,r,i){for(let n of r)yCr(e,t,n,i)}function yCr(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}`),gCr(e,`${y} ${d}kB`);let m=R0(i,r);o.draw(n,a.TRIANGLES,s,l,Nc.alphaBlended,Hu.disabled,bst(Ol.transparent,v),null,m,f,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments),o.draw(n,a.LINE_STRIP,s,l,u,Hu.disabled,bst(Ol.red),c,m,f,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments)}function gCr(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 xCr(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 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{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 _Cr(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=USr(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 wCr(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=VSr(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 rut(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 I1;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 ACr(e,t){let r=e.context,i=r.gl,n=GEr(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=rut(r,t);l.draw(r,i.TRIANGLES,a,o,s,Hu.disabled,n,null,void 0,"sky",u.vertexBuffer,u.indexBuffer,u.segments)}function TCr(e,t){let r=e.getCartesianPosition();_rt(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)),wrt(r,r,i),r}function MCr(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=TCr(r,e.transform),u=s.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),f=lT(s.worldSize,s.center.lat),c=Dlt(s),h=Flt(Cv(c)-f,f),d=t.properties.get("atmosphere-blend")*u.projectionTransition*h;if(d===0)return;let p=VEr(l,d,c,f,s.inverseProjectionMatrix),v=rut(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 HCr({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 jCr({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 WCr({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 XCr(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 cDr(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 xut(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 but(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 hDr(){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:_ut},[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 dDr(e){return e.firstElementChild.children[1]}function Bst(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=xDr(r),a=n/r;e.style.width=`${t*a}px`;let o=`${n}\xA0${i}`;e.textContent!==o&&(e.textContent=o)}function gDr(e){let t=10**Math.ceil(-Math.log(e)/Math.LN10);return Math.round(e*t)/t}function xDr(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:gDr(r),t*r}function Tut(e){if(!e)return Tut(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 SDr(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 kDr(e,t){return QC().setRTLTextPlugin(e,t)}function CDr(){return QC().getRTLTextPluginStatus()}function DDr(){return EDr}function FDr(){return bO.workerCount}function LDr(e){bO.workerCount=e}function PDr(){return jd.MAX_PARALLEL_IMAGE_REQUESTS}function zDr(e){jd.MAX_PARALLEL_IMAGE_REQUESTS=e}function IDr(){return jd.WORKER_URL}function RDr(e){jd.WORKER_URL=e}function BDr(e){return Ls(this,null,function*(){yield zoe().broadcast("IS",e)})}var Sut,qst,jq,NC,Hae,Yd,xO,s6r,l6r,u6r,f6r,VC,t,pf,Cl,B1,c6r,Gh,ol,coe,Lv,Xf,$d,ZC,Nst,hoe,Vst,Ust,oO,Gst,_6r,w6r,doe,A6r,T6r,E6r,poe,Foe,k6r,C6r,D6r,F6r,Rot,L6r,P6r,Bot,z6r,I6r,R6r,Loe,bO,U6r,KC,$st,$q,q1,Kst,Jst,Ioe,Qst,tlt,oT,oMr,sMr,eD,T3,Yq,uT,alt,olt,slt,vMr,llt,mMr,yMr,voe,xMr,$ae,ult,bMr,Roe,Boe,SMr,jot,cg,yoe,RMr,Wot,NMr,jMr,YMr,Xot,UC,Zot,XMr,ZMr,KMr,JMr,QMr,eSr,tSr,GC,rSr,iSr,est,Ac,nSr,jC,aSr,oSr,sSr,glt,lSr,uSr,fSr,cSr,hSr,dSr,pSr,vSr,rst,jm,xlt,blt,_oe,woe,Goe,mSr,ySr,gSr,nst,ast,xSr,ost,vO,mO,lst,bSr,Xae,klt,ust,Zae,LSr,Jae,PSr,dst,Llt,yst,Rlt,gst,ISr,Toe,RSr,BSr,qSr,OSr,NSr,VSr,USr,_O,HSr,Woe,Blt,nT,Olt,Qq,KSr,QSr,eEr,Vlt,tEr,rEr,iEr,nEr,aEr,Ult,oEr,sEr,lEr,uEr,fEr,cEr,bst,hEr,dEr,Glt,Hlt,pEr,vEr,mEr,yEr,xEr,bEr,_Er,wEr,AEr,TEr,MEr,wO,SEr,EEr,kEr,CEr,DEr,FEr,LEr,PEr,zEr,Wlt,$lt,IEr,REr,BEr,qEr,OEr,NEr,VEr,UEr,GEr,eO,HEr,jEr,_st,WEr,of,$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,bkr,_kr,wkr,Akr,Yoe,Tkr,Mkr,Skr,Ekr,Ylt,Mp,Nc,Dkr,mu,toe,Zu,wst,roe,Hu,tO,Pkr,aoe,soe,uCr,fCr,cCr,hCr,dCr,SCr,M3,ECr,iut,nut,tD,kCr,CCr,DCr,FCr,LCr,PCr,zCr,ICr,aut,BCr,Soe,qCr,rD,OCr,iD,VCr,UCr,AO,$Cr,Koe,Dst,out,sut,lut,YCr,uut,Pst,fut,cut,ZCr,KCr,hut,dut,put,vut,JCr,nO,QCr,eDr,tDr,mut,yut,gut,rDr,zst,iDr,aT,nDr,aDr,oDr,Ist,sDr,lDr,uDr,fDr,_3,Joe,Rst,_ut,foe,w3,wut,Eoe,pDr,aO,YC,A3,koe,Aut,vDr,mDr,yDr,Coe,bDr,_Dr,wDr,ADr,TDr,Doe,MDr,EDr,Eut=ps(()=>{Eot();Sut={};qst="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}};s6r=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(".")),l6r=new Set(["alt","class","datetime","dir","height","href","hreflang","lang","referrerpolicy","rel","role","src","target","title","translate","type","width"]),u6r=new Set(["href","src"]),f6r=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"&&s6r.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(!l6r.has(t)&&!t.startsWith("aria-"))return!1;if(!u6r.has(t))return!0;try{return f6r.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),B1.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"?Brt(c,h):qrt(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})})(B1||(B1={})),B1.resetRequestQueue();c6r=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}},Nst=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{},Vst=class extends Gh{constructor(e={}){super("terrain",e)}},Ust=class extends Gh{constructor(e={}){super("projectiontransition",e)}},oO=class extends Gh{},Gst=class extends Gh{constructor(e={}){super("styleimagemissing",e)}};_6r=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 Gst({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`),Cat(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}},w6r=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,A6r={start:0,end:doe},T6r=0;E6r=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(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 uu(`Ignoring the font face declared for "${e}": it has no URL.`),null;let i=`maplibre-gl-font-face-${T6r++}`,n=r["unicode-range"];if(!(n!=null&&n.length))return{url:r.url,ranges:[A6r],family:i};let a=[];for(let o of n){let s=M6r(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;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),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 k6r(e);return r.buffer=t,r},F6r=class{constructor(e,t,r,i=D6r){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={},this.lang=r,this.fontFaceManager=new E6r(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 kat(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&&xat(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===C6r&&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()}},L6r=()=>Rot||(Rot=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")})),P6r=class extends ah{constructor(e,t){super(),this._transitionable=new MC(L6r(),"light",t),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return zrt(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)}},z6r=()=>Bot||(Bot=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")})),I6r=class extends ah{constructor(e,t){super(),this._transitionable=new MC(z6r(),"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}},R6r=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 Wst{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}},U6r=Math.floor(Yd.hardwareConcurrency/2);bO.workerCount=Rrt(globalThis)?Math.max(Math.min(U6r,3),1):1;$st=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 Yat(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)})}};q1=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)}},Kst=class{constructor(e,t,r){this.bounds=q1.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 Zst(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 Kst(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 B1.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}},Qst=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 B1.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 Ort(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+1Oot(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=aMr(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],oMr=(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)}),sMr=(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:fMr(i.paint.get("raster-saturation")),u_contrast_factor:uMr(i.paint.get("raster-contrast")),u_spin_weights:lMr(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 B1.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=rlt(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=cMr(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=dMr(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!nlt(this.tileCoords),this.flippedWindingOrder=hMr(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}};alt=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 Yrt(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}},olt=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}},slt={},vMr=(e,t,r,i)=>{let n=new(llt(t.type))(e,t,r,i);if(n.id!==e)throw Error(`Expected Source id to be ${e} instead of ${n.id}`);return n},llt=e=>{switch(e){case"geojson":return tlt;case"image":return uT;case"raster":return Ioe;case"raster-dem":return Qst;case"vector":return Jst;case"video":return alt;case"canvas":return olt}return slt[e]},mMr=(e,t)=>{slt[e]=t},yMr=(e,t)=>Ls(null,null,function*(){if(llt(e))throw Error(`A source type called "${e}" already exists.`);mMr(e,t)});voe="RTLPluginLoaded",xMr=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;ult=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=gMr(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 clt{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=>_Mr(d,t,r,l));n&&wMr(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 clt(u,f,new Roe(c,h))}};SMr=moe(9.314,3);jot=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=vMr(t,r,i,this),this._inViewTiles=new jot,this._outOfViewCache=new Sot(0,n=>this._unloadTile(n)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new bMr,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 jot}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&&IMr(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=Uot(this._source.type);s&&this._rasterFadeDuration>0&&!r&&DMr(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 ult(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(sat)){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:Uot(this._source.type)&&zMr(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),RMr=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))}};Wot=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}};NMr=tg();jMr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);YMr=class{constructor(e,t=new Wot(e.width+200,e.height+200,25),r=new Wot(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:Drt(k),allPointsOccluded:!D}}},Xot=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 Xot(e?e.text:null,t,r,n),this.icon=new Xot(e?e.icon:null,t,i,n)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},Zot=class{constructor(e,t,r){this.text=e,this.icon=t,this.skipFade=r}},XMr=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]}};KMr=class{constructor(e,t,r,i,n){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new YMr(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=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 XMr(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=Kot(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 Zot(!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 Zot(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=Qot(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=Qot(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=Kot(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),Jot(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),Jot(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}};JMr=2**25,QMr=2**24,eSr=2**17,tSr=2**16;GC=0,rSr=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 rSr(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}},est=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Ac=new Uint32Array(96),nSr=class mlt{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=est[i&15];if(!a)throw Error("Unrecognized array type.");let[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new mlt(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=est.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++)tst(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];tst(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,aSr=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 nSr(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)}},oSr=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},sSr=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);}`,tst="void main() {fragColor=vec4(1.0);}",jm={prelude:Ru(nSr,aSr),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);}`,rst="void main() {fragColor=vec4(1.0);}",jm={prelude:Ru(lSr,uSr),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(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; +);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(fSr,cSr),backgroundPattern:Ru(hSr,dSr),circle:Ru(pSr,vSr),clippingMask:Ru(rst,"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(tst,`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(rst,`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);}")};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.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);}")};xlt="#define PROJECTION_MERCATOR",blt="mercator",_oe=class{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return blt}get shaderDefine(){return xlt}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 I1;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 _lt{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 _lt(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=ist(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=ist(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=Ost(),i6r(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 k1(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 q1([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=[-P1,P1])}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(){}},ySr=dc([{name:"a_pos3d",type:"Int16",components:3}]),gSr=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),L1(n.terrainRttPosMatrix32f,0,Aa,Aa,0,0,1),this._tiles[n.key]=new ult(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))L1(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;L1(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;L1(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;L1(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)}},nst=Aa*(1-1e-12),ast=-.5,xSr=class{constructor(e,t,r,i="auto"){this._meshCache={},this.painter=e,this.tileManager=new gSr(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+ast,u=a[13]*n.dim+ast,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 mSr}clone(){let t=new Tlt;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}=Alt(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 q1().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=k1(Math.atan2(s,-l)),p=k1(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=R1(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),qMr(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=sst(u,n.x*this.worldSize,n.y*this.worldSize,i);return sst(u,l.x*this.worldSize,l.y*this.worldSize,l.z){if(l&&e.setZoom(ic.number(r,d,_)),Fne(n,a)||Slt({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=R1(s,t.locationAtOffset),u=R1(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}},bSr=()=>lst||(lst=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}),klt=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;LSr=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}};PSr=class{constructor(){this._boundingVolumeCache=new LSr(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,-P1,P1),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 PSr}clone(){let t=new Plt;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=vst(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=mst(s,l,a);if(u<=0)return!0;let f=this.screenTerrainPointToMercatorCoordinate(o,r);return f!=null&&mst(s,l,vst(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 q1(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=kSr(a);return JC(CSr(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){}};yst=class Ilt{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 Llt(void 0,this._helper)}clone(){let t=new Ilt;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)}},Rlt=class fg{get useGlobeControls(){return!0}handlePanInertia(t,r){let i=FSr(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,-P1,P1));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&&SSr(r,i,r.isPointOnMapSurface(t.around)?t.around:r.centerPoint,t.panDelta)}cameraForBoxAndBearing(t,r,i,n,a){let o=Elt(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){Mlt();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)||Slt({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=cst(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=_Sr(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=cst(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 $st(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 _6r,this.imageManager.setEventedParent(this),this.imageManager.setMissingImageResolver(e._missingStyleImageResolver),this.patternAtlas=new w6r(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 F6r(e._requestManager,t.localIdeographFontFamily,r),this.lineAtlas=new R6r(256,512),this.crossTileSymbolIndex=new glt,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)D1(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(ISr,{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 P6r((n=this.stylesheet.light)!=null?n:{},this._globalState),this._setProjectionInternal(((a=this.stylesheet.projection)==null?void 0:a.type)||"mercator"),this.sky=new I6r(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=kot(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 x6r(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=kot(e.layers);let i=y6r(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,Wat(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(!D1(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}D1(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}D1(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(Y6r(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?X6r(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(!D1(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(!D1(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=zSr(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||!yrt(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 iSr(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={}}},RSr=dc([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),BSr=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)}),OSr=(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)}),NSr=(e,t)=>({u_ele_delta:new gs(e,t.u_ele_delta)}),VSr=(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}),USr=e=>({u_ele_delta:e}),_O={ProjectionUBO:0,TerrainUBO:1,FrameUBO:2};HSr={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();})(); +`),M=u.createShader(u.FRAGMENT_SHADER);if(u.isContextLost()){this.failedToCreate=!0;return}u.shaderSource(M,_),u.compileShader(M),u.attachShader(this.program,M);let x=u.createShader(u.VERTEX_SHADER);if(u.isContextLost()){this.failedToCreate=!0;return}u.shaderSource(x,b),u.compileShader(x),u.attachShader(this.program,x),this.attributes={};let T={};if(this.numAttributes=h.length,u.linkProgram(this.program),!u.getProgramParameter(this.program,u.LINK_STATUS)){if(u.isContextLost()){this.failedToCreate=!0;return}throw u.getShaderParameter(M,u.COMPILE_STATUS)?u.getShaderParameter(x,u.COMPILE_STATUS)?Error(`Program failed to link: ${u.getProgramInfoLog(this.program)}`):Error(`Could not compile vertex shader: ${u.getShaderInfoLog(x)}`):Error(`Could not compile fragment shader: ${u.getShaderInfoLog(M)}`)}GSr(u,this.program);let A=ZSr(u,this.program);for(let g of h){if(!g)continue;let E=u.getAttribLocation(this.program,g);E>=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=qSr(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]);XSr(e.terrainUniformBuffer,s)}if(jSr(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 BSr),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)}};QSr=(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)}),eEr=(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)}),Vlt=(e,t,r,i)=>{let n=e.style.light,a=n.getCartesianPosition(),o=wne();n.properties.get("anchor")==="viewport"&&prt(o,e.transform.bearingInRadians),Art(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}},tEr=(e,t,r,i,n,a,o)=>js(Vlt(e,t,r,i),Nlt(a,e,o),{u_height_factor:-(2**n.overscaledZ)/o.tileSize/8}),rEr=(e,t)=>({u_fill_translate:new Jl(e,t.u_fill_translate)}),iEr=(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)}),nEr=(e,t)=>({u_fill_translate:new Jl(e,t.u_fill_translate)}),aEr=(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)}),Ult=(e,t,r,i,n)=>js(Nlt(t,e,r),{u_fill_translate:i,u_sdf_pattern:+!!n}),oEr=e=>({u_fill_translate:e}),sEr=e=>({u_fill_translate:e}),lEr=(e,t,r,i,n)=>Ult(e,t,r,i,n),uEr=(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)}),fEr=(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}},cEr=(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)}),bst=(e,t=1)=>({u_color:e,u_overlay:0,u_overlay_scale:t}),hEr=(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)}),dEr=(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)}),Glt=(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}},Hlt=(e,t,r,i)=>{let n=tg();return L1(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")}},pEr=(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)}),vEr=(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)}),mEr=(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 L1(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()}};xEr=(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)}),bEr=(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")}),_Er=(e,t)=>({u_translation:new Jl(e,t.u_translation),u_ratio:new gs(e,t.u_ratio)}),wEr=(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)}),AEr=(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)}),TEr=(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)}),MEr=(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:jlt(e,t,r),u_ratio:i/Ud(t,1,n.zoom)}},SEr=(e,t,r,i,n)=>js(wO(e,t,r,i),{u_image:0,u_image_height:n}),EEr=(e,t,r,i,n)=>{let a=e.transform,o=$oe(t,a);return{u_translation:jlt(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}},kEr=(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})},CEr=(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})};DEr=(e,t)=>({u_image:new rl(e,t.u_image),u_opacity:new gs(e,t.u_opacity)}),FEr=(e,t)=>({u_image:t,u_opacity:e}),LEr=(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)}),PEr=(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)}),zEr=(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)}),Wlt=(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}),$lt=(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p,v)=>{let y=o.transform;return js(Wlt(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})},IEr=(e,t,r,i,n,a,o,s,l,u,f,c,h,d,p)=>js($lt(e,t,r,i,n,a,o,s,l,u,!0,f,!0,h,d,p),{u_texsize_icon:c,u_texture_icon:1}),REr=(e,t)=>({u_opacity:new gs(e,t.u_opacity),u_color:new lg(e,t.u_color)}),BEr=(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)}),qEr=(e,t)=>({u_opacity:e,u_color:t}),OEr=(e,t,r,i,n)=>js(JSr(r,n,t,i),{u_opacity:e}),NEr=(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)}),VEr=(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}),UEr=(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)}),GEr=(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=Dlt(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")*Flt(Cv(s)-l,l)}},eO=(e,t)=>({}),HEr={fillExtrusion:QSr,fillExtrusionPattern:eEr,fill:rEr,fillPattern:iEr,fillOutline:nEr,fillOutlinePattern:aEr,circle:uEr,collisionBox:eO,collisionCircle:eO,debug:cEr,depth:eO,clippingMask:eO,heatmap:hEr,heatmapTexture:dEr,hillshade:pEr,hillshadePrepare:vEr,colorRelief:xEr,line:_Er,lineGradient:wEr,linePattern:AEr,lineSDF:TEr,lineGradientSDF:MEr,layerOpacity:DEr,raster:oMr,symbolIcon:LEr,symbolSDF:PEr,symbolTextAndIcon:zEr,background:REr,backgroundPattern:BEr,terrain:OSr,terrainDepth:NSr,atmosphere:NEr,sky:UEr},jEr=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)}},_st={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},WEr=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[_st[i.type]],this.itemSize,a):e.vertexAttribPointer(n.location,i.components,e[_st[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)}},$Er=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)}},YEr=class extends of{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}},XEr=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)}},KEr=class extends of{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}},JEr=class extends of{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}},QEr=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)}},ekr=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)}},tkr=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}},rkr=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)}},ikr=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}},nkr=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)}},akr=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}},okr=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)}},skr=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)}},lkr=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)}},ukr=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}},fkr=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)}},ckr=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)}},hkr=class extends of{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}},dkr=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)}},pkr=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)}},vkr=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}},mkr=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}},ykr=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}},gkr=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}},xkr=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}},bkr=class extends of{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}},_kr=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}},wkr=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}},Akr=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}},Tkr=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}},Mkr=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}},Skr=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}},Ekr=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 Tkr(e,o),i)this.depthAttachment=n?new Skr(e,o):new Mkr(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)}},Ylt=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=Ylt.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]);Dkr=class{constructor(e){this.gl=e,this.clearColor=new $Er(this),this.clearDepth=new YEr(this),this.clearStencil=new XEr(this),this.colorMask=new ZEr(this),this.depthMask=new KEr(this),this.stencilMask=new JEr(this),this.stencilFunc=new QEr(this),this.stencilOp=new ekr(this),this.stencilTest=new tkr(this),this.depthRange=new rkr(this),this.depthTest=new ikr(this),this.depthFunc=new nkr(this),this.blend=new akr(this),this.blendFunc=new okr(this),this.blendColor=new skr(this),this.blendEquation=new lkr(this),this.cullFace=new ukr(this),this.cullFaceSide=new fkr(this),this.frontFace=new ckr(this),this.program=new hkr(this),this.activeTexture=new dkr(this),this.viewport=new pkr(this),this.bindFramebuffer=new vkr(this),this.bindRenderbuffer=new mkr(this),this.bindTexture=new ykr(this),this.bindVertexBuffer=new gkr(this),this.bindElementBuffer=new xkr(this),this.bindVertexArray=new bkr(this),this.pixelStoreUnpack=new _kr(this),this.pixelStoreUnpackPremultiplyAlpha=new wkr(this),this.pixelStoreUnpackFlipY=new Akr(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=qlt(this),this.keyedProjectionUniformBuffers=new Map,this.freeProjectionUniformBuffers=[],this.terrainUniformBuffer=YSr(this),this.frameUniformBuffer=kkr(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 jEr(this,e,t)}createVertexBuffer(e,t,r){return new WEr(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 Ekr(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){D1(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);wst=1029,roe=2305,Hu=class{constructor(e,t,r){this.enable=e,this.mode=t,this.frontFace=r}};Hu.disabled=new Hu(!1,wst,roe),Hu.backCCW=new Hu(!0,wst,roe),Hu.frontCCW=new Hu(!0,1028,roe);Pkr=kv(new Float32Array(16));aoe=0;soe=[new Jr(0,0),new Jr(Aa,0),new Jr(Aa,Aa),new Jr(0,Aa)];uCr=new Ol(1,0,0,1),fCr=new Ol(0,1,0,1),cCr=new Ol(0,0,1,1),hCr=new Ol(1,0,1,1),dCr=new Ol(0,1,1,1);SCr={symbol:zkr,circle:Nkr,heatmap:Vkr,line:Jkr,fill:Qkr,fillExtrusion:eCr,hillshade:tCr,colorRelief:iCr,raster:nCr,background:lCr,sky:ACr,atmosphere:MCr,custom:bCr,debug:mCr,debugPadding:pCr,terrainDepth:_Cr},ECr=(M3=class{constructor(t,r){this.drawFunctions=SCr,this.context=new Dkr(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 glt}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 Fnt;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,RSr.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 znt;s.emplaceBack(0),s.emplaceBack(1),s.emplaceBack(3),s.emplaceBack(2),s.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(s);let l=new I1;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();L1(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?xlt:o.shaderDefine,u=`/${i?blt: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 KSr(this.context,jm[t],r,HEr[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(),$Sr(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),iut=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}};nut=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)},kCr=js({deceleration:2500,maxSpeed:1400},tD),CCr=js({deceleration:20,maxSpeed:1400},tD),DCr=js({deceleration:1e3,maxSpeed:360},tD),FCr=js({deceleration:1e3,maxSpeed:90},tD),LCr=js({deceleration:1e3,maxSpeed:360},tD),PCr=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({},kCr,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,CCr);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,DCr);n.bearing=this._map.getBearing()+Pl(a.amount,-179,179),WC(n,a)}if(r.pitch){let a=$C(r.pitch,i,FCr);n.pitch=this._map.getPitch()+a.amount,WC(n,a)}if(r.roll){let a=$C(r.roll,i,LCr);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})}};zCr=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new Nst(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(){}},ICr=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(){}},aut=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}))}};BCr=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=RCr(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 BCr(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}}},qCr=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 VCr){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()}};$Cr=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}},YCr={panStep:100,bearingStep:15,pitchStep:10},uut=class{constructor(e,t){this._tr=t;let r=YCr;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:XCr,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}};Pst=4.000244140625,fut=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%Pst==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)>Pst?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)}},cut=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: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}},KCr=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}},hut=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()}},dut=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()}},put=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()}},vut=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))}},JCr=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,QCr=class extends Wd{};eDr=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(Hrt(n,a||n.type)){let y=Cl.mousePos(this._map.getCanvas(),n);v=d[a||n.type](n,y)}else if(Grt(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 jrt(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 JCr(this._camera),this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new PCr(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 zCr(t,e));let i=t.boxZoom=new aut(t,e,this._transformProvider);this._add("boxZoom",i),e.interactive&&e.boxZoom&&i.enable();let n=t.cooperativeGestures=new vut(t,e.cooperativeGestures);this._add("cooperativeGestures",n),e.cooperativeGestures&&n.enable();let a=new qCr(t,this._transformProvider),o=new ZCr(t,this._transformProvider);t.doubleClickZoom=new cut(o,a),this._add("tapZoom",a),this._add("clickZoom",o),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let s=new KCr;this._add("tapDragZoom",s);let l=t.touchPitch=new lut(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let u=()=>this._camera.transform.centerPoint,f=HCr(e,u),c=jCr(e),h=WCr(e,u);t.dragRotate=new dut(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=GCr(e),p=new $Cr(e,t);t.dragPan=new hut(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 sut,y=new out;t.touchZoomRotate=new put(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 ICr(t,e),["touchPan"]);let m=t.scrollZoom=new fut(t,()=>this._triggerRenderFrame(),this._transformProvider);this._add("scrollZoom",m,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let w=t.keyboard=new uut(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 QCr("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}},tDr=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
'},yut=class{constructor(e=mut){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}},rDr=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=[]}},zst=["none","zoom","sourceTiles","visibleLayers","revision"],iDr=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},nDr=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 iDr(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]);zst.indexOf(n)>zst.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,wCr(this.painter,this.terrain,this._rttTiles,t),this._rttTiles=[],aT[r]}return!1}},aDr={"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"},oDr=qst,Ist={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:mut,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},sDr=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 rDr,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({},Ist),e),{canvasContextAttributes:Gs(Gs({},Ist.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 tDr({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({},aDr),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 c6r(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=B1.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 eDr(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 nut(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 yut(typeof t.attributionControl=="boolean"?void 0:t.attributionControl)),t.maplibreLogo&&this.addControl(new gut,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(q1.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 xSr(this.painter,r,e,this._terrainSkirtLength),this.painter.renderToTexture=new nDr(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 Vst({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 B1.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 iut(e,t);this.painter=new ECr(r,this._camera.transform)}migrateProjection(e,t){this._camera.migrateProjection(e,t),this.painter.transform=e,this.fire(new Ust({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),B1.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 oDr}getCameraTargetElevation(){return this._camera.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(e){return this._lazyInitEmptyStyle(),this.style.setProjection(e),this._update(!0)}},lDr={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0},uDr=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({},lDr,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 fDr(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}},fDr=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 UCr;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%)"};Rst={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},_ut="#3FB1CE";w3=class extends Wd{},wut=class extends Wd{},Eoe=class extends ah{constructor(e){if(super(),this._onClick=t=>{this.fire(new wut("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=Rst[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=>{Rst[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=xut(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)||_ut,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=hDr().cloneNode(!0);t.setAttributeNS(null,"height",`${41*this._scale}px`),t.setAttributeNS(null,"width",`${27*this._scale}px`),dDr(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()}),but(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}},pDr={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{},Aut=class extends Wd{},vDr=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=q1.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 Aut("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({},pDr,e)}onAdd(e){return this._map=e,this._container=Cl.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),cDr().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)}},mDr={maxWidth:100,unit:"metric"},yDr=class{constructor(e){this._onMove=()=>{Bst(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,Bst(this._map,this._container,this.options)},this.options=Gs(Gs({},mDr),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{},bDr=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()}},_Dr=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}},wDr=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}},ADr={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0},TDr=["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{},MDr=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=xut(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=Tut(this.options.offset);if(!a){let l=this._container.offsetWidth,u=this._container.offsetHeight,f=SDr(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)`,but(this._container,a,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=js(Object.create(ADr),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(TDr);e&&e.focus()}};EDr=qst});var Cut=K((Bfi,kut)=>{"use strict";kut.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 zut=K((qfi,Put)=>{"use strict";var k3=St(),qDr=Du().sanitizeHTML,ODr=Nre(),Dut=ix();function Fut(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=Dut.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var Pv=Fut.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=NDr(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 Lut(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=ODr(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 NDr(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=qDr(e.sourceattribution)),i}Put.exports=function(t,r,i){var n=new Fut(t,r);return n.update(i),n}});var jut=K((Ofi,Hut)=>{"use strict";var SO=(Eut(),or(Mut)),VDr=Cut(),Iut=!1,UDr=()=>{Iut||(Iut=!0,SO.setWorkerUrl(URL.createObjectURL(new Blob([VDr],{type:"text/javascript"}))))},EO=St(),qut=Ny(),Rut=Ho(),GDr=Cs(),HDr=U0(),MO=Gf(),Out=Q1(),jDr=Out.drawMode,WDr=Out.selectMode,$Dr=fh().prepSelect,YDr=fh().clearOutline,XDr=fh().clearSelectionsCache,ZDr=fh().selectOnClick,Ax=ix(),KDr=zut();function Nut(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=Nut.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=Gut(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}),UDr();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(qut.fetchTraceGeoData(e)),Promise.all(d).then(function(){f&&Vut(n,a),Uut(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=Gut(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(qut.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}),Vut(n,o),Uut(n,o)),n.updateLayout(t),n.resolveOnRender(r)}).catch(i)};function Vut(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 Uut(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"},GDr.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];Rut.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];Rut.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(){XDr(r.dragOptions),YDr(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&&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),WDr(a)||jDr(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,f){$Dr(l,u,f,t.dragOptions,a)},HDr.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;nJDr});function JDr(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";Wut=N1(Ny())});var Kut=K((Vfi,Zut)=>{"use strict";var ese=St(),QDr=Jb(),eFr=A0(),Xut=bk(),{getMapFitBounds:tFr}=(Yut(),or($ut));Zut.exports=function(t,r,i){QDr(t,r,i,{type:"map",attributes:Xut,handleDefaults:rFr,partition:"y",fullData:i})};function rFr(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,eFr(e,t,{name:"layers",handleItemDefaults:iFr}),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=tFr(i.fullData,i.id);p&&(t._fitBounds=p)}t._input=e}function iFr(e,t){function r(l,u){return ese.coerce(e,t,Xut.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(),Jut=tse.strTranslate,nFr=tse.strScale,aFr=Zh().getSubplotCalcData,oFr=(Rp(),or(Ip)),sFr=No(),Qut=Is(),lFr=Du(),uFr=jut(),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=Kut();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(lFr.convertToTspans,e),p=Qut.bBox(d.node())}d.attr("transform",Jut(-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",Jut(w[0],w[1])+nFr(m))}};Ep.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Tx],i=0;i{"use strict";eft.exports={attributes:i7(),supplyDefaults:eet(),colorbar:e0(),formatLabels:Ore(),calc:XQ(),plot:vet(),hoverPoints:l7().hoverPoints,eventData:xet(),selectPoints:_et(),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 ift=K((Hfi,rft)=>{"use strict";rft.exports=tft()});var rse=K((jfi,nft)=>{"use strict";var hg=NE(),fFr=Wu(),{hovertemplateAttrs:cFr,templatefallbackAttrs:hFr}=gu(),dFr=Tu(),Mx=Os().extendFlat;nft.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:cFr({},{keys:["properties"]}),hovertemplatefallback:hFr(),showlegend:Mx({},dFr.showlegend,{dflt:!1})},fFr("",{cLetter:"z",editTypeOverride:"calc"}))});var oft=K((Wfi,aft)=>{"use strict";var nD=St(),pFr=xh(),vFr=rse();aft.exports=function(t,r,i,n){function a(f,c){return nD.coerce(t,r,vFr,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"),pFr(t,r,n,a,{prefix:"",cLetter:"z"}),nD.coerceSelectionMarkerOpacity(r,a)}});var ise=K(($fi,uft)=>{"use strict";var mFr=Hs(),dg=St(),yFr=gf(),gFr=Is(),xFr=zE().makeBlank,sft=Ny();function bFr(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:xFr()};if(!r)return a;var o=sft.extractTraceFeature(e);if(!o)return a;var s=yFr.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},f;dg.isArrayOrTypedArray(l.opacity)&&(f=function(w){var _=w.mo;return mFr(_)?+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 cft=ise().convert,_Fr=ise().convertOnSelect,fft=ix().traceLayerPrefix;function hft(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",fft+t+"-fill"],["line",fft+t+"-line"]],this.below=null}var cT=hft.prototype;cT.update=function(e){this._update(cft(e)),e[0].trace._glTrace=this};cT.updateOnSelect=function(e){this._update(_Fr(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)};dft.exports=function(t,r){var i=r[0].trace,n=new hft(t,i.uid),a=n.sourceId,o=cft(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 mft=K((Xfi,vft)=>{"use strict";vft.exports={attributes:rse(),supplyDefaults:oft(),colorbar:LA(),calc:kee(),plot:pft(),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";yft.exports=mft()});var ase=K((Kfi,bft)=>{"use strict";var wFr=Wu(),{hovertemplateAttrs:AFr,templatefallbackAttrs:TFr}=gu(),xft=Tu(),CO=i7(),nse=Os().extendFlat;bft.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({},xft.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:AFr(),hovertemplatefallback:TFr(),showlegend:nse({},xft.showlegend,{dflt:!1})},wFr("",{cLetter:"z",editTypeOverride:"calc"}))});var wft=K((Jfi,_ft)=>{"use strict";var MFr=St(),SFr=xh(),EFr=ase();_ft.exports=function(t,r,i,n){function a(u,f){return MFr.coerce(t,r,EFr,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"),SFr(t,r,n,a,{prefix:"",cLetter:"z"})}});var Mft=K((Qfi,Tft)=>{"use strict";var ose=Hs(),kFr=St().isArrayOrTypedArray,sse=(Il(),or(Bl)).BADNUM,CFr=T0(),Aft=St()._;Tft.exports=function(t,r){for(var i=r._length,n=new Array(i),a=r.z,o=kFr(a)&&a.length,s=0;s{"use strict";var DFr=Hs(),lse=St(),Sft=wo(),Eft=gf(),kft=(Il(),or(Bl)).BADNUM,FFr=zE().makeBlank;Cft.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:FFr()};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=Eft.extractOpts(r),m=y.reversescale?Eft.flipScale(y.colorscale):y.colorscale,w=m[0][1],_=Sft.opacity(w)<1?w:Sft.addOpacity(w,0),b=["interpolate",["linear"],["heatmap-density"],0,_];for(s=1;s{"use strict";var Fft=Dft(),LFr=ix().traceLayerPrefix;function Lft(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",LFr+t+"-heatmap"]],this.below=null}var DO=Lft.prototype;DO.update=function(e){var t=this.subplot,r=this.layerList,i=Fft(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)};Pft.exports=function(t,r){var i=r[0].trace,n=new Lft(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),n}});var Rft=K((rci,Ift)=>{"use strict";var PFr=Cs(),zFr=l7().hoverPoints,IFr=l7().getExtraText;Ift.exports=function(t,r,i){var n=zFr(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=PFr.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=IFr(s,l,o[0].t.labels),[a]}}});var qft=K((ici,Bft)=>{"use strict";Bft.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var Nft=K((nci,Oft)=>{"use strict";Oft.exports={attributes:ase(),supplyDefaults:wft(),colorbar:LA(),formatLabels:Ore(),calc:Mft(),plot:zft(),hoverPoints:Rft(),eventData:qft(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";Vft.exports=Nft()});var fse=K((sci,$ft)=>{"use strict";var RFr=lf(),BFr=Tu(),Gft=Gc(),use=rw(),qFr=kf().attributes,{hovertemplateAttrs:Hft,templatefallbackAttrs:jft}=gu(),OFr=Wu(),NFr=cu().templatedArray,VFr=zf().descriptionOnlyNumbers,Wft=Os().extendFlat,UFr=Ef().overrideAll,oci=$ft.exports=UFr({hoverinfo:Wft({},BFr.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:use.hoverlabel,domain:qFr({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:VFr("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:RFr({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:Gft.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:Hft({},{keys:["value","label"]}),hovertemplatefallback:jft(),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:Gft.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:Hft({},{keys:["value","label"]}),hovertemplatefallback:jft(),colorscales:NFr("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:Wft(OFr().colorscale,{dflt:[[0,"white"],[1,"black"]]})}),sort:{valType:"enumerated",values:["auto","input"],dflt:"auto"}}},"calc","nested")});var Kft=K((lci,Zft)=>{"use strict";var hT=St(),FO=fse(),C3=wo(),GFr=kf().defaults,Yft=V6(),Xft=cu(),HFr=A0();Zft.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=Xft.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),Yft(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=Xft.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),Yft(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"),HFr(h,d,{name:"colorscales",handleItemDefaults:jFr}),GFr(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 jFr(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((uci,Jft)=>{"use strict";Jft.exports=WFr;function WFr(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 $Fr=cse(),dT=St(),YFr=Lm().wrap,aD=dT.isArrayOrTypedArray,Qft=dT.isIndex,ect=gf();function XFr(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&&Qft(A,v)&&Qft(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 ZFr(C,x.source,x.target)&&(I=!0),{circular:I,links:i,nodes:F,groups:m,groupLookup:w}}function ZFr(e,t,r){for(var i=dT.init2dArray(e,0),n=0;n1})}tct.exports=function(t,r){var i=XFr(r);return YFr({circular:i.circular,_nodes:i.nodes,_links:i.links,_groups:i.groups,_groupLookup:i.groupLookup})}});var nct=K((LO,ict)=>{(function(e,t){typeof LO=="object"&&typeof ict!="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 act!="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 sct=K((zO,oct)=>{(function(e,t){typeof zO=="object"&&typeof oct!="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 lct!="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 cct=K((RO,fct)=>{(function(e,t){typeof RO=="object"&&typeof fct!="undefined"?t(RO,nct(),hse(),sct(),uct()):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 hct!="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 vct=K((qO,pct)=>{(function(e,t){typeof qO=="object"&&typeof pct!="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,mct)=>{(function(e,t){typeof OO=="object"&&typeof mct!="undefined"?t(OO,vct()):(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 yct!="undefined"?t(NO,dct(),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 bct=K((VO,xct)=>{(function(e,t){t(typeof VO=="object"&&typeof xct!="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 KFr=cse();_ct.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=KFr(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 Act!="undefined"?t(UO,bct(),hse(),dse(),wct()):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:()=>oLr,duration:()=>nLr,ease:()=>aLr,forceIterations:()=>rLr,forceTicksPerFrame:()=>iLr,nodePadAcross:()=>eLr,nodeTextOffsetHorizontal:()=>JFr,nodeTextOffsetVertical:()=>QFr,sankeyIterations:()=>tLr});var JFr,QFr,eLr,tLr,rLr,iLr,nLr,aLr,oLr,vse=ps(()=>{"use strict";JFr=4,QFr=3,eLr=10,tLr=50,rLr=5,iLr=10,nLr=500,aLr="linear",oLr={sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}});var qct=K((dci,Bct)=>{"use strict";var Mct=cct(),sLr=(E_(),or(S_)).interpolateNumber,pT=No(),oD=gct(),lLr=Tct(),Ju=(vse(),or(pse)),Wm=wo(),uLr=Is(),$m=St(),D3=$m.strTranslate,Sct=$m.strRotate,gse=Lm(),sD=gse.keyFun,GO=gse.repeat,Lct=gse.unwrap,Ect=Du(),fLr=Ho(),Pct=($c(),or(Wc)),cLr=Pct.CAP_SHIFT,hLr=Pct.LINE_SPACING,dLr=3;function pLr(e,t,r){var i=Lct(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=lLr.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 mLr(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=sLr(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 yLr(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 gLr(e){e.call(yse)}function zct(e,t){e.call(gLr),t.attr("d",xse())}function kct(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 Cct(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 Dct(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 xLr(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,Fct(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):bLr(e,o,a,i),_Lr(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),Fct(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),zct(e.filter(Rct(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,Ict(r,n)}})}function wLr(e,t,r,i){return function(){for(var a=0,o=0;o0&&i.forceLayouts[t].alpha(0)}}function Ict(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);fLr.call("_guiRestyle",t,{"node.x":[r],"node.y":[i]},e.trace.index).then(function(){t._fullLayout._dragCover&&t._fullLayout._dragCover.remove()})}function ALr(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 ALr(m),m.map(yLr.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(Dct,u,n.nodeEvents).call(xLr,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(kct),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(kct);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);uLr.font(m,y.textFont),Ect.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=Ect.lineCount(m),_=y.textFont.size*((w-1)*hLr-cLr),b=y.nodeLineWidth/2+dLr;if(!y.horizontal){var T=y.reversed?(y.visibleWidth+_)/2:(y.visibleWidth-_)/2,M=y.reversed?Sct(90):"scale(-1,1)"+Sct(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((pci,$ct)=>{"use strict";var od=No(),_se=St(),HO=_se.numberFormat,SLr=qct(),vT=Gf(),ELr=wo(),Sx=(vse(),or(pse)).cn,lD=_se._;function Oct(e){return e!==""}function mT(e,t){return e.filter(function(r){return r.key===t.traceId})}function Nct(e,t){od.select(e).select("path").style("fill-opacity",t),od.select(e).select("rect").style("fill-opacity",t)}function Vct(e){od.select(e).select("text.name").style("fill","black")}function Uct(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function Gct(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function Hct(e,t,r){t&&r&&mT(r,t).selectAll("."+Sx.sankeyLink).filter(Uct(t)).call(jct.bind(0,t,r,!1))}function bse(e,t,r){t&&r&&mT(r,t).selectAll("."+Sx.sankeyLink).filter(Uct(t)).call(Wct.bind(0,t,r,!1))}function jct(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(Gct(e)).call(Hct)}function Wct(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(Gct(e)).call(bse)}function ac(e,t){var r=e.hoverlabel||{},i=_se.nestedProperty(r,t).get();return Array.isArray(i)?!1:i}$ct.exports=function(t,r){for(var i=t._fullLayout,n=i._paper,a=i._size,o=0;o"),color:ac(T,"bgcolor")||ELr.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});Nct(I,.85),Vct(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()))};SLr(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 Yct=K(F3=>{"use strict";var kLr=Ef().overrideAll,CLr=Zh().getModuleCalcData,DLr=wse(),FLr=wg(),LLr=Yv(),PLr=U0(),zLr=fh().prepSelect,Ase=St(),ILr=Ho(),jO="sankey";F3.name=jO;F3.baseLayoutAttrOverrides=kLr({hoverlabel:FLr.hoverlabel},"plot","nested");F3.plot=function(e){var t=CLr(e.calcdata,jO)[0];DLr(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";Xct.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";Kct.exports={attributes:fse(),supplyDefaults:Kft(),calc:rct(),plot:wse(),moduleType:"trace",name:"sankey",basePlotModule:Yct(),selectPoints:Zct(),categories:["noOpacity"],meta:{}}});var eht=K((gci,Qct)=>{"use strict";Qct.exports=Jct()});var rht=K(yT=>{"use strict";var tht=yf();yT.name="indicator";yT.plot=function(e,t,r,i){tht.plotBasePlot(yT.name,e,t,r,i)};yT.clean=function(e,t,r,i){tht.cleanBasePlot(yT.name,e,t,r,i)}});var Mse=K((bci,lht)=>{"use strict";var Ex=Os().extendFlat,nht=Os().extendDeep,BLr=Ef().overrideAll,aht=lf(),oht=Gc(),qLr=kf().attributes,pc=Ph(),OLr=cu().templatedArray,WO=(HA(),or(GA)),iht=zf().descriptionOnlyNumbers,Tse=aht({editType:"plot",colorEditType:"plot"}),uD={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:oht.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"},sht={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},NLr=OLr("step",nht({},uD,{range:sht}));lht.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:qLr({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:iht("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:iht("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:nht({},uD,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:oht.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:BLr({range:sht,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:aht({}),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:NLr,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:()=>ULr,bulletPadding:()=>GLr,defaultNumberFontSize:()=>VLr,horizontalPadding:()=>$Lr,innerRadius:()=>HLr,titlePadding:()=>WLr,valueThickness:()=>jLr});var VLr,ULr,GLr,HLr,jLr,WLr,$Lr,Ese=ps(()=>{"use strict";VLr=80,ULr=.25,GLr=.025,HLr=.75,jLr=.5,WLr=5,$Lr=10});var cht=K((_ci,fht)=>{"use strict";var Ym=St(),YO=Mse(),YLr=kf().defaults,uht=cu(),XLr=A0(),$O=(Ese(),or(Sse)),ZLr=fb(),KLr=Dw(),JLr=Bg(),QLr=qg();function ePr(e,t,r,i){function n(x,T){return Ym.coerce(e,t,YO,x,T)}YLr(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=uht.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),XLr(h,d,{name:"steps",handleItemDefaults:tPr}),y("threshold.value"),y("threshold.thickness"),y("threshold.line.width"),y("threshold.line.color"),p={},h&&(p=h.axis||{}),v=uht.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"),QLr(p,v,m,"linear",M),JLr(p,v,m,"linear",M),KLr(p,v,m,M)}else n("title.align","center"),n("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function tPr(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")}fht.exports={supplyDefaults:ePr}});var dht=K((wci,hht)=>{"use strict";function rPr(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}hht.exports={calc:rPr}});var xht=K((Aci,ght)=>{"use strict";var R3=No(),iPr=(E_(),or(S_)).interpolate,pht=(E_(),or(S_)).interpolateNumber,kx=St(),nPr=kx.strScale,cD=kx.strTranslate,aPr=kx.rad2deg,oPr=($c(),or(Wc)).MID_SHIFT,I3=Is(),L3=(Ese(),or(Sse)),ZO=Du(),m0=Cs(),sPr=PM(),lPr=a9(),uPr=Ph(),gT=wo(),kse={left:"start",center:"middle",right:"end"},P3={left:0,center:.5,right:1},vht=/[yzafpnµmkMGTPEZY]/;function hD(e){return e&&e.duration>0}ght.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 mht(I,v.w,v.h)};else if(h&&(b=y,M=m+w/2,x=function(I){return pPr(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 mht(I,(L3.bulletNumberDomainSize-A)*v.w,v.h)}}hPr(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&&cPr(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&&fPr(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 fPr(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 cPr(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*oPr)},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("+-aPr(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",dPr(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 hPr(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(vht)&&!C(D).slice(-1).match(vht)){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=pht(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=yht(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=pht(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=yht(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)+nPr(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 dPr(e,t,r){return function(){var i=iPr(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,uPr,l,u)}return sPr(n,a,s,o,i),lPr(n,a,s,o),a}function mht(e,t,r){var i=Math.min(t/e.width,r/e.height);return[i,e,t+"x"+r]}function pPr(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),i=t/r;return[i,e,t]}function yht(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 _ht=K((Tci,bht)=>{"use strict";bht.exports={moduleType:"trace",name:"indicator",basePlotModule:rht(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:Mse(),supplyDefaults:cht().supplyDefaults,calc:dht().calc,plot:xht(),meta:{}}});var Aht=K((Mci,wht)=>{"use strict";wht.exports=_ht()});var Cse=K((Eci,Eht)=>{"use strict";var Tht=Qg(),KO=Os().extendFlat,vPr=Ef().overrideAll,Mht=lf(),mPr=kf().attributes,Sht=zf().descriptionOnlyNumbers,Sci=Eht.exports=vPr({domain:mPr({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:Sht("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:KO({},Tht.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({},Mht({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:Sht("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:KO({},Tht.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({},Mht({arrayOk:!0}))}},"calc","from-root")});var Cht=K((kci,kht)=>{"use strict";var Dse=St(),yPr=Cse(),gPr=kf().defaults;function xPr(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 bPr=Lm().wrap;Dht.exports=function(){return bPr({})}});var Fse={};Fl(Fse,{cellPad:()=>_Pr,cn:()=>UPr,columnExtentOffset:()=>wPr,columnTitleOffset:()=>APr,emptyHeaderHeight:()=>TPr,goldenRatio:()=>SPr,latexCheck:()=>MPr,lineBreaker:()=>EPr,maxDimensionCount:()=>kPr,overdrag:()=>CPr,releaseTransitionDuration:()=>DPr,releaseTransitionEase:()=>FPr,scrollbarCaptureWidth:()=>LPr,scrollbarHideDelay:()=>PPr,scrollbarHideDuration:()=>zPr,scrollbarOffset:()=>IPr,scrollbarWidth:()=>RPr,transitionDuration:()=>BPr,transitionEase:()=>qPr,uplift:()=>OPr,wrapSpacer:()=>NPr,wrapSplitCharacter:()=>VPr});var _Pr,wPr,APr,TPr,MPr,SPr,EPr,kPr,CPr,DPr,FPr,LPr,PPr,zPr,IPr,RPr,BPr,qPr,OPr,NPr,VPr,UPr,Lse=ps(()=>{"use strict";_Pr=8,wPr=10,APr=28,TPr=16,MPr=/^\$.*\$$/,SPr=1.618,EPr="
",kPr=60,CPr=45,DPr=120,FPr="cubic-out",LPr=18,PPr=1e3,zPr=1e3,IPr=5,RPr=8,BPr=100,qPr="cubic-out",OPr=5,NPr=" ",VPr=" ",UPr={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 Nht=K((Dci,Oht)=>{"use strict";var Lht=(Lse(),or(Fse)),zse=Os().extendFlat,GPr=Hs(),HPr=Yh().isTypedArray,JO=Yh().isArrayOrTypedArray;Oht.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 qht((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}):[Lht.emptyHeaderHeight],c=i.length?i[0].map(function(){return r.cells.height}):[],h=f.reduce(Pht,0),d=u-h,p=d+Lht.uplift,v=Rht(c,p),y=Rht(f,h),m=Iht(y,[]),w=Iht(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 GPr(S)?Number(S):1}),x=M.reduce(Pht,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:zht,x:void 0,calcdata:void 0,columnWidth:M[E]}})};return A.columns.forEach(function(g){g.calcdata=A,g.x=zht(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=Bht(),n+=a,s=u+1,a=0);return r}function Bht(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var Vht=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=jPr(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 jPr(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((Lci,Jht)=>{"use strict";var ts=(Lse(),or(Fse)),Of=No(),Bse=St(),WPr=Bse.numberFormat,Qu=Lm(),qse=Is(),$Pr=Du(),YPr=St().raiseToTop,zv=St().strTranslate,XPr=St().cancelTransition,ZPr=Nht(),Yht=Vht(),Uht=wo();Jht.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 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),Ght(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 Wht(_,w,-ts.uplift),YPr(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=Xht(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(XPr).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,Wht(_,w,0),o9r(t,b,b.columns.map(function(M){return M.xIndex}))})),u.each(function(w){qse.setClipUrl(Of.select(this),Hht(t,w),t)});var f=u.selectAll("."+ts.cn.columnBlock).data(Yht.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(s9r),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 Ght(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 Hht(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 Ght(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function Hht(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function Xht(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=KPr(r),a=JPr(n);r9r(a);var o=QPr(a);n9r(o);var s=t9r(a),l=e9r(s);i9r(l),Zht(l,t,i,e),jse(a)}function KPr(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 JPr(e){var t=e.selectAll("."+ts.cn.columnCell).data(Yht.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(ts.cn.columnCell,!0),t.exit().remove(),t}function QPr(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 e9r(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 t9r(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 r9r(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 i9r(e){e.each(function(t){qse.font(Of.select(this),t.font)})}function n9r(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);Uht.stroke(r,sd(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),Uht.fill(r,sd(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function Zht(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=a9r(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?WPr(p)(n.value):n.value)+d,y;n.wrappingNeeded=!n.wrapped&&!f&&!c&&(y=jht(v)),n.cellHeightMayIncrease=u||c||n.mayHaveMarkup||(y===void 0?jht(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=Xht(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=l9r(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&&($ht(e,r,t,u,i.prevPages,i,0),$ht(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 $ht(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 u9r(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(),Zht(a.select("."+ts.cn.cellText),r,e,i),Of.select(t.parentNode.parentNode).call(jse)}}function f9r(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(Kht(n,Of.select(d.parentNode).select("."+ts.cn.cellTextHolder).node().getBoundingClientRect().width),w)}),n.settledY=!0}}}function Kht(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 h9r(Use(t),t.key).rowHeight})}function Vse(e,t){for(var r=0,i=t-1;i>=0;i--)r+=c9r(e[i]);return r}function rN(e,t){for(var r=0,i=0;i{"use strict";var d9r=Zh().getModuleCalcData,p9r=Wse(),iN="table";nN.name=iN;nN.plot=function(e){var t=d9r(e.calcdata,iN)[0];t.length&&p9r(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 t0t=K((zci,e0t)=>{"use strict";e0t.exports={attributes:Cse(),supplyDefaults:Cht(),calc:Fht(),plot:Wse(),moduleType:"trace",name:"table",basePlotModule:Qht(),categories:["noOpacity"],meta:{}}});var i0t=K((Ici,r0t)=>{"use strict";r0t.exports=t0t()});var l0t=K((Rci,s0t)=>{"use strict";var n0t=lf(),a0t=Gc(),$se=Ph(),v9r=zf().descriptionWithDates,m9r=Ef().overrideAll,o0t=gh().dash,Yse=Os().extendFlat;s0t.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:n0t({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:n0t({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:v9r("tick label")},tickformatstops:m9r($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:a0t.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({},o0t,{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({},o0t,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:a0t.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((Bci,c0t)=>{"use strict";var y9r=lf(),u0t=l0t(),f0t=Gc(),aN=y9r({editType:"calc"}),g9r=Qf().zorder;aN.family.dflt='"Open Sans", verdana, arial, sans-serif';aN.size.dflt=12;aN.color.dflt=f0t.defaultLine;c0t.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:u0t,baxis:u0t,font:aN,color:{valType:"color",dflt:f0t.defaultLine,editType:"plot"},zorder:g9r}});var p0t=K((qci,d0t)=>{"use strict";var h0t=St().isArray1D;d0t.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||h0t(n))&&(!s||h0t(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 y0t=K((Oci,m0t)=>{"use strict";var x9r=oN(),v0t=wo().addOpacity,b9r=Ho(),pD=St(),_9r=fb(),w9r=Bg(),A9r=qg(),T9r=r9(),M9r=Y1(),S9r=Rw();m0t.exports=function(t,r,i){var n=i.letter,a=i.font||{},o=x9r[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&&E9r(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=b9r.getComponentMethod("calendars","handleDefaults");f(t,r,"calendar",i.calendar)}M9r(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"),_9r(t,r,s,u),A9r(t,r,s,u,i),w9r(t,r,s,u,i),T9r(t,r,s,{data:i.data,dataAttr:n});var v=s("gridcolor",v0t(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",v0t(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 E9r(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n=i+"calendar",a=e[n];e.type=S9r(t,a,{autotypenumbers:e.autotypenumbers})}}});var x0t=K((Nci,g0t)=>{"use strict";var k9r=y0t(),C9r=cu();g0t.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")),D9r(t,r,i,a)};function D9r(e,t,r,i){var n=["aaxis","baxis"];n.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=C9r.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};k9r(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var w0t=K((Vci,_0t)=>{"use strict";var b0t=St(),F9r=p0t(),L9r=x0t(),P9r=oN(),z9r=Gc();_0t.exports=function(t,r,i,n){function a(l,u){return b0t.coerce(t,r,P9r,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",z9r.defaultLine);if(b0t.coerceFont(a,"font",n.font),a("carpet"),L9r(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=F9r(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var Xse=K((Uci,A0t)=>{"use strict";var I9r=St().isArrayOrTypedArray;A0t.exports=function(t,r,i){var n;for(I9r(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],n=0;n{"use strict";T0t.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 z0t=K((jci,P0t)=>{"use strict";var fN=No(),sN=Is(),lN=Xse(),C0t=Zse(),vD=S0t(),Kse=Du(),Xd=St(),D0t=Xd.strRotate,uN=Xd.strTranslate,F0t=($c(),or(Wc));P0t.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=E0t(t,o,s,d,h,_,p._labels,"a-label"),M=E0t(t,o,s,d,h,_,v._labels,"b-label");B9r(t,_,d,h,o,s,b,M),R9r(d,h,u,o,s)})};function R9r(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])+D0t(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 B9r(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))),k0t(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))),k0t(e,t,r,i,f,c,r.baxis,n,a,s,"b-title")}var L0t=F0t.LINE_SPACING,q9r=(1-F0t.MID_SHIFT)/L0t+1;function k0t(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(_)+q9r)*L0t*v-d),_.attr("transform",uN(p.p[0],p.p[1])+D0t(p.angle)+uN(0,d)).attr("text-anchor","middle").call(sN.font,o.title.font)}),h.exit().remove()}});var R0t=K((Wci,I0t)=>{"use strict";var cN=St().isArrayOrTypedArray;I0t.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 B0t=St().isArrayOrTypedArray;O0t.exports=function(e){return q0t(e,0)};function q0t(e,t){if(!B0t(e)||t>=10)return null;for(var r=1/0,i=-1/0,n=e.length,a=0;a{"use strict";var O9r=Cs(),Cx=Os().extendFlat;V0t.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;O9r.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 W0t=K((Xci,j0t)=>{"use strict";var G0t=Cs(),H0t=Os().extendFlat;j0t.exports=function(t,r){var i,n,a,o,s,l=r._labels=[],u=r._gridlines;for(i=0;i{"use strict";$0t.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 Z0t=K((Kci,X0t)=>{"use strict";var N9r=St();X0t.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 N9r.log("Smoother converged to",g,"after",S,"iterations"),t}});var K0t={};Fl(K0t,{RELATIVE_CULL_TOLERANCE:()=>V9r});var V9r,J0t=ps(()=>{"use strict";V9r=1e-6});var tdt=K((Jci,edt)=>{"use strict";var Q0t=.5;edt.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,Q0t/2),f=Math.pow(s*s+l*l,Q0t/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 idt=K((Qci,rdt)=>{"use strict";var Jse=tdt(),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]}rdt.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";ndt.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";odt.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";ldt.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 fdt=(J0t(),or(K0t)),cdt=SF().findBin,U9r=idt(),G9r=adt(),H9r=sdt(),j9r=udt();hdt.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*fdt.RELATIVE_CULL_TOLERANCE,v=d*fdt.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=U9r(t._xctrl,t._yctrl,y,m,o.smoothing,s.smoothing);t._xctrl=w[0],t._yctrl=w[1],t.evalxy=G9r([t._xctrl,t._yctrl],n,a,o.smoothing,s.smoothing),t.dxydi=H9r([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=j9r([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(cdt(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(cdt(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 _dt=K((nhi,bdt)=>{"use strict";var dN=Cs(),pdt=St().isArray1D,W9r=R0t(),vdt=N0t(),mdt=U0t(),ydt=W0t(),$9r=Y0t(),gdt=i8(),xdt=Z0t(),Y9r=t8(),X9r=ddt();bdt.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&&pdt(s)&&u.push("x"),l&&pdt(l)&&u.push("y"),u.length&&Y9r(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=W9r(d,p,r.cheaterslope)}r._x=s=gdt(s),r._y=l=gdt(l),xdt(s,f,c),xdt(l,f,c),X9r(r),r.setScale();var v=vdt(s),y=vdt(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}),mdt(r,"a","b"),mdt(r,"b","a"),ydt(r,a),ydt(r,o),h.clipsegments=$9r(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=f,h.b=c,[h]}});var Adt=K((ahi,wdt)=>{"use strict";wdt.exports={attributes:oN(),supplyDefaults:w0t(),plot:z0t(),calc:_dt(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:gc(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var Mdt=K((ohi,Tdt)=>{"use strict";Tdt.exports=Adt()});var Qse=K((shi,Cdt)=>{"use strict";var Z9r=sm(),kp=Qf(),K9r=Tu(),{hovertemplateAttrs:J9r,texttemplateAttrs:Q9r,templatefallbackAttrs:Sdt}=gu(),Edt=Wu(),Dx=Os().extendFlat,Iv=kp.marker,_T=kp.line,kdt=Iv.line;Cdt.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:Q9r({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:Sdt({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:Z9r(),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:kdt.width,dash:kdt.dash,editType:"calc"},Edt("marker.line")),gradient:Iv.gradient,editType:"calc"},Edt("marker")),textfont:kp.textfont,textposition:kp.textposition,selected:kp.selected,unselected:kp.unselected,hoverinfo:Dx({},K9r.hoverinfo,{flags:["a","b","text","name"]}),hoveron:kp.hoveron,hovertemplate:J9r(),hovertemplatefallback:Sdt(),zorder:kp.zorder}});var Pdt=K((lhi,Ldt)=>{"use strict";var Ddt=St(),e8r=(om(),or(am)),wT=ff(),t8r=Xp(),r8r=e1(),Fdt=Qw(),i8r=t1(),n8r=um(),a8r=Qse();Ldt.exports=function(t,r,i,n){function a(h,d){return Ddt.coerce(t,r,a8r,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";zdt.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((fhi,Rdt)=>{"use strict";Rdt.exports=function(e,t){for(var r=e._fullData.length,i,n=0;n{"use strict";var Bdt=Hs(),o8r=Zp(),s8r=fm(),l8r=op(),u8r=Kp().calcMarkerSize,f8r=pN();qdt.exports=function(t,r){var i=r._carpetTrace=f8r(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 c8r=aA(),Ndt=Cs(),h8r=Is();Vdt.exports=function(t,r,i,n){var a,o,s,l=i[0][0].carpet,u=Ndt.getFromId(t,l.xaxis||"x"),f=Ndt.getFromId(t,l.yaxis||"y"),c={xaxis:u,yaxis:f,plot:r.plot};for(a=0;a{"use strict";var d8r=uA(),p8r=St().fillText;Gdt.exports=function(t,r,i,n){var a=d8r(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&&p8r(c,h,v),o.extraText=v.join("
")}return a}});var Wdt=K((phi,jdt)=>{"use strict";jdt.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 Ydt=K((vhi,$dt)=>{"use strict";$dt.exports={attributes:Qse(),supplyDefaults:Pdt(),colorbar:e0(),formatLabels:Idt(),calc:Odt(),plot:Udt(),style:hd().style,styleOnSelect:hd().styleOnSelect,hoverPoints:Hdt(),selectPoints:Rb(),eventData:Wdt(),moduleType:"trace",name:"scattercarpet",basePlotModule:gc(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var Zdt=K((mhi,Xdt)=>{"use strict";Xdt.exports=Ydt()});var ele=K((yhi,Kdt)=>{"use strict";var Rv=EA(),pg=oS(),v8r=Wu(),m8r=Os().extendFlat,Xm=pg.contours;Kdt.exports=m8r({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},v8r("",{cLetter:"z",autoColorDflt:!1}))});var tle=K((ghi,ept)=>{"use strict";var Jdt=St(),y8r=J9(),Qdt=ele(),g8r=eX(),x8r=A8(),b8r=T8();ept.exports=function(t,r,i,n){function a(u,f){return Jdt.coerce(t,r,Qdt,u,f)}function o(u){return Jdt.coerce2(t,r,Qdt,u)}if(a("carpet"),t.a&&t.b){var s=y8r(t,r,a,n,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?g8r(t,r,a,n,i,{hasHover:!1}):(x8r(t,r,a,o),b8r(t,r,a,n,{hasHover:!1}))}else r._defaultColor=i,r._length=null;a("zorder")}});var npt=K((xhi,ipt)=>{"use strict";var _8r=T0(),tpt=St(),w8r=t8(),A8r=i8(),T8r=n8(),M8r=a8(),rpt=AY(),S8r=tle(),E8r=pN(),k8r=UY();ipt.exports=function(t,r){var i=r._carpetTrace=E8r(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),S8r(a,r,r._defaultColor,t._fullLayout)}var o=C8r(t,r);return k8r(r,r._z),o}};function C8r(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,tpt.isArray1D(t.z)&&w8r(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=A8r(t._z||t.z,t.transpose),t._emptypoints=M8r(c),T8r(c,t._emptypoints);var h=tpt.maxRowLength(c),d=t.xtype==="scaled"?"":a,p=rpt(t,d,o,s,h,i),v=t.ytype==="scaled"?"":l,y=rpt(t,v,u,f,c.length,n),m={a:p,b:y,z:c};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&_8r(e,t,{vals:c,containerStr:"",cLetter:"z"}),[m]}});var opt=K((bhi,apt)=>{"use strict";var D8r=St().isArrayOrTypedArray;apt.exports=function(e,t,r,i){var n,a,o,s,l,u,f,c,h,d,p,v,y,m=D8r(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(),cpt=Zse(),mD=Is(),vg=St(),F8r=HY(),L8r=jY(),B3=E8(),vN=(uS(),or(lS)),P8r=XY(),z8r=YY(),I8r=ZY(),R8r=pN(),spt=opt();hpt.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=R8r(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=z8r(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]]];F8r(y);var x=(d[d.length-1]-d[0])*1e-8,T=(p[p.length-1]-p[0])*1e-8;L8r(y,x,T);var A=y;v.type==="constraint"&&(A=P8r(y,w)),B8r(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(cpt(E,S,g.bicubic));var D="M"+k.join("L")+"Z";N8r(l,h.clipsegments,a,o,m,_),V8r(f,l,a,o,A,M,b,c,h,_,D),q8r(l,y,t,u,v,r,c),mD.setClipUrl(l,c._clipPathId,t)})};function B8r(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 lpt(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 upt(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function fpt(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),i=Math.sqrt(1-r*r);return i/r}function N8r(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";ppt.exports={attributes:ele(),supplyDefaults:tle(),colorbar:D8(),calc:npt(),plot:dpt(),style:C8(),moduleType:"trace",name:"contourcarpet",basePlotModule:gc(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var ypt=K((Ahi,mpt)=>{"use strict";mpt.exports=vpt()});var xN=K((Thi,wpt)=>{"use strict";var gN=St().extendFlat,yD=Qf(),gpt=zf().axisHoverFormat,{hovertemplateAttrs:G8r,templatefallbackAttrs:H8r}=gu(),bpt=gh().dash,j8r=rw(),_pt=(HA(),or(GA)),W8r=_pt.INCREASING.COLOR,$8r=_pt.DECREASING.COLOR,rle=yD.line;function xpt(e){return{line:{color:gN({},rle.color,{dflt:e}),width:rle.width,dash:bpt,editType:"style"},editType:"style"}}wpt.exports={xperiod:yD.xperiod,xperiod0:yD.xperiod0,xperiodalignment:yD.xperiodalignment,xhoverformat:gpt("x"),yhoverformat:gpt("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({},bpt,{}),editType:"style"},increasing:xpt(W8r),decreasing:xpt($8r),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:G8r({},{keys:["open","high","low","close"]}),hovertemplatefallback:H8r(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:gN({},j8r.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:yD.zorder}});var ile=K((Mhi,Apt)=>{"use strict";var Y8r=Ho(),X8r=St();Apt.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=Y8r.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,X8r.minRowLength(a))),r._length=c,c}}});var Spt=K((Shi,Mpt)=>{"use strict";var Z8r=St(),K8r=ile(),J8r=Qv(),Q8r=xN();Mpt.exports=function(t,r,i,n){function a(s,l){return Z8r.coerce(t,r,Q8r,s,l)}var o=K8r(t,r,a,n);if(!o){r.visible=!1;return}J8r(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),Tpt(t,r,a,"increasing"),Tpt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function Tpt(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((Ehi,kpt)=>{"use strict";var AT=St(),bN=AT._,_N=Cs(),ezr=r1(),gD=(Il(),or(Bl)).BADNUM;function tzr(e,t){var r=_N.getFromId(e,t.xaxis),i=_N.getFromId(e,t.yaxis),n=izr(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=Ept(e,t,o,s,i,rzr);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 rzr(e,t,r,i){return{o:e,h:t,l:r,c:i}}function Ept(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 izr(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 nzr=No(),Cpt=St();Dpt.exports=function(t,r,i,n){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;Cpt.makeTraceGroups(n,i,"trace ohlc").each(function(l){var u=nzr.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(Cpt.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 Ppt=K((Chi,Lpt)=>{"use strict";var ale=No(),azr=Is(),ozr=wo();Lpt.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(ozr.stroke,l.color).call(azr.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var sle=K((Dhi,qpt)=>{"use strict";var ole=Cs(),szr=St(),wN=Gf(),lzr=wo(),uzr=St().fillText,zpt=(HA(),or(GA)),fzr={increasing:zpt.INCREASING.SYMBOL,decreasing:zpt.DECREASING.SYMBOL};function czr(e,t,r,i){var n=e.cd,a=n[0].trace;return a.hoverlabel.split?Rpt(e,t,r,i):Bpt(e,t,r,i)}function Ipt(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 lzr.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 Rpt(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=[],u=Ipt(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=szr.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 Bpt(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=Ipt(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")+" "+fzr[h]]:[];return w&&uzr(f,o,_),l.extraText=_.join("
"),l.y0=l.y1=a.c2p(f.yc,!0),[l]}qpt.exports={hoverPoints:czr,hoverSplit:Rpt,hoverOnPoints:Bpt}});var lle=K((Fhi,Opt)=>{"use strict";Opt.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";Npt.exports={moduleType:"trace",name:"ohlc",basePlotModule:gc(),categories:["cartesian","svg","showLegend"],meta:{},attributes:xN(),supplyDefaults:Spt(),calc:nle().calc,plot:Fpt(),style:Ppt(),hoverPoints:sle().hoverPoints,selectPoints:lle()}});var Gpt=K((Phi,Upt)=>{"use strict";Upt.exports=Vpt()});var fle=K((zhi,Wpt)=>{"use strict";var ule=St().extendFlat,Hpt=zf().axisHoverFormat,Ad=xN(),TT=KM();function jpt(e){return{line:{color:ule({},TT.line.color,{dflt:e}),width:TT.line.width,editType:"style"},fillcolor:TT.fillcolor,editType:"style"}}Wpt.exports={xperiod:Ad.xperiod,xperiod0:Ad.xperiod0,xperiodalignment:Ad.xperiodalignment,xhoverformat:Hpt("x"),yhoverformat:Hpt("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:jpt(Ad.increasing.line.color.dflt),decreasing:jpt(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 Xpt=K((Ihi,Ypt)=>{"use strict";var hzr=St(),dzr=wo(),pzr=ile(),vzr=Qv(),mzr=fle();Ypt.exports=function(t,r,i,n){function a(s,l){return hzr.coerce(t,r,mzr,s,l)}var o=pzr(t,r,a,n);if(!o){r.visible=!1;return}vzr(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),$pt(t,r,a,"increasing"),$pt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function $pt(e,t,r,i){var n=r(i+".line.color");r(i+".line.width",t.line.width),r(i+".fillcolor",dzr.addOpacity(n,.5))}});var Qpt=K((Rhi,Jpt)=>{"use strict";var Zpt=St(),Kpt=Cs(),yzr=r1(),gzr=nle().calcCommon;Jpt.exports=function(e,t){var r=e._fullLayout,i=Kpt.getFromId(e,t.xaxis),n=Kpt.getFromId(e,t.yaxis),a=i.makeCalcdata(t,"x"),o=yzr(t,i,"x",a).vals,s=gzr(e,t,a,o,n,xzr);return s.length?(Zpt.extendFlat(s[0].t,{num:r._numBoxes,dPos:Zpt.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function xzr(e,t,r,i){return{min:r,q1:Math.min(e,i),med:i,q3:Math.max(e,i),max:t}}});var tvt=K((Bhi,evt)=>{"use strict";evt.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:Xpt(),calc:Qpt(),plot:X9().plot,layerName:"boxlayer",style:Z9().style,hoverPoints:sle().hoverPoints,selectPoints:lle()}});var ivt=K((qhi,rvt)=>{"use strict";rvt.exports=tvt()});var hle=K((Ohi,nvt)=>{"use strict";var TN=St(),bzr=Y1(),AN=TN.deg2rad,cle=TN.rad2deg;nvt.exports=function(t,r,i){switch(bzr(t,i),t._id){case"x":case"radialaxis":_zr(t,r);break;case"angularaxis":Tzr(t,r);break}};function _zr(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 wzr(e,t){return t==="degrees"?AN(e):e}function Azr(e,t){return t==="degrees"?cle(e):e}function Tzr(e,t){var r=e.type;if(r==="linear"){var i=e.d2c,n=e.c2d;e.d2c=function(a,o){return wzr(i(a),o)},e.c2d=function(a,o){return n(Azr(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;fzzr,MINZOOM:()=>Izr,OFFEDGE:()=>Rzr,angularDragBoxSize:()=>Fzr,attr:()=>Mzr,axisName2dataArray:()=>kzr,axisNames:()=>Ezr,cornerHalfWidth:()=>Pzr,cornerLen:()=>Lzr,layerNames:()=>Czr,name:()=>Szr,radialDragBoxSize:()=>Dzr});var Mzr,Szr,Ezr,kzr,Czr,Dzr,Fzr,Lzr,Pzr,zzr,Izr,Rzr,SN=ps(()=>{"use strict";Mzr="subplot",Szr="polar",Ezr=["angularaxis","radialaxis"],kzr={angularaxis:"theta",radialaxis:"r"},Czr=["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],Dzr=50,Fzr=30,Lzr=25,Pzr=2,zzr=8,Izr=20,Rzr=20});var kN=K((Nhi,uvt)=>{"use strict";var q3=St(),avt=nM().tester,dle=q3.findIndexOfMin,svt=q3.isAngleInsideSector,Bzr=q3.angleDelta,ovt=q3.angleDist;function qzr(e,t,r,i,n){if(!svt(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 fvt(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 cvt(e,t){return t*e.radius}function Wzr(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=cvt(e,1/Math.abs(t));return["M"+a+","+o,"A"+f+","+f+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function $zr(e,t,r,i){var n=cvt(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(fvt(r)!==fvt(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(),Yzr=yf(),Td=Cs(),Xzr=Y1(),Zzr=hle(),Kzr=$v().doAutoRange,mg=dW(),FN=U0(),dvt=Gf(),Jzr=vb(),Qzr=fh().prepSelect,eIr=fh().selectOnClick,mle=fh().clearOutline,pvt=Yv(),vvt=G6(),mvt=J6().redrawReglTraces,tIr=($c(),or(Wc)).MID_SHIFT,Fx=(SN(),or(MN)),yg=kN(),PN=vle(),CN=PN.smith,rIr=PN.reactanceArc,iIr=PN.resistanceArc,DN=PN.smithTransform,nIr=Ff._,yvt=Ff.mod,Lx=Ff.deg2rad,N3=Ff.rad2deg;function gvt(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=gvt.prototype;_vt.exports=function(t,r,i){return new gvt(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 Zzr(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);Xzr(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);Kzr(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 iIr(r,A.x,-1/0,1/0)}:function(A){return r.pathArc(c.r2p(A.x)+o)},y=xvt(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(bvt(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"]=Jzr.draw(n,u,{propContainer:l,propName:i.id+".radialaxis.title.text",placeholder:nIr(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 rIr(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*tIr)},_.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=xvt(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){dvt.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&&eIr(de,i,[t.xaxis],[t.yaxis],t.id,g),me.indexOf("event")>-1&&dvt.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":Qzr(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 bvt(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((Ghi,Evt)=>{"use strict";var oIr=Gc(),pl=Ph(),sIr=kf().attributes,Cp=St().extendFlat,wvt=Ef().overrideAll,Avt=wvt({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"),Tvt=wvt({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: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(Mvt,Avt,Tvt);var Svt={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(Svt,Avt,Tvt);Evt.exports={domain:sIr({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:oIr.background},radialaxis:Mvt,angularaxis:Svt,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var Fvt=K((Hhi,Dvt)=>{"use strict";var zN=St(),lIr=wo(),uIr=cu(),fIr=Jb(),cIr=Zh().getSubplotData,hIr=fb(),dIr=Dw(),pIr=Bg(),vIr=qg(),mIr=r9(),yIr=FM(),gIr=VH(),xIr=Rw(),Cvt=gle(),bIr=hle(),IN=(SN(),or(MN)),kvt=IN.axisNames;function _Ir(e,t,r,i){var n=r("bgcolor");i.bgColor=lIr.combine(n,i.paper_bgcolor);var a=r("sector");r("hole");var o=cIr(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 AIr=Zh().getSubplotCalcData,TIr=St().counterRegex,MIr=yle(),Pvt=(SN(),or(MN)),zvt=Pvt.attr,U3=Pvt.name,Lvt=TIr(U3),Ivt={};Ivt[zvt]={valType:"subplotid",dflt:U3,editType:"calc"};function SIr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[U3],n=0;n{"use strict";var{hovertemplateAttrs:kIr,texttemplateAttrs:CIr,templatefallbackAttrs:Bvt}=gu(),BN=Os().extendFlat,DIr=sm(),Dp=Qf(),FIr=Tu(),kT=Dp.line;qvt.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:CIr({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:Bvt({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:DIr(),hoverinfo:BN({},FIr.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:Dp.hoveron,hovertemplate:kIr(),hovertemplatefallback:Bvt(),selected:Dp.selected,unselected:Dp.unselected}});var ON=K(($hi,Vvt)=>{"use strict";var qN=St(),CT=ff(),LIr=Xp(),PIr=e1(),Ovt=Qw(),zIr=t1(),IIr=um(),RIr=(om(),or(am)).PTS_LINESONLY,BIr=_D();function qIr(e,t,r,i){function n(s,l){return qN.coerce(e,t,BIr,s,l)}var a=Nvt(e,t,i,n);if(!a){t.visible=!1;return}n("thetaunit"),n("mode",a{"use strict";var OIr=St(),Uvt=Cs();Gvt.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=Uvt.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?OIr.rad2deg(t.theta):t.theta;return n.thetaLabel=Uvt.tickText(s,u,!0).text,n}});var Wvt=K((Xhi,jvt)=>{"use strict";var Hvt=Hs(),NIr=(Il(),or(Bl)).BADNUM,VIr=Cs(),UIr=Zp(),GIr=fm(),HIr=op(),jIr=Kp().calcMarkerSize;jvt.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 WIr=aA(),$vt=(Il(),or(Bl)).BADNUM;Yvt.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 $Ir=uA();function YIr(e,t,r,i){var n=$Ir(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,Zvt(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function Zvt(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("
")}}Kvt.exports={hoverPoints:YIr,makeHoverPointText:Zvt}});var Qvt=K((Jhi,Jvt)=>{"use strict";Jvt.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:RN(),categories:["polar","symbols","showLegend","scatter-like"],attributes:_D(),supplyDefaults:ON().supplyDefaults,colorbar:e0(),formatLabels:NN(),calc:Wvt(),plot:Xvt(),style:hd().style,styleOnSelect:hd().styleOnSelect,hoverPoints:VN().hoverPoints,selectPoints:Rb(),meta:{}}});var t1t=K((Qhi,e1t)=>{"use strict";e1t.exports=Qvt()});var xle=K((r0i,i1t)=>{"use strict";var r1t=_D(),{cliponaxis:e0i,hoveron:t0i}=r1t,XIr=FD(r1t,["cliponaxis","hoveron"]),{connectgaps:ZIr,line:{color:KIr,dash:JIr,width:QIr},fill:eRr,fillcolor:tRr,marker:rRr,textfont:iRr,textposition:nRr}=VE();i1t.exports=$l(Gs({},XIr),{connectgaps:ZIr,fill:eRr,fillcolor:tRr,line:{color:KIr,dash:JIr,editType:"calc",width:QIr},marker:rRr,textfont:iRr,textposition:nRr})});var o1t=K((n0i,a1t)=>{"use strict";var n1t=St(),ble=ff(),aRr=ON().handleRThetaDefaults,oRr=Xp(),sRr=e1(),lRr=t1(),uRr=um(),fRr=(om(),or(am)).PTS_LINESONLY,cRr=xle();a1t.exports=function(t,r,i,n){function a(s,l){return n1t.coerce(t,r,cRr,s,l)}var o=aRr(t,r,n,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var hRr=NN();s1t.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]),hRr(t,r,i)}});var f1t=K((o0i,u1t)=>{"use strict";var dRr=Zp(),pRr=Kp().calcMarkerSize,vRr=W_(),mRr=Cs(),yRr=(V_(),or(N_)).TOO_MANY_POINTS;u1t.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 gRr=HR(),xRr=VN().makeHoverPointText;function bRr(e,t,r,i){var n=e.cd,a=n[0].t,o=a.r,s=a.theta,l=gRr.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,xRr(c,h,f,u),l}}c1t.exports={hoverPoints:bRr}});var p1t=K((l0i,d1t)=>{"use strict";d1t.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:RN(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:xle(),supplyDefaults:o1t(),colorbar:e0(),formatLabels:l1t(),calc:f1t(),hoverPoints:h1t().hoverPoints,selectPoints:Xee(),meta:{}}});var v1t=K((u0i,_le)=>{"use strict";var _Rr=YR(),wRr=Hs(),ARr=Kte(),TRr=Wee(),UN=W_(),GN=St(),MRr=(V_(),or(N_)).TOO_MANY_POINTS,SRr={};_le.exports=function(t,r,i){if(i.length){var n=r.radialAxis,a=r.angularAxis,o=TRr(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=MRr&&(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++}}),ARr(t,r,i)}};_le.exports.reglPrecompiled=SRr});var y1t=K((f0i,m1t)=>{"use strict";var ERr=kB(),kRr=CB(),CRr=DB(),DRr=FB(),FRr=LB(),LRr=PB(),PRr=zB(),zRr=IB(),IRr=RB(),RRr=BB();m1t.exports={"3e771157d23b4793771f65d83e6387262ed73d488209157f19a7fa027bddd71b":ERr,"49e82bba439f1d9d441c17ba252d05640bc63fefdf22d1219993633af7730210":kRr,"6a5d6bd29c15cf7614221b94c3f384df47c2c46fbe4456e8c57b5cd14c84d923":CRr,"8902aff2b23b600f8103bcc84a8af2999d28795208aedadc2db06f921f9c7034":DRr,"8fad2284703471df7c0e0d0a7b96d983e8c53f6d707dd55d5921c1eab71f6623":FRr,bfc540da96a87fcc039073cb37b45e6b81ef5ee6ef3529d726ceed8336354019:LRr,cbf700f001fff25b649fba9c37fa0dc6631c1cdee318ad49473d28ec10dcee81:PRr,db1b82c68771e7f5012fad1fbdae7ff23b526e58d2995bf6dd2cf30024e0f41d:zRr,dbd1cc9126a137a605df67dc0706e55116f04e33b4545a80042031752de5aef5:IRr,fe5b6844077cde1bdd7273f4495969fad93500c26a69b62e74ec2664c447bcc7:RRr}});var x1t=K((c0i,g1t)=>{"use strict";var wle=v1t(),BRr=y1t(),qRr=Jte();Object.assign(wle.reglPrecompiled,BRr);Object.assign(wle.reglPrecompiled,qRr);g1t.exports=wle});var w1t=K((h0i,_1t)=>{"use strict";var b1t=p1t();b1t.plot=x1t();_1t.exports=b1t});var Ale=K((d0i,A1t)=>{"use strict";var{hovertemplateAttrs:ORr,templatefallbackAttrs:NRr}=gu(),DT=Os().extendFlat,Px=_D(),zx=dm();A1t.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:VRr(),hoverinfo:Px.hoverinfo,hovertemplate:ORr(),hovertemplatefallback:NRr(),selected:zx.selected,unselected:zx.unselected};function VRr(){var e=DT({},zx.marker);return delete e.cornerradius,e}});var Tle=K((p0i,T1t)=>{"use strict";T1t.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var E1t=K((v0i,S1t)=>{"use strict";var M1t=St(),URr=ON().handleRThetaDefaults,GRr=N9(),HRr=Ale();S1t.exports=function(t,r,i,n){function a(s,l){return M1t.coerce(t,r,HRr,s,l)}var o=URr(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"),GRr(t,r,a,i,n),M1t.coerceSelectionMarkerOpacity(r,a)}});var C1t=K((m0i,k1t)=>{"use strict";var jRr=St(),WRr=Tle();k1t.exports=function(e,t,r){var i={},n;function a(l,u){return jRr.coerce(e[n]||{},t[n],WRr,l,u)}for(var o=0;o{"use strict";var D1t=Kh().hasColorscale,F1t=T0(),$Rr=St().isArrayOrTypedArray,YRr=$M(),XRr=Ib().setGroupPositions,ZRr=op(),KRr=Ho().traceIs,JRr=St().extendFlat;function QRr(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 P1t=No(),HN=Hs(),FT=St(),tBr=Is(),Sle=kN();z1t.exports=function(t,r,i){var n=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=rBr(r),f=r.layers.frontplot.select("g.barlayer");FT.makeTraceGroups(f,i,"trace bars").each(function(){var c=P1t.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=P1t.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)}),tBr.setClipUrl(c,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function rBr(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 B1t=K((x0i,R1t)=>{"use strict";var iBr=Gf(),Ele=St(),nBr=AA().getTraceColor,aBr=Ele.fillText,oBr=VN().makeHoverPointText,sBr=kN().isPtInsidePolygon;R1t.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?sBr: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(iBr.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 aBr(m,a,t),oBr(w,a,o,t),t.hovertemplate=a.hovertemplate,t.color=nBr(a,m),t.xLabelVal=t.yLabelVal=void 0,m.s<0&&(t.idealAlign="left"),[t]}}});var O1t=K((b0i,q1t)=>{"use strict";q1t.exports={moduleType:"trace",name:"barpolar",basePlotModule:RN(),categories:["polar","bar","showLegend"],attributes:Ale(),layoutAttributes:Tle(),supplyDefaults:E1t(),supplyLayoutDefaults:C1t(),calc:Mle().calc,crossTraceCalc:Mle().crossTraceCalc,plot:I1t(),colorbar:e0(),formatLabels:NN(),style:tv().style,styleOnSelect:tv().styleOnSelect,hoverPoints:B1t(),selectPoints:TA(),meta:{}}});var V1t=K((_0i,N1t)=>{"use strict";N1t.exports=O1t()});var kle={};Fl(kle,{attr:()=>lBr,axisName2dataArray:()=>cBr,axisNames:()=>fBr,name:()=>uBr});var lBr,uBr,fBr,cBr,Cle=ps(()=>{"use strict";lBr="subplot",uBr="smith",fBr=["realaxis","imaginaryaxis"],cBr={imaginaryaxis:"imag",realaxis:"real"}});var Dle=K((w0i,j1t)=>{"use strict";var hBr=Gc(),vc=Ph(),dBr=kf().attributes,Ix=St().extendFlat,U1t=Ef().overrideAll,G1t=U1t({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"),H1t=U1t({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"),pBr=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"},G1t,H1t),vBr=Ix({visible:Ix({},vc.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:vc.ticks,editType:"calc"},G1t,H1t);j1t.exports={domain:dBr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:hBr.background},realaxis:pBr,imaginaryaxis:vBr,editType:"calc"}});var Y1t=K((A0i,$1t)=>{"use strict";var LT=St(),mBr=wo(),yBr=cu(),gBr=Jb(),xBr=Zh().getSubplotData,bBr=qg(),_Br=Bg(),wBr=FM(),ABr=Y1(),PT=Dle(),Fle=(Cle(),or(kle)),W1t=Fle.axisNames,TBr=SBr(function(e){return LT.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function MBr(e,t,r,i){var n=r("bgcolor");i.bgColor=mBr.combine(n,i.paper_bgcolor);var a=xBr(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 EBr=Zh().getSubplotCalcData,kBr=St().counterRegex,CBr=yle(),Z1t=(Cle(),or(kle)),K1t=Z1t.attr,G3=Z1t.name,X1t=kBr(G3),J1t={};J1t[K1t]={valType:"subplotid",dflt:G3,editType:"calc"};function DBr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[G3],n=0;n{"use strict";var{hovertemplateAttrs:LBr,texttemplateAttrs:PBr,templatefallbackAttrs:tmt}=gu(),jN=Os().extendFlat,zBr=sm(),Fp=Qf(),IBr=Tu(),zT=Fp.line;rmt.exports={mode:Fp.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:Fp.text,texttemplate:PBr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:tmt({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:zBr(),hoverinfo:jN({},IBr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:Fp.hoveron,hovertemplate:LBr(),hovertemplatefallback:tmt(),selected:Fp.selected,unselected:Fp.unselected}});var amt=K((S0i,nmt)=>{"use strict";var WN=St(),IT=ff(),RBr=Xp(),BBr=e1(),imt=Qw(),qBr=t1(),OBr=um(),NBr=(om(),or(am)).PTS_LINESONLY,VBr=Lle();nmt.exports=function(t,r,i,n){function a(l,u){return WN.coerce(t,r,VBr,l,u)}var o=UBr(t,r,n,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var omt=Cs();smt.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot;return n.realLabel=omt.tickText(a.radialAxis,t.real,!0).text,n.imagLabel=omt.tickText(a.angularAxis,t.imag,!0).text,n}});var cmt=K((k0i,fmt)=>{"use strict";var umt=Hs(),GBr=(Il(),or(Bl)).BADNUM,HBr=Zp(),jBr=fm(),WBr=op(),$Br=Kp().calcMarkerSize;fmt.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 YBr=aA(),hmt=(Il(),or(Bl)).BADNUM,XBr=vle(),ZBr=XBr.smith;dmt.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 KBr=uA();function JBr(e,t,r,i){var n=KBr(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,vmt(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function vmt(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("
")}}mmt.exports={hoverPoints:JBr,makeHoverPointText:vmt}});var xmt=K((F0i,gmt)=>{"use strict";gmt.exports={moduleType:"trace",name:"scattersmith",basePlotModule:emt(),categories:["smith","symbols","showLegend","scatter-like"],attributes:Lle(),supplyDefaults:amt(),colorbar:e0(),formatLabels:lmt(),calc:cmt(),plot:pmt(),style:hd().style,styleOnSelect:hd().styleOnSelect,hoverPoints:ymt().hoverPoints,selectPoints:Rb(),meta:{}}});var _mt=K((L0i,bmt)=>{"use strict";bmt.exports=xmt()});var zle=K((P0i,wmt)=>{"use strict";var QBr=Tu(),e7r=gu().hovertemplateAttrs,$N=zf().axisHoverFormat,Ple=Os().extendFlat,t7r=Wu(),r7r=gh().dash,i7r=Qg(),H3=Qf(),n7r={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({},QBr.hoverinfo,{flags:["x","y","u","v","text","name"],dflt:"all"}),hovertemplate:e7r({},{keys:["x","y","u","v","text","name"]}),text:H3.text,textposition:H3.textposition,textfont:H3.textfont,marker:Ple({arrowsize:Ple({},i7r.arrowsize,{editType:"calc"}),line:{width:{valType:"number",min:0,dflt:2,editType:"style"},dash:r7r,editType:"style"},editType:"calc"},t7r("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"}};wmt.exports=n7r});var Tmt=K((z0i,Amt)=>{"use strict";var wD=St(),a7r=zle(),o7r=Pb(),s7r=Kh().hasColorscale,l7r=xh();Amt.exports=function(t,r,i,n){function a(p,v){return wD.coerce(t,r,a7r,p,v)}var o=o7r(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(),Mmt=(Il(),or(Bl)).BADNUM,u7r=T0(),f7r=op(),c7r=.97;Smt.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=Mmt,P.y=Mmt}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*=c7r,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";kmt.exports=function(t,r){}});var YN=K((B0i,Lmt)=>{"use strict";var Ile=No(),Ble=St(),TD=Is(),h7r=gf(),d7r=wo(),p7r=(ry(),or(ty)).DESELECTDIM;function Dmt(e,t){var r=t.marker||{},i=h7r.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){Dmt(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(d7r.isValid(n))return i.mcc=n,n}return this.style.stroke})};function v7r(e){var t=Ile.select(e).selectAll("g.trace.quiver");t.each(function(r){Fmt(e,r,Ile.select(this))})}function m7r(e,t,r){Fmt(e,t,r)}function Fmt(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?p7r: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)}}Lmt.exports={style:v7r,styleOnSelect:m7r,colorscaleStroke:Dmt,strokeArrowColors:Rle}});var Imt=K((q0i,zmt)=>{"use strict";var O1=No(),y7r=St(),MD=Is(),{strokeArrowColors:g7r}=YN(),XN=Math.PI/12,x7r=5.8,b7r=1.5,_7r=.7;zmt.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=O1.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){Pmt(t,d,r,h,i,this,a)})})}else s.each(function(h,d){Pmt(t,d,r,h,i,this,a)});u&&s.exit().remove()};function Pmt(e,t,r,i,n,a,o){var s=i[0].trace,l=r.xaxis,u=r.yaxis;i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=O1.select(a);var f=O1.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=O1.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):O1.round(l._m*T._u))*v,E=(p==="paper"?T._v*Math.sign(u._m):O1.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,b7r));let I=Math.sqrt((k-C)*(k-C)+(F-D)*(F-D)),L=_7r*I,z=Math.min(x7r*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 _=y7r.isArrayOrTypedArray(m.color)?void 0:m.color;MD.lineGroupStyle(c,w.width,_,w.dash),g7r(c,s);var b=O1.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=O1.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);O1.select(this).selectAll("tspan.line").each(function(){O1.select(this).attr({x:A,y:g})})}),o&&o.duration>0){var x=O1.transition().duration(o.duration).ease(o.easing);c.transition(x).style("opacity",1)}}});var qmt=K((O0i,Bmt)=>{"use strict";var Rmt=St(),w7r=Gf(),A7r=lA();function T7r(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))}Bmt.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:T7r(u,f,_._px0,_._py0,_._px1,_._py1)};if(w7r.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 Rmt.extendFlat(t,{color:A7r(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}),Rmt.fillText(h,o,t),[t]}}});var Vmt=K((N0i,Nmt)=>{"use strict";var ZN=Cs(),Omt=St();Nmt.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?Omt.numberFormat(h)(f):String(f),n.vLabel=d?Omt.numberFormat(d)(c):String(c),n}});var Gmt=K((V0i,Umt)=>{"use strict";Umt.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 jmt=K((U0i,Hmt)=>{"use strict";Hmt.exports={moduleType:"trace",name:"quiver",basePlotModule:gc(),categories:["cartesian","svg","showLegend","scatter-like","zoomScale"],attributes:zle(),supplyDefaults:Tmt(),calc:Emt(),crossTraceCalc:Cmt(),plot:Imt(),style:YN().style,styleOnSelect:YN().styleOnSelect,hoverPoints:qmt(),formatLabels:Vmt(),eventData:Gmt(),selectPoints:Rb(),colorbar:e0(),animatable:!0,meta:{}}});var $mt=K((G0i,Wmt)=>{"use strict";Wmt.exports=jmt()});var B0=K((H0i,Xmt)=>{var JN=Sh();function Ymt(){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(Ymt.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=Xmt.exports=new Ymt;Zl.cdate=qle;Zl.baseCalendar=Ole;Zl.calendars.gregorian=Nle});var Zmt=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 Kmt=K(()=>{var Rx=B0(),M7r=Sh(),Ule=Rx.instance();function QN(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}QN.prototype=new Rx.baseCalendar;M7r(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(E7r);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(k7r);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(C7r);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=F7r(e,a,r,n);return Ule.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=Ule.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(S7r),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 S7r=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,E7r=/^\d?\d[iI]?/m,k7r=/^闰?十?[一二三四五六七八九]?月/m,C7r=/^闰?十?[一二三四五六七八九]?/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 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=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 Jmt=K(()=>{var j3=B0(),L7r=Sh();function Gle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Gle.prototype=new j3.baseCalendar;L7r(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 Qmt=K(()=>{var xg=B0(),P7r=Sh();function Hle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Hle.prototype=new xg.baseCalendar;P7r(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:z7r[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 z7r={20:"Fruitbat",21:"Anchovy"};xg.calendars.discworld=Hle});var eyt=K(()=>{var W3=B0(),I7r=Sh();function jle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}jle.prototype=new W3.baseCalendar;I7r(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 tyt=K(()=>{var Ox=B0(),R7r=Sh();function Wle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Wle.prototype=new Ox.baseCalendar;R7r(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 ryt=K(()=>{var SD=B0(),B7r=Sh();function $le(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}$le.prototype=new SD.baseCalendar;B7r($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 iyt=K(()=>{var ED=B0(),q7r=Sh();function Yle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Yle.prototype=new ED.baseCalendar;q7r(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 ayt=K(()=>{var Bv=B0(),O7r=Sh();function Zle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Zle.prototype=new Bv.baseCalendar;O7r(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,[nyt(e+20,20),nyt(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 nyt(e,t){return Xle(e-1,t)+1}Bv.calendars.mayan=Zle});var syt=K(()=>{var $3=B0(),N7r=Sh();function Kle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Kle.prototype=new $3.baseCalendar;var oyt=$3.instance("gregorian");N7r(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 oyt.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 lyt=K(()=>{var Y3=B0(),V7r=Sh();function Jle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Jle.prototype=new Y3.baseCalendar;V7r(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(),U7r=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;U7r(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 fyt=K(()=>{var X3=B0(),G7r=Sh(),iV=X3.instance();function Qle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Qle.prototype=new X3.baseCalendar;G7r(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 cyt=K(()=>{var Z3=B0(),H7r=Sh(),nV=Z3.instance();function eue(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}eue.prototype=new Z3.baseCalendar;H7r(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 hyt=K(()=>{var K3=B0(),j7r=Sh();function tue(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}tue.prototype=new K3.baseCalendar;j7r(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 pyt=K((_di,dyt)=>{"use strict";dyt.exports=B0();Zmt();Kmt();Jmt();Qmt();eyt();tyt();ryt();iyt();ayt();syt();lyt();uyt();fyt();cyt();hyt()});var _yt=K((wdi,byt)=>{"use strict";var myt=pyt(),kD=St(),yyt=(Il(),or(Bl)),W7r=yyt.EPOCHJD,$7r=yyt.ONEDAY,nue={valType:"enumerated",values:kD.sortObjectKeys(myt.calendars),editType:"calc",dflt:"gregorian"},gyt=function(e,t,r,i){var n={};return n[r]=nue,kD.coerce(e,t,n,r,i)},Y7r=function(e,t,r,i){for(var n=0;n{"use strict";wyt.exports=_yt()});var eqr=K((Tdi,Myt)=>{var Tyt=V5e();Tyt.register([GTe(),D6e(),WMe(),dSe(),ESe(),_Ee(),zEe(),Ake(),Jke(),zCe(),bDe(),WIe(),IRe(),M7e(),hqe(),Gqe(),dOe(),MNe(),HNe(),lVe(),bVe(),zVe(),XVe(),cUe(),YGe(),pHe(),jZe(),YKe(),sQe(),PQe(),ift(),gft(),Uft(),eht(),Aht(),i0t(),Mdt(),Zdt(),ypt(),Gpt(),ivt(),t1t(),w1t(),V1t(),_mt(),$mt(),Ayt()]);Myt.exports=Tyt});return eqr();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/dist/plotly-with-meta.js b/dist/plotly-with-meta.js index 3d7ddfab62d..d7ca2e66e01 100644 --- a/dist/plotly-with-meta.js +++ b/dist/plotly-with-meta.js @@ -1,5 +1,5 @@ /** -* plotly.js v4.2.0 +* plotly.js v4.3.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.2.0"; + exports.version = "4.3.0"; } }); @@ -9297,7 +9297,7 @@ var Plotly = (() => { for (var i2 = 1; i2 < length; i2++) { input = inputs[i2]; for (key in input) { - src = target[key]; + src = Object.prototype.hasOwnProperty.call(target, key) ? target[key] : void 0; copy = input[key]; if (noArrayCopies && isArray(copy)) { target[key] = copy; @@ -20712,8 +20712,8 @@ var Plotly = (() => { }; var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/; var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/; - function notValid(prop) { - return prop.slice(0, 2) === "__"; + function notValid(obj, prop) { + return prop in obj && !Object.prototype.hasOwnProperty.call(obj, prop); } lib.expandObjectPaths = function(data) { var match, key, prop, datum, idx, dest, trailingPath; @@ -20723,7 +20723,7 @@ var Plotly = (() => { if (match = key.match(dottedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; delete data[key]; data[prop] = lib.extendDeepNoArrays( data[prop] || {}, @@ -20732,7 +20732,7 @@ var Plotly = (() => { } else if (match = key.match(indexedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; idx = parseInt(match[2]); delete data[key]; data[prop] = data[prop] || []; @@ -20741,11 +20741,11 @@ var Plotly = (() => { dest = data[prop][idx] = data[prop][idx] || {}; lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum))); } else { - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; data[prop][idx] = lib.expandObjectPaths(datum); } } else { - if (notValid(key)) continue; + if (notValid(data, key)) continue; data[key] = lib.expandObjectPaths(data[key]); } } @@ -23370,7 +23370,7 @@ var Plotly = (() => { ax2._counterAxes.sort(axisIDs.idSort); ax2._subplotsWith.sort(Lib.subplotSort); ax2._mainSubplot = findMainSubplot(ax2, newFullLayout); - if (ax2._counterAxes.length && (ax2.spikemode && ax2.spikemode.indexOf("across") !== -1 || ax2.automargin && ax2.mirror && ax2.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax2))) { + if (ax2._counterAxes.length && (ax2.automargin && ax2.mirror && ax2.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax2))) { var min = 1; var max = 0; for (j2 = 0; j2 < ax2._counterAxes.length; j2++) { @@ -27040,6 +27040,48 @@ var Plotly = (() => { editType: "plot", description: ["Sets the domain of this axis (in plot fraction)."].join(" ") }, + domainpad: { + left: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot", + description: "Sets the space in pixels to reserve inside the left edge of `domain`. Applies to x axes only." + }, + right: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot", + description: "Sets the space in pixels to reserve inside the right edge of `domain`. Applies to x axes only." + }, + top: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot", + description: "Sets the space in pixels to reserve inside the top edge of `domain`. Applies to y axes only." + }, + bottom: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot", + description: "Sets the space in pixels to reserve inside the bottom edge of `domain`. Applies to y axes only." + }, + editType: "plot", + description: [ + "Sets the space in pixels to reserve inside the edges of `domain`.", + "Because `domain` is a fraction of the plot area, the gap between subplots", + "changes with the figure size. `domainpad` keeps the same size in pixels at all figure sizes,", + "so it can hold content with a fixed size, such as a subplot title.", + "x axes use `left` and `right`. y axes use `top` and `bottom`.", + "If the padding needs more room than the domain has, the two pads shrink by the same factor,", + "and the plot area keeps a length of at least 2 pixels.", + "An axis that sets `overlaying` ignores its own `domainpad` and uses the `domainpad`", + "of the axis it overlays, so that both axes share the same plot area." + ].join(" ") + }, position: { valType: "number", min: 0, @@ -30955,6 +30997,12 @@ var Plotly = (() => { function isValidCategory(v2) { return v2 !== null && v2 !== void 0; } + var MIN_PADDED_LENGTH = 2; + function padFactor(wanted, bandLength) { + if (wanted <= 0) return 0; + const room = Math.max(0, bandLength - MIN_PADDED_LENGTH); + return wanted > room ? room / wanted : 1; + } module.exports = function setConvert(ax2, fullLayout) { fullLayout = fullLayout || {}; var axId = ax2._id || "x"; @@ -31325,6 +31373,7 @@ var Plotly = (() => { if (ax2.overlaying) { var ax22 = axisIds.getFromId({ _fullLayout: fullLayout }, ax2.overlaying); ax2.domain = ax22.domain; + ax2.domainpad = ax22.domainpad; } var rangeAttr = usePrivateRange && ax2._r ? "_r" : "range"; var calendar = ax2.calendar; @@ -31332,14 +31381,26 @@ var Plotly = (() => { var rl0 = ax2.r2l(ax2[rangeAttr][0], calendar); var rl1 = ax2.r2l(ax2[rangeAttr][1], calendar); var isY2 = axLetter === "y"; + const bandLength = (isY2 ? gs3.h : gs3.w) * (ax2.domain[1] - ax2.domain[0]); + const pad = ax2.domainpad; + let padStart = 0; + let padEnd = 0; + if (pad) { + padStart = (isY2 ? pad.top : pad.left) || 0; + padEnd = (isY2 ? pad.bottom : pad.right) || 0; + const fits = padFactor(padStart + padEnd, bandLength); + padStart *= fits; + padEnd *= fits; + } + ax2._length = bandLength - padStart - padEnd; + ax2._padStart = padStart; + ax2._padEnd = padEnd; if (isY2) { - ax2._offset = gs3.t + (1 - ax2.domain[1]) * gs3.h; - ax2._length = gs3.h * (ax2.domain[1] - ax2.domain[0]); + ax2._offset = gs3.t + (1 - ax2.domain[1]) * gs3.h + padStart; ax2._m = ax2._length / (rl0 - rl1); ax2._b = -ax2._m * rl1; } else { - ax2._offset = gs3.l + ax2.domain[0] * gs3.w; - ax2._length = gs3.w * (ax2.domain[1] - ax2.domain[0]); + ax2._offset = gs3.l + ax2.domain[0] * gs3.w + padStart; ax2._m = ax2._length / (rl1 - rl0); ax2._b = -ax2._m * rl0; } @@ -33196,7 +33257,7 @@ var Plotly = (() => { for (var i2 = 0; i2 < vals.length; i2++) { var vali = tickVal2l(vals[i2]); if (vali > tickMin && vali < tickMax) { - var obj = axes.tickText(ax2, vali, false, String(text[i2]), { + const obj = axes.tickText(ax2, vali, false, text[i2] !== void 0, { first: i2 === firstIdx, last: i2 === lastIdx }); @@ -35285,6 +35346,7 @@ var Plotly = (() => { var noSwapAttrs = [ "anchor", "domain", + "domainpad", "overlaying", "position", "side", @@ -40030,6 +40092,30 @@ var Plotly = (() => { } return d2; } + function getAcrossSpikeSpan(gd3, ax2, gs3) { + const isY = ax2._id.charAt(0) === "y"; + let start = Infinity; + let end = -Infinity; + for (const counterId of ax2._counterAxes || []) { + const counterAx = Axes.getFromId(gd3, counterId); + if (!counterAx) continue; + const padStart = counterAx._padStart || 0; + const padEnd = counterAx._padEnd || 0; + if (isY) { + start = Math.min(start, gs3.l + counterAx.domain[0] * gs3.w + padStart); + end = Math.max(end, gs3.l + counterAx.domain[1] * gs3.w - padEnd); + } else { + start = Math.min(start, gs3.t + (1 - counterAx.domain[1]) * gs3.h + padStart); + end = Math.max(end, gs3.t + (1 - counterAx.domain[0]) * gs3.h - padEnd); + } + } + if (ax2.anchor === "free") { + const position = isY ? gs3.l + ax2.position * gs3.w : gs3.t + (1 - ax2.position) * gs3.h; + start = Math.min(start, position); + end = Math.max(end, position); + } + return [start, end]; + } function createSpikelines(gd3, closestPoints, opts) { var container = opts.container; var fullLayout = opts.fullLayout; @@ -40066,14 +40152,9 @@ var Plotly = (() => { xEndSpike = hLinePointX; } if (yMode.indexOf("across") !== -1) { - var xAcross0 = ya3._counterDomainMin; - var xAcross1 = ya3._counterDomainMax; - if (ya3.anchor === "free") { - xAcross0 = Math.min(xAcross0, ya3.position); - xAcross1 = Math.max(xAcross1, ya3.position); - } - xBase = gs3.l + xAcross0 * gs3.w; - xEndSpike = gs3.l + xAcross1 * gs3.w; + const xSpan = getAcrossSpikeSpan(gd3, ya3, gs3); + xBase = xSpan[0]; + xEndSpike = xSpan[1]; } container.insert("line", ":first-child").attr({ x1: xBase, @@ -40127,14 +40208,9 @@ var Plotly = (() => { yEndSpike = vLinePointY; } if (xMode.indexOf("across") !== -1) { - var yAcross0 = xa3._counterDomainMin; - var yAcross1 = xa3._counterDomainMax; - if (xa3.anchor === "free") { - yAcross0 = Math.min(yAcross0, xa3.position); - yAcross1 = Math.max(yAcross1, xa3.position); - } - yBase = gs3.t + (1 - yAcross1) * gs3.h; - yEndSpike = gs3.t + (1 - yAcross0) * gs3.h; + const ySpan = getAcrossSpikeSpan(gd3, xa3, gs3); + yBase = ySpan[0]; + yEndSpike = ySpan[1]; } container.insert("line", ":first-child").attr({ x1: vLinePointX, @@ -44790,7 +44866,7 @@ var Plotly = (() => { var outerMax = rangeCenter + halfRange * factor * 1.0001; var getPadMin = autorange.makePadFn(fullLayout, ax2, 0); var getPadMax = autorange.makePadFn(fullLayout, ax2, 1); - updateDomain(ax2, factor); + updateDomain(ax2, factor, fullLayout); var m2 = Math.abs(ax2._m); var extremes = autorange.concatExtremes(gd3, ax2); var minArray = extremes.min; @@ -44815,7 +44891,7 @@ var Plotly = (() => { rangeMax = ax2.l2r(rangeMax); ax2.range = ax2._input.range = rl0 < rl1 ? [rangeMin, rangeMax] : [rangeMax, rangeMin]; } - updateDomain(ax2, factor); + updateDomain(ax2, factor, fullLayout); } } } @@ -44846,13 +44922,26 @@ var Plotly = (() => { } } }; - function updateDomain(ax2, factor) { + function domainPadFraction(ax2, fullLayout) { + const pad = ax2.domainpad; + if (!pad) return 0; + const gs3 = fullLayout._size; + return ax2._id.charAt(0) === "y" ? ((pad.top || 0) + (pad.bottom || 0)) / gs3.h : ((pad.left || 0) + (pad.right || 0)) / gs3.w; + } + function updateDomain(ax2, factor, fullLayout) { var inputDomain = ax2._inputDomain; var centerFraction = FROM_BL2[ax2.constraintoward]; var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction; + let divisor = factor; + const padFraction = domainPadFraction(ax2, fullLayout); + if (padFraction > 0) { + const inputSpan = inputDomain[1] - inputDomain[0]; + const drawnSpan = inputSpan - padFraction; + if (drawnSpan > 0) divisor = inputSpan / (drawnSpan / factor + padFraction); + } ax2.domain = ax2._input.domain = [ - center + (inputDomain[0] - center) / factor, - center + (inputDomain[1] - center) / factor + center + (inputDomain[0] - center) / divisor, + center + (inputDomain[1] - center) / divisor ]; ax2.setScale(); } @@ -52620,6 +52709,10 @@ var Plotly = (() => { if (!newType || newType === "-") newType = "linear"; Registry.getComponentMethod("annotations", "convertCoords")(gd3, fullProp, newType, doextra); Registry.getComponentMethod("images", "convertCoords")(gd3, fullProp, newType, doextra); + if (!ptrunk && fullProp && vi3 && (vi3.range !== void 0 || vi3.autorange !== void 0)) { + recordAlteredAxis(`${pleaf}.range`); + fullProp._inputRange = null; + } } var containerArrayMatch = manageArrays.containerArrayMatch(ai3); if (containerArrayMatch) { @@ -53133,6 +53226,14 @@ var Plotly = (() => { newFullLayout[key]._inputDomain = null; } } + const newRange = newFullLayout[key].range; + const oldRange = oldFullLayout[key].range; + const oldInputRange = oldFullLayout[key]._inputRange; + if (oldInputRange && newRange && oldRange) { + const isInputRange = newRange[0] === oldInputRange[0] && newRange[1] === oldInputRange[1]; + const isOldRange = newRange[0] === oldRange[0] && newRange[1] === oldRange[1]; + if (!isInputRange && !isOldRange) newFullLayout[key]._inputRange = null; + } } var diffOpts = { getValObject: getLayoutValObject, @@ -58395,6 +58496,13 @@ var Plotly = (() => { var domain = coerce("domain", dfltDomain); if (domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain; Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain); + if (letter === "x") { + coerce("domainpad.left"); + coerce("domainpad.right"); + } else { + coerce("domainpad.top"); + coerce("domainpad.bottom"); + } if (containerOut.tickmode === "sync") { containerOut.tickmode = "auto"; } @@ -64236,9 +64344,8 @@ var Plotly = (() => { } axisOpts.cleanRange("rangeslider.range"); var gs3 = fullLayout._size; - var domain = axisOpts.domain; - opts2._width = gs3.w * (domain[1] - domain[0]); - var x2 = Math.round(gs3.l + gs3.w * domain[0]); + opts2._width = axisOpts._length; + const x2 = Math.round(axisOpts._offset); var y2 = Math.round( gs3.t + gs3.h * (1 - axisOpts._counterDomainMin) + (axisOpts.side === "bottom" ? axisOpts._depth : 0) + opts2._offsetShift + constants2.extraPad ); @@ -172053,11 +172160,15 @@ void main() { var t5 = gs3.t * plotGlPixelRatio; var w2 = gs3.w * plotGlPixelRatio; var h2 = gs3.h * plotGlPixelRatio; + const padL = (xaxis._padStart || 0) * plotGlPixelRatio; + const padR = (xaxis._padEnd || 0) * plotGlPixelRatio; + const padT = (yaxis._padStart || 0) * plotGlPixelRatio; + const padB = (yaxis._padEnd || 0) * plotGlPixelRatio; return [ - l2 + xaxis.domain[0] * w2, - b2 + yaxis.domain[0] * h2, - width - r2 - (1 - xaxis.domain[1]) * w2, - height - t5 - (1 - yaxis.domain[1]) * h2 + l2 + xaxis.domain[0] * w2 + padL, + b2 + yaxis.domain[0] * h2 + padB, + width - r2 - (1 - xaxis.domain[1]) * w2 - padR, + height - t5 - (1 - yaxis.domain[1]) * h2 - padT ]; } var exports = module.exports = function plot(gd3, subplot, cdata) { @@ -173281,6 +173392,7 @@ void main() { var viewOpts = scene.viewOpts = {}; viewOpts.ranges = new Array(visibleLength); viewOpts.domains = new Array(visibleLength); + const padFrac = (px2, total) => (px2 || 0) / total; for (k2 = 0; k2 < visibleDims.length; k2++) { i2 = visibleDims[k2]; var rng = viewOpts.ranges[k2] = new Array(4); @@ -173289,15 +173401,15 @@ void main() { if (xa3) { rng[0] = xa3._rl[0]; rng[2] = xa3._rl[1]; - dmn[0] = xa3.domain[0]; - dmn[2] = xa3.domain[1]; + dmn[0] = xa3.domain[0] + padFrac(xa3._padStart, gs3.w); + dmn[2] = xa3.domain[1] - padFrac(xa3._padEnd, gs3.w); } ya3 = AxisIDs.getFromId(gd3, trace._diag[i2][1]); if (ya3) { rng[1] = ya3._rl[0]; rng[3] = ya3._rl[1]; - dmn[1] = ya3.domain[0]; - dmn[3] = ya3.domain[1]; + dmn[1] = ya3.domain[0] + padFrac(ya3._padEnd, gs3.h); + dmn[3] = ya3.domain[1] - padFrac(ya3._padStart, gs3.h); } } var plotGlPixelRatio = gd3._context.plotGlPixelRatio; @@ -173684,7 +173796,7 @@ void main() { var xOffset = xa3._offset; var xLength = xa3._length; var yLength = ya3._length; - var yOffset = gs3.b + ya3.domain[0] * gs3.h; + const yOffset = gs3.b + ya3.domain[0] * gs3.h + (ya3._padEnd || 0); var ym3 = -ya3._m; var yb2 = -ym3 * ya3.r2l(ya3.range[0], ya3.calendar); var x2, y2; diff --git a/dist/plotly.js b/dist/plotly.js index 33342d12f2a..897e734ad28 100644 --- a/dist/plotly.js +++ b/dist/plotly.js @@ -1,5 +1,5 @@ /** -* plotly.js v4.2.0 +* plotly.js v4.3.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.2.0"; + exports.version = "4.3.0"; } }); @@ -9297,7 +9297,7 @@ var Plotly = (() => { for (var i2 = 1; i2 < length; i2++) { input = inputs[i2]; for (key in input) { - src = target[key]; + src = Object.prototype.hasOwnProperty.call(target, key) ? target[key] : void 0; copy = input[key]; if (noArrayCopies && isArray(copy)) { target[key] = copy; @@ -19677,8 +19677,8 @@ var Plotly = (() => { }; var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/; var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/; - function notValid(prop) { - return prop.slice(0, 2) === "__"; + function notValid(obj, prop) { + return prop in obj && !Object.prototype.hasOwnProperty.call(obj, prop); } lib.expandObjectPaths = function(data) { var match, key, prop, datum, idx, dest, trailingPath; @@ -19688,7 +19688,7 @@ var Plotly = (() => { if (match = key.match(dottedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; delete data[key]; data[prop] = lib.extendDeepNoArrays( data[prop] || {}, @@ -19697,7 +19697,7 @@ var Plotly = (() => { } else if (match = key.match(indexedPropertyRegex)) { datum = data[key]; prop = match[1]; - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; idx = parseInt(match[2]); delete data[key]; data[prop] = data[prop] || []; @@ -19706,11 +19706,11 @@ var Plotly = (() => { dest = data[prop][idx] = data[prop][idx] || {}; lib.extendDeepNoArrays(dest, lib.objectFromPath(trailingPath, lib.expandObjectPaths(datum))); } else { - if (notValid(prop)) continue; + if (notValid(data, prop)) continue; data[prop][idx] = lib.expandObjectPaths(datum); } } else { - if (notValid(key)) continue; + if (notValid(data, key)) continue; data[key] = lib.expandObjectPaths(data[key]); } } @@ -22265,7 +22265,7 @@ var Plotly = (() => { ax2._counterAxes.sort(axisIDs.idSort); ax2._subplotsWith.sort(Lib.subplotSort); ax2._mainSubplot = findMainSubplot(ax2, newFullLayout); - if (ax2._counterAxes.length && (ax2.spikemode && ax2.spikemode.indexOf("across") !== -1 || ax2.automargin && ax2.mirror && ax2.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax2))) { + if (ax2._counterAxes.length && (ax2.automargin && ax2.mirror && ax2.anchor !== "free" || Registry.getComponentMethod("rangeslider", "isVisible")(ax2))) { var min = 1; var max = 0; for (j2 = 0; j2 < ax2._counterAxes.length; j2++) { @@ -25457,6 +25457,33 @@ var Plotly = (() => { dflt: [0, 1], editType: "plot" }, + domainpad: { + left: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + right: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + top: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + bottom: { + valType: "number", + min: 0, + dflt: 0, + editType: "plot" + }, + editType: "plot" + }, position: { valType: "number", min: 0, @@ -29133,6 +29160,12 @@ var Plotly = (() => { function isValidCategory(v2) { return v2 !== null && v2 !== void 0; } + var MIN_PADDED_LENGTH = 2; + function padFactor(wanted, bandLength) { + if (wanted <= 0) return 0; + const room = Math.max(0, bandLength - MIN_PADDED_LENGTH); + return wanted > room ? room / wanted : 1; + } module.exports = function setConvert(ax2, fullLayout) { fullLayout = fullLayout || {}; var axId = ax2._id || "x"; @@ -29503,6 +29536,7 @@ var Plotly = (() => { if (ax2.overlaying) { var ax22 = axisIds.getFromId({ _fullLayout: fullLayout }, ax2.overlaying); ax2.domain = ax22.domain; + ax2.domainpad = ax22.domainpad; } var rangeAttr = usePrivateRange && ax2._r ? "_r" : "range"; var calendar = ax2.calendar; @@ -29510,14 +29544,26 @@ var Plotly = (() => { var rl0 = ax2.r2l(ax2[rangeAttr][0], calendar); var rl1 = ax2.r2l(ax2[rangeAttr][1], calendar); var isY2 = axLetter === "y"; + const bandLength = (isY2 ? gs3.h : gs3.w) * (ax2.domain[1] - ax2.domain[0]); + const pad = ax2.domainpad; + let padStart = 0; + let padEnd = 0; + if (pad) { + padStart = (isY2 ? pad.top : pad.left) || 0; + padEnd = (isY2 ? pad.bottom : pad.right) || 0; + const fits = padFactor(padStart + padEnd, bandLength); + padStart *= fits; + padEnd *= fits; + } + ax2._length = bandLength - padStart - padEnd; + ax2._padStart = padStart; + ax2._padEnd = padEnd; if (isY2) { - ax2._offset = gs3.t + (1 - ax2.domain[1]) * gs3.h; - ax2._length = gs3.h * (ax2.domain[1] - ax2.domain[0]); + ax2._offset = gs3.t + (1 - ax2.domain[1]) * gs3.h + padStart; ax2._m = ax2._length / (rl0 - rl1); ax2._b = -ax2._m * rl1; } else { - ax2._offset = gs3.l + ax2.domain[0] * gs3.w; - ax2._length = gs3.w * (ax2.domain[1] - ax2.domain[0]); + ax2._offset = gs3.l + ax2.domain[0] * gs3.w + padStart; ax2._m = ax2._length / (rl1 - rl0); ax2._b = -ax2._m * rl0; } @@ -31374,7 +31420,7 @@ var Plotly = (() => { for (var i2 = 0; i2 < vals.length; i2++) { var vali = tickVal2l(vals[i2]); if (vali > tickMin && vali < tickMax) { - var obj = axes.tickText(ax2, vali, false, String(text[i2]), { + const obj = axes.tickText(ax2, vali, false, text[i2] !== void 0, { first: i2 === firstIdx, last: i2 === lastIdx }); @@ -33463,6 +33509,7 @@ var Plotly = (() => { var noSwapAttrs = [ "anchor", "domain", + "domainpad", "overlaying", "position", "side", @@ -38048,6 +38095,30 @@ var Plotly = (() => { } return d2; } + function getAcrossSpikeSpan(gd3, ax2, gs3) { + const isY = ax2._id.charAt(0) === "y"; + let start = Infinity; + let end = -Infinity; + for (const counterId of ax2._counterAxes || []) { + const counterAx = Axes.getFromId(gd3, counterId); + if (!counterAx) continue; + const padStart = counterAx._padStart || 0; + const padEnd = counterAx._padEnd || 0; + if (isY) { + start = Math.min(start, gs3.l + counterAx.domain[0] * gs3.w + padStart); + end = Math.max(end, gs3.l + counterAx.domain[1] * gs3.w - padEnd); + } else { + start = Math.min(start, gs3.t + (1 - counterAx.domain[1]) * gs3.h + padStart); + end = Math.max(end, gs3.t + (1 - counterAx.domain[0]) * gs3.h - padEnd); + } + } + if (ax2.anchor === "free") { + const position = isY ? gs3.l + ax2.position * gs3.w : gs3.t + (1 - ax2.position) * gs3.h; + start = Math.min(start, position); + end = Math.max(end, position); + } + return [start, end]; + } function createSpikelines(gd3, closestPoints, opts) { var container = opts.container; var fullLayout = opts.fullLayout; @@ -38084,14 +38155,9 @@ var Plotly = (() => { xEndSpike = hLinePointX; } if (yMode.indexOf("across") !== -1) { - var xAcross0 = ya3._counterDomainMin; - var xAcross1 = ya3._counterDomainMax; - if (ya3.anchor === "free") { - xAcross0 = Math.min(xAcross0, ya3.position); - xAcross1 = Math.max(xAcross1, ya3.position); - } - xBase = gs3.l + xAcross0 * gs3.w; - xEndSpike = gs3.l + xAcross1 * gs3.w; + const xSpan = getAcrossSpikeSpan(gd3, ya3, gs3); + xBase = xSpan[0]; + xEndSpike = xSpan[1]; } container.insert("line", ":first-child").attr({ x1: xBase, @@ -38145,14 +38211,9 @@ var Plotly = (() => { yEndSpike = vLinePointY; } if (xMode.indexOf("across") !== -1) { - var yAcross0 = xa3._counterDomainMin; - var yAcross1 = xa3._counterDomainMax; - if (xa3.anchor === "free") { - yAcross0 = Math.min(yAcross0, xa3.position); - yAcross1 = Math.max(yAcross1, xa3.position); - } - yBase = gs3.t + (1 - yAcross1) * gs3.h; - yEndSpike = gs3.t + (1 - yAcross0) * gs3.h; + const ySpan = getAcrossSpikeSpan(gd3, xa3, gs3); + yBase = ySpan[0]; + yEndSpike = ySpan[1]; } container.insert("line", ":first-child").attr({ x1: vLinePointX, @@ -42808,7 +42869,7 @@ var Plotly = (() => { var outerMax = rangeCenter + halfRange * factor * 1.0001; var getPadMin = autorange.makePadFn(fullLayout, ax2, 0); var getPadMax = autorange.makePadFn(fullLayout, ax2, 1); - updateDomain(ax2, factor); + updateDomain(ax2, factor, fullLayout); var m2 = Math.abs(ax2._m); var extremes = autorange.concatExtremes(gd3, ax2); var minArray = extremes.min; @@ -42833,7 +42894,7 @@ var Plotly = (() => { rangeMax = ax2.l2r(rangeMax); ax2.range = ax2._input.range = rl0 < rl1 ? [rangeMin, rangeMax] : [rangeMax, rangeMin]; } - updateDomain(ax2, factor); + updateDomain(ax2, factor, fullLayout); } } } @@ -42864,13 +42925,26 @@ var Plotly = (() => { } } }; - function updateDomain(ax2, factor) { + function domainPadFraction(ax2, fullLayout) { + const pad = ax2.domainpad; + if (!pad) return 0; + const gs3 = fullLayout._size; + return ax2._id.charAt(0) === "y" ? ((pad.top || 0) + (pad.bottom || 0)) / gs3.h : ((pad.left || 0) + (pad.right || 0)) / gs3.w; + } + function updateDomain(ax2, factor, fullLayout) { var inputDomain = ax2._inputDomain; var centerFraction = FROM_BL2[ax2.constraintoward]; var center = inputDomain[0] + (inputDomain[1] - inputDomain[0]) * centerFraction; + let divisor = factor; + const padFraction = domainPadFraction(ax2, fullLayout); + if (padFraction > 0) { + const inputSpan = inputDomain[1] - inputDomain[0]; + const drawnSpan = inputSpan - padFraction; + if (drawnSpan > 0) divisor = inputSpan / (drawnSpan / factor + padFraction); + } ax2.domain = ax2._input.domain = [ - center + (inputDomain[0] - center) / factor, - center + (inputDomain[1] - center) / factor + center + (inputDomain[0] - center) / divisor, + center + (inputDomain[1] - center) / divisor ]; ax2.setScale(); } @@ -50099,6 +50173,10 @@ var Plotly = (() => { if (!newType || newType === "-") newType = "linear"; Registry.getComponentMethod("annotations", "convertCoords")(gd3, fullProp, newType, doextra); Registry.getComponentMethod("images", "convertCoords")(gd3, fullProp, newType, doextra); + if (!ptrunk && fullProp && vi3 && (vi3.range !== void 0 || vi3.autorange !== void 0)) { + recordAlteredAxis(`${pleaf}.range`); + fullProp._inputRange = null; + } } var containerArrayMatch = manageArrays.containerArrayMatch(ai3); if (containerArrayMatch) { @@ -50612,6 +50690,14 @@ var Plotly = (() => { newFullLayout[key]._inputDomain = null; } } + const newRange = newFullLayout[key].range; + const oldRange = oldFullLayout[key].range; + const oldInputRange = oldFullLayout[key]._inputRange; + if (oldInputRange && newRange && oldRange) { + const isInputRange = newRange[0] === oldInputRange[0] && newRange[1] === oldInputRange[1]; + const isOldRange = newRange[0] === oldRange[0] && newRange[1] === oldRange[1]; + if (!isInputRange && !isOldRange) newFullLayout[key]._inputRange = null; + } } var diffOpts = { getValObject: getLayoutValObject, @@ -55860,6 +55946,13 @@ var Plotly = (() => { var domain = coerce("domain", dfltDomain); if (domain[0] > domain[1] - 1 / 4096) containerOut.domain = dfltDomain; Lib.noneOrAll(containerIn.domain, containerOut.domain, dfltDomain); + if (letter === "x") { + coerce("domainpad.left"); + coerce("domainpad.right"); + } else { + coerce("domainpad.top"); + coerce("domainpad.bottom"); + } if (containerOut.tickmode === "sync") { containerOut.tickmode = "auto"; } @@ -61236,9 +61329,8 @@ var Plotly = (() => { } axisOpts.cleanRange("rangeslider.range"); var gs3 = fullLayout._size; - var domain = axisOpts.domain; - opts2._width = gs3.w * (domain[1] - domain[0]); - var x2 = Math.round(gs3.l + gs3.w * domain[0]); + opts2._width = axisOpts._length; + const x2 = Math.round(axisOpts._offset); var y2 = Math.round( gs3.t + gs3.h * (1 - axisOpts._counterDomainMin) + (axisOpts.side === "bottom" ? axisOpts._depth : 0) + opts2._offsetShift + constants2.extraPad ); @@ -167296,11 +167388,15 @@ void main() { var t5 = gs3.t * plotGlPixelRatio; var w2 = gs3.w * plotGlPixelRatio; var h2 = gs3.h * plotGlPixelRatio; + const padL = (xaxis._padStart || 0) * plotGlPixelRatio; + const padR = (xaxis._padEnd || 0) * plotGlPixelRatio; + const padT = (yaxis._padStart || 0) * plotGlPixelRatio; + const padB = (yaxis._padEnd || 0) * plotGlPixelRatio; return [ - l2 + xaxis.domain[0] * w2, - b2 + yaxis.domain[0] * h2, - width - r2 - (1 - xaxis.domain[1]) * w2, - height - t5 - (1 - yaxis.domain[1]) * h2 + l2 + xaxis.domain[0] * w2 + padL, + b2 + yaxis.domain[0] * h2 + padB, + width - r2 - (1 - xaxis.domain[1]) * w2 - padR, + height - t5 - (1 - yaxis.domain[1]) * h2 - padT ]; } var exports = module.exports = function plot(gd3, subplot, cdata) { @@ -168479,6 +168575,7 @@ void main() { var viewOpts = scene.viewOpts = {}; viewOpts.ranges = new Array(visibleLength); viewOpts.domains = new Array(visibleLength); + const padFrac = (px2, total) => (px2 || 0) / total; for (k2 = 0; k2 < visibleDims.length; k2++) { i2 = visibleDims[k2]; var rng = viewOpts.ranges[k2] = new Array(4); @@ -168487,15 +168584,15 @@ void main() { if (xa3) { rng[0] = xa3._rl[0]; rng[2] = xa3._rl[1]; - dmn[0] = xa3.domain[0]; - dmn[2] = xa3.domain[1]; + dmn[0] = xa3.domain[0] + padFrac(xa3._padStart, gs3.w); + dmn[2] = xa3.domain[1] - padFrac(xa3._padEnd, gs3.w); } ya3 = AxisIDs.getFromId(gd3, trace._diag[i2][1]); if (ya3) { rng[1] = ya3._rl[0]; rng[3] = ya3._rl[1]; - dmn[1] = ya3.domain[0]; - dmn[3] = ya3.domain[1]; + dmn[1] = ya3.domain[0] + padFrac(ya3._padEnd, gs3.h); + dmn[3] = ya3.domain[1] - padFrac(ya3._padStart, gs3.h); } } var plotGlPixelRatio = gd3._context.plotGlPixelRatio; @@ -168873,7 +168970,7 @@ void main() { var xOffset = xa3._offset; var xLength = xa3._length; var yLength = ya3._length; - var yOffset = gs3.b + ya3.domain[0] * gs3.h; + const yOffset = gs3.b + ya3.domain[0] * gs3.h + (ya3._padEnd || 0); var ym3 = -ya3._m; var yb2 = -ym3 * ya3.r2l(ya3.range[0], ya3.calendar); var x2, y2; diff --git a/dist/plotly.min.js b/dist/plotly.min.js index e62a385bf82..275ca7ee5ca 100644 --- a/dist/plotly.min.js +++ b/dist/plotly.min.js @@ -1,5 +1,5 @@ /** -* plotly.js v4.2.0 +* plotly.js v4.3.0 * Copyright 2012-2026, Plotly, Inc. * All rights reserved. * Licensed under the MIT license @@ -12,69 +12,69 @@ root.moduleName = factory(); } } (typeof self !== "undefined" ? self : this, () => { -"use strict";var Plotly=(()=>{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+` +"use strict";var Plotly=(()=>{var qgt=Object.create;var O6=Object.defineProperty,Ogt=Object.defineProperties,Ngt=Object.getOwnPropertyDescriptor,Ugt=Object.getOwnPropertyDescriptors,Vgt=Object.getOwnPropertyNames,D8=Object.getOwnPropertySymbols,Ggt=Object.getPrototypeOf,KN=Object.prototype.hasOwnProperty,Xle=Object.prototype.propertyIsEnumerable;var ZN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Hgt=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)=>Ogt(e,Ugt(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 Vgt(t))!KN.call(e,n)&&n!==r&&O6(e,n,{get:()=>t[n],enumerable:!(i=Ngt(t,n))||i.enumerable});return e};var l1=(e,t,r)=>(r=e!=null?qgt(Ggt(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())}),jgt=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 jgt(new Promise(s=>{var l=t[a](o);l instanceof Object||Hgt("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.3.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,M){return Object.defineProperty(w,_,{value:b,writable:!0,configurable:M!==!1})}}catch(g){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(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 M=0;M{(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(;oa24?(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(Uv(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]=Hv()),kl?po=Va:Nn=Va,Fu?li=xs:Kn=xs,Ri($i,Fn,ja,nl,po,li,Nn,Kn)}var On=Hv();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)||jv,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 $v(z){return z*z}function Wv(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 Yv(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 Xv(ne?ne.matrix:od)})(z)};function Xv(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 Kv(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),Zv(z.rotate,U.rotate,Z,ne),Mg(z.skew,U.skew,Z,ne),Kv(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 r1(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 t1(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?Qv:Jv;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 i1(){return!0}function Ox(z){var U=io,Z=fo,ne=i1,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 a1(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),M=_(1),x=_(2),A=_(3),T=_(4),y=_(5),E=_(6),S=b.range,C=M.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=M,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=S,e.timeThursday=T,e.timeThursdays=F,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=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:S,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:M,"%":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 M(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 S(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 S=y.length,C=[],k=0,D=A[0],F=0;S>0&&D>0&&(F+D+1>E&&(D=Math.max(1,E-F)),C.push(y.substring(S-=D,S+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,S;y0&&(E=0);break}return E>0?A.slice(0,E)+A.slice(S+1):A}var c;function f(A,T){var y=r(A,T);if(!y)return A+"";var E=y[0],S=y[1],C=S-(c=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 y=r(A,T);if(!y)return A+"";var E=y[0],S=y[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 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]+"",S=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?S+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 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=g,e.formatSpecifier=s,e.precisionFixed=b,e.precisionPrefix=M,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})}))});var aue=W((Fzr,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((Lzr,oue)=>{"use strict";var $gt=aue();oue.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&$gt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var ia={};Jn(ia,{ALMOST_EQUAL:()=>fmt,BADNUM:()=>eU,EPOCHJD:()=>cmt,FP_SAFE:()=>Wgt,LOG_CLIP:()=>hmt,MINUS_SIGN:()=>dmt,ONEAVGMONTH:()=>tmt,ONEAVGQUARTER:()=>Jgt,ONEAVGYEAR:()=>Xgt,ONEDAY:()=>nmt,ONEHOUR:()=>amt,ONEMAXMONTH:()=>emt,ONEMAXQUARTER:()=>Kgt,ONEMAXYEAR:()=>Ygt,ONEMICROSEC:()=>umt,ONEMILLI:()=>lmt,ONEMIN:()=>omt,ONEMINMONTH:()=>rmt,ONEMINQUARTER:()=>Qgt,ONEMINYEAR:()=>Zgt,ONESEC:()=>smt,ONEWEEK:()=>imt});var eU,Wgt,Ygt,Xgt,Zgt,Kgt,Jgt,Qgt,emt,tmt,rmt,imt,nmt,amt,omt,smt,lmt,umt,cmt,fmt,hmt,dmt,ra=Ci(()=>{"use strict";eU=void 0,Wgt=Number.MAX_VALUE*1e-4,Ygt=316224e5,Xgt=315576e5,Zgt=31536e6,Kgt=79488e5,Jgt=78894e5,Qgt=76896e5,emt=26784e5,tmt=26298e5,rmt=24192e5,imt=6048e5,nmt=864e5,amt=36e5,omt=6e4,smt=1e3,lmt=1,umt=.001,cmt=24405875e-1,fmt=1-1e-6,hmt=10,dmt="\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((Pzr,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 pmt=tU().decode,vmt=my(),rU=Array.isArray,gmt=ArrayBuffer,mmt=DataView;function uue(e){return gmt.isView(e)&&!(e instanceof mmt)}Up.isTypedArray=uue;function q8(e){return rU(e)||uue(e)}Up.isArrayOrTypedArray=q8;function ymt(e){return!q8(e[0])}Up.isArray1D=ymt;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=xmt(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=pmt(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(),Amt=/^\w*$/,Mmt=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 Smt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Emt=/^[^\.\[\]]+$/;bue.exports=function(e,t){for(;t;){var r=e.match(Smt);if(r)e=r[1];else if(e.match(Emt))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((qzr,wue)=>{"use strict";var kmt=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 kmt(i)||(i=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),i}});var Mue=W((Ozr,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;sCmt,modHalf:()=>Dmt});function Cmt(e,t){let r=e%t;return r<0?r+t:r}function Dmt(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 Fmt(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:()=>Pmt,HOVERFONT:()=>zmt,HOVERFONTSIZE:()=>Rmt,HOVERID:()=>qmt,HOVERMINTIME:()=>Bmt,HOVERTEXTPAD:()=>Imt,YANGLE:()=>Lmt});var Lmt,Pmt,Imt,Rmt,zmt,Bmt,qmt,W6=Ci(()=>{"use strict";Lmt=60,Pmt=6,Imt=3,Rmt=13,zmt="Arial, sans-serif",Bmt=50,qmt="-hover"});var yy=W((Vzr,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((Gzr,Fue)=>{"use strict";var Omt=jo(),Y6=yy().hoverlabel,X6=an().extendFlat;Fue.exports={hoverlabel:{bgcolor:X6({},Y6.bgcolor,{arrayOk:!0}),bordercolor:X6({},Y6.bordercolor,{arrayOk:!0}),font:Omt({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((Hzr,Lue)=>{"use strict";var Nmt=jo(),Umt=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:Nmt({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:Umt.hoverlabel,uirevision:{valType:"any",editType:"none"}}});var Afe=W((Kzr,Tfe)=>{var JU=Object.defineProperty,Vmt=Object.getOwnPropertyDescriptor,Gmt=Object.getOwnPropertyNames,Hmt=Object.prototype.hasOwnProperty,jmt=(e,t)=>{for(var r in t)JU(e,r,{get:t[r],enumerable:!0})},$mt=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Gmt(t))!Hmt.call(e,n)&&n!==r&&JU(e,n,{get:()=>t[n],enumerable:!(i=Vmt(t,n))||i.enumerable});return e},Wmt=e=>$mt(JU({},"__esModule",{value:!0}),e),Vue={};jmt(Vue,{a98:()=>qbt,average:()=>Gyt,averageAngle:()=>f1,averageNumber:()=>ace,blend:()=>Vxt,blerp:()=>LU,clampChroma:()=>lbt,clampGamut:()=>MV,clampRgb:()=>sbt,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:()=>Obt,differenceCie76:()=>zyt,differenceCie94:()=>Byt,differenceCiede2000:()=>qyt,differenceCmc:()=>Oyt,differenceEuclidean:()=>ow,differenceHueChroma:()=>rA,differenceHueNaive:()=>nce,differenceHueSaturation:()=>tA,differenceHyab:()=>Nyt,differenceItp:()=>Vyt,differenceKotsarenkoRamos:()=>Uyt,displayable:()=>AV,dlab:()=>Nbt,dlch:()=>Ubt,easingGamma:()=>yfe,easingInOutSine:()=>zbt,easingMidpoint:()=>ffe,easingSmootherstep:()=>Ibt,easingSmoothstep:()=>Fbt,easingSmoothstepInverse:()=>Lbt,filterBrightness:()=>mbt,filterContrast:()=>ybt,filterDeficiencyDeuter:()=>Cbt,filterDeficiencyProt:()=>kbt,filterDeficiencyTrit:()=>Dbt,filterGrayscale:()=>_bt,filterHueRotate:()=>Tbt,filterInvert:()=>wbt,filterSaturate:()=>bbt,filterSepia:()=>xbt,fixupAlpha:()=>Ru,fixupHueDecreasing:()=>Fyt,fixupHueIncreasing:()=>Dyt,fixupHueLonger:()=>Cyt,fixupHueShorter:()=>c1,formatCss:()=>Rxt,formatHex:()=>zxt,formatHex8:()=>Bxt,formatHsl:()=>Oxt,formatRgb:()=>qxt,getMode:()=>Tf,hsi:()=>Vbt,hsl:()=>Gbt,hsv:()=>Hbt,hwb:()=>jbt,inGamut:()=>cD,interpolate:()=>Kxt,interpolateWith:()=>dfe,interpolateWithPremultipliedAlpha:()=>Jxt,interpolatorLinear:()=>Gi,interpolatorPiecewise:()=>ece,interpolatorSplineBasis:()=>vfe,interpolatorSplineBasisClosed:()=>gfe,interpolatorSplineMonotone:()=>tbt,interpolatorSplineMonotone2:()=>rbt,interpolatorSplineMonotoneClosed:()=>ibt,interpolatorSplineNatural:()=>Qxt,interpolatorSplineNaturalClosed:()=>ebt,itp:()=>$bt,jab:()=>Wbt,jch:()=>Ybt,lab:()=>Xbt,lab65:()=>Zbt,lch:()=>Kbt,lch65:()=>Jbt,lchuv:()=>Qbt,lerp:()=>Vx,lrgb:()=>e_t,luv:()=>t_t,mapAlphaDivide:()=>cfe,mapAlphaMultiply:()=>ufe,mapTransferGamma:()=>Wxt,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:()=>fbt,okhsl:()=>r_t,okhsv:()=>i_t,oklab:()=>n_t,oklch:()=>a_t,p3:()=>o_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:()=>s_t,random:()=>$xt,rec2020:()=>l_t,removeParser:()=>syt,rgb:()=>u_t,round:()=>afe,samples:()=>obt,serializeHex:()=>bV,serializeHex8:()=>ofe,serializeHsl:()=>lfe,serializeRgb:()=>sfe,toGamut:()=>ubt,trilerp:()=>yyt,unlerp:()=>myt,useMode:()=>$o,useParser:()=>Xue,wcagContrast:()=>Bbt,wcagLuminance:()=>KU,xyb:()=>c_t,xyz50:()=>f_t,xyz65:()=>h_t,yiq:()=>d_t});Tfe.exports=Wmt(Vue);var Ymt=(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=Ymt,Xmt={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=Xmt,Zmt=e=>Gue(Hue[e.toLowerCase()],6),jue=Zmt,Kmt=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Jmt=e=>{let t;return(t=e.match(Kmt))?Gue(parseInt(t[1],16),t[1].length):void 0},$ue=Jmt,Oh="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",jzr=`(?:${Oh}|none)`,J6=`${Oh}%`,$zr=`(?:${Oh}%|none)`,QU=`(?:${Oh}%|${Oh})`,Qmt=`(?:${Oh}%|${Oh}|none)`,eyt=`(?:${Oh}(deg|grad|rad|turn)|${Oh})`,Wzr=`(?:${Oh}(deg|grad|rad|turn)|${Oh}|none)`,nw="\\s*,\\s*",Yzr=new RegExp("^"+Qmt+"$"),tyt=new RegExp(`^rgba?\\(\\s*${Oh}${nw}${Oh}${nw}${Oh}\\s*(?:,\\s*${QU}\\s*)?\\)$`),ryt=new RegExp(`^rgba?\\(\\s*${J6}${nw}${J6}${nw}${J6}\\s*(?:,\\s*${QU}\\s*)?\\)$`),iyt=e=>{let t={mode:"rgb"},r;if(r=e.match(tyt))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(ryt))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=iyt,nyt=(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=nyt,ayt=(e="rgb")=>t=>(t=Vp(t,e))!==void 0?t.mode===e?t:u1[t.mode][e]?u1[t.mode][e](t):e==="rgb"?u1[t.mode].rgb(t):u1.rgb[e](u1[t.mode].rgb(t)):void 0,_s=ayt,u1={},Yue={},aw=[],eV={},oyt=e=>e,$o=e=>(u1[e.mode]=fn(fn({},u1[e.mode]),e.toMode),Object.keys(e.fromMode||{}).forEach(t=>{u1[t]||(u1[t]={}),u1[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=oyt)}),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)},syt=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_]/,lyt=/[^\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 uyt={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*uyt[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;o4)){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 dyt(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 pyt=e=>{if(typeof e!="string")return;let t=fyt(e),r=t?dyt(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=gyt,Vx=(e,t,r)=>e+r*(t-e),myt=(e,t,r)=>(r-e)/(t-e),LU=(e,t,r,i,n,a)=>Vx(Vx(e,t,n),Vx(r,i,n),a),yyt=(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),xyt=e=>{let t=[];for(let r=0;rt=>{let r=xyt(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},byt={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=byt,sU=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),_yt=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=_yt,lU=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),wyt=({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=wyt,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)},Tyt=({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=Tyt,Ayt=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=Ayt,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},Myt=({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=Myt,Syt=({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=Syt,Eyt=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=Eyt,kyt=e=>(e=e%360)<0?e+360:e,ef=kyt,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),[]),c1=e=>eD(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),Cyt=e=>eD(e,t=>Math.abs(t)>=180||t===0?t:t-360*Math.sign(t)),Dyt=e=>eD(e,t=>t>=0?t:t+360),Fyt=e=>eD(e,t=>t<=0?t:t-360),Ac=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Lyt=Math.PI/180,Pyt=180/Math.PI,Pue=Ac[3]*Ac[4],Iue=Ac[1]*Ac[4],Rue=Ac[1]*Ac[2]-Ac[0]*Ac[3],Iyt=({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)*Pyt-120),i!==void 0&&(s.alpha=i),s},rce=Iyt,Ryt=({h:e,s:t,l:r,alpha:i})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Lyt,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=Ryt,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))}},zyt=()=>ow("lab65"),Byt=(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))}},qyt=(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),M=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=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 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(S/(r*I),2)+$*y/(t*L)*S/(r*I))}},Oyt=(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)),M=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*M,2)+g/Math.pow(t*x,2)+w/Math.pow(A,2))}},Nyt=()=>{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)}},Uyt=()=>ow("yiq",[.5053,.299,.1957]),Vyt=()=>ow("itp",[518400,129600,518400]),f1=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 Gyt(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 Hyt={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:c1},s:Gi,l:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:tA},average:{h:f1}},oce=Hyt,jyt=({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=jyt,$yt=({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=$yt,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},Xzr=Math.pow(29,3)/Math.pow(3,3),Zzr=Math.pow(6,3)/Math.pow(29,3),hU=e=>Math.pow(e,3)>lce?Math.pow(e,3):(116*e-16)/sce,Wyt=({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=Wyt,Yyt=e=>by(tV(e)),iA=Yyt,dU=e=>e>lce?Math.cbrt(e):(sce*e+16)/116,Xyt=({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=Xyt,Zyt=e=>{let t=rV(xy(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},nA=Zyt,$8=1,uce=1,eA=26/180*Math.PI,W8=Math.cos(eA),Y8=Math.sin(eA),cce=100/Math.log(139/100),Kyt=({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=Kyt,Jyt=({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=Jyt,zue=e=>X8(zg(e,"dlch")),Bue=e=>Bg(Z8(e),"dlab"),Qyt={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=Qyt,e2t={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:c1},alpha:{use:Gi,fixup:Ru}},difference:{h:rA},average:{h:f1}},hce=e2t;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}},i2t=r2t,n2t=new RegExp(`^hsla?\\(\\s*${eyt}${nw}${J6}${nw}${J6}\\s*(?:,\\s*${QU}\\s*)?\\)$`),a2t=e=>{let t=e.match(n2t);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=i2t(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=a2t;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!==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=o2t,s2t={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:c1},s:Gi,l:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:tA},average:{h:f1}},iV=s2t;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 u2t(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=u2t,c2t={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:c1},w:Gi,b:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:nce},average:{h:f1}},Tce=c2t,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),f2t=({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=f2t,mU=(e=0)=>Math.max(e*Ace,0),h2t=({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=h2t,d2t={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=d2t,p2t=134.03437499999998,v2t=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),p2t)},xU=(e=0)=>Math.max(e*203,0),g2t=({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)-v2t,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=g2t,m2t=134.03437499999998,que=16295499532821565e-27,bU=e=>{if(e<0)return 0;let t=Math.pow(e,1/m2t);return 1e4*Math.pow((rD-t)/(nD*t-iD),1/tD)},_U=e=>e/203,y2t=({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=y2t,x2t=e=>{let t=sV(xy(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},uV=x2t,b2t=e=>by(lV(e)),cV=b2t,_2t={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=_2t,w2t=({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=w2t,T2t=({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=T2t,A2t={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:c1},c:Gi,j:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:rA},average:{h:f1}},kce=A2t,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,M2t=({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=M2t,S2t=({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=S2t,E2t=e=>sw(oD(e)),hV=E2t,k2t=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=k2t,TU=e=>e>fV?Math.cbrt(e):(aD*e+16)/116,C2t=({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=C2t,D2t=e=>{let t=sD(lw(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},dV=D2t;function F2t(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=F2t,L2t={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=L2t,P2t=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=P2t;function I2t(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=I2t,R2t={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:c1},c:Gi,l:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:rA},average:{h:f1}},uD=R2t,z2t=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=z2t,B2t=({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=B2t,q2t=({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=q2t,Pce=(e,t,r)=>4*e/(e+15*t+3*r),Ice=(e,t,r)=>9*t/(e+15*t+3*r),O2t=Pce(Iu.X,Iu.Y,Iu.Z),N2t=Ice(Iu.X,Iu.Y,Iu.Z),U2t=e=>e<=fV?aD*e:116*Math.cbrt(e)-16,V2t=({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=U2t(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-O2t),o=13*n*(o-N2t));let s={mode:"luv",l:n,u:a,v:o};return i!==void 0&&(s.alpha=i),s},K8=V2t,G2t=(e,t,r)=>4*e/(e+15*t+3*r),H2t=(e,t,r)=>9*t/(e+15*t+3*r),j2t=G2t(Iu.X,Iu.Y,Iu.Z),$2t=H2t(Iu.X,Iu.Y,Iu.Z),W2t=({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)+j2t,a=r/(13*e)+$2t,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=W2t,Y2t=e=>pV(K8(lw(e))),X2t=e=>sw(J8(vV(e))),Z2t={mode:"lchuv",toMode:{luv:vV,rgb:X2t},fromMode:{rgb:Y2t,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:c1},c:Gi,l:Gi,alpha:{use:Gi,fixup:Ru}},difference:{h:rA},average:{h:f1}},Rce=Z2t,K2t=da(fn({},jx),{mode:"lrgb",toMode:{rgb:Wx},fromMode:{rgb:$x},parse:["srgb-linear"],serialize:"srgb-linear"}),zce=K2t,J2t={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=J2t,Q2t=({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=Q2t,ext=e=>{let t=gV($x(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},aA=ext,txt=({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=txt,rxt=e=>Wx(uw(e)),oA=rxt;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 ixt(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,M=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*_,S=s*b+l*M+u*x,C=s*A+l*T+u*y;c=c-E*S/(S*S-.5*E*C)}return c}function mV(e,t){let r=ixt(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 nxt(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,M=w*w*w,x=_*_*_,A=3*h*g*g,T=3*p*w*w,y=3*d*_*_,E=6*h*h*g,S=6*p*p*w,C=6*d*d*_,k=4.0767416621*b-3.3077115913*M+.2309699292*x-1,D=4.0767416621*A-3.3077115913*T+.2309699292*y,F=4.0767416621*E-3.3077115913*S+.2309699292*C,P=D/(D*D-.5*k*F),R=-k*P,L=-1.2684380046*b+2.6097574011*M-.3413193965*x-1,I=-1.2684380046*A+2.6097574011*T-.3413193965*y,B=-1.2684380046*E+2.6097574011*S-.3413193965*C,O=I/(I*I-.5*L*B),$=-L*O,X=-.0041960863*b-.7034186147*M+1.707614701*x-1,K=-.0041960863*A-.7034186147*T+1.707614701*y,G=-.0041960863*E-.7034186147*S+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=nxt(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=axt;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 oxt=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=oxt;function sxt(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=sxt,lxt=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=lxt;function uxt(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=uxt,cxt=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=cxt,fxt=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=fxt,hxt=({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=hxt,dxt=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=dxt,AU=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},pxt=({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=pxt,MU=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},vxt=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=vxt,gxt=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=gxt,Oue=1.09929682680944,mxt=.018053968510807,SU=e=>{let t=Math.abs(e);return t>mxt?(Math.sign(e)||1)*(Oue*Math.pow(t,.45)-(Oue-1)):4.5*e},yxt=({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=yxt,Nue=1.09929682680944,xxt=.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=bxt,_xt=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=_xt,Gx=.0037930732552754493,Yce=Math.cbrt(Gx),kU=e=>Math.cbrt(e)-Yce,wxt=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=wxt,CU=e=>Math.pow(e+Yce,3),Txt=({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=Txt,Axt={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=Axt,Mxt={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=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:"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=Sxt,Ext=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=Ext,kxt={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=kxt,Cxt=({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=Cxt,Dxt=({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=Dxt,Fxt={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=Fxt,Lxt=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,Pxt=(e=4)=>t=>typeof t=="number"?Lxt(t,e):t,afe=Pxt,K6=afe(2),Q6=e=>Math.max(0,Math.min(1,e||0)),Hx=e=>Math.round(Q6(e)*255),xV=_s("rgb"),Ixt=_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))})`},Rxt=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)},zxt=e=>bV(xV(e)),Bxt=e=>ofe(xV(e)),qxt=e=>sfe(xV(e)),Oxt=e=>lfe(Ixt(e)),Nxt={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},Uxt=(e,t="normal",r="rgb")=>{let i=typeof t=="function"?t:Nxt[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})})},Vxt=Uxt,Gxt=([e,t])=>e+Math.random()*(t-e),Hxt=e=>Object.keys(e).reduce((t,r)=>{let i=e[r];return t[r]=Array.isArray(i)?i:[i,i],t},{}),jxt=(e="rgb",t={})=>{let r=Tf(e),i=Hxt(t);return r.channels.reduce((n,a)=>((i.alpha||a!=="alpha")&&(n[a]=Gxt(i[a]||r.ranges[a])),n),{mode:e})},$xt=jxt,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,Wxt=(e=1,t=1,r=0)=>(i,n)=>n!=="alpha"?e*Math.pow(i,t)+r:i,Yxt=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=Zxt,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))}),Xxt(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 M=c[b](w);return M!==void 0&&(_[b]=M),_},{mode:t})}},Kxt=(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},Jxt=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},Qxt=e=>vfe(mfe(e)),ebt=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]}},tbt=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)},rbt=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)},ibt=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)},nbt=(e=1)=>e===1?t=>t:t=>Math.pow(t,e),yfe=nbt,abt=(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 sbt(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 lbt(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 ubt(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 cbt=(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]))},fbt=cbt,SV=e=>Math.max(e,0),EV=e=>Math.max(Math.min(e,1),0),hbt=(e,t,r)=>e===void 0||t===void 0?void 0:e+r*(t-e),dbt=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]},pbt=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]},vbt=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]},gbt=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)},ybt=(e=1,t="rgb")=>{let r=SV(e);return sA(_V(r,(1-r)/2),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")=>fD(vbt(e),t,!0),wbt=(e=1,t="rgb")=>{let r=EV(e);return sA((i,n)=>n==="alpha"?i:hbt(r,1-r,i),t,!0)},Tbt=(e=0,t="rgb")=>fD(gbt(e),t,!0),Abt=_s("rgb"),Mbt=[[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]],Sbt=[[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]],Ebt=[[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}=Abt(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)}},kbt=(e=1)=>kV(Mbt,e),Cbt=(e=1)=>kV(Sbt,e),Dbt=(e=1)=>kV(Ebt,e),Fbt=e=>e*e*(3-2*e),Lbt=e=>.5-Math.sin(Math.asin(1-2*e)/3),Pbt=e=>e*e*e*(e*(e*6-15)+10),Ibt=Pbt,Rbt=e=>(1-Math.cos(e*Math.PI))/2,zbt=Rbt;function KU(e){let t=_s("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function Bbt(e,t){let r=KU(e),i=KU(t);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}var qbt=$o(tce),Obt=$o(oce),Nbt=$o(fce),Ubt=$o(hce),Vbt=$o(vce),Gbt=$o(iV),Hbt=$o(oV),jbt=$o(Tce),$bt=$o(Sce),Wbt=$o(Ece),Ybt=$o(kce),Xbt=$o(lD),Zbt=$o(Dce),Kbt=$o(uD),Jbt=$o(Lce),Qbt=$o(Rce),e_t=$o(zce),t_t=$o(Bce),r_t=$o(Oce),i_t=$o(Nce),n_t=$o(Vce),a_t=$o(Hce),o_t=$o(jce),s_t=$o($ce),l_t=$o(Wce),u_t=$o(jx),c_t=$o(Kce),f_t=$o(Jce),h_t=$o(tfe),d_t=$o(nfe)});var CV={};Jn(CV,{default:()=>v_t});var p_t,v_t,DV=Ci(()=>{"use strict";p_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(" ")}},v_t=p_t});var _y=W((eBr,Cfe)=>{"use strict";var{format:g_t,width:m_t,height:y_t,scale:x_t}=(DV(),Pt(CV)).default,Mfe=x_t,{dflt:Qzr}=Mfe,b_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:g_t,filename:{valType:"string"},width:m_t,height:y_t,scale:b_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((rBr,Dfe)=>{"use strict";var FV=gi(),__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;__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((aBr,Nfe)=>{"use strict";var{converter:Lfe,formatHex:w_t,formatRgb:T_t,wcagContrast:A_t,wcagLuminance:M_t}=Afe(),{isArrayOrTypedArray:Pfe}=Tc(),{warn:S_t}=qg(),{background:cA,defaultLine:BV,defaults:E_t,lightLine:k_t}=Yl(),Ife=Lfe("rgb"),C_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,D_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=>T_t(zfe(e)),F_t=e=>w_t(zfe(e)),L_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&&S_t(`Invalid color specifier: ${L_t(e)}. Defaulting to "#000"`),D_t)},uA=e=>b0(da(fn({},al(e)),{alpha:1})),P_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]),I_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}},R_t=(e,t)=>{let r=Bfe(e)?I_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},z_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)})},B_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=C_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)=>A_t(al(e),al(t)),Ofe=e=>hD(e,cA)>hD(e,BV),q_t=b0(al(cA)),O_t=b0(al(BV)),N_t=(e,t,r)=>(al(e).alpha!==1&&(e=qfe(e,cA)),Ofe(e)?t?zV(e,t):q_t:r?zV(e,-r):O_t),U_t=(e,t)=>{e.style({stroke:uA(t),"stroke-opacity":al(t).alpha})},V_t=(e,t)=>{e.style({fill:uA(t),"fill-opacity":al(t).alpha})},G_t=(e,t)=>!!(e&&t&&uA(e)===uA(t)),H_t=e=>Rfe(e)!==void 0,j_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)}))},$_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})},W_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},Y_t=e=>b0(al(e)),X_t=e=>F_t(al(e)).toUpperCase(),Z_t=e=>{let t=al(e);return[Af(t.r)*255,Af(t.g)*255,Af(t.b)*255,Af(t.alpha)]},K_t=([e,t,r,i])=>b0({mode:"rgb",r:e/255,g:t/255,b:r/255,alpha:i}),J_t=e=>{let t=al(e);return M_t({mode:"rgb",r:Af(t.r),g:Af(t.g),b:Af(t.b)})};Nfe.exports={addOpacity:z_t,adjustLightness:zV,background:cA,brighten:j_t,combine:qfe,contrast:N_t,defaultLine:BV,defaults:E_t,equals:G_t,fill:V_t,hexString:X_t,interpolate:B_t,isChannelArray:Bfe,isDark:Ofe,isValid:H_t,lightLine:k_t,luminosity:J_t,mix:$_t,mostReadable:W_t,normalize:R_t,opacity:P_t,parse:al,rgb:uA,rgbaArray:Z_t,rgbaArrayToString:K_t,rgbaString:Y_t,stroke:U_t,wcagContrast:hD}});var Xx=W((sBr,Gfe)=>{"use strict";var Q_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 e3t(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;rn3t,HIDE_PLACEHOLDER:()=>i3t,SHOW_PLACEHOLDER:()=>r3t});var r3t,i3t,n3t,Ng=Ci(()=>{"use strict";r3t=100,i3t=1e3,n3t=.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,a3t=Ja(),o3t=Xx(),NV=ti(),s3t=(Ng(),Pt(Og)).DESELECTDIM,hw=U6(),jfe=(fw(),Pt(fA)).counter,l3t=(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(o3t.get(e,r))}},angle:{coerceFunction:function(e,t,r){wy(e)&&(e=Ty(e)),e==="auto"?t.set("auto"):OV(e)?t.set(l3t(+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((cBr,Yfe)=>{"use strict";Yfe.exports=function(t,r){if(r instanceof RegExp){for(var i=r.toString(),n=0;n{Xfe.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 Jfe=W((hBr,Kfe)=>{Kfe.exports=c3t;function c3t(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((dBr,Qfe)=>{Qfe.exports=f3t;function f3t(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((pBr,the)=>{the.exports=h3t;function h3t(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((vBr,rhe)=>{rhe.exports=d3t;function d3t(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((gBr,nhe)=>{nhe.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],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=c*v-f*d,y=c*m-h*d,E=c*g-p*d,S=f*m-h*v,C=f*g-p*v,k=h*g-p*m,D=w*k-_*C+b*S+M*E-x*y+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-m*x+g*M)*D,e[3]=(h*x-f*A-p*M)*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*S-l*T)*D,e[13]=(r*S-i*y+n*T)*D,e[14]=(v*_-d*M-m*w)*D,e[15]=(c*M-f*_+h*w)*D,e):null}});var she=W((mBr,ohe)=>{ohe.exports=v3t;function v3t(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((yBr,lhe)=>{lhe.exports=g3t;function g3t(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,M=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,S=c*m-h*d,C=f*m-h*v;return g*C-w*S+_*E+b*y-M*T+x*A}});var fhe=W((xBr,che)=>{che.exports=m3t;function m3t(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],M=r[2],x=r[3];return e[0]=_*i+b*s+M*f+x*v,e[1]=_*n+b*l+M*h+x*m,e[2]=_*a+b*u+M*p+x*g,e[3]=_*o+b*c+M*d+x*w,_=r[4],b=r[5],M=r[6],x=r[7],e[4]=_*i+b*s+M*f+x*v,e[5]=_*n+b*l+M*h+x*m,e[6]=_*a+b*u+M*p+x*g,e[7]=_*o+b*c+M*d+x*w,_=r[8],b=r[9],M=r[10],x=r[11],e[8]=_*i+b*s+M*f+x*v,e[9]=_*n+b*l+M*h+x*m,e[10]=_*a+b*u+M*p+x*g,e[11]=_*o+b*c+M*d+x*w,_=r[12],b=r[13],M=r[14],x=r[15],e[12]=_*i+b*s+M*f+x*v,e[13]=_*n+b*l+M*h+x*m,e[14]=_*a+b*u+M*p+x*g,e[15]=_*o+b*c+M*d+x*w,e}});var dhe=W((bBr,hhe)=>{hhe.exports=y3t;function y3t(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((_Br,phe)=>{phe.exports=x3t;function x3t(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((wBr,ghe)=>{ghe.exports=b3t;function b3t(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,M,x,A,T,y,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),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],M=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,S=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+M*y,e[3]=d*A+w*T+x*y,e[4]=f*E+v*S+_*C,e[5]=h*E+m*S+b*C,e[6]=p*E+g*S+M*C,e[7]=d*E+w*S+x*C,e[8]=f*k+v*D+_*F,e[9]=h*k+m*D+b*F,e[10]=p*k+g*D+M*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((TBr,yhe)=>{yhe.exports=_3t;function _3t(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((ABr,bhe)=>{bhe.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[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((MBr,whe)=>{whe.exports=T3t;function T3t(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((SBr,Ahe)=>{Ahe.exports=A3t;function A3t(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((EBr,She)=>{She.exports=M3t;function M3t(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((kBr,khe)=>{khe.exports=S3t;function S3t(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((CBr,Dhe)=>{Dhe.exports=E3t;function E3t(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((DBr,Lhe)=>{Lhe.exports=k3t;function k3t(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((FBr,Ihe)=>{Ihe.exports=C3t;function C3t(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((LBr,zhe)=>{zhe.exports=D3t;function D3t(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((PBr,qhe)=>{qhe.exports=F3t;function F3t(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((IBr,Nhe)=>{Nhe.exports=L3t;function L3t(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((RBr,Vhe)=>{Vhe.exports=P3t;function P3t(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((zBr,Hhe)=>{Hhe.exports=I3t;function I3t(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((BBr,$he)=>{$he.exports=R3t;function R3t(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((qBr,Yhe)=>{var z3t=VV();Yhe.exports=B3t;function B3t(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],M=r[1],x=r[2];return Math.abs(d-b)<1e-6&&Math.abs(v-M)<1e-6&&Math.abs(m-x)<1e-6?z3t(e):(c=d-b,f=v-M,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((OBr,Zhe)=>{Zhe.exports=q3t;function q3t(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((NBr,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 O3t=GV();Dl.init2dArray=function(e,t){for(var r=new Array(e),i=0;i{"use strict";var N3t=gi(),Qhe=qg(),U3t=gD(),V3t=GV();function G3t(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 H3t(e){var t=N3t.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 j3t(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 $3t(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&e0e(r)}function W3t(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 Y3t(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=U3t.convertCssMatrix(n);r=V3t.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=[];X3t(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function X3t(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Z3t(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}n0e.exports={getGraphDiv:G3t,isPlotDiv:H3t,removeElement:e0e,addStyleRule:j3t,addRelatedStyleRule:t0e,deleteRelatedStyleRule:$3t,setStyleOnHover:W3t,getFullTransformMatrix:Y3t,getElementTransformMatrix:r0e,getElementAndAncestors:i0e,equalDomRects:Z3t}});var dA=W((GBr,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((HBr,h0e)=>{"use strict";var s0e=an().extendFlat,K3t=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"]},J3t=l0e.flags.slice().concat(["fullReplot"]),Q3t=u0e.flags.slice().concat("layoutReplot");h0e.exports={traces:l0e,layout:u0e,traceFlags:function(){return o0e(J3t)},layoutFlags:function(){return o0e(Q3t)},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:()=>twt,FORMAT_LINK:()=>ewt});var ewt,twt,$V=Ci(()=>{"use strict";ewt="https://github.com/d3/d3-format/tree/v1.4.5#d3-format",twt="https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"});var Wa=W(dw=>{"use strict";var{DATE_FORMAT_LINK:rwt,FORMAT_LINK:iwt}=($V(),Pt(jV)),nwt=["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 awt({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}".`,iwt,"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}".`,rwt,"for details on the date formatting syntax.",nwt].join(" ")}dw.templateFormatStringDescription=awt;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((YBr,y0e)=>{"use strict";function Ay(e,t){return t?t.d2l(e):e}function d0e(e,t){return t?t.l2d(e):e}function owt(e){return e.x0}function swt(e){return e.x1}function lwt(e){return e.y0}function uwt(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 cwt(e,t){return Math.abs(mD(e,t))}function fwt(e,t,r){return Math.abs(yD(e,t,r))}function hwt(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 dwt(e,t){return d0e((Ay(e.x1,t)+v0e(e)+Ay(e.x0,t)+p0e(e))/2,t)}function pwt(e,t,r){return d0e((Ay(e.y1,r)+m0e(e)+Ay(e.y0,r)+g0e(e))/2,r)}function vwt(e,t,r){return e.type!=="line"?void 0:yD(e,t,r)/mD(e,t)}var gwt=["x0","x1","y0","y1","dy","height","ycenter"],mwt=["x0","x1","y0","y1","dx","width","xcenter"];y0e.exports={x0:owt,x1:swt,y0:lwt,y1:uwt,slope:vwt,dx:mD,dy:yD,width:cwt,height:fwt,length:hwt,xcenter:dwt,ycenter:pwt,simpleXVariables:gwt,simpleYVariables:mwt}});var _0e=W((XBr,b0e)=>{"use strict";var ywt=hs().overrideAll,Kx=Ja(),x0e=jo(),xwt=zu().dash,My=an().extendFlat,{shapeTexttemplateAttrs:bwt,templatefallbackAttrs:_wt}=Wa(),wwt=xD();b0e.exports=ywt({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({},xwt,{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:bwt({newshape:!0},{keys:Object.keys(wwt)}),texttemplatefallback:_wt({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((ZBr,w0e)=>{"use strict";var Twt=zu().dash,Awt=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:Awt({},Twt,{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((KBr,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((JBr,k0e)=>{"use strict";var WV=jo(),Mwt=dA(),_D=Yl(),M0e=_0e(),S0e=T0e(),Swt=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(Swt({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({},Mwt.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(),tqr=hA().addStyleRule,L0e=an(),Ewt=Ja(),kwt=pw(),Cwt=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 Iwt=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,Rwt=/^\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,zwt=/^\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=Bwt(e,!!t);if(t<2)return r;var i=Fl.dateTime2ms(r,e);return i+=Uh*(t-1),Fl.ms2DateTime(i,0,e)};function Bwt(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?zwt:Rwt);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=Iwt("%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 qwt=/%\d?f/g,Owt=/%h/g,Nwt={1:"1",2:"1",3:"2",4:"2"};function U0e(e,t,r,i){e=e.replace(qwt,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(Owt,function(){return Nwt[r("%q")(n)]}),Vg(i))try{e=Ug.getComponentMethod("calendars","worldCalFmt")(e,t,i)}catch(a){return"Invalid"}return r(e)(n)}var Uwt=[59,59.9,59.99,59.999,59.9999];function Vwt(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),Uwt[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 Vwt(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 Gwt=hn(),Hwt=qg(),jwt=gA(),$wt=(ra(),Pt(ia)).BADNUM,KV=1e-9;Gg.findBin=function(e,t,r){if(Gwt(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?Wwt:Ywt:l=r?Zwt:Xwt,e+=o*KV*(r?-1:1)*(o>=0?1:-1);i90&&Hwt.log("Long binary search..."),i-1};function Wwt(e,t){return et}function Zwt(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]===$wt;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||jwt;for(var r=1/0,i,n=0;nJwt});function Kwt(e){return Object.keys(e).sort()}var Jwt,Qx=Ci(()=>{"use strict";Jwt=Kwt});var W0e=W(Ll=>{"use strict";var mA=hn(),Qwt=Tc().isArrayOrTypedArray;Ll.aggNums=function(e,t,r,i){var n,a;if((!i||i>r.length)&&(i=r.length),mA(t)||(t=!1),Qwt(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((sqr,K0e)=>{"use strict";var Y0e=(ew(),Pt(Q3)),JV=Y0e.mod,e5t=Y0e.modHalf,yA=Math.PI,ky=2*yA;function t5t(e){return e/180*yA}function r5t(e){return e/yA*180}function QV(e){return Math.abs(e[1]-e[0])>ky-1e-14}function X0e(e,t){return e5t(t-e,ky)}function i5t(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 n5t(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((fqr,nde)=>{"use strict";nde.exports=function(t){t._clearResponsive&&(t._clearResponsive(),delete t._clearResponsive)}});var ode=W((hqr,DD)=>{"use strict";DD.exports=iG;DD.exports.isMobile=iG;DD.exports.default=iG;var l5t=/(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,u5t=/CrOS/,c5t=/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=l5t.test(t)&&!u5t.test(t)||!!e.tablet&&c5t.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((dqr,sde)=>{"use strict";var f5t=hn(),h5t=ode();sde.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=d5t(),typeof r!="string")return!0;var i=h5t({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(f5t(u)&&(u=+u),u>=13)return!0}}}return i};function d5t(){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((pqr,ude)=>{"use strict";var p5t=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]=p5t.select(this)}),n}});var hde=W((vqr,fde)=>{"use strict";var v5t=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=v5t.localeRegistry}var u=i.split("-")[0];if(u===i)break;i=u}return r}});var nG=W((gqr,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=y5t(t)?m5t:g5t,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:()=>_5t});function b5t(e){return typeof e=="string"&&(e=e.replace(x5t,"")),(0,yde.default)(e)?Number(e):void 0}var yde,x5t,_5t,bde=Ci(()=>{"use strict";yde=l1(hn());ra();x5t=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;_5t=b5t});var Tde=W((bqr,wde)=>{"use strict";var w5t=/<[^>]*>/g,T5t=/[\p{S}\p{P}]/gu,A5t=/[\p{Cc}\p{Cf}\uFE00-\uFE0F\u20E3]/gu,M5t=/�/g,S5t=/\s+/g,FD="-",_de=FD.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),E5t=new RegExp(_de+"{3,}","g"),k5t=new RegExp(_de+"$","g"),C5t=60;function D5t(e){return typeof e.toWellFormed=="function"?e.toWellFormed():new TextDecoder().decode(new TextEncoder().encode(e))}wde.exports=function(t,r=C5t){var i=D5t(t!=null?t:"").replace(M5t,"").replace(w5t," ").replace(T5t,n=>n===FD?n:"").toLowerCase().trim().replace(S5t,FD).replace(A5t,"").replace(E5t,FD);return i.length<=r?i:Array.from(i).slice(0,r).join("").replace(k5t,"")}});var tt=W((_qr,Rde)=>{"use strict";var bA=gi(),F5t=K3().utcFormat,L5t=QN().format,Cde=hn(),Dde=(ra(),Pt(ia)),Fde=Dde.FP_SAFE,P5t=-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=L5t(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 h1=J0e();qt.deg2rad=h1.deg2rad;qt.rad2deg=h1.rad2deg;qt.angleDelta=h1.angleDelta;qt.angleDist=h1.angleDist;qt.isFullCircle=h1.isFullCircle;qt.isAngleInsideSector=h1.isAngleInsideSector;qt.isPtInsideSector=h1.isPtInsideSector;qt.pathArc=h1.pathArc;qt.pathSector=h1.pathSector;qt.pathAnnulus=h1.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 I5t=(fw(),Pt(fA));qt.counterRegex=I5t.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;nB5t.test(window.navigator.userAgent);var q5t=/Firefox\/(\d+)\.\d+/;qt.getFirefoxVersion=function(){var e=q5t.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 U5t={max:10,count:0,name:"hovertemplate"};qt.hovertemplateString=e=>sG(da(fn({},e),{opts:U5t}));var V5t={max:10,count:0,name:"texttemplate"};qt.texttemplateString=e=>sG(da(fn({},e),{opts:V5t}));var G5t=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function H5t(e){var t=e.match(G5t);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var j5t={max:10,count:0,name:"texttemplate",parseMultDiv:!0};qt.texttemplateStringForShapes=e=>sG(da(fn({},e),{opts:j5t}));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=H5t(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 M of e)if(M){if(M.hasOwnProperty(s)){g=M[s];break}if(Ide.test(s)||(g=qt.nestedProperty(M,s).get(!0)),g!==void 0)break}if(g===void 0){let{count:M,max:x,name:A}=n,T=r===!1?o:r;return M=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(),$5t=kde!==null&&kde<86;qt.getPositionFromD3Event=function(){return $5t?[bA.event.layerX,bA.event.layerY]:[bA.event.offsetX,bA.event.offsetY]}});var qde=W(()=>{"use strict";var W5t=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"),W5t.addStyleRule(Bde,zde[lG]);var Bde,lG});var uG=W((Mqr,Ode)=>{Ode.exports=!0});var fG=W((Sqr,Nde)=>{"use strict";var Y5t=uG(),cG;typeof window.matchMedia=="function"?cG=!window.matchMedia("(hover: none)").matches:cG=Y5t;Nde.exports=cG});var ib=W((Eqr,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 X5t(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=Q5t;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,X5t(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 Z5t(){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=Z5t.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():K5t(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?J5t(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,t4t={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(),r4t=_y().dfltConfig;function i4t(e,t){for(var r=[],i,n=0;nr4t.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(),n4t=pG(),a4t=dA(),o4t=_y().configAttributes,rpe=hs(),$p=_A.extendDeepAll,Tw=_A.isPlainObject,s4t=_A.isArrayOrTypedArray,OD=_A.nestedProperty,l4t=_A.valObjectMeta,gG="_isSubplotObj",ND="_isLinkedToArray",u4t="_arrayAttrRegexps",npe="_deprecated",mG=[gG,ND,u4t,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]=f4t(t)}),{defs:{valObjects:l4t,metaKeys:mG.concat(["description","role","editType","impliedEdits"]),editType:{traces:rpe.traces,layout:rpe.layout},impliedEdits:{}},traces:e,layout:h4t(),frames:d4t(),animation:Aw(a4t),config:Aw(o4t)}};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)s4t(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 f4t(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 h4t(){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(),y4t=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,{},y4t,"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:()=>T4t,AX_NAME_PATTERN:()=>A4t,DFLTRANGEX:()=>L4t,DFLTRANGEY:()=>P4t,DRAGGERSIZE:()=>D4t,HOUR_PATTERN:()=>S4t,MINDRAG:()=>k4t,MINZOOM:()=>C4t,REDRAWDELAY:()=>F4t,SUBPLOT_PATTERN:()=>M4t,WEEKDAY_PATTERN:()=>E4t,attrRegex:()=>b4t,clipOnAxisFalseQuery:()=>R4t,idRegex:()=>x4t,layerValue2layerClass:()=>z4t,traceLayerClasses:()=>I4t,xAxisMatch:()=>_4t,yAxisMatch:()=>w4t,zindexSeparator:()=>B4t});var x4t,b4t,_4t,w4t,T4t,A4t,M4t,S4t,E4t,k4t,C4t,D4t,F4t,L4t,P4t,I4t,R4t,z4t,B4t,Zl=Ci(()=>{"use strict";fw();x4t={x:Zx("x","( domain)?"),y:Zx("y","( domain)?")},b4t=Zx("[xy]axis"),_4t=Zx("xaxis"),w4t=Zx("yaxis"),T4t=/^[xyz][0-9]*( domain)?$/,A4t=/^[xyz]axis[0-9]*$/,M4t=/^x([0-9]*)y([0-9]*)$/,S4t="hour",E4t="day of week",k4t=8,C4t=20,D4t=20,F4t=50,L4t=[-1,6],P4t=[-1,4],I4t=["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],R4t=[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],z4t={"above traces":"above","below traces":"below"},B4t="z"});var Ls=W(Vh=>{"use strict";var q4t=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 O4t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function N4t(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}upe.exports={clearOutlineControllers:O4t,clearOutline:N4t}});var UD=W((zqr,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(),Bqr=(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 U4t=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((Uqr,Ape)=>{"use strict";var Nqr=gi(),G4t=K3().timeFormatLocale,H4t=QN().formatLocale,wA=hn(),j4t=tU(),$4t=N6().version,Ya=xi(),W4t=Mw(),Y4t=Ra(),Ei=tt(),X4t=ti(),vpe=(ra(),Pt(ia)).BADNUM,Gh=Ls(),Z4t=Ly().clearOutline,K4t=UD(),_G=dA(),J4t=pG(),Q4t=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=$4t;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 eTt=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],tTt=["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,eTt);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=nTt(h,n.separators),n._extraFormat=mpe(e,tTt),n._initialAutoSizeIsDone=!0,n._dataLength=l.length,n._modules=[],n._visibleModules=[],n._basePlotModules=[];var _=n._subplots=iTt(),b=n._splomAxes={x:{},y:{}},M=n._splomSubplots={};n._splomGridDflt={},n._scatterStackOpts={},n._firstScatter={},n._alignmentOpts={},n._colorAxes={},n._requestRangeslider={},n._traceUids=rTt(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&&Z4t({_fullLayout:i}),aTt(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,M=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:M,size:r.b+v},t:{val:b,size:r.t+v}},d[t]=1}if(!i._replotting)return fi.doAutoMargin(e)}};function sTt(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 M in o){var x=0;for(var A in h)A!=="base"&&wA(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 y in h){var E=h[y].l||{},S=h[y].b||{},C=E.val,k=E.size,D=S.val,F=S.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)||sTt(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)?j4t.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:()=>dTt,xlink:()=>Spe,xmlns:()=>hTt});var hTt,Mpe,Spe,dTt,md=Ci(()=>{"use strict";hTt="http://www.w3.org/2000/xmlns/",Mpe="http://www.w3.org/2000/svg",Spe="http://www.w3.org/1999/xlink",dTt={xmlns:Mpe,"xmlns:xlink":Spe}});var Kl={};Jn(Kl,{CAP_SHIFT:()=>yTt,FROM_BL:()=>pTt,FROM_BR:()=>gTt,FROM_TL:()=>vTt,LINE_SPACING:()=>mTt,MID_SHIFT:()=>xTt,OPPOSITE_SIDE:()=>bTt});var pTt,vTt,gTt,mTt,yTt,xTt,bTt,Jl=Ci(()=>{"use strict";pTt={left:0,center:.5,right:1,bottom:0,middle:.5,top:1},vTt={left:0,center:.5,right:1,bottom:1,middle:.5,top:0},gTt={left:1,center:.5,right:0,bottom:0,middle:.5,top:1},mTt=1.3,yTt=.7,xTt=.35,bTt={left:"right",right:"left",top:"bottom",bottom:"top"}});var ao=W(Mf=>{"use strict";var ml=gi(),yd=tt(),_Tt=yd.strTranslate,wG=(md(),Pt(gd)),wTt=(Jl(),Pt(Kl)).LINE_SPACING,TTt=/([^$]*)([$]+[^$]*[$]+)([^$]*)/,MG=e=>e?e.match(TTt):null;Mf.matchTex=MG;var ATt=e=>{var t=MG(e);return!!t&&!t[1]&&!t[3]};Mf.isPureTex=ATt;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]+")"+_Tt(-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 MTt(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&&!CTt()&&(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=OTt(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");DTt(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()),MTt(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 STt=/(<|<|<)/g,ETt=/(>|>|>)/g;function kTt(e){return e.replace(STt,"\\lt ").replace(ETt,"\\gt ")}var TG=null,Ppe=()=>typeof MathJax!="undefined"&&MathJax.version?parseInt(MathJax.version.split(".")[0]):null,Epe=!1,kpe=!1;function CTt(){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 DTt(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=kTt(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"},FTt={sub:"0.3em",sup:"-0.6em"},LTt={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,PTt=//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,ITt=/(^|[\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 RTt=/(^|;)\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 zTt={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},BTt=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function $D(e){return e.replace(BTt,function(t,r){var i;return r.charAt(0)==="#"?i=qTt(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):i=zTt[r],i||t})}Mf.convertEntities=$D;function qTt(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 OTt(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*wTt+"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=PTt.test(t);c?o():(n=e,i=[{node:e}]);for(var f=t.split(SG),h=0;h{"use strict";var NTt=gi(),AA=hn(),WD=tt(),lb=ti(),UTt=Xx().isValid;function VTt(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)),HTt=jpe.FORMAT_LINK,jTt=jpe.DATE_FORMAT_LINK;function $Tt(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: "+HTt+"."].join(" ")}function $pe(e,t){return CG(e,t)+[" And for dates see: "+jTt+".","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:$Tt,descriptionOnlyNumbers:CG,descriptionWithDates:$pe}});var ac=W(($qr,cve)=>{"use strict";var Ype=jo(),kw=Yl(),uve=zu().dash,FG=an().extendFlat,Xpe=Ra().templatedArray,jqr=Wa().templateFormatStringDescription,Zpe=Ts().descriptionWithDates,WTt=(ra(),Pt(ia)).ONEDAY,d1=(Zl(),Pt(Xl)),YTt=d1.HOUR_PATTERN,XTt=d1.WEEKDAY_PATTERN,DG={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},ZTt=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:[d1.idRegex.x.toString(),d1.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:[d1.idRegex.x.toString(),d1.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:[XTt,YTt,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:WTt},editType:"calc"}),tickmode:ZTt,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",d1.idRegex.x.toString(),d1.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",d1.idRegex.x.toString(),d1.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"},domainpad:{left:{valType:"number",min:0,dflt:0,editType:"plot"},right:{valType:"number",min:0,dflt:0,editType:"plot"},top:{valType:"number",min:0,dflt:0,editType:"plot"},bottom:{valType:"number",min:0,dflt:0,editType:"plot"},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((Wqr,hve)=>{"use strict";var As=ac(),fve=jo(),LG=an().extendFlat,KTt=hs().overrideAll;hve.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: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((Xqr,pve)=>{"use strict";var JTt=YD(),QTt=(fw(),Pt(fA)).counter,e6t=(Qx(),Pt(Jx)).default,dve=Xx().scales,Yqr=e6t(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 "+_,M={};M[d]=M[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:M},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: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=JTt),r.noColorAxis||(A.coloraxis={valType:"subplotid",regex:QTt("coloraxis"),dflt:null,editType:"calc"}),A}});var IG=W((Zqr,vve)=>{"use strict";var t6t=an().extendFlat,r6t=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:t6t({_isSubplotObj:!0,editType:"calc"},r6t("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var RG=W((Kqr,gve)=>{"use strict";var i6t=tt();gve.exports=function(t){return i6t.isPlainObject(t.colorbar)}});var qG=W(BG=>{"use strict";var zG=hn(),mve=tt(),yve=(ra(),Pt(ia)),n6t=yve.ONEDAY,a6t=yve.ONEWEEK;BG.dtick=function(e,t){var r=t==="log",i=t==="date",n=t==="category",a=i?n6t: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%a6t===0?1:0));if(!(i==="D1"||i==="D2"))return zG(e)?Number(e):0}});var ub=W((Qqr,bve)=>{"use strict";var xve=qG(),o6t=tt().isArrayOrTypedArray,s6t=Tc().isTypedArraySpec,l6t=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 M=s[b];return s6t(M)&&(M=l6t(M)),M!==void 0?M:(l._template||{})[b]}var f=c("tick0"),h=c("dtick"),p=c("tickvals"),d=c("overlaying"),v=n==="category"||n==="multicategory",m;o6t(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((eOr,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((tOr,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((rOr,Ave)=>{"use strict";var ZD=tt(),u6t=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=u6t.arrayTemplater(r,n,a),c,f;for(c=0;c{"use strict";var UG=tt(),c6t=ti().contrast,Mve=ac(),f6t=NG(),h6t=tf();Sve.exports=function(t,r,i,n,a){a||(a={});var o=i("labelalias");UG.isPlainObject(o)||delete r.labelalias;var s=f6t(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?c6t(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");h6t(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:d6t}),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 d6t(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((nOr,Eve)=>{"use strict";var p6t=NG();Eve.exports=function(t,r,i,n,a){a||(a={});var o=a.tickSuffixDflt,s=p6t(t),l=i("tickprefix");l&&i("showtickprefix",s);var u=i("ticksuffix",o);u&&i("showticksuffix",s)}});var VG=W((aOr,kve)=>{"use strict";var Ry=tt(),v6t=Ra(),g6t=ub(),m6t=Cw(),y6t=Py(),x6t=Iy(),b6t=YD();kve.exports=function(t,r,i){var n=v6t.newContainer(r,"colorbar"),a=t.colorbar||{};function o(S,C){return Ry.coerce(a,n,b6t,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,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,M="left";f?(b="middle",M=g?"left":"right",w=g?1.02:1,_=.5):(b=m?"bottom":"top",M="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",M),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"),g6t(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"),x6t(a,n,o,"linear",T),y6t(a,n,o,"linear",T),m6t(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((oOr,Fve)=>{"use strict";var Cve=hn(),HG=tt(),_6t=RG(),w6t=VG(),Dve=Xx().isValid,T6t=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=T6t(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(),A6t=Ra(),Pve=IG(),M6t=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=A6t.newContainer(r,l,"coloraxis"),o._name=l,M6t(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var S6t=tt(),E6t=Sc().hasColorscale,k6t=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?S6t.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var p=k6t(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(),C6t=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=C6t(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((cOr,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((fOr,Vve)=>{"use strict";var Uve=tt(),D6t=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)||D6t(t.size))}}});var MA=W((hOr,Gve)=>{"use strict";var F6t=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 F6t(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},R6t=/([astvzqmhlc])([^astvzqmhlc]*)/gi,z6t=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function B6t(e){let t=[];return e.replace(R6t,(r,i,n)=>{let a=i.toLowerCase(),o=i,s=q6t(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 q6t(e){let t=e.match(z6t);return t?t.map(Number):[]}$ve.exports=B6t});var Qve=W((vOr,Jve)=>{"use strict";var O6t=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],M=g[1]+(t||0);return[b*w-M*_,b*_+M*w]}for(var n=e/180*YG,a=0,o=0,s=O6t(r),l="",u=0;u{"use strict";var qu=gi(),wo=tt(),N6t=wo.numberFormat,By=hn(),QD=xi(),yu=ti(),U6t=es(),kA=wo.strTranslate,e7=ao(),V6t=(md(),Pt(gd)),G6t=(Jl(),Pt(Kl)),H6t=G6t.LINE_SPACING,u1e=(Ng(),Pt(Og)).DESELECTDIM,j6t=Wo(),$6t=MA(),W6t=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(X6t(c))),l&&e.style("text-shadow",l==="auto"?e7.makeTextShadow(yu.contrast(a)):KG(l)),u&&e.style("text-decoration-line",KG(Z6t(u)))};function KG(e){return e==="none"?void 0:e}var Y6t={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function X6t(e){return Y6t[e]}function Z6t(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 K6t=ui.symbolNames.length,J6t="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>=K6t||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?J6t:"")}var t1e=N6t("~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,M=ui.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),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 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);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,S,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=j6t.isBubble(e)?$6t(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 M=b.mo===void 0?n.opacity:b.mo;return b.selected?c?l:M:f?u:u1e*M});var h=n.color,p=a.color,d=o.color;(p||d)&&(t.selectedColorFn=function(b){var M=b.mcc||h;return b.selected?p||M:d||M});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 M=b.mrc||v/2;return b.selected?w?m/2:M:_?g/2:M}),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={};W6t(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)&&(M<=f&&M>=u||M>=f&&M<=u)&&(e=[b,M])}return e}ui.applyBackoff=y1e;ui.makeTester=function(){var e=wo.ensureSingleById(qu.select("body"),"svg","js-plotly-tester",function(r){r.attr(V6t.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,tAt=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>=tAt&&(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 rAt=/\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(rAt,"");n+=i,n=n.trim(),this.setAttribute("transform",n)})}};var iAt=/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(iAt);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,M=cb(_)*Lw(b),x=Lw(_)*cb(g)-cb(_)*Lw(g)*cb(b);v=-EA(M,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,S=t.line&&t.line.shape||"",C=S.slice(S.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((mOr,T1e)=>{"use strict";var Pw=gi(),nAt=hn(),aAt=Qo(),aH=xi(),db=tt(),b1e=db.strTranslate,t7=Qi(),r7=ti(),Iw=ao(),_1e=(Ng(),Pt(Og)),oAt=(Jl(),Pt(Kl)).OPPOSITE_SIDE,w1e=/ [XY][0-9]* /,oH=1.6,sH=1.6;function sAt(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,M=m.style,x=m.variant,A=m.textcase,T=m.lineposition,y=m.shadow,E=r.subtitlePropName,S=!!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),S&&(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(S&&(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:M,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 aAt.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=oAt[l.side],_e=l.side==="left"||l.side==="top"?-1:1,re=nAt(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)}),S)){if(S&&!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:sAt,SUBTITLE_PADDING_EM:sH,SUBTITLE_PADDING_MATHJAX_EM:oH}});var g1=W((yOr,k1e)=>{"use strict";var lAt=gi(),uAt=K3().utcFormat,Yo=tt(),cAt=Yo.numberFormat,p1=hn(),qy=Yo.cleanNumber,fAt=Yo.ms2DateTime,A1e=Yo.dateTime2ms,v1=Yo.ensureNumber,M1e=Yo.isArrayOrTypedArray,Oy=(ra(),Pt(ia)),i7=Oy.FP_SAFE,Wp=Oy.BADNUM,hAt=Oy.LOG_CLIP,dAt=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}var pAt=2;function vAt(e,t){if(e<=0)return 0;let r=Math.max(0,t-pAt);return e>r?r/e:1}k1e.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*hAt*Math.abs(x-A))}else return Wp}function o(b,M,x,A){if((A||{}).msUTC&&p1(b))return+b;var T=A1e(b,x||t.calendar);if(T===Wp)if(p1(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,M,x){return fAt(b,M,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 M=t._categories.length-1;return t._categoriesMap[b]=M,M}return Wp}function c(b,M){for(var x=new Array(M),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<(S+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 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:v1,t.l2c=t.type==="log"?CA:v1,t.l2p=m,t.p2l=g,t.c2p=t.type==="log"?function(b,M){return m(a(b,M))}: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=v1,t.d2p=t.r2p=function(b){return t.l2p(qy(b))},t.p2d=t.p2r=g,t.cleanPos=v1):t.type==="log"?(t.d2r=t.d2l=function(b,M){return a(qy(b),M)},t.r2d=t.r2c=function(b){return CA(qy(b))},t.d2c=t.r2l=qy,t.c2d=t.l2r=v1,t.c2r=a,t.l2d=CA,t.d2p=function(b,M){return t.l2p(t.d2r(b,M))},t.p2d=function(b){return CA(g(b))},t.r2p=function(b){return t.l2p(qy(b))},t.p2r=g,t.cleanPos=v1):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,M,x){return t.l2p(o(b,0,x))},t.p2d=t.p2r=function(b,M,x){return s(g(b),M,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 M=p(b);return M!==void 0?M:t.fraction2r(.5)},t.l2r=t.c2r=v1,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:v1(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=f,t.l2r=t.c2r=v1,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:v1(b)},t.setupMultiCategory=function(b){var M=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)];M=M.concat(E._traceIndices)}}var S=[[0,{}],[0,{}]],C=[];for(x=0;xE[1]&&(A[y?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[y?0:1]=t.l2r(S)}else x!==void 0&&(A[y?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=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=M.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 S=Yo.constrain(t.r2l(x[0]),Yo.MIN_MS+1e3,Yo.MAX_MS-1e3);x[0]=t.l2r(S-1e3),x[1]=t.l2r(S+1e3);break}}else{if(!p1(x[A]))if(!(y||E)&&p1(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 M=r._size;if(t.overlaying){var x=o7.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain,t.domainpad=x.domainpad}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),S=n==="y";let C=(S?M.h:M.w)*(t.domain[1]-t.domain[0]),k=t.domainpad,D=0,F=0;if(k){D=(S?k.top:k.left)||0,F=(S?k.bottom:k.right)||0;let B=vAt(D+F,C);D*=B,F*=B}if(t._length=C-D-F,t._padStart=D,t._padEnd=F,S?(t._offset=M.t+(1-t.domain[1])*M.h+D,t._m=t._length/(y-E),t._b=-t._m*E):(t._offset=M.l+t.domain[0]*M.w+D,t._m=t._length/(E-y),t._b=-t._m*y),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var P,R;if(t._rangebreaks=t.locateBreaks(Math.min(y,E),Math.max(y,E)),t._rangebreaks.length){for(P=0;PE&&(L=!L),L&&t._rangebreaks.reverse();var I=L?-1:1;for(t._m2=I*t._length/(Math.abs(E-y)-t._lBreaks),t._B.push(-t._m2*(S?E:y)),P=0;PT&&(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(),gAt=(ra(),Pt(ia)).BADNUM,c7=uH.isArrayOrTypedArray,mAt=uH.isDateTime,yAt=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&&TAt(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 wAt(e,t){for(var r=e.length,i=F1e(r),n=0,a=0,o={},s=0;sn*2}function TAt(e){return c7(e[0])&&c7(e[1])}});var Yp=W((bOr,N1e)=>{"use strict";var AAt=gi(),z1e=hn(),Ny=tt(),f7=(ra(),Pt(ia)).FP_SAFE,MAt=xi(),SAt=Qi(),B1e=Ls(),EAt=B1e.getFromId,kAt=B1e.isLinked;N1e.exports={applyAutorangeOptions:O1e,getAutoRange:cH,makePadFn:fH,doAutoRange:DAt,findExtremes:FAt,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?S/E>M&&(T=x,y=A,M=S/E):S/_>M&&(T={val:x.val,nopad:1},y={val:A.val,nopad:1},M=S/_));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-M*o(T)<0&&(T={val:0,nopad:1}),y.val<=0&&(y={val:1,nopad:1})),M=(y.val-T.val-P1e(t,x.val,A.val))/(_-o(T)-s(y)),n=[T.val-M*o(T),y.val+M*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=S;f--)E(f);return{min:i,max:n,opts:r}}function hH(e,t,r,i){q1e(e,t,r,i,LAt)}function dH(e,t,r,i){q1e(e,t,r,i,PAt)}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 IAt(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 RAt(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=IAt(r,t),i=RAt(i,t),[r,i]}});var Yi=W((wOr,lge)=>{"use strict";var xd=gi(),Pl=hn(),zw=Qo(),FA=xi(),En=tt(),Bw=En.strTranslate,vb=ao(),zAt=pb(),LA=ti(),w0=Qi(),BAt=ac(),U1e=qG(),_Or=(Zl(),Pt(Xl)),kc=(ra(),Pt(ia)),qAt=kc.ONEMAXYEAR,v7=kc.ONEAVGYEAR,g7=kc.ONEMINYEAR,OAt=kc.ONEMAXQUARTER,yH=kc.ONEAVGQUARTER,m7=kc.ONEMINQUARTER,NAt=kc.ONEMAXMONTH,qw=kc.ONEAVGMONTH,y7=kc.ONEMINMONTH,T0=kc.ONEWEEK,Sf=kc.ONEDAY,Uy=Sf/2,y1=kc.ONEHOUR,PA=kc.ONEMIN,x7=kc.ONESEC,UAt=kc.ONEMILLI,VAt=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,GAt=w7.OPPOSITE_SIDE,b7=3,Br=lge.exports={};Br.setConvert=g1();var HAt=Rw(),x1=Ls(),jAt=x1.idSort,$At=x1.isLinked;Br.id2name=x1.id2name;Br.name2id=x1.name2id;Br.cleanId=x1.cleanId;Br.list=x1.list;Br.listIds=x1.listIds;Br.getFromId=x1.getFromId;Br.getFromTrace=x1.getFromTrace;var Q1e=Yp();Br.getAutoRange=Q1e.getAutoRange;Br.findExtremes=Q1e.findExtremes;var WAt=1e-4;function MH(e){var t=(e[1]-e[0])*WAt;return[e[0]-t,e[1]+t]}function YAt(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<=qAt?f=u:f=v7:r===yH&&c>=m7?u>=m7&&u<=OAt?f=u:f=yH:c>=y7?u>=y7&&u<=NAt?f=u:f=qw:r===T0&&c>=T0?f=T0:c>=Sf?f=Sf:r===Uy&&c>=Uy?f=Uy:r===y1&&c>=y1&&(f=y1);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);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:En.extendFlat({},t,b?t.minor:{minor:{}});if(x?Br.prepMinorTicks(A,t,r):Br.prepTicks(A,r),A.tickmode==="array"){M?(m=[],d=W1e(t,!x)):(g=[],v=W1e(t,!x));continue}if(A.tickmode==="sync"){m=[],d=eMt(t);continue}var T=MH(u),y=T[0],E=T[1],S=Pl(A.dtick),C=i==="log"&&!(S||A.dtick.charAt(0)==="L"),k=Br.tickFirst(A,r);if(M){if(t._tmin=k,k=E:F<=E;F=Br.tickIncrement(F,L,c,n)){if(M&&P++,A.rangebreaks&&!c){if(F=h)break}if(m.length>p||F===D)break;D=F;var B={value:YAt(F,I,L)};M?(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*m1(t,i,d7);else if(a>qw)t/=qw,e.dtick="M"+m1(t,1,Y1e);else if(a>Sf){if(e.dtick=m1(t,Sf,e._hasDayOfWeekBreaks?[1,2,7,14]:tMt),!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>y1?e.dtick=m1(t,y1,Y1e):a>PA?e.dtick=m1(t,PA,X1e):a>x7?e.dtick=m1(t,x7,X1e):(i=n(10),e.dtick=m1(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"+m1(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=m1(t,i,rMt)):(e.tick0=0,i=n(10),e.dtick=m1(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>=y1)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 nMt(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 aMt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function oMt(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 sMt(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 lMt(e,t,r,i,n){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=uMt(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 uMt(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"],cMt=["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 fMt(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"?cMt[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=AMt(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 M={};function x(oe){var Se=u+(oe||"tick");return M[Se]||(M[Se]=vMt(t,Se,g)),M[Se]}if(t.visible){var A=Br.makeTransTickFn(t),T=Br.makeTransTickLabelFn(t),y,E,S=t.ticks==="inside",C=t.ticks==="outside";if(t.tickson==="boundaries"){var k=hMt(t,_);E=Br.clipEnds(t,k),y=S?E:k}else E=Br.clipEnds(t,_),y=S&&t.ticklabelmode!=="period"?E:_;var D=t._gridVals=E,F=pMt(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 hMt(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 gMt(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,M,x=0,A=e.side,T=e._id.charAt(0),y=e.tickangle,E;if(T==="x")E=!f&&A==="bottom"||f&&A==="top",M=E?1:-1,f&&(M*=-1),w=d*M,_=t+p*M,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*M<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",M=E?1:-1,f&&(M*=-1),w=p,_=d*M,b=0,!f&&Math.abs(y)===90&&(y===-90&&A==="left"||y===90&&A==="right"?b=mb:b=.5),f){var S=Pl(y)?+y:0;if(S!==0){var C=En.deg2rad(S);x=Math.abs(Math.sin(C))*mb*M,b=0}}g.xFn=function(k){return k.dx+t-(w+k.fontSize*b)*M+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 jAt(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-S);R-M>0?(R-=M,M*=1+M/R):M=0,t._id.charAt(0)!=="y"&&(M=-M),y[A]=_.p2r(_.r2p(E[A])+x*M),_.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 mMt(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 yMt(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,zAt.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)||!xMt(e,t,r,i)||bMt(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=VAt:/%L/.test(t)?e>=UAt:/%[SX]/.test(t)?e>=x7:/%M/.test(t)?e>=PA:/%[HI]/.test(t)?e>=y1:/%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((TOr,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((AOr,cge)=>{"use strict";var SMt=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&&(SMt(i,c,s),(o==="linear"||o==="-")&&i("rangemode")),r.cleanRange()}});var hge=W((MOr,fge)=>{var EMt={left:0,top:0};fge.exports=kMt;function kMt(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=CMt(t);return r[0]=i-a.left,r[1]=n-a.top,r}function CMt(e){return e===window||e===document||e===document.body?EMt:e.getBoundingClientRect()}});var M7=W((SOr,dge)=>{"use strict";var DMt=uG();function FMt(){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=DMt&&FMt()});var vge=W((EOr,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((kOr,mge)=>{"use strict";var gge=tt(),LMt=[["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),LMt[r][t]}});var bge=W((COr,xge)=>{"use strict";var PMt=ww(),IMt=CD(),RMt=hA().getGraphDiv,zMt=(W6(),Pt($6)),PH=xge.exports={};PH.wrapped=function(e,t,r){var a;e=RMt(e),e._fullLayout&&IMt.clear(e._fullLayout._uid+zMt.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&&PMt.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((DOr,Age)=>{"use strict";var BMt=hge(),IH=fG(),qMt=M7(),OMt=tt().removeElement,NMt=(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,qMt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=m,a.addEventListener("touchstart",m,{passive:!1})):a.ontouchstart=m;function d(_,b,M){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(M=>{var x=f[M];!b[M]&&typeof x!="function"&&(b[M]=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 BMt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Xp=W((FOr,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((LOr,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;aYMt,itemGap:()=>WMt,itemHeightPad:()=>ZMt,itemMinHeight:()=>XMt,scrollBarColor:()=>GMt,scrollBarEnterAttrs:()=>jMt,scrollBarMargin:()=>HMt,scrollBarMinHeight:()=>VMt,scrollBarWidth:()=>UMt,titlePad:()=>$Mt});var UMt,VMt,GMt,HMt,jMt,$Mt,WMt,YMt,XMt,ZMt,E7=Ci(()=>{"use strict";UMt=6,VMt=20,GMt="#808BA4",HMt=4,jMt={rx:20,ry:3,width:0,height:0},$Mt=2,WMt=5,YMt=6,XMt=16,ZMt=3});var BH=W((POr,Dge)=>{"use strict";var zH=jo(),KMt=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:KMt.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((ROr,Fge)=>{"use strict";var k7=xi(),A0=tt(),JMt=Ra(),QMt=Ja(),eSt=BH(),tSt=pw(),qH=OA();function rSt(e,t,r,i,n){var a=t[e]||{},o=JMt.newContainer(r,e);function s(B,O){return A0.coerce(a,o,eSt,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,QMt,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",S=T==="paper",C=y==="paper",k,D,F,P="left";E?(k=0,k7.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")),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:S?-2:0,max:S?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(),iSt=NH.pushUnique,nSt=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,M,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 S=(o.shapes||[]).map(function(xe){return xe._input}),C=!1;function k(xe,ce){S[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&&(S=k)}y[p][0]._groupMinRank=S,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 aSt=Qi(),oSt=ti();Bge.exports=function(t,r,i,n){var a=i.marker.pattern;a&&a.shape?aSt.pointStyle(t,i,n,r):oSt.fill(t,r.color)}});var Nw=W((NOr,Uge)=>{"use strict";var Oge=ti(),Nge=Gy().castOption,sSt=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(sSt,r,i,n).style("stroke-width",s).call(Oge.stroke,o)}});var XH=W((UOr,$ge)=>{"use strict";var kf=gi(),jH=xi(),nf=tt(),$H=nf.strTranslate,M0=Qi(),bd=ti(),WH=Sc().extractOpts,F7=Wo(),lSt=Nw(),uSt=Gy().castOption,Vge=(E7(),Pt(S7)),Gge=12,Hge=5,bb=2,cSt=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,S){var C;if(T+1)C=T;else if(y&&y.width>0)C=y.width;else return 0;return a?S: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 S=i.indentation,C=i.valign,k=T[0].lineHeight,D=T[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,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(M).each(b).each(f).each(h).each(w).each(_);function f(T){var y=jge(T),E=y.showFill,S=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),S||C){var V=c(void 0,R.line,cSt,Hge);I=nf.minExtend(R,{line:{width:V}}),L=[nf.minExtend(P,{trace:I})]}var Y=q.select(".legendlines").selectAll("path").data(S||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(S?M0.lineGroupStyle:K)}function h(T){var y=jge(T),E=y.anyFill,S=y.anyLine,C=y.showLine,k=y.showMarker,D=T[0],F=D.trace,P=!k&&!S&&!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 S=T[0].trace[T[0].dir].marker;return T[0].mc=S.color,T[0].mlw=S.line.width,T[0].mlc=S.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 S=T[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:jH.traceIs(S,"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-${S.uid}-${J}`:`legend-${S.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 S=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);S.style("stroke-width",k+"px").call(bd.fill,y.fillcolor),k&&bd.stroke(S,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(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=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(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=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 M(T){x(T,this,"funnelarea")}function x(T,y,E){var S=T[0],C=S.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(uSt(F.line.width,S.pts),F.line,Uw,bb),R="pieLike",L=nf.minExtend(C,{marker:{line:{width:P}}},R),I=nf.minExtend(S,{trace:L},R);lSt(D,I,L,r)}}function A(T){var y=T[0].trace,E,S=[];if(y.visible)switch(y.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=kf.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=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((VOr,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(),fSt=XH(),Hw=OA(),Vw=1,hSt=/^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(hSt)&&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)&&gSt(w,e,r,n)):(w.selectAll("."+n+"titletext").remove(),w.selectAll("."+n+"titletoggle").remove());var M=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 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")?d.indexOf(T[0].label)!==-1?.5:1:E.visible==="legendonly"?.5:1}).each(function(){Cf.select(this).call(pSt,e,r)}).call(fSt,e,r).each(function(T){s||T[0].groupTitle&&r.groupclick==="toggleitem"||Cf.select(this).call(vSt,e,n)}),Il.syncOrAsync([KH.previousPromises,function(){return xSt(e,x,A,r,w)},function(){var T=i._size,y=r.borderwidth,E=r.xref==="paper",S=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,S?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=bSt(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=S?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(M.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(M,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))});M.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(M,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!==M.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 pSt(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 vSt(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 gSt(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(){mSt(t,r,i,n)})}function mSt(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 ySt(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 xSt(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:M,yref:x}=i,{maxheight:A}=i,T=g||w||M!=="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 S=ySt(i);if(l)r.each(function(ue){var ge=ue[0].height;Rl.setTranslate(this,f+S[0],f+S[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,S[0],S[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,S[0]+f+q,S[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+S[0],i._titleWidth+2*(f+js.titlePad))),i._height=Math.ceil(Math.max(i._height+S[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-S[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()&&dSt(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 bSt(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(),_St=$s.pushUnique,ej=$s.strTranslate,wSt=$s.strRotate,TSt=ww(),Ps=ao(),ASt=kge(),b1=Qi(),Ql=ti(),B7=Ef(),Zp=Yi(),MSt=(Zl(),Pt(Xl)).zindexSeparator,wb=xi(),S0=ah(),Tb=(W6(),Pt($6)),SSt=OH(),ESt=QH(),fme=Tb.YANGLE,rj=Math.PI*fme/180,kSt=1/Math.sin(rj),CSt=Math.cos(rj),DSt=Math.sin(rj),Ms=Tb.HOVERARROWSIZE,Ea=Tb.HOVERTEXTPAD,rme={box:!0,ohlc:!0,violin:!0,candlestick:!0},FSt={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(){PSt(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=vme(n),o=gme(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),M=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,S=y.offsetTop;b+=E,M+=E,x+=S,A+=S}_.bbox={x0:b+o,x1:M+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=dme(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=cme("x",Je,s),dt=cme("y",Je,s);oe(mt,dt);var St=[],Ke={},bt=0,pt=function(Ut){var Lr=rme[Ut.trace.type]?hme(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=vme(e),Ie=gme(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=dme(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);ASt(Xg.select(n),ht?"pointer":"")}var Ft=BSt(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 hme(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 ISt=/([\s\S]*)<\/extra>/;function tj(e,t){return q7(e,Ps.getMathOrTextNode(t))}function dme(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,M=_.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;M.side==="right"?(Ve="start",st=1,_t="",Oe=b._offset+b._length):(Ve="end",st=-1,_t="-",Oe=b._offset),Ue=M._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),M.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=S-pt.top-Wt,fr="clip"+i._uid+"commonlabel"+M._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:$};SSt(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?wSt(fme):""))}}),{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=ume(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(ISt,(d,v)=>(o=ume(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=pme(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?kSt: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,M,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(M=P.length-1;M>=0;M--)P[M].dp+=w;g=!1}if(!(_<.01)){if(w<-.01){for(M=P.length-1;M>=0;M--)P[M].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;M--)P[M].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(M=E.length-1;M>=0;M--)E[M].dp+=w;for(y.push.apply(y,E),u.splice(b+1,1),A=0,M=y.length-1;M>=0;M--)A+=y[M].dp;for(_=A/y.length,M=y.length-1;M>=0;M--)y[M].dp-=_;g=!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],F=D.datum;F.offset=D.dp,F.del=D.del}}}function pme(e,t){var r=0,i=e.offset;return t&&(i*=-DSt,r=e.offset*CSt),{x:r,y:i}}function RSt(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=RSt(o),h=pme(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(b1.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 zSt(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:Zp.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:Zp.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=Zp.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Zp.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=Zp.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+Zp.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){let i=t._id.charAt(0)==="y",n=1/0,a=-1/0;for(let o of t._counterAxes||[]){let s=Zp.getFromId(e,o);if(!s)continue;let l=s._padStart||0,u=s._padEnd||0;i?(n=Math.min(n,r.l+s.domain[0]*r.w+l),a=Math.max(a,r.l+s.domain[1]*r.w-u)):(n=Math.min(n,r.t+(1-s.domain[1])*r.h+l),a=Math.max(a,r.t+(1-s.domain[0])*r.h-u))}if(t.anchor==="free"){let o=i?r.l+t.position*r.w:r.t+(1-t.position)*r.h;n=Math.min(n,o),a=Math.max(a,o)}return[n,a]}function sme(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=Zp.getPxPosition(e,c),M,x;if(g.indexOf("toaxis")!==-1||g.indexOf("across")!==-1){if(g.indexOf("toaxis")!==-1&&(M=b,x=p),g.indexOf("across")!==-1){let L=ome(e,c,a);M=L[0],x=L[1]}i.insert("line",":first-child").attr({x1:M,x2:x,y1:d,y2:d,"stroke-width":w,stroke:_,"stroke-dasharray":b1.dashStyle(c.spikedash,w)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:M,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 A=t.vLinePoint,T,y;u=A&&A.xa,c=A&&A.ya;var E=u.spikesnap;E==="cursor"?(T=o.pointerX,y=o.pointerY):(T=u._offset+A.x,y=c._offset+A.y);var S=Ql.wcagContrast(A.color,f)<1.5?Ql.contrast(f):A.color,C=u.spikemode,k=u.spikethickness,D=u.spikecolor||S,F=Zp.getPxPosition(e,u),P,R;if(C.indexOf("toaxis")!==-1||C.indexOf("across")!==-1){if(C.indexOf("toaxis")!==-1&&(P=F,R=y),C.indexOf("across")!==-1){let L=ome(e,u,a);P=L[0],R=L[1]}i.insert("line",":first-child").attr({x1:T,x2:T,y1:P,y2:R,"stroke-width":k,stroke:D,"stroke-dasharray":b1.dashStyle(u.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:T,x2:T,y1:P,y2:R,"stroke-width":k+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}C.indexOf("marker")!==-1&&i.insert("circle",":first-child").attr({cx:T,cy:F-(u.side!=="top"?k:-k),r:k,fill:D}).classed("spikeline",!0)}}}function BSt(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 lme(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function ume(e,t){return Ps.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function qSt(e,t){for(var r=t.charAt(0),i=[],n=[],a=[],o=0;oe.offsetTop+e.clientTop,gme=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((HOr,mme)=>{"use strict";var OSt=tt(),NSt=ti(),USt=ah().isUnifiedHover;mme.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&&USt(r.hovermode)&&(n.font||(n.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(n.bgcolor||(n.bgcolor=NSt.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),OSt.coerceFont(i,"hoverlabel.font",n.font),i("hoverlabel.align",n.align)}});var xme=W((jOr,yme)=>{"use strict";var VSt=tt(),GSt=UA(),HSt=yy();yme.exports=function(t,r){function i(n,a){return VSt.coerce(t,r,HSt,n,a)}GSt(t,r,i)}});var wme=W(($Or,_me)=>{"use strict";var bme=tt(),jSt=tw(),$St=UA();_me.exports=function(t,r,i,n){function a(s,l){return bme.coerce(t,r,jSt,s,l)}var o=bme.extendFlat({},n.hoverlabel);r.hovertemplate&&(o.namelength=-1),$St(t,r,a,o)}});var aj=W((WOr,Tme)=>{"use strict";var WSt=tt(),YSt=yy();Tme.exports=function(t,r){function i(n,a){return r[n]!==void 0?r[n]:WSt.coerce(t,r,YSt,n,a)}return i("clickmode"),i("hoversubplots"),i("hoveranywhere"),i("clickanywhere"),i("hovermode")}});var Sme=W((YOr,Mme)=>{"use strict";var Ame=tt(),XSt=yy(),ZSt=aj(),KSt=UA();Mme.exports=function(t,r){function i(u,c){return Ame.coerce(t,r,XSt,u,c)}var n=ZSt(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"),KSt(t,r,i),Ame.coerceFont(i,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var Cme=W((XOr,kme)=>{"use strict";var oj=tt(),Eme=xi();kme.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 QSt=xi(),Dme=ah(),eEt=nj().hover;Fme.exports=function(t,r,i){var n=QSt.getComponentMethod("annotations","onClick")(t,t._hoverdata),a=t._fullLayout;i!==void 0&&eEt(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&&Dme.c2dApply(t._hoverXAxes,t._hoverXVals)),(f=s.yvals)!=null||(s.yvals=t._hoverYVals&&Dme.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((KOr,Rme)=>{"use strict";var tEt=gi(),N7=tt(),rEt=Ef(),VA=ah(),Pme=yy(),Ime=nj();Rme.exports={moduleType:"component",name:"fx",constants:(W6(),Pt($6)),schema:{layout:Pme},attributes:tw(),layoutAttributes:Pme,supplyLayoutGlobalDefaults:xme(),supplyDefaults:wme(),supplyLayoutDefaults:Sme(),calc:Cme(),getDistanceFunction:VA.getDistanceFunction,getClosest:VA.getClosest,inbox:VA.inbox,quadrature:VA.quadrature,appendArrayPointValue:VA.appendArrayPointValue,castHoverOption:nEt,castHoverinfo:aEt,hover:Ime.hover,unhover:rEt.unhover,loneHover:Ime.loneHover,loneUnhover:iEt,click:Lme()};function iEt(e){var t=N7.isD3Selection(e)?e:tEt.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function nEt(e,t,r){return N7.castOption(e,t,"hoverlabel."+r)}function aEt(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((QOr,zme)=>{"use strict";zme.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((eNr,Bme)=>{"use strict";Bme.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:()=>oEt,SQRT2:()=>dEt,cos45:()=>fEt,i000:()=>sEt,i090:()=>lEt,i180:()=>uEt,i270:()=>cEt,sin45:()=>hEt});var oEt,sEt,lEt,uEt,cEt,fEt,hEt,dEt,G7=Ci(()=>{"use strict";oEt=32,sEt=0,lEt=8,uEt=16,cEt=24,fEt=Math.cos(Math.PI/4),hEt=Math.sin(Math.PI/4),dEt=Math.sqrt(2)});var H7=W((tNr,Ome)=>{"use strict";var pEt=tt().strTranslate;function qme(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 vEt(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 qme(e,r[t])}}function mEt(e){return pEt(e.xaxis._offset,e.yaxis._offset)}Ome.exports={p2r:qme,r2p:vEt,axValue:gEt,getTransform:mEt}});var Hy=W(Kg=>{"use strict";var yEt=WG(),Vme=(G7(),Pt(V7)),jw=Vme.CIRCLE_SIDES,sj=Vme.SQRT2,Gme=H7(),Nme=Gme.p2r,Ume=Gme.r2p,xEt=[0,3,4,5,6,1,2],bEt=[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 Hme=Ls(),Xme=_1(),_Et=Xme.drawMode,wEt=Xme.openMode,$w=(G7(),Pt(V7)),jme=$w.i000,$me=$w.i090,Wme=$w.i180,Yme=$w.i270,TEt=$w.cos45,AEt=$w.sin45,Zme=H7(),$7=Zme.p2r,jy=Zme.r2p,MEt=Ly(),SEt=MEt.clearOutline,W7=Hy(),EEt=W7.readPaths,kEt=W7.writePaths,CEt=W7.ellipseOver,DEt=W7.fixDatesForPaths;function FEt(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(!_Et(a)&&n!==void 0){var s=i._fullLayout._activeShapeIndex;if(s{"use strict";var LEt=_1(),PEt=LEt.selectMode,IEt=Ly(),REt=IEt.clearOutline,lj=Hy(),zEt=lj.readPaths,BEt=lj.writePaths,qEt=lj.fixDatesForPaths;Qme.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(!PEt(f)&&c!==void 0){var p=a._fullLayout._activeSelectionIndex;if(pGEt,paramIsX:()=>UEt,paramIsY:()=>VEt,paramRE:()=>NEt,segmentRE:()=>OEt});var OEt,NEt,UEt,VEt,GEt,$A=Ci(()=>{"use strict";OEt=/[MLHVQCTSZ][^MLHVQCTSZ]*/g,NEt=/[^\s,]+/g,UEt={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:{}},VEt={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:{}},GEt={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)),eye=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,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=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,S){return w(o[S],$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,S){return w(s[S],$y.getRefType(E),r,!0)})):(s=$y.getFromId(e,t.yref),p=w(s,n,r,!0)),r==="path")return HEt(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,M=Math.abs(_-d),x=Math.abs(b-m),A="A"+M+","+x,T=_+M+","+b,y=_+","+(b-x);return"M"+T+A+" 0 1,1 "+y+A+" 0 0,1 "+T+"Z"};function HEt(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,M=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=M(s)-Number(A):A=M(A)),p++,p>g&&(A="X"),A});return p>g&&(x=x.replace(/[\s,]*X.*/,""),eye.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((oNr,iye)=>{"use strict";var jEt=tt(),A1=Yi(),tye=ao(),rye=Qi(),$Et=Hy().readPaths,Ab=Wy(),WEt=Ab.getPathString,WA=xD(),YEt=(Jl(),Pt(Kl)).FROM_TL;iye.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=jEt.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,M,x;if(i.path){var A=WEt(t,i),T=$Et(A,t);_=1/0,M=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);M=Q-i.y0+te,x=Q-i.y1+ue}else M=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=XEt(_,M,b,x):F=0),w.call(function(O){return O.call(rye.font,v).attr({}),tye.convertToTspans(O,t),O});var P=rye.bBox(w.node()),R=ZEt(_,M,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(tye.positionText,L,I)}};function XEt(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 ZEt(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 KEt=tt(),JEt=KEt.strTranslate,nye=Ef(),sye=_1(),QEt=sye.drawMode,lye=sye.selectMode,uye=xi(),aye=ti(),Z7=(G7(),Pt(V7)),ekt=Z7.i000,tkt=Z7.i090,rkt=Z7.i180,ikt=Z7.i270,nkt=Ly(),cye=nkt.clearOutlineControllers,hj=Hy(),X7=hj.pointsOnRectangle,fj=hj.pointsOnEllipse,akt=hj.writePaths,okt=Y7().newShapes,skt=Y7().createShapeObj,lkt=uj(),ukt=cj();fye.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=okt(r,i)),i.isActiveSelection!==void 0&&(i.isActiveSelection=!1,L=lkt(r,i),a._fullLayout._reselect=!0),Object.keys(L).length&&uye.call((R||{}).redrawing?"relayout":"_guiRelayout",a,L)}var l=a._fullLayout,u=l._zoomlayer,c=i.dragmode,f=QEt(c),h=lye(c);(f||h)&&(a._fullLayout._outlining=!0),cye(a),r.attr("d",akt(t));var p,d,v,m,g;if(!n&&(i.isActiveShape||i.isActiveSelection)){g=ckt([],t);var w=u.append("g").attr("class","outline-controllers");E(w),P()}if(f&&i.hasText){var _=u.select(".label-temp"),b=skt(r,i,i.dragmode);ukt(a,"label-temp",b,_)}function M(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=oye(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 hkt=gi(),mye=xi(),pj=tt(),Mb=Yi(),dkt=Hy().readPaths,pkt=K7(),Q7=cj(),yye=Ly().clearOutlineControllers,dj=ti(),eF=Qi(),vkt=Ra().arrayEditor,hye=Ef(),dye=Is(),pye=Xp(),Sb=($A(),Pt(jA)),Hh=Wy(),vj=Hh.getPathString;_ye.exports={draw:gj,drawOne:xye,eraseActiveShape:bkt,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&&dye.hover(e,o,r.id)}}),i.addEventListener("click",a=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=n(a);o&&dye.click(e,o,r.id)}})}function bye(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=mkt(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 mkt(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 ykt(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,M,x,A,T,y,E,S,C=hkt.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;hye.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?hye.getCursor(fe/Se,1-ee/be):"move";pye(t,ae),J=ae.split("-")[0]}}function H(ce){J7(e)||(l&&(g=O(r.xanchor)),u&&(w=$(r.yanchor)),r.type==="path"?S=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)||(pye(t),Ee(n),bye(t,e,r),mye.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=vye(S,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=vye(S,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?M+ce:M,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 vye(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 xkt(e,t){if(tF(e)){var r=t.node(),i=+r.getAttribute("data-index");if(i>=0){if(i===e._fullLayout._activeShapeIndex){gye(e);return}e._fullLayout._activeShapeIndex=i,e._fullLayout._deactivateShape=gye,gj(e)}}}function gye(e){if(tF(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(yye(e),delete e._fullLayout._activeShapeIndex,gj(e))}}function bkt(e){if(tF(e)){yye(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var Ww=tt()._,_kt=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")}};wye.exports=_kt});var Sye=W((cNr,Mye)=>{"use strict";var Aye=gi(),{dfltConfig:wkt}=_y(),Tkt=Tye(),Akt=(e,t,r,i,n)=>{let a=Tkt(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===wkt.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)},Mkt=(e,t,r)=>{let i=Aye.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",()=>{Aye.event.target===n.node()&&a()}),Akt(e,n,t,()=>{a(),r()},a)};Mye.exports=Mkt});var xj=W((fNr,Pye)=>{"use strict";var E0=xi(),Skt=Qo(),kye=Ls(),Qa=U7(),Ekt=rF().eraseActiveShape,kkt=Sye(),Yw=tt(),ka=Yw._,Xa={};Pye.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}kkt(e,t,function(){Skt.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:Ekt};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=kye.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),M=n==="in"?Eye*h:1/Eye*h;M>b?M=b:M<_&&(M=_),M!==h&&E0.call("_guiRelayout",e,{[l+".projection.scale"]:M,[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:Fye};function Dye(e){var t=e._fullLayout;return t.hovermode?!1:t._has("cartesian")?t._isHoriz?"y":"x":"closest"}function Fye(e){var t=Dye(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 Iye=xj(),Lkt=Object.keys(Iye),Rye=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],zye=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(Rye,["downloadJson"]),Xw=[],Pkt=function(e){if(zye.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)}};Lkt.forEach(function(e){Pkt(Iye[e])});Xw.sort();Bye.exports={DRAW_MODES:Rye,backButtons:zye,foreButtons:Xw}});var wj={};Jn(wj,{default:()=>Rkt});var _j,Ikt,Rkt,Tj=Ci(()=>{"use strict";_j=l1(bj()),Ikt={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(" ")}},Rkt=Ikt});var Oye=W((dNr,qye)=>{"use strict";var zkt=tt(),YA=ti(),Bkt=Ra(),qkt=(Tj(),Pt(wj)).default;qye.exports=function(t,r){var i=t.modebar||{},n=Bkt.newContainer(r,"modebar");function a(s,l){return zkt.coerce(i,n,qkt,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 Gye=W((pNr,Vye)=>{"use strict";var Aj=gi(),Okt=hn(),aF=tt(),Nye=U7(),Nkt=N6().version,Ukt=new DOMParser;function Uye(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var M1=Uye.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||Nye.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};M1.createIcon=function(e){var t=Okt(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=Ukt.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 Hkt=Ls(),Hye=Wo(),Mj=xi(),jkt=ah().isUnifiedHover,$kt=Gye(),oF=xj(),Wkt=bj().DRAW_MODES,Ykt=tt().extendDeep;jye.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=Xkt(t),n?n.update(t,o):r._modeBar=$kt(t,o)};function Xkt(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"),(Jkt(r)||b)&&(y=[]),u&&!_&&(T=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),c?S=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!_||d?S=["zoom2d","pan2d"]:v||f?S=["pan2d"]:m&&(S=["zoom2d"]),Kkt(r)&&S.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";Wye.exports={moduleType:"component",name:"modebar",layoutAttributes:(Tj(),Pt(wj)).default,supplyLayoutDefaults:Oye(),manage:$ye()}});var Ej=W((mNr,Yye)=>{"use strict";var tCt=(Jl(),Pt(Kl)).FROM_BL;Yye.exports=function(t,r,i){i===void 0&&(i=tCt[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(),Kp=Ls().id2name,rCt=ac(),Xye=Ej(),iCt=g1(),nCt=(ra(),Pt(ia)).ALMOST_EQUAL,aCt=(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 sCt(e,t){for(var r=t._size,i=r.h/r.w,n={},a=Object.keys(e),o=0;onCt*d&&!w)){for(a=0;aC&&BE&&(E=B);var $=(E-y)/(2*S);f/=$,y=l.l2r(y),E=l.l2r(E),l.range=l._input.range=x0){let l=i[1]-i[0],u=l-s;u>0&&(o=l/(u/t+s))}e.domain=e._input.domain=[a+(i[0]-a)/o,a+(i[1]-a)/o],e.setScale()}});var JA=W(Ou=>{"use strict";var lF=gi(),Ff=xi(),k0=Qo(),_d=tt(),Fj=ao(),Lj=GA(),ZA=ti(),Zw=Qi(),Qye=pb(),n2e=Sj(),KA=Yi(),Jg=(Jl(),Pt(Kl)),a2e=kb(),uCt=a2e.enforce,cCt=a2e.clean,e2e=Yp().doAutoRange,o2e="start",fCt="middle",s2e="end",hCt=(Zl(),Pt(Xl)).zindexSeparator;Ou.layoutStyles=function(e){return _d.syncOrAsync([k0.doAutoMargin,pCt],e)};function dCt(e,t,r){for(var i=0;i=e[1]||n[1]<=e[0])&&a[0]t[0])return!0}return!1}function pCt(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),n2e.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){yCt(e,a,u,l),s.attr({x:o,y:a,"text-anchor":i,dy:i2e(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+Qye.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:v,"text-anchor":i,dy:i2e(t.yanchor)}).call(Fj.positionText,o,v)}}}};function vCt(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=gCt(a,i,n,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function yCt(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),k0.allowAutoMargin(e,n),k0.autoMargin(e,n,s)}function xCt(e,t){var r=e.title,i=e._size,n=0;return t===o2e?n=r.pad.l:t===s2e&&(n=-r.pad.r),r.xref==="paper"?i.l+i.w*r.x+n:e.width*r.x+n}function bCt(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 i2e(e){return e==="top"?Jg.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Jg.MID_SHIFT+"em"}function _Ct(e){var t=e.title,r=fCt;return _d.isRightAnchor(t)?r=s2e:_d.isLeftAnchor(t)&&(r=o2e),r}function wCt(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 TCt=Hy().readPaths,ACt=K7(),l2e=Ly().clearOutlineControllers,Pj=ti(),u2e=Qi(),MCt=Ra().arrayEditor,c2e=Wy(),SCt=c2e.getPathString;h2e.exports={draw:uF,drawOne:f2e,activateLastSelection:CCt};function uF(e){var t=e._fullLayout;l2e(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(u2e.dashLine,m?"solid":p,m?4+h:h);if(ECt(g,e,i),d){var w=MCt(e.layout,"selections",i);g.style({cursor:"move"});var _={element:g.node(),plotinfo:n,gd:e,editHelpers:w,isActiveSelection:!0},b=TCt(s,e);ACt(b,g,_)}else g.style("pointer-events",m?"all":"none");v[m]=g}var M=v[0],x=v[1];x.node().addEventListener("click",function(){return kCt(e,M)})}}function ECt(e,t,r){var i=r.xref+r.yref;u2e.setClipUrl(e,"clip"+t._fullLayout._uid+i,t)}function kCt(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 CCt(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&&(l2e(e),delete e._fullLayout._activeSelectionIndex,uF(e))}}});var p2e=W((_Nr,d2e)=>{function DCt(){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}d2e.exports=DCt});var g2e=W((wNr,v2e)=>{function FCt(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}v2e.exports=FCt});var y2e=W((TNr,m2e)=>{var LCt={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}};m2e.exports=LCt});var b2e=W((ANr,x2e)=>{var QA=y2e();function PCt(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 M=a.getHead();if(r&&r.vert(M.pt[0]),M.isStart){let F=function(){if(A){var P=_(M,A);if(P)return P}return T?_(M,T):!1};var D=F;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 y=F();if(y){if(e){var E;M.seg.myFill.below===null?E=!0:E=M.seg.myFill.above!==M.seg.myFill.below,E&&(y.seg.myFill.above=!y.seg.myFill.above)}else y.seg.otherFill=M.seg.myFill;r&&r.segmentUpdate(y.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=d,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:d,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(QA.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(m.exists(C.prev)&&m.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(d){for(var v,m=d[d.length-1],g=0;g{function ICt(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 RCt={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)}};T2e.exports=RCt});var S2e=W((ENr,M2e)=>{var zCt={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 BCt=p2e(),qCt=g2e(),E2e=b2e(),OCt=w2e(),tM=A2e(),k2e=S2e(),wd=!1,rM=qCt(),jh;jh={buildLog:function(e){return e===!0?wd=BCt():e===!1&&(wd=!1),wd===!1?!1:wd.list},epsilon:function(e){return rM.epsilon(e)},segments:function(e){var t=E2e(!0,rM,wd);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=E2e(!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:OCt(e.segments,rM,wd),inverted:e.inverted}},polygonFromGeoJSON:function(e){return k2e.toPolygon(jh,e)},polygonToGeoJSON:function(e){return k2e.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);C2e.exports=jh});var L2e=W((CNr,F2e)=>{F2e.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((DNr,P2e)=>{"use strict";var zj=gD().dot,fF=(ra(),Pt(ia)).BADNUM,hF=P2e.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],M=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 I2e={};Jn(I2e,{BENDPX:()=>NCt,MINSELECT:()=>UCt,SELECTDELAY:()=>VCt,SELECTID:()=>GCt});var NCt,UCt,VCt,GCt,R2e=Ci(()=>{"use strict";NCt=1.5,UCt=12,VCt=100,GCt="-select"});var ixe=W((FNr,rxe)=>{"use strict";var z2e=D2e(),HCt=L2e(),sM=xi(),jCt=Qi().dashStyle,aM=ti(),$Ct=Is(),WCt=ah().makeEventData,hM=_1(),YCt=hM.freeMode,XCt=hM.rectMode,lM=hM.drawMode,Nj=hM.openMode,Uj=hM.selectMode,B2e=Wy(),q2e=($A(),Pt(jA)),G2e=K7(),H2e=Ly().clearOutline,j2e=Hy(),Bj=j2e.handleEllipse,ZCt=j2e.readPaths,KCt=Y7().newShapes,JCt=uj(),QCt=Rj().activateLastSelection,pF=tt(),e8t=pF.sorterAsc,$2e=nM(),oM=CD(),Td=Ls().getFromId,t8t=GA(),r8t=JA().redrawReglTraces,vF=(R2e(),Pt(I2e)),S1=vF.MINSELECT,i8t=$2e.filter,Vj=$2e.tester,Gj=H7(),O2e=Gj.p2r,n8t=Gj.axValue,a8t=Gj.getTransform;function Hj(e){return e.subplot!==void 0}function o8t(e,t,r,i,n){var a=!Hj(i),o=YCt(n),s=XCt(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=a8t(_),M=t-w.left,x=r-w.top;v._calcInverseTransform(d);var A=pF.apply3DTransform(v._invTransform)(M,x);M=A[0],x=A[1];var T=v._invScaleX,y=v._invScaleY,E=M,S=x,C="M"+M+","+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;Y2e(e,d,i),o&&(L=i8t([[M,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":jCt(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;Q2e(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&&W2e(ge,d,i.xaxes,i.yaxes,i.subplot,i,G),Ee==="event"&&fM(d,void 0);$Ct.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 W2e(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,M;if(f8t(s)){Y2e(e,t,a),h=gF(t,r,i,n);var x=h8t(s,h),A=x.pointNumbers.length>0;if(A?d8t(h,x):p8t(h)&&(w=U2e(x))){for(o&&o.remove(),M=0;M=0}function c8t(e){return e._fullLayout._activeSelectionIndex>=0}function uM(e,t){var r=e.dragmode,i=e.plotinfo,n=e.gd;u8t(n)&&n._fullLayout._deactivateShape(n),c8t(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=KCt(u,e)),c&&sM.call("_guiRelayout",n,{shapes:c});var f;l&&!Hj(e)&&(f=JCt(u,e)),f&&(n._fullLayout._noEmitSelectedAtStart=!0,sM.call("_guiRelayout",n,{selections:f}).then(function(){t&&QCt(n)})),n._fullLayout._outlining=!1}}i.selection={},i.selection.selectionDefs=e.selectionDefs=[],i.selection.mergedPolygons=e.mergedPolygons=[]}function N2e(e){return e._id}function gF(e,t,r,i){if(!e.calcdata)return[];var n=[],a=t.map(N2e),o=r.map(N2e),s,l,u;for(u=0;u0,a=n?i[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function d8t(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=V2e(e,!0);if(ue.length){var ge=ue[0].xref,Ee=ue[0].yref;if(ge&&Ee){var xe=exe(ue),ce=txe([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,m8t(s,l,c)||Q2e(e,s,l,i),te&&(j.points.length?fM(e,j):Wj(e)),h._deselect=!1}return{eventData:j,selectionTesters:r}}function g8t(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";nxe.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:()=>w8t});function w8t(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((INr,sxe)=>{"use strict";var axe=Yj(),oxe=jo(),mF=(Zl(),Pt(Xl)),T8t=Ra().templatedArray,PNr=(pM(),Pt(dM));sxe.exports=T8t("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:oxe({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:axe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:axe.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:oxe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var E1={};Jn(E1,{PTS_LINESONLY:()=>A8t,eventDataKeys:()=>k8t,maxScreensAway:()=>E8t,minTolerance:()=>M8t,toleranceGrowth:()=>S8t});var A8t,M8t,S8t,E8t,k8t,k1=Ci(()=>{"use strict";A8t=20,M8t=.2,S8t=10,E8t=20,k8t=[]});var C1=W((RNr,lxe)=>{"use strict";lxe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var Ws=W((zNr,gxe)=>{"use strict";var uxe=Ts().axisHoverFormat,{hovertemplateAttrs:C8t,texttemplateAttrs:D8t,templatefallbackAttrs:cxe}=Wa(),fxe=Fo(),F8t=jo(),hxe=zu().dash,L8t=zu().pattern,P8t=Qi(),I8t=(k1(),Pt(E1)),vM=an().extendFlat,R8t=C1();function dxe(e){return{valType:"any",dflt:0,editType:"calc"}}function pxe(e){return{valType:"any",editType:"calc"}}function vxe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}gxe.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:dxe("x"),yperiod:dxe("y"),xperiod0:pxe("x0"),yperiod0:pxe("y0"),xperiodalignment:vxe("x"),yperiodalignment:vxe("y"),xhoverformat:uxe("x"),yhoverformat:uxe("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:D8t(),texttemplatefallback:cxe({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:C8t({},{keys:I8t.eventDataKeys}),hovertemplatefallback:cxe(),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({},hxe,{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:R8t(!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:L8t,marker:vM({symbol:{valType:"enumerated",values:P8t.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({},hxe,{arrayOk:!0}),editType:"calc"},fxe("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"},fxe("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:F8t({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var Xj=W((qNr,xxe)=>{"use strict";var mxe=Xy(),yxe=Ws().line,z8t=zu().dash,yF=an().extendFlat,B8t=hs().overrideAll,q8t=Ra().templatedArray,BNr=(pM(),Pt(dM));xxe.exports=B8t(q8t("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:yF({},mxe.xref,{}),yref:yF({},mxe.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:yxe.color,width:yF({},yxe.width,{min:1,dflt:1}),dash:yF({},z8t,{dflt:"dot"})}}),"arraydraw","from-root")});var Txe=W((ONr,wxe)=>{"use strict";var bxe=tt(),xF=Yi(),O8t=tf(),N8t=Xj(),_xe=Wy();wxe.exports=function(t,r){O8t(t,r,{name:"selections",handleItemDefaults:U8t});for(var i=r.selections,n=0;n{"use strict";Axe.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((UNr,kxe)=>{"use strict";var V8t=xi(),Sxe=tt(),Exe=Ls();kxe.exports=function(t){return function(i,n){var a=i[t];if(Array.isArray(a))for(var o=V8t.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 Cxe=Rj(),mM=ixe();Dxe.exports={moduleType:"component",name:"selections",layoutAttributes:Xj(),supplyLayoutDefaults:Txe(),supplyDrawNewSelectionDefaults:Mxe(),includeBasePlot:gM()("selections"),draw:Cxe.draw,drawOne:Cxe.drawOne,reselect:mM.reselect,prepSelect:mM.prepSelect,clearOutline:mM.clearOutline,clearSelectionsCache:mM.clearSelectionsCache,selectOnClick:mM.selectOnClick}});var i$=W((GNr,Xxe)=>{"use strict";var t$=gi(),Ad=tt(),Fxe=Ad.numberFormat,G8t=M7(),bF=xi(),Oxe=Ad.strTranslate,H8t=ao(),Kj=ti(),Zy=Qi(),j8t=Is(),Lxe=Yi(),$8t=Xp(),W8t=Ef(),Nxe=_1(),_F=Nxe.selectingOrDrawing,Y8t=Nxe.freeMode,X8t=(Jl(),Pt(Kl)).FROM_TL,Z8t=GA(),K8t=JA().redrawReglTraces,J8t=Qo(),Jj=Ls().getFromId,Q8t=xu().prepSelect,eDt=xu().clearOutline,tDt=xu().selectOnClick,Zj=Ej(),r$=(Zl(),Pt(Xl)),Pxe=r$.MINDRAG,oh=r$.MINZOOM,Ixe=!0;function rDt(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,M,x,A,T,y,E,S,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&&tDt(me,Le,v,m,t.id,O),Ne.indexOf("event")>-1&&j8t.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=iDt(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(H8t.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)})}}W8t.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=Gxe(l,J,g,w,N),j=Hxe(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(M.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&&S===(dt.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function aDt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Gxe(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",Oxe(r,i)).attr("d",n+"Z")}function Hxe(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",Oxe(t,r)).attr("d","M0,0Z")}function jxe(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"),$xe(e,t,n,a)}function $xe(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 Wxe(e){Ixe&&e.data&&e._context.showTips&&(Ad.notifier(Ad._(e,"Double-click to zoom back out"),"long",e),Ixe=!1)}function oDt(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 sDt(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 Bxe(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 lDt=gi(),TF=Is(),uDt=Ef(),cDt=Xp(),Jp=i$().makeDragBox,Nu=(Zl(),Pt(Xl)).DRAGGERSIZE;AF.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){lDt.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=Jp(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,uDt.unhover(t,h))},t._context.showAxisDragHandles&&(Jp(t,o,s._offset-Nu,l._offset-Nu,Nu,Nu,"n","w"),Jp(t,o,s._offset+s._length,l._offset-Nu,Nu,Nu,"n","e"),Jp(t,o,s._offset-Nu,l._offset+l._length,Nu,Nu,"s","w"),Jp(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),Jp(t,o,s._offset+s._length*.1,c,s._length*.8,Nu,"","ew"),Jp(t,o,s._offset,c,s._length*.1,Nu,"","w"),Jp(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),Jp(t,o,f,l._offset+l._length*.1,Nu,l._length*.8,"ns",""),Jp(t,o,f,l._offset+l._length*.9,Nu,l._length*.1,"s",""),Jp(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";cDt(t._draggers,r)}});var Jxe=W((jNr,Kxe)=>{"use strict";var Zxe=xi();Kxe.exports=function(t){for(var r=Zxe.layoutArrayContainers,i=Zxe.layoutArrayRegexes,n=t.split("[")[0],a,o,s=0;s{"use strict";var fDt=my(),a$=vD(),yM=qg(),hDt=SD().sorterAsc,o$=xi();xM.containerArrayMatch=Jxe();var dDt=xM.isAddVal=function(t){return t==="add"||fDt(t)},Qxe=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(Qxe(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(hDt),v=r.get(),m=v||[],g=a(h,o).get(),w=[],_=-1,b=m.length,M,x,A,T,y,E,S,C;for(M=0;Mm.length-(S?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),Qxe(E)?w.push(A):S?(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;M--)m.splice(w[M],1),g&&g.splice(w[M],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=[],M=0;M=_));M++)k.push(A);for(M=_;M{"use strict";var nbe=hn(),abe=xi(),Lf=tt(),bM=Qo(),obe=Ls(),_M=obe.cleanId,pDt=obe.getFromTrace,s$=abe.traceIs,vDt=["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=ibe(t);r;){if(r in e)return!0;r=ibe(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(),yDt=hn(),xDt=fG(),di=tt(),ts=di.nestedProperty,c$=ww(),sh=epe(),Sd=xi(),zF=Mw(),In=Qo(),Pf=Yi(),bDt=LH(),_Dt=ac(),EF=Qi(),wDt=ti(),TDt=n$().initInteractions,ADt=(md(),Pt(gd)),MDt=xu().clearOutline,hbe=_y().dfltConfig,SF=ebe(),zl=sbe(),To=JA(),Ky=hs(),SDt=(Zl(),Pt(Xl)).AX_NAME_PATTERN,u$=0,lbe=5;function EDt(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)}pbe(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)&&(KDt(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,S=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()});S.observe(e),e._clearResponsive=()=>S.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 CDt(e){return di.extendFlat(hbe,e)}function dbe(e,t){try{e._fullLayout._paper.style("background",t)}catch(r){di.error(r)}}function DDt(e,t){var r=wDt.combine(t,"white");dbe(e,r)}function pbe(e,t){if(!e._context){e._context=di.extendDeep({},hbe);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 vbe(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 PDt(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[S]!="string";)S--;var C=T.parts[S],k=T.parts[S-1]+"."+C,D=T.parts.slice(0,S).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(Abe))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(BDt)&&ts(i,D+"._inputDomain").set(null);if(C==="type"){M=F;var $=P.type==="linear"&&y==="log",X=P.type==="log"&&y==="linear";if($||X){if(!M||!M.range)_(D+".autorange",!0);else if(P.autorange)$&&(M.range=M.range[1]>M.range[0]?[1,2]:[2,1]);else{var K=M.range[0],G=M.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(SDt)){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,_),!D&&q&&y&&(y.range!==void 0||y.autorange!==void 0)&&(x(`${C}.range`),q._inputRange=null)}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){M=Pf.getFromId(e,Q);var te=M&&M._constraintGroup;if(te){m.calc=!0;for(var ue in te)b[ue]||(Pf.getFromId(e,ue)._constraintShrinkable=!0)}}(Ebe(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 NDt(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),VDt(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=jDt(e,l,h,p,d),m=v.newDataRevision,g=HDt(e,s,f,p,d,m);if(Ebe(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 HDt(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=[],M=t==null,x=Array.isArray(t),A=!M&&!x&&di.isPlainObject(t);if(A)b.push({type:"object",data:g(di.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 WDt(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 XDt(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 ZDt(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 KDt(e){var t=CF.select(e),r=e._fullLayout;if(r._calcInverseTransform=ZDt,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(ADt.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=$Dt;Fa.addFrames=WDt;Fa.deleteFrames=YDt;Fa.addTraces=bbe;Fa.deleteTraces=_be;Fa.extendTraces=ybe;Fa.moveTraces=f$;Fa.prependTraces=xbe;Fa.newPlot=LDt;Fa._doPlot=EDt;Fa.purge=XDt;Fa.react=GDt;Fa.redraw=FDt;Fa.relayout=wM;Fa.restyle=LF;Fa.setPlotConfig=CDt;Fa.update=IF;Fa._guiRelayout=h$(wM);Fa._guiRestyle=h$(LF);Fa._guiUpdate=h$(IF);Fa._storeDirectGUIEdit=zDt});var em=W(Ed=>{"use strict";var JDt=xi();Ed.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("map"))?500:0};Ed.getRedrawFunc=function(e){return function(){JDt.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 kbe=window.URL||window.webkitURL;Ed.createObjectURL=function(e){return kbe.createObjectURL(e)};Ed.revokeObjectURL=function(e){return kbe.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=QDt(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 QDt(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),n=0;n{"use strict";var p$=gi(),KNr=tt(),e7t=Qi(),t7t=ti(),JNr=(md(),Pt(gd)),d$=/"/g,Cb="TOBESTRIPPED",r7t=new RegExp(`("${Cb})|(${Cb}")|("${Cb})|(${Cb}")`,"g"),i7t=["&","&","&",""",""",""","'","'","'"],n7t=["<","<","<"],a7t=[">",">",">"];function o7t(e){let t=p$.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,i=>{let n=i.toLowerCase();return i7t.includes(n)?i:n7t.includes(n)?"<":a7t.includes(n)?">":i.includes("<")||i.includes(">")?"":t.html(i).text()});return t.remove(),r}function s7t(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}Cbe.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(e7t.setRect,0,0,s,l).call(t7t.fill,n.paper_bgcolor);var c=n._basePlotModules||[];for(u=0;u{"use strict";var l7t=tt(),u7t=ib().EventEmitter,AM=em();function c7t(e){var t=e.emitter||new u7t,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"||l7t.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}Dbe.exports=c7t});var g$=W((tUr,Pbe)=>{"use strict";var Fbe=hn(),Lbe=qF(),f7t=Qo(),D1=tt(),MM=em(),h7t=OF(),d7t=NF(),p7t=N6().version,v$=(DV(),Pt(CV)).default;function v7t(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&&Fbe(a.width)&&(m.width=a.width),f?m.height=f:t.height===null&&Fbe(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=h7t(v,u,h),y=v._fullLayout.width,E=v._fullLayout.height;function S(){Lbe.purge(v),document.body.removeChild(v)}if(u==="full-json"){var C=f7t.graphJson(v,!1,"object",!0,!0);return C.version=p7t,C=JSON.stringify(C),S(),x(d?C:MM.encodeJSON(C))}if(S(),u==="svg")return x(d?T:MM.encodeSVG(T));var k=document.createElement("canvas");k.id=D1.randstr(),d7t({format:u,width:y,height:E,scale:h,canvas:k,svg:T,promise:!0}).then(x).catch(A)})}function M(x){return d?x.replace(MM.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,A){Lbe.newPlot(v,r,m,g).then(w).then(_).then(b).then(function(T){x(M(T))}).catch(function(T){A(T)})})}Pbe.exports=v7t});var zbe=W((rUr,Rbe)=>{"use strict";var kd=tt(),g7t=Qo(),m7t=Mw(),y7t=_y().dfltConfig,Qp=kd.isPlainObject,Fb=Array.isArray,m$=kd.isArrayOrTypedArray;Rbe.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var i=m7t.get(),n=[],a={_context:kd.extendFlat({},y7t)},o,s;Fb(t)?(a.data=kd.extendDeep([],t),o=t):(a.data=[],o=[],n.push(Uu("array","data"))),Qp(r)?(a.layout=kd.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&n.push(Uu("object","layout"))),g7t.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,M,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);_++)M=w?m[b][_]:m,x=c[b][_],A=f[b][_],kd.validate(x,M)?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 M7t=tt(),VF=em();function S7t(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(M7t.isSafari()){var c=r==="svg"?",":";base64,";return VF.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}Bbe.exports=S7t});var y$=W((nUr,Vbe)=>{"use strict";var GF=tt(),Obe=ao(),E7t=g$(),k7t=qbe(),Nbe=em(),Ube=40;function C7t(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=E7t(e,t),o=t.filename||e.fn;if(!o){let l=Nbe.getPlotTitle(e);if(l&&!Obe.matchTex(l))o=GF.slugify(l,Ube);else{let u=Nbe.getPlotSubtitle(e);u&&!Obe.matchTex(u)&&(o=GF.slugify(u,Ube))}}var s=o||"plot-image";s+="."+t.format.replace("-","."),a.then(function(l){return r&&(r._snapshotInProgress=!1),k7t(l,s,t.format)}).then(function(l){i(l)}).catch(function(l){r&&(r._snapshotInProgress=!1),n(l)})})}Vbe.exports=C7t});var Wbe=W(x$=>{"use strict";var $h=tt(),Wh=$h.isPlainObject,Gbe=Mw(),Hbe=Qo(),D7t=Ja(),jbe=Ra(),$be=_y().dfltConfig;x$.makeTemplate=function(e){e=$h.isPlainObject(e)?e:$h.getGraphDiv(e),e=$h.extendDeep({_context:$be},{data:e.data,layout:e.layout}),Hbe.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,L7t.bind(null,p));var v=$h.coerce(p,{},D7t,"type"),m=i.data[v];m||(m=i.data[v]=[]),m.push(d)}),SM(r,i.layout,F7t.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 M in _)if(M.charAt(0)!=="_"){var x=_[M],A=Cd(_,M,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)&&P7t(x)&&w(x,A)}}if(w({data:l,layout:s},""),o.length)return o.map(I7t)};function P7t(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 R7t=hA().getGraphDiv,z7t=rF().eraseActiveShape;Ss.deleteActiveShape=function(e){return z7t(R7t(e))};Ss.toImage=g$();Ss.validate=zbe();Ss.downloadImage=y$();var Ybe=Wbe();Ss.makeTemplate=Ybe.makeTemplate;Ss.validateTemplate=Ybe.validateTemplate});var Lb=W((sUr,Zbe)=>{"use strict";var b$=tt(),B7t=xi();Zbe.exports=function(t,r,i,n){var a=n("x"),o=n("y"),s,l=B7t.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 ev=W((lUr,Qbe)=>{"use strict";var Kbe=tt().dateTick0,q7t=(ra(),Pt(ia)),O7t=q7t.ONEWEEK;function Jbe(e,t){return e%O7t===0?Kbe(t,1):Kbe(t,0)}Qbe.exports=function(t,r,i,n,a){if(a||(a={x:!0,y:!0}),a.x){var o=n("xperiod");o&&(n("xperiod0",Jbe(o,r.xcalendar)),n("xperiodalignment"))}if(a.y){var s=n("yperiod");s&&(n("yperiod0",Jbe(s,r.ycalendar)),n("yperiodalignment"))}}});var r_e=W((uUr,t_e)=>{"use strict";var e_e=["orientation","groupnorm","stackgaps"];t_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 i_e=ti(),n_e=Sc().hasColorscale,a_e=Bu(),N7t=Wo();o_e.exports=function(t,r,i,n,a,o={}){var s=N7t.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),n_e(t,"marker")&&a_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=i_e.background:u=i_e.defaultLine,a("marker.line.color",u),n_e(t,"marker.line")&&a_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 tv=W((fUr,s_e)=>{"use strict";var U7t=tt().isArrayOrTypedArray,V7t=Sc().hasColorscale,G7t=Bu();s_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),V7t(t,"line"))G7t(t,r,n,a,{prefix:"line.",cLetter:"c"});else{var l=(U7t(s)?!1:s)||i;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var Jw=W((hUr,l_e)=>{"use strict";l_e.exports=function(t,r,i){var n=i("line.shape");n==="spline"&&i("line.smoothing")}});var rv=W((dUr,u_e)=>{"use strict";var H7t=tt();u_e.exports=function(e,t,r,i,n){n=n||{},i("textposition"),H7t.coerceFont(i,"textfont",n.font||r.font,n),n.noSelect||(i("selected.textfont.color"),i("unselected.textfont.color"))}});var F1=W((pUr,f_e)=>{"use strict";var $F=ti(),c_e=tt().isArrayOrTypedArray;function j7t(e){for(var t=$F.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var h_e=tt(),$7t=xi(),W7t=Ws(),Y7t=(k1(),Pt(E1)),Qw=Wo(),X7t=Lb(),Z7t=ev(),K7t=r_e(),J7t=Dd(),Q7t=tv(),d_e=Jw(),eFt=rv(),tFt=F1(),rFt=tt().coercePattern;p_e.exports=function(t,r,i,n){function a(p,d){return h_e.coerce(t,r,W7t,p,d)}var o=X7t(t,r,n,a);if(o||(r.visible=!1),!!r.visible){Z7t(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=K7t(t,r,n,a);n.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var iFt=kb().getAxisGroup;g_e.exports=function(t,r,i,n,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=iFt(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((mUr,m_e)=>{"use strict";var nFt=tt(),aFt=Pb(),oFt=Ws();m_e.exports=function(t,r){var i,n,a,o=r.scattermode;function s(h){return nFt.coerce(n._input,n,oFt,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 x_e=W((yUr,y_e)=>{"use strict";var sFt=tt(),lFt=UD();y_e.exports=function(e,t){function r(n,a){return sFt.coerce(e,t,lFt,n,a)}var i=t.barmode==="group";t.scattermode==="group"&&r("scattergap",i?t.bargap:.2)}});var iv=W((xUr,__e)=>{"use strict";var uFt=hn(),b_e=tt(),cFt=b_e.dateTime2ms,WF=b_e.incrementMonth,fFt=(ra(),Pt(ia)),hFt=fFt.ONEAVGMONTH;__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(uFt(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=cFt(h,u)||0,d=[],v=[],m=[],g=n.length,w=0;w_;)x=WF(x,-s,u);for(;x<=_;)x=WF(x,s,u);M=WF(x,-s,u)}else{for(b=Math.round((_-p)/o),x=p+b*o;x>_;)x-=o;for(;x<=_;)x+=o;M=x-o}d[w]=c?M:f?x:(M+x)/2,v[w]=M,m[w]=x}return{vals:d,starts:v,ends:m}}});var Fd=W((bUr,T_e)=>{"use strict";var w$=Sc().hasColorscale,T$=rf(),w_e=Wo();T_e.exports=function(t,r){w_e.hasLines(r)&&w$(r,"line")&&T$(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),w_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((_Ur,A_e)=>{"use strict";var ol=tt();A_e.exports=function(t,r){for(var i=0;i{"use strict";var M_e=tt();S_e.exports=function(t,r){M_e.isArrayOrTypedArray(r.selectedpoints)&&M_e.tagSelected(t,r)}});var Ld=W((TUr,P_e)=>{"use strict";var E_e=hn(),M$=tt(),EM=Yi(),k_e=iv(),A$=(ra(),Pt(ia)).BADNUM,S$=Wo(),dFt=Fd(),pFt=L1(),vFt=C0();function gFt(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=k_e(t,i,"x",a),l=k_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,M;F_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=D_e(t,f);C_e(e,t,i,n,u,c,y)}var E=!!t.xperiodalignment,S=!!t.yperiodalignment;for(g=0;gg&&h[_].gap;)_--;for(M=h[_].s,w=h.length-1;w>_;w--)h[w].s=M;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";I_e.exports=YF;var mFt=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;ayFt,eventDataKeys:()=>xFt});var yFt,xFt,Qy=Ci(()=>{"use strict";yFt=3,xFt=["value","label"]});var Ib=W((MUr,O_e)=>{"use strict";var Pd=hn(),{isArrayOrTypedArray:tm}=tt(),{BADNUM:e5}=(ra(),Pt(ia)),bFt=xi(),kM=Yi(),{getAxisGroup:_Ft}=kb(),XF=R_e(),{TEXTPAD:wFt}=(Qy(),Pt(Jy)),{LINE_SPACING:TFt}=(Jl(),Pt(Kl)),{BR_TAG_ALL:AFt}=ao();function MFt(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*TFt*r+wFt;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 RFt(e,t,r,i){for(var n=t5(i),a=0;a{"use strict";var N_e=Ld(),U_e=Ib().setGroupPositions;function BFt(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 OFt=Qi(),W_e=(ra(),Pt(ia)),CM=W_e.BADNUM,Y_e=W_e.LOG_CLIP,H_e=Y_e+.5,j_e=Y_e-.5,ZF=tt(),NFt=ZF.segmentsIntersect,$_e=ZF.constrain,I$=(k1(),Pt(E1));X_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(_),M=0,x,A,T,y,E,S,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?H_e:j_e)/(a._m*l*(a._m>0?H_e:j_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[$_e(Ke[0],V,Y),$_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[M-1][0],Ue=pt===b[M-1][1];if(!(Oe&&Ue))if(M>1){var je=bt===b[M-2][0],$e=pt===b[M-2][1];Oe&&(bt===V||bt===Y)&&je?$e?M--:b[M-1]=Ke:Ue&&(pt===H||pt===j)&&$e?je?M--:b[M-1]=Ke:b[M++]=Ke}else b[M++]=Ke}function pe(Ke){b[M-1][0]!==Ke[0]&&b[M-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(!M)b[M++]=[te||Ke[0],ue||Ke[1]];else if(xe){var bt=ae(xe,Ke);bt.length>1&&(pe(bt[0]),b[M++]=bt[1])}else ce=ae(b[M-1],Ke)[0],b[M++]=ce;var pt=b[M-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[M++]=Ke}for(x=0;x<_;x++)if(A=$(x),!!A){for(M=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&&(M===0||M===_-1))&&Fq(S,ze))break;T=S,L=D[0]*k[0]+D[1]*k[1],L>P?(P=L,y=S,C=!1):L=t.length||!S)break;Ce(S),A=S}}xe&&re([ge||xe[0],Ee||xe[1]]),g.push(b.slice(0,M))}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 Z_e={tonextx:1,tonexty:1,tonext:1};K_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 nv=gi(),UFt=xi(),DM=tt(),r5=DM.ensureSingle,Q_e=DM.identity,yl=Qi(),i5=Wo(),VFt=R$(),GFt=z$(),KF=nM().tester;e3e.exports=function(t,r,i,n,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=GFt(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(),HFt(t,s,r),c){o&&(l=o());var h=nv.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){J_e(t,d,r,p,f,this,a)})})}else s.each(function(p,d){J_e(t,d,r,p,f,this,a)});u&&s.exit().remove(),n.selectAll("path:not([d])").remove()};function HFt(e,t,r){t.each(function(i){var n=r5(nv.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,Q_e);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){a[l]=r5(nv.select(this),"path","js-fill")})})}function J_e(e,t,r,i,n,a,o){var s=e._context.staticPlot,l;jFt(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=nv.select(a),m=r5(v,"g","errorbars"),g=r5(v,"g","lines"),w=r5(v,"g","points"),_=r5(v,"g","text");if(UFt.getComponentMethod("errorbars","plot")(e,m,r,o),p.visible!==!0)return;c(v).style("opacity",p.opacity);var b,M,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=[],S=p._prevtrace,C=null,k=null;S&&(y=S._prevRevpath||"",M=S._nextFill,E=S._ownPolygons,C=S._fillsegments,k=S._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"){M&&M.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=VFt(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";t3e.exports={container:"marker",min:"cmin",max:"cmax"}});var QF=W((FUr,r3e)=>{"use strict";var JF=Yi();r3e.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((LUr,i3e)=>{"use strict";var B$=gi(),a5=Qi(),$Ft=xi();function WFt(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),$Ft.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 YFt(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))}i3e.exports={style:WFt,stylePoints:q$,styleText:O$,styleOnSelect:YFt}});var s5=W((PUr,n3e)=>{"use strict";var o5=ti(),XFt=Wo();n3e.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)&&XFt.hasLines(t)&&t.line.width?i:t.fillcolor)}});var l5=W((IUr,o3e)=>{"use strict";var eL=tt(),a3e=Is(),ZFt=xi(),KFt=s5(),N$=ti(),JFt=eL.fillText;o3e.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((RUr,l3e)=>{"use strict";var s3e=Wo();l3e.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&&!s3e.hasMarkers(s)&&!s3e.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";u3e.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var V$=W((BUr,d3e)=>{"use strict";var tL=xi().traceIs,U$=Rw();d3e.exports=function(t,r,i,n){i("autotypenumbers",n.autotypenumbersDflt);var a=i("type",(n.splomStash||{}).type);a==="-"&&(QFt(r,n.data),r.type==="-"?r.type="linear":t.type=r.type)};function QFt(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n;r.indexOf("scene")!==-1&&(r=i);var a=eLt(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,h3e(a,i)){var u=f3e(a),c=[];for(n=0;n0&&(n["_"+r+"axes"]||{})[t])return n;if((n[r+"axis"]||r)===t){if(h3e(n,r))return n;if((n[r]||[]).length||n[r+"0"])return n}}}function f3e(e){return{v:"x",h:"y"}[e.orientation||"v"]}function h3e(e,t){var r=f3e(e),i=tL(e,"box-violin");return i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var rL=W((qUr,p3e)=>{"use strict";var tLt=Tc().isTypedArraySpec;function rLt(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||tLt(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=rLt(r,n).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var FM=W((OUr,g3e)=>{"use strict";var v3e=ti(),iLt=Yl(),nLt=tt();g3e.exports=function(t,r,i,n){n=n||{};var a=n.dfltColor;function o(T,y){return nLt.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=v3e.mix(a,n.bgColor,n.blend||iLt.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=v3e.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"),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 PM=W((NUr,w3e)=>{"use strict";var m3e=hn(),aLt=xi(),LM=tt(),oLt=Ra(),sLt=tf(),G$=ac(),y3e=ub(),x3e=Cw(),lLt=Py(),uLt=Iy(),cLt=rL(),fLt=FM(),hLt=LH(),b3e=g1(),iL=(Zl(),Pt(Xl)).WEEKDAY_PATTERN,dLt=(Zl(),Pt(Xl)).HOUR_PATTERN;w3e.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=aLt.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"),b3e(r,a),hLt(t,r,i,n),cLt(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(uLt(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}}),y3e(t,r,i,f);var w=n.hasMinor;if(w&&(oLt.newContainer(r,"minor"),y3e(t,r,i,f,{isMinor:!0})),lLt(t,r,i,f,n),x3e(t,r,i,n),w){var _=n.isMinor;n.isMinor=!0,x3e(t,r,i,n),n.isMinor=_}fLt(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 M=i("showdividers");M&&(i("dividercolor"),i("dividerwidth"))}if(f==="date")if(sLt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:pLt}),!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=_3e(a[s]),l){o=iL;break}}var u=i("pattern",o);if(u===iL)for(s=0;s<2;s++)l=_3e(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(!m3e(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 dLt:if(!m3e(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 gLt=hn(),nL=tt();T3e.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||(gLt(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),s==="x"?(i("domainpad.left"),i("domainpad.right")):(i("domainpad.top"),i("domainpad.bottom")),r.tickmode==="sync"&&(r.tickmode="auto")}return i("layer"),r}});var L3e=W((VUr,F3e)=>{"use strict";var zb=tt(),A3e=ti(),mLt=ah().isUnifiedHover,yLt=aj(),M3e=Ra(),xLt=pw(),S3e=ac(),bLt=V$(),E3e=PM(),_Lt=kb(),k3e=aL(),j$=Ls(),P1=j$.id2name,C3e=j$.name2id,wLt=(Zl(),Pt(Xl)).AX_ID_PATTERN,D3e=xi(),oL=D3e.traceIs,H$=D3e.getComponentMethod;function sL(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}F3e.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 TLt=gi(),P3e=xi(),lL=tt(),D0=Qi(),uL=Yi();I3e.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,M=_._length,x=b._length,A=!!m.xr1,T=!!m.yr1,y=[];if(A){var E=lL.simpleMap(m.xr0,_.r2l),S=lL.simpleMap(m.xr1,_.r2l),C=E[1]-E[0],k=S[1]-S[0];y[0]=(E[0]*(1-g)+g*S[0]-E[0])/(E[1]-E[0])*M,y[2]=M*(1-g+g*k/C),_.range[0]=_.l2r(E[0]*(1-g)+g*S[0]),_.range[1]=_.l2r(E[1]*(1-g)+g*S[1])}else y[0]=0,y[2]=M;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?M/y[2]:1,I=T?x/y[3]:1,B=A?y[0]:0,O=T?y[1]:0,$=A?y[0]/y[2]*M: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(),z3e=xi(),Bb=tt(),ALt=Qo(),MLt=Qi(),B3e=Mc().getModuleCalcData,e2=Ls(),av=(Zl(),Pt(Xl)),SLt=(md(),Pt(gd)),eo=Bb.ensureSingle;function cL(e,t,r){return Bb.ensureSingle(e,t,r,function(i){i.datum(r)})}var qb=av.zindexSeparator;af.name="cartesian";af.attr=["xaxis","yaxis"];af.idRoot=["x","y"];af.idRegex=av.idRegex;af.attrRegex=av.attrRegex;af.attributes=c3e();af.layoutAttributes=ac();af.supplyLayoutDefaults=L3e();af.transitionAxes=R3e();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&&(M+=qb+b),_.push(s+M),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 N3e(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=fL.select(this);c.remove(),U3e(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();V3e.exports={hasLines:hL.hasLines,hasMarkers:hL.hasMarkers,hasText:hL.hasText,isBubble:hL.isBubble,attributes:Ws(),layoutAttributes:UD(),supplyDefaults:v_e(),crossTraceDefaults:_$(),supplyLayoutDefaults:x_e(),calc:Ld().calc,crossTraceCalc:G_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 $3e=W(($Ur,j3e)=>{"use strict";var kLt=gi(),CLt=ti(),H3e=Yj(),$$=tt(),DLt=$$.strScale,FLt=$$.strRotate,LLt=$$.strTranslate;j3e.exports=function(t,r,i){var n=t.node(),a=H3e[i.arrowhead||0],o=H3e[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 M=h*Math.cos(v),x=h*Math.sin(v);p.x-=M,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 W3e=gi(),W$=xi(),PLt=Qo(),r2=tt(),Y$=r2.strTranslate,RM=Yi(),Ob=ti(),rm=Qi(),Y3e=Is(),X$=ao(),Z$=Xp(),IM=Ef(),ILt=Ra().arrayEditor,RLt=$3e();K3e.exports={draw:zLt,drawOne:X3e,drawRaw:Z3e};function zLt(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),S.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=+S.attr("width"),Ot=+S.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(RLt(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 iwe=W((YUr,rwe)=>{"use strict";var J3e=tt(),BLt=xi(),Q3e=Ra().arrayEditor;rwe.exports={hasClickToShow:qLt,onClick:OLt};function qLt(e,t){var r=twe(e,t);return r.on.length>0||r.explicitOff.length>0}function OLt(e,t){var r=twe(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();nwe.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 owe=W((ZUr,awe)=>{"use strict";var Q$=tt(),Nb=Yi(),NLt=tf(),ULt=J$(),VLt=Xy();awe.exports=function(t,r){NLt(t,r,{name:"annotations",handleItemDefaults:GLt})};function GLt(e,t,r){function i(_,b){return Q$.coerce(e,t,VLt,_,b)}var n=i("visible"),a=i("clicktoshow");if(n||a){ULt(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 uwe=W((KUr,lwe)=>{"use strict";var eW=tt(),Ub=Yi(),HLt=dL().draw;lwe.exports=function(t){var r=t._fullLayout,i=eW.filterVisible(r.annotations);if(i.length&&t._fullData.length)return eW.syncOrAsync([HLt,jLt],t)};function jLt(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"&&swe(r,i),o==="range"&&swe(r,n)})}function swe(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 fwe=W((JUr,cwe)=>{"use strict";var $Lt=hn(),WLt=N8();cwe.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=WLt(d,r.range):v=Math.pow(10,d),$Lt(v)||(v=null),n(c+p,v)}for(var h=0;h{"use strict";var tW=dL(),hwe=iwe();dwe.exports={moduleType:"component",name:"annotations",layoutAttributes:Xy(),supplyLayoutDefaults:owe(),includeBasePlot:gM()("annotations"),calcAutorange:uwe(),draw:tW.draw,drawOne:tW.drawOne,drawRaw:tW.drawRaw,hasClickToShow:hwe.hasClickToShow,onClick:hwe.onClick,convertCoords:fwe()}});var pL=W((eVr,vwe)=>{"use strict";var rs=Xy(),YLt=hs().overrideAll,XLt=Ra().templatedArray;vwe.exports=YLt(XLt("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 mwe=W((tVr,gwe)=>{"use strict";var rW=tt(),ZLt=Yi(),KLt=tf(),JLt=J$(),QLt=pL();gwe.exports=function(t,r,i){KLt(t,r,{name:"annotations",handleItemDefaults:ePt,fullLayout:i.fullLayout})};function ePt(e,t,r,i){function n(s,l){return rW.coerce(e,t,QLt,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],ZLt.coercePosition(t,u,n,s,s,.5)}var o=n("visible");o&&(JLt(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 _we=W((rVr,bwe)=>{"use strict";var ywe=tt(),xwe=Yi();bwe.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 rPt(e,t){var r=iW(e.projection,iW(e.view,iW(e.model,[t[0],t[1],t[2],1])));return r}wwe.exports=rPt});var Awe=W((nVr,Twe)=>{"use strict";var iPt=dL().drawRaw,nPt=nW(),aPt=["x","y","z"];Twe.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=nPt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*i[0],r.yaxis.r2l(o.y)*i[1],r.zaxis.r2l(o.z)*i[2]]),iPt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var Ewe=W((aVr,Swe)=>{"use strict";var oPt=xi(),Mwe=tt();Swe.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:pL()}}},layoutAttributes:pL(),handleDefaults:mwe(),includeBasePlot:sPt,convert:_we(),draw:Awe()};function sPt(e,t){var r=oPt.subplotsRegistry.gl3d;if(r)for(var i=r.attrRegex,n=Object.keys(e),a=0;a{"use strict";var oVr=(Zl(),Pt(Xl)),kwe=jo(),Cwe=Ws().line,lPt=zu().dash,ov=an().extendFlat,uPt=Ra().templatedArray,sVr=(pM(),Pt(dM)),c5=Ja(),Dwe=Xy(),{shapeTexttemplateAttrs:cPt,templatefallbackAttrs:fPt}=Wa(),hPt=xD();Fwe.exports=uPt("shape",{visible:ov({},c5.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:ov({},c5.legend,{editType:"calc+arraydraw"}),legendgroup:ov({},c5.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:ov({},c5.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:kwe({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:ov({},c5.legendrank,{editType:"calc+arraydraw"}),legendwidth:ov({},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:ov({},Dwe.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:ov({},Dwe.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:ov({},Cwe.color,{editType:"arraydraw"}),width:ov({},Cwe.width,{editType:"calc+arraydraw"}),dash:ov({},lPt,{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:cPt({},{keys:Object.keys(hPt)}),texttemplatefallback:fPt({editType:"arraydraw"}),font:kwe({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 Pwe=W((uVr,Lwe)=>{"use strict";var f5=tt(),F0=Yi(),dPt=tf(),pPt=aW(),zM=Wy();Lwe.exports=function(t,r){dPt(t,r,{name:"shapes",handleItemDefaults:gPt})};function vPt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function gPt(e,t,r){function i(_,b){return f5.coerce(e,t,pPt,_,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",M=_==="x"?f:h,x={_fullLayout:r},A,T,y,E;let S=_+"ref",C=e[S];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),M==="pixel"?i(P,d[k]):F0.coercePosition(t,x,i,D,P,p[k]),t[P]=y(t[P]),e[P]=R,k===0&&M==="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),M==="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(M==="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",vPt(v,w)),i("label.padding"),f5.coerceFont(i,"label.font",r.font)}}});var zwe=W((cVr,Rwe)=>{"use strict";var mPt=ti(),Iwe=tt();function yPt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}Rwe.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"),Iwe.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",mPt.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",yPt(o,u)),i("newshape.label.padding"),Iwe.coerceFont(i,"newshape.label.font",r.font)}i("activeshape.fillcolor"),i("activeshape.opacity")}});var Gwe=W((fVr,Vwe)=>{"use strict";var oW=tt(),Id=Yi(),I1=($A(),Pt(jA)),sW=Wy();Vwe.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,qwe(a))})}else a.xref!=="paper"&&l!=="domain"&&(o=Id.getFromId(t,a.xref),s=Nwe(o,a,I1.paramIsX),s&&(a._extremes[o._id]=Id.findExtremes(o,s,qwe(a))));if(u==="array"){let c=Bwe(t,a,"y");Object.entries(c).forEach(([f,h])=>{o=Id.getFromId(t,f),a._extremes[o._id]=Id.findExtremes(o,h,Owe(a))})}else a.yref!=="paper"&&u!=="domain"&&(o=Id.getFromId(t,a.yref),s=Nwe(o,a,I1.paramIsY),s&&(a._extremes[o._id]=Id.findExtremes(o,s,Owe(a))))}};function Bwe(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 qwe(e){return Uwe(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function Owe(e){return Uwe(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function Uwe(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 Nwe(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 $we=W((hVr,jwe)=>{"use strict";var Hwe=rF();jwe.exports={moduleType:"component",name:"shapes",layoutAttributes:aW(),supplyLayoutDefaults:Pwe(),supplyDrawNewShapeDefaults:zwe(),includeBasePlot:gM()("shapes"),calcAutorange:Gwe(),draw:Hwe.draw,drawOne:Hwe.drawOne}});var lW=W((pVr,Ywe)=>{"use strict";var Wwe=(Zl(),Pt(Xl)),xPt=Ra().templatedArray,dVr=(pM(),Pt(dM));Ywe.exports=xPt("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",Wwe.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",Wwe.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var Zwe=W((vVr,Xwe)=>{"use strict";var bPt=tt(),uW=Yi(),_Pt=tf(),wPt=lW(),TPt="images";Xwe.exports=function(t,r){var i={name:TPt,handleItemDefaults:APt};_Pt(t,r,i)};function APt(e,t,r){function i(h,p){return bPt.coerce(e,t,wPt,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 e5e=W((gVr,Qwe)=>{"use strict";var Kwe=gi(),MPt=Qi(),h5=Yi(),Jwe=Ls(),SPt=(md(),Pt(gd));Qwe.exports=function(t){var r=t._fullLayout,i=[],n={},a=[],o,s;for(s=0;s{"use strict";var t5e=hn(),EPt=N8();r5e.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";n5e.exports={moduleType:"component",name:"images",layoutAttributes:lW(),supplyLayoutDefaults:Zwe(),includeBasePlot:gM()("images"),draw:e5e(),convertCoords:i5e()}});var vL={};Jn(vL,{activeColor:()=>JPt,arrowOffsetX:()=>XPt,arrowPadX:()=>HPt,arrowSymbol:()=>e9t,autoMarginIdRoot:()=>OPt,blankHeaderOpts:()=>NPt,buttonClassName:()=>RPt,containerClassName:()=>CPt,dropdownButtonClassName:()=>IPt,dropdownButtonGroupClassName:()=>PPt,gapButton:()=>KPt,gapButtonHeader:()=>ZPt,headerArrowClassName:()=>LPt,headerClassName:()=>FPt,headerGroupClassName:()=>DPt,hoverColor:()=>QPt,itemRectClassName:()=>zPt,itemTextClassName:()=>BPt,menuIndexAttrName:()=>qPt,minHeight:()=>VPt,minWidth:()=>UPt,name:()=>kPt,rx:()=>jPt,ry:()=>$Pt,textOffsetX:()=>WPt,textOffsetY:()=>YPt,textPadX:()=>GPt});var kPt,CPt,DPt,FPt,LPt,PPt,IPt,RPt,zPt,BPt,qPt,OPt,NPt,UPt,VPt,GPt,HPt,jPt,$Pt,WPt,YPt,XPt,ZPt,KPt,JPt,QPt,e9t,gL=Ci(()=>{"use strict";kPt="updatemenus",CPt="updatemenu-container",DPt="updatemenu-header-group",FPt="updatemenu-header",LPt="updatemenu-header-arrow",PPt="updatemenu-dropdown-button-group",IPt="updatemenu-dropdown-button",RPt="updatemenu-button",zPt="updatemenu-item-rect",BPt="updatemenu-item-text",qPt="updatemenu-active-index",OPt="updatemenu-",NPt={label:" "},UPt=30,VPt=30,GPt=24,HPt=16,jPt=2,$Pt=2,WPt=12,YPt=3,XPt=4,ZPt=5,KPt=2,JPt="#F4FAFF",QPt="#F4FAFF",e9t={left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}});var cW=W((xVr,s5e)=>{"use strict";var t9t=jo(),r9t=Yl(),i9t=an().extendFlat,n9t=hs().overrideAll,a9t=bD(),o5e=Ra().templatedArray,o9t=o5e("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}});s5e.exports=n9t(o5e("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:o9t,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:i9t(a9t({editType:"arraydraw"}),{}),font:t9t({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:r9t.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var f5e=W((bVr,c5e)=>{"use strict";var mL=tt(),l5e=tf(),u5e=cW(),s9t=(gL(),Pt(vL)),l9t=s9t.name,u9t=u5e.buttons;c5e.exports=function(t,r){var i={name:l9t,handleItemDefaults:c9t};l5e(t,r,i)};function c9t(e,t,r){function i(o,s){return mL.coerce(e,t,u5e,o,s)}var n=l5e(e,t,{name:"buttons",handleItemDefaults:f9t}),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 f9t(e,t){function r(n,a){return mL.coerce(e,t,u9t,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 p5e=W((_Vr,d5e)=>{"use strict";d5e.exports=Ys;var sv=gi(),h5e=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,M;!h&&!p&&!d&&!v&&(this.position.direction="down",h=!0);var x=h||v;x?(w=s,_=w+m,h?(b=u,M=Math.min(b+g,o),g=M-b):(M=u+g,b=Math.max(M-g,0),g=M-b)):(b=u,M=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,S=u+c;S+y>o&&(S=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(h5e.fill,Ys.barColor),A?(this.hbar=C.attr({rx:Ys.barRadius,ry:Ys.barRadius,x:E,y:S,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(h5e.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?M+y+.5:M+.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=sv.behavior.drag().on("dragstart",function(){sv.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=sv.behavior.drag().on("dragstart",function(){sv.event.sourceEvent.preventDefault(),sv.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-=sv.event.dx),this.vbar&&(r-=sv.event.dy),this.setTranslate(t,r)};Ys.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=sv.event.deltaY),this.vbar&&(r+=sv.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(sv.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(sv.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 A5e=W((wVr,T5e)=>{"use strict";var p5=gi(),BM=Qo(),qM=ti(),v5=Qi(),L0=tt(),xL=ao(),h9t=Ra().arrayEditor,g5e=(Jl(),Pt(Kl)).LINE_SPACING,Ln=(gL(),Pt(vL)),d9t=p5e();T5e.exports=function(t){var r=t._fullLayout,i=L0.filterVisible(r[Ln.name]);function n(h){BM.autoMargin(t,_5e(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,p9t);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 _9t=(gL(),Pt(vL));M5e.exports={moduleType:"component",name:_9t.name,layoutAttributes:cW(),supplyLayoutDefaults:f5e(),draw:A5e()}});var NM={};Jn(NM,{arrowOffsetX:()=>U9t,autoMarginIdRoot:()=>B9t,containerClassName:()=>T9t,currentValueClass:()=>I9t,currentValueInset:()=>pIt,currentValuePadding:()=>dIt,gripBgActiveColor:()=>iIt,gripBgColor:()=>rIt,gripBorder:()=>Q9t,gripBorderColor:()=>tIt,gripBorderWidth:()=>eIt,gripHeight:()=>J9t,gripRadius:()=>Z9t,gripRectClass:()=>k9t,gripWidth:()=>K9t,groupClassName:()=>A9t,inputAreaClass:()=>M9t,inputProxyClass:()=>D9t,labelClass:()=>P9t,labelGroupClass:()=>L9t,labelOffset:()=>aIt,labelPadding:()=>nIt,labelsClass:()=>F9t,menuIndexAttrName:()=>z9t,minHeight:()=>O9t,minWidth:()=>q9t,minorTickColor:()=>fIt,minorTickLength:()=>hIt,minorTickOffset:()=>cIt,name:()=>w9t,railBgColor:()=>W9t,railBorder:()=>H9t,railBorderColor:()=>$9t,railBorderWidth:()=>j9t,railHeight:()=>R9t,railInset:()=>Y9t,railRadius:()=>V9t,railRectClass:()=>S9t,railTouchRectClass:()=>E9t,railWidth:()=>G9t,stepInset:()=>X9t,textPadX:()=>N9t,tickColor:()=>sIt,tickLength:()=>uIt,tickOffset:()=>lIt,tickRectClass:()=>C9t,tickWidth:()=>oIt});var 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,fIt,hIt,dIt,pIt,UM=Ci(()=>{"use strict";w9t="sliders",T9t="slider-container",A9t="slider-group",M9t="slider-input-area",S9t="slider-rail-rect",E9t="slider-rail-touch-rect",k9t="slider-grip-rect",C9t="slider-tick-rect",D9t="slider-input-proxy",F9t="slider-labels",L9t="slider-label-group",P9t="slider-label",I9t="slider-current-value",R9t=5,z9t="slider-active-index",B9t="slider-",q9t=30,O9t=30,N9t=40,U9t=4,V9t=2,G9t=5,H9t=4,j9t=1,$9t="#bec8d9",W9t="#f8fafc",Y9t=8,X9t=10,Z9t=10,K9t=20,J9t=20,Q9t=20,eIt=1,tIt="#bec8d9",rIt="#f6f8fa",iIt="#dbdde0",nIt=8,aIt=0,oIt=1,sIt="#333",lIt=25,uIt=7,cIt=25,fIt="#333",hIt=4,dIt=8,pIt=0});var pW=W((AVr,C5e)=>{"use strict";var E5e=jo(),vIt=bD(),gIt=an().extendDeepAll,mIt=hs().overrideAll,yIt=dA(),k5e=Ra().templatedArray,Vb=(UM(),Pt(NM)),xIt=k5e("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}});C5e.exports=mIt(k5e("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:xIt,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:gIt(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:yIt.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:E5e({})},font:E5e({}),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 P5e=W((MVr,L5e)=>{"use strict";var g5=tt(),D5e=tf(),F5e=pW(),bIt=(UM(),Pt(NM)),_It=bIt.name,wIt=F5e.steps;L5e.exports=function(t,r){D5e(t,r,{name:_It,handleItemDefaults:TIt})};function TIt(e,t,r){function i(f,h){return g5.coerce(e,t,F5e,f,h)}for(var n=D5e(e,t,{name:"steps",handleItemDefaults:AIt}),a=0,o=0;o{"use strict";var lv=gi(),bL=Qo(),i2=ti(),uv=Qi(),P0=tt(),MIt=P0.strTranslate,VM=ao(),SIt=Ra().arrayEditor,na=(UM(),Pt(NM)),mW=(Jl(),Pt(Kl)),z5e=mW.LINE_SPACING,vW=mW.FROM_TL,gW=mW.FROM_BR;V5e.exports=function(t){var r=t._context.staticPlot,i=t._fullLayout,n=EIt(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,B5e(c))}if(a.exit().each(function(){lv.select(this).selectAll("g."+na.groupClassName).each(o)}).remove(),n.length!==0){var s=a.selectAll("g."+na.groupClassName).data(n,kIt);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",MIt(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 R5e(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 RIt(e,t,r){var i=r._dims,n=P0.ensureSingle(e,"rect",na.railTouchRectClass,function(a){a.call(N5e,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),uv.setTranslate(n,0,i.currentValueTotalHeight)}function zIt(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"),uv.setTranslate(n,na.railInset,(r.inputAreaWidth-na.railWidth)*.5+r.currentValueTotalHeight)}});var j5e=W((EVr,H5e)=>{"use strict";var BIt=(UM(),Pt(NM));H5e.exports={moduleType:"component",name:BIt.name,layoutAttributes:pW(),supplyLayoutDefaults:P5e(),draw:G5e()}});var wL=W((kVr,W5e)=>{"use strict";var $5e=Yl();W5e.exports={bgcolor:{valType:"color",dflt:$5e.background,editType:"plot"},bordercolor:{valType:"color",dflt:$5e.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((CVr,Y5e)=>{"use strict";Y5e.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:()=>NIt,containerClassName:()=>OIt,extraPad:()=>uRt,grabAreaCursor:()=>nRt,grabAreaFill:()=>iRt,grabAreaMaxClassName:()=>XIt,grabAreaMinClassName:()=>$It,grabAreaWidth:()=>aRt,grabberMaxClassName:()=>YIt,grabberMinClassName:()=>jIt,handleMaxClassName:()=>ZIt,handleMinClassName:()=>WIt,handleRadius:()=>sRt,handleStrokeWidth:()=>lRt,handleWidth:()=>oRt,maskColor:()=>QIt,maskMaxClassName:()=>GIt,maskMaxOppAxisClassName:()=>JIt,maskMinClassName:()=>VIt,maskMinOppAxisClassName:()=>KIt,maskOppAxisColor:()=>eRt,name:()=>qIt,rangePlotClassName:()=>UIt,slideBoxClassName:()=>HIt,slideBoxCursor:()=>rRt,slideBoxFill:()=>tRt});var qIt,OIt,NIt,UIt,VIt,GIt,HIt,jIt,$It,WIt,YIt,XIt,ZIt,KIt,JIt,QIt,eRt,tRt,rRt,iRt,nRt,aRt,oRt,sRt,lRt,uRt,AL=Ci(()=>{"use strict";qIt="rangeslider",OIt="rangeslider-container",NIt="rangeslider-bg",UIt="rangeslider-rangeplot",VIt="rangeslider-mask-min",GIt="rangeslider-mask-max",HIt="rangeslider-slidebox",jIt="rangeslider-grabber-min",$It="rangeslider-grabarea-min",WIt="rangeslider-handle-min",YIt="rangeslider-grabber-max",XIt="rangeslider-grabarea-max",ZIt="rangeslider-handle-max",KIt="rangeslider-mask-min-opp-axis",JIt="rangeslider-mask-max-opp-axis",QIt="rgba(0,0,0,0.4)",eRt="rgba(0,0,0,0.2)",tRt="transparent",rRt="ew-resize",iRt="transparent",nRt="col-resize",aRt=10,oRt=4,sRt=1,lRt=1,uRt=15});var K5e=W(SL=>{"use strict";var cRt=Ls(),fRt=ao(),X5e=(AL(),Pt(TL)),hRt=(Jl(),Pt(Kl)).LINE_SPACING,ML=X5e.name;function Z5e(e){var t=e&&e[ML];return t&&t.visible}SL.isVisible=Z5e;SL.makeData=function(e){for(var t=cRt.list({_fullLayout:e},"x",!0),r=e.margin,i=[],n=0;n{"use strict";var EL=tt(),J5e=Ra(),Q5e=Ls(),dRt=wL(),pRt=xW();e4e.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=J5e.newContainer(a,"rangeslider");function l(M,x){return EL.coerce(o,s,dRt,M,x)}var u,c;function f(M,x){return EL.coerce(u,c,pRt,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 p=r._subplots;if(p)for(var d=p.cartesian.filter(function(M){return M.slice(0,Math.max(0,M.indexOf("y")))===Q5e.name2id(i)}).map(function(M){return M.slice(M.indexOf("y"),M.length)}),v=EL.simpleMap(d,Q5e.id2name),m=0;m{"use strict";var vRt=Ls().list,gRt=Yp().getAutoRange,mRt=(AL(),Pt(TL));r4e.exports=function(t){for(var r=vRt(t,"x",!0),i=0;i{"use strict";var kL=gi(),yRt=xi(),xRt=Qo(),bl=tt(),CL=bl.strTranslate,a4e=Qi(),n2=ti(),bRt=pb(),_Rt=xl(),bW=Ls(),wRt=Ef(),TRt=Xp(),Aa=(AL(),Pt(TL));o4e.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,i=0;i=R.max)F=E[P+1];else if(D=R.pmax)F=E[P+1];else if(D0?e.touches[0].clientX:0}function ARt(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=n4e(l),f=c-e.node().getBoundingClientRect().left,h=i.d2p(r._rl[0]),p=i.d2p(r._rl[1]),d=wRt.coverSlip();this.addEventListener("touchmove",v),this.addEventListener("touchend",m),d.addEventListener("mousemove",v),d.addEventListener("mouseup",m);function v(g){var w=n4e(g),_=+w-c,b,M,x;switch(u){case n:if(x="ew-resize",h+_>r._length||p+_<0)return;b=h+_,M=p+_;break;case a:if(x="col-resize",h+_>r._length)return;b=h+_,M=p;break;case o:if(x="col-resize",p+_<0)return;b=h,M=p+_;break;default:x="ew-resize",b=f,M=f+_;break}if(M{"use strict";var IRt=tt(),RRt=wL(),zRt=xW(),_W=K5e();l4e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:IRt.extendFlat({},RRt,{yaxis:zRt})}}},layoutAttributes:wL(),handleDefaults:t4e(),calcAutorange:i4e(),draw:s4e(),isVisible:_W.isVisible,makeData:_W.makeData,autoMarginOpts:_W.autoMarginOpts}});var DL=W((RVr,f4e)=>{"use strict";var BRt=jo(),c4e=Yl(),qRt=Ra().templatedArray,ORt=qRt("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"});f4e.exports={visible:{valType:"boolean",editType:"plot"},buttons:ORt,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:BRt({editType:"plot"}),bgcolor:{valType:"color",dflt:c4e.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:c4e.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var wW={};Jn(wW,{darkAmount:()=>jRt,lightAmount:()=>HRt,minButtonWidth:()=>URt,rx:()=>VRt,ry:()=>GRt,yPad:()=>NRt});var NRt,URt,VRt,GRt,HRt,jRt,TW=Ci(()=>{"use strict";NRt=.02,URt=30,VRt=3,GRt=3,HRt=25,jRt=10});var p4e=W((zVr,d4e)=>{"use strict";var FL=tt(),$Rt=ti(),WRt=Ra(),YRt=tf(),h4e=DL(),AW=(TW(),Pt(wW));d4e.exports=function(t,r,i,n,a){var o=t.rangeselector||{},s=WRt.newContainer(r,"rangeselector");function l(p,d){return FL.coerce(o,s,h4e,p,d)}var u=YRt(o,s,{name:"buttons",handleItemDefaults:XRt,calendar:a}),c=l("visible",u.length>0);if(c){var f=ZRt(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",$Rt.contrast(h,AW.lightAmount,AW.darkAmount)),l("bordercolor"),l("borderwidth")}};function XRt(e,t,r,i){var n=i.calendar;function a(l,u){return FL.coerce(e,t,h4e.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 ZRt(e,t,r){for(var i=r.filter(function(s){return t[s].anchor===e._id}),n=0,a=0;a{"use strict";var KRt=JN(),JRt=tt().titleCase;v4e.exports=function(t,r){var i=t._name,n={};if(r.step==="all")n[i+".autorange"]=!0;else{var a=QRt(t,r);n[i+".range[0]"]=a[0],n[i+".range[1]"]=a[1]}return n};function QRt(e,t){var r=e.range,i=new Date(e.r2l(r[1])),n=t.step,a=KRt["utc"+JRt(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 A4e=W((qVr,T4e)=>{"use strict";var PL=gi(),ezt=xi(),tzt=Qo(),m4e=ti(),w4e=Qi(),im=tt(),y4e=im.strTranslate,LL=ao(),rzt=Ls(),EW=(Jl(),Pt(Kl)),x4e=EW.LINE_SPACING,b4e=EW.FROM_TL,_4e=EW.FROM_BR,SW=(TW(),Pt(wW)),izt=g4e();T4e.exports=function(t){var r=t._fullLayout,i=r._infolayer.selectAll(".rangeselector").data(nzt(t),azt);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=izt(o,u);u._isActive=ozt(o,u,f),c.call(MW,s,u),c.call(lzt,s,u,t),c.on("click",function(){t._dragged||ezt.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)})}),czt(t,l,s,o._name,a)})};function nzt(e){for(var t=rzt.list(e,"x",!0),r=[],i=0;i{"use strict";M4e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:DL()}}},layoutAttributes:DL(),handleDefaults:p4e(),draw:A4e()}});var ds=W(kW=>{"use strict";var E4e=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:E4e({},r,{}),y:E4e({},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 fzt=tt(),hzt=(fw(),Pt(fA)).counter,dzt=ds().attributes,k4e=(Zl(),Pt(Xl)).idRegex,pzt=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:[hzt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[k4e.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[k4e.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:dzt({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 vzt(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=pzt.newContainer(t,"grid");function h(x,A){return fzt.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,M;l&&t._splomGridDflt&&(b=t._splomGridDflt.xside,M=t._splomGridDflt.yside),f._domains={x:C4e("x",h,w,b,d),y:C4e("y",h,_,M,p,g)}}function C4e(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";L4e.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 R4e=W((GVr,I4e)=>{"use strict";var P4e=hn(),mzt=xi(),yzt=tt(),xzt=Ra(),bzt=FW();I4e.exports=function(e,t,r,i){var n="error_"+i.axis,a=xzt.newContainer(t,n),o=e[n]||{};function s(d,v){return yzt.coerce(o,a,bzt,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||P4e(o.thickness)||P4e(o.width)))}(!i.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",mzt.traceIs(t,"gl3d")?0:4))}}});var LW=W((HVr,B4e)=>{"use strict";B4e.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=z4e(r,t.value),s=z4e(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 z4e(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 N4e=W((jVr,O4e)=>{"use strict";var PW=hn(),_zt=xi(),IW=Yi(),wzt=tt(),Tzt=LW();O4e.exports=function(t){for(var r=t.calcdata,i=0;i{"use strict";var U4e=gi(),a2=hn(),Azt=Qi(),Mzt=Wo();V4e.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=Mzt.hasMarkers(f)&&f.marker.maxdisplayed>0;!p.visible&&!h.visible&&(c=[]);var m=U4e.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),Azt.setClipUrl(m,i.layerClipId,t),m.each(function(w){var _=U4e.select(this),b=Szt(w,o,s);if(!(v&&!w.vis)){var M,x=_.select("path.yerror");if(p.visible&&a2(b.x)&&a2(b.yh)&&a2(b.ys)){var A=p.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 y=(h.copy_ystyle?p:h).width;M="M"+b.xh+","+(b.y-y)+"v"+2*y+"m0,-"+y+"H"+b.xs,b.noXS||(M+="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",M)}else T.remove()}})}})};function Szt(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 $4e=W((WVr,j4e)=>{"use strict";var Ezt=gi(),H4e=ti();j4e.exports=function(t){t.each(function(r){var i=r[0].trace,n=i.error_y||{},a=i.error_x||{},o=Ezt.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(H4e.stroke,n.color),a.copy_ystyle&&(a=n),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(H4e.stroke,a.color)})}});var X4e=W((YVr,Y4e)=>{"use strict";var GM=tt(),W4e=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;Y4e.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:Gb,bar:Gb,histogram:Gb,scatter3d:W4e(jM,"calc","nested"),scattergl:W4e(Gb,"calc","nested")}},supplyDefaults:R4e(),calc:N4e(),makeComputeError:LW(),plot:G4e(),style:$4e(),hoverInfo:kzt};function kzt(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 Z4e={};Jn(Z4e,{cn:()=>Czt});var Czt,K4e=Ci(()=>{"use strict";Czt={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 aTe=W((XVr,nTe)=>{"use strict";var o2=gi(),zL=Qo(),J4e=xi(),nm=Yi(),RL=Ef(),Rd=tt(),fv=Rd.strTranslate,iTe=an().extendFlat,RW=Xp(),cv=Qi(),m5=ti(),Dzt=pb(),Fzt=ao(),Lzt=Sc().flipScale,Pzt=PM(),Izt=aL(),Rzt=ac(),BW=(Jl(),Pt(Kl)),Q4e=BW.LINE_SPACING,eTe=BW.FROM_TL,tTe=BW.FROM_BR,Rs=(K4e(),Pt(Z4e)).cn;function zzt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+Rs.colorbar).data(Bzt(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=qzt(n,i,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&Ozt(n,i,e)}),r.exit().each(function(i){zL.autoMargin(e,i._id)}).remove(),r.order()}function Bzt(e){var t=e._fullLayout,r=e.calcdata,i=[],n,a,o,s;function l(_){return iTe(_,{_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?Lzt(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]],rTe=(e,t)=>[e[0],Math.max(e[1]-t,e[0])];function qzt(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,M=t._fillcolor,x=t._line,A=t.title,T=A.side,y=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=Nzt(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=Uzt(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=rTe(zW([q,q+I],te),te),N.setScale(),e.attr("transform",fv(Math.round(b.l),Math.round(b.t)));var ue=e.select("."+Rs.cbtitleunshift).attr("transform",fv(-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(),Dzt.draw(r,re,iTe(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-Q4e*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)*Q4e);var we;if(Ce?(we=cv.bBox(Ce),Se=we.width,oe=we.height,oe>ze&&(Te[1]-=(oe-ze)/2)):pe.node()&&!pe.classed(Rs.jsPlaceholder)&&(we=cv.bBox(pe.node()),Se=we.width,oe=we.height),i){if(oe){if(oe+=5,T==="top")N.domain=rTe(N.domain,oe/b.h),Te[1]*=-1;else{N.domain=zW(N.domain,oe/b.h);var me=Fzt.lineCount(pe);Te[1]+=(1-me)*ze}re.attr("transform",fv(Te[0],Te[1])),N.setScale()}}else Se&&(T==="right"&&(N.domain=zW(N.domain,(Se+Ee/2)/b.w)),re.attr("transform",fv(Te[0],Te[1])),N.setScale())}e.selectAll("."+Rs.cbfills+",."+Rs.cblines).attr("transform",i?fv(0,Math.round(b.h*(1-N.domain[1]))):fv(Math.round(b.w*N.domain[0]),0)),xe.attr("transform",i?fv(0,Math.round(-b.t)):fv(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)cv.gradient(pt,r,t._id,i?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Oe=S(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(cv.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=cv.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=cv.bBox(Le),Te=re.width,me=re.height):(re=cv.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",fv(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",fv(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=cv.bBox(Ue),$e=cv.getTranslate(e),Ie=2;pt.each(function(Cr,Ge){var Qe=0,nt=Oe-1;if(Ge===Qe||Ge===nt){var gt=cv.bBox(this),ht=cv.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=eTe[f],_t=tTe[f],Wt=eTe[h],Ht=tTe[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 Ozt(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+fv(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?J4e.call("_guiRestyle",r,u,t._traceIndex):J4e.call("_guiRelayout",r,u)}}})}function Nzt(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";oTe.exports={moduleType:"component",name:"colorbar",attributes:YD(),supplyDefaults:VG(),draw:aTe().draw,hasColorbar:RG()}});var uTe=W((KVr,lTe)=>{"use strict";lTe.exports={moduleType:"component",name:"legend",layoutAttributes:BH(),supplyLayoutDefaults:OH(),draw:QH(),style:XH()}});var fTe=W((JVr,cTe)=>{"use strict";cTe.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 dTe=W((QVr,hTe)=>{"use strict";hTe.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((eGr,mTe)=>{"use strict";var Vzt=xi(),gTe=tt(),qW=gTe.extendFlat,pTe=gTe.extendDeep;function vTe(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 Gzt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}mTe.exports=function(t,r){var i,n=t.data,a=t.layout,o=pTe([],n),s=pTe({},a,vTe(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 Hzt=ib().EventEmitter,jzt=xi(),$zt=tt(),yTe=em(),Wzt=OW(),Yzt=OF(),Xzt=NF();function Zzt(e,t){var r=new Hzt,i=Wzt(e,{format:"png"}),n=i.gd;n.style.position="absolute",n.style.left="-5000px",document.body.appendChild(n);function a(){var s=yTe.getDelay(n._fullLayout);setTimeout(function(){var l=Yzt(n),u=document.createElement("canvas");u.id=$zt.randstr(),r=Xzt({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=yTe.getRedrawFunc(n);return jzt.call("_doPlot",n,i.data,i.layout,i.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}xTe.exports=Zzt});var TTe=W((rGr,wTe)=>{"use strict";var _Te=em(),Kzt={getDelay:_Te.getDelay,getRedrawFunc:_Te.getRedrawFunc,clone:OW(),toSVG:OF(),svgToImg:NF(),toImage:bTe(),downloadImage:y$()};wTe.exports=Kzt});var MTe=W(am=>{"use strict";am.version=N6().version;eue();qde();var Jzt=xi(),$M=am.register=Jzt.register,UW=Xbe(),ATe=Object.keys(UW);for(BL=0;BL{"use strict";STe.exports=MTe()});var R1=W((aGr,LTe)=>{"use strict";var sl=Ws(),kTe=Ts().axisHoverFormat,{hovertemplateAttrs:Qzt,texttemplateAttrs:eBt,templatefallbackAttrs:CTe}=Wa(),FTe=Fo(),tBt=jo(),DTe=(Qy(),Pt(Jy)),rBt=zu().pattern,Hb=an().extendFlat,VW=tBt({editType:"calc",arrayOk:!0,colorEditType:"style"}),iBt=sl.marker,nBt=iBt.line,aBt=Hb({},nBt.width,{dflt:0}),oBt=Hb({width:aBt,editType:"calc"},FTe("marker.line")),sBt=Hb({line:oBt,editType:"calc"},FTe("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:rBt,cornerradius:{valType:"any",editType:"calc"}});LTe.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:kTe("x"),yhoverformat:kTe("y"),text:sl.text,texttemplate:eBt({editType:"plot"},{keys:DTe.eventDataKeys}),texttemplatefallback:CTe({editType:"plot"}),hovertext:sl.hovertext,hovertemplate:Qzt({},{keys:DTe.eventDataKeys}),hovertemplatefallback:CTe(),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:sBt,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((oGr,PTe)=>{"use strict";PTe.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((sGr,zTe)=>{"use strict";var lBt=ti(),ITe=Sc().hasColorscale,RTe=Bu(),uBt=tt().coercePattern;zTe.exports=function(t,r,i,n,a){var o=i("marker.color",n),s=ITe(t,"marker");s&&RTe(t,r,a,i,{prefix:"marker.",cLetter:"c"}),i("marker.line.color",lBt.defaultLine),ITe(t,"marker.line")&&RTe(t,r,a,i,{prefix:"marker.line.",cLetter:"c"}),i("marker.line.width"),i("marker.opacity"),uBt(i,"marker.pattern",o,s),i("selected.marker.color"),i("unselected.marker.color")}});var I0=W((lGr,VTe)=>{"use strict";var BTe=hn(),x5=tt(),qTe=ti(),cBt=xi(),fBt=Lb(),hBt=ev(),dBt=NL(),pBt=Pb(),OTe=R1(),UL=x5.coerceFont;function vBt(e,t,r,i){function n(u,c){return x5.coerce(e,t,OTe,u,c)}var a=fBt(e,t,i,n);if(!a){t.visible=!1;return}hBt(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");UTe(e,t,i,n,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),dBt(e,t,n,r,i);var s=(t.marker.line||{}).color,l=cBt.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||qTe.defaultLine,{axis:"y"}),l(e,t,s||qTe.defaultLine,{axis:"x",inherit:"y"}),x5.coerceSelectionMarkerOpacity(t,n)}function gBt(e,t){var r,i;function n(s,l){return x5.coerce(i._input,i,OTe,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&BTe(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function UTe(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")}VTe.exports={supplyDefaults:vBt,crossTraceDefaults:gBt,handleText:UTe,validateCornerradius:NTe}});var GW=W((uGr,GTe)=>{"use strict";var mBt=xi(),yBt=Yi(),xBt=tt(),bBt=OL(),_Bt=I0().validateCornerradius;GTe.exports=function(e,t,r){function i(v,m){return xBt.coerce(e,t,bBt,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=yBt.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=_Bt(d)}});var WM=W((cGr,HTe)=>{"use strict";var b5=tt();HTe.exports=function(t,r){for(var i=0;i{"use strict";var jTe=Yi(),$Te=iv(),WTe=Sc().hasColorscale,YTe=rf(),wBt=WM(),TBt=C0();XTe.exports=function(t,r){var i=jTe.getFromId(t,r.xaxis||"x"),n=jTe.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=$Te(r,n,"y",s),u=!!r.yperiodalignment,c="y"):(a=n.makeCalcdata(r,"y",f),s=i.makeCalcdata(r,"x"),l=$Te(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 ABt=gi(),MBt=tt();function SBt(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=ABt.select(this).select("text");MBt.setTransormAndDisplay(u,l)}})}}function EBt(e,t,r){if(r.uniformtext.mode){var i=KTe(e),n=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var CBt=ti(),DBt=hn(),QTe=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(DBt(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 CBt.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 QTe(e)?t{"use strict";var YM=gi(),FBt=ti(),XM=Qi(),e6e=tt(),t6e=xi(),r6e=of().resizeText,HW=R1(),LBt=HW.textfont,PBt=HW.insidetextfont,IBt=HW.outsidetextfont,Dc=VL();function RBt(e){var t=YM.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");r6e(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;i6e(a,o,e)}),t6e.getComponentMethod("errorbars","style")(t)}function i6e(e,t,r){XM.pointStyle(e.selectAll("path"),t,r),n6e(e,t,r)}function n6e(e,t,r){e.selectAll("text").each(function(i){var n=YM.select(this),a=e6e.ensureUniformFontSize(r,a6e(n,i,t,r));XM.font(n,a)})}function zBt(e,t,r){var i=t[0].trace;i.selectedpoints?BBt(r,i,e):(i6e(r,i,e),t6e.getComponentMethod("errorbars","style")(r))}function BBt(e,t,r){XM.selectedPointStyle(e.selectAll("path"),t),qBt(e.selectAll("text"),t,r)}function qBt(e,t,r){e.each(function(i){var n=YM.select(this),a;if(i.selected){a=e6e.ensureUniformFontSize(r,a6e(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 a6e(e,t,r,i){var n=i._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=u6e(t,r);a=s6e(r,t.i,n,o)}else e.classed("bartext-outside")&&(a=l6e(r,t.i,n));return a}function o6e(e,t,r){return jW(LBt,e.textfont,t,r)}function s6e(e,t,r,i){var n=o6e(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:FBt.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(PBt,e.insidetextfont,t,n)}function l6e(e,t,r){var i=o6e(e,t,r);return jW(IBt,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 u6e(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}c6e.exports={style:RBt,styleTextPoints:n6e,styleOnSelect:zBt,getInsideTextFont:s6e,getOutsideTextFont:l6e,getBarColor:u6e,resizeText:r6e}});var Wb=W((vGr,y6e)=>{"use strict";var GL=gi(),HL=hn(),sc=tt(),OBt=ao(),NBt=ti(),s2=Qi(),UBt=xi(),jL=Yi().tickText,f6e=of(),VBt=f6e.recordMinTextSize,GBt=f6e.clearMinTextSize,$W=zd(),_5=VL(),HBt=(Qy(),Pt(Jy)),h6e=R1(),jBt=h6e.text,$Bt=h6e.textposition,WBt=ah().appendArrayPointValue,If=HBt.TEXTPAD;function YBt(e){return e.id}function XBt(e){if(e.ids)return YBt}function WW(e){return(e>0)-(e<0)}function hv(e,t){return e0}function KBt(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},GBt("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 M=p.orientation==="h",x=p6e(n),A=sc.ensureSingle(h,"g","points"),T=XBt(p),y=A.selectAll("g.point").data(sc.identity,T);y.enter().append("g").classed("point",!0),y.exit().remove(),y.each(function(S,C){var k=GL.select(this),D=ZBt(S,o,s,M),F=D[0][0],P=D[0][1],R=D[1][0],L=D[1][1],I=(M?P-F:L-R)===0;I&&_&&_5.getLineWidth(p,S)&&(I=!1),I||(I=!HL(F)||!HL(P)||!HL(R)||!HL(L)),S.isBlank=I,I&&(M?P=F:L=R),b&&!I&&(M?(F-=hv(F,P)*b,P+=hv(F,P)*b):(R-=hv(R,L)*b,L+=hv(R,L)*b));var B,O;if(p.type==="waterfall"){if(!I){var $=p[S.dir].marker;B=$.line.width,O=$.color}}else B=_5.getLineWidth(p,S),O=S.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=NBt.opacity(O),q=G<1||B>.01?X:K;e._context.staticPlot||(F=q(F,P,M),P=q(P,F,M),R=q(R,L,!M),L=q(L,R,!M));var J=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(re,pe){if(!re)return 0;var Te=Math.abs(M?L-R:P-F),Ce=Math.abs(M?P-F:L-R),ze=q(Math.abs(J(N,!0)-J(0,!0))),we=S.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&&S.s){var ue=WW(S.s0)===0||WW(S.s)===WW(S.s0)?S.s1:S.s0;if(te=q(S.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(S.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=d6e(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(S,ae,p,_e,e)}JBt(e,t,k,f,C,F,P,R,L,Y,te,n,a),t.layerClipId&&s2.hideOutsideRangePoint(S,k.select("text"),o,s,p.xcalendar,p.ycalendar)});var E=p.cliponaxis===!1;s2.setClipUrl(h,E?null:t.layerClipId,e)});UBt.getComponentMethod("errorbars","plot")(e,c,t,n)}function JBt(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(OBt.convertToTspans,e);return ge}var w=i[0].trace,_=w.orientation==="h",b=iqt(i,_,p,d),M=tqt(v,i,n,p,d);m=rqt(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(!M||m==="none"||(A.isBlank||a===o||s===l)&&(m==="auto"||m==="inside")){r.select("text").remove();return}var S=v.font,C=$W.getBarColor(i[n],w),k=$W.getInsideTextFont(w,n,S,C),D=$W.getOutsideTextFont(w,n,S),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,M,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=eqt(a,o,s,l,$,{isHorizontal:_,constrained:H,angle:V,zeroBarDir:b})):(H=w.constraintext==="both"||w.constraintext==="inside",Y=m6e(a,o,s,l,$,{isHorizontal:_,constrained:H,angle:V,anchor:F,hasB:y,r:u,overhead:c})),Y.fontSize=G.size,VBt(w.type==="histogram"?"bar":w.type,Y,v),A.transform=Y;var j=d6e(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 v6e(e){return e==="auto"?0:e}function g6e(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 m6e(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),M=Math.abs(i-r),x=b>2*If&&M>2*If?If:0;b-=2*x,M-=2*x;var A=v6e(l);l==="auto"&&!(w<=b&&_<=M)&&(w>b||_>M)&&(!(w>M||_>b)||w<_!=bIf){var S=QBt(e,t,r,i,T,m,g,o,v);y=S.scale,E=S.pad}else y=1,s&&(y=Math.min(1,b/T.x,M/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?hv(e,t):hv(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 QBt(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 eqt(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=v6e(l),m=g6e(n,v),g=(o?m.x:m.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?hv(t,e):hv(r,i),o?(b=t-T*p,x=T*g):(M=i+T*p,A=-T*g),{textX:w,textY:_,targetX:b,targetY:M,anchorX:x,anchorY:A,scale:d,rotate:v}}function tqt(e,t,r,i,n){var a=t[0].trace,o=a.texttemplate,s;return o?s=nqt(e,t,r,i,n):a.textinfo?s=aqt(t,r,i,n):s=_5.getValue(a.text,r),_5.coerceString(jBt,s)}function rqt(e,t){var r=_5.getValue(e.textposition,t);return _5.coerceEnumerated($Bt,r)}function iqt(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=-hv(l.range[0],l.range[1]);return a?n?0:-u:u}function nqt(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={};WBt(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 M=sc.castOption(a,g.i,"customdata");return M&&(w.customdata=M),sc.texttemplateString({data:[b,w,a._meta],fallback:a.texttemplatefallback,labels:w,locale:e._d3locale,template:o})}function aqt(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 jL(x,M,!0).text}function u(M){var x=a?r:i;return jL(x,+M,!0).text}var c=n.textinfo,f=e[t],h=c.split("+"),p=[],d,v=function(M){return h.indexOf(M)!==-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("
")}y6e.exports={plot:KBt,toMoveInsideBar:m6e}});var w5=W((gGr,w6e)=>{"use strict";var ZM=Is(),oqt=xi(),x6e=ti(),sqt=tt().fillText,lqt=VL().getLineWidth,YW=Yi().hoverLabelText,uqt=(ra(),Pt(ia)).BADNUM;function cqt(e,t,r,i,n){var a=b6e(e,t,r,i,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=_6e(s,l),oqt.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function b6e(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 M(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?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,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 S(y(q),E(q),c)}function k(q){return S(M(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!==uqt){b||(y=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,$=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),sqt($,o,e),e.hovertemplate=o.hovertemplate,e}}function _6e(e,t){var r=t.mcc||e.marker.color,i=t.mlcc||e.marker.line.color,n=lqt(e,t);if(x6e.opacity(r))return r;if(x6e.opacity(i)&&n)return i}w6e.exports={hoverPoints:cqt,hoverOnBars:b6e,getTraceColor:_6e}});var A6e=W((mGr,T6e)=>{"use strict";T6e.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((yGr,M6e)=>{"use strict";M6e.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";S6e.exports={attributes:R1(),layoutAttributes:OL(),supplyDefaults:I0().supplyDefaults,crossTraceDefaults:I0().crossTraceDefaults,supplyLayoutDefaults:GW(),calc:ZTe(),crossTraceCalc:Ib().crossTraceCalc,colorbar:Cc(),arraysToCalcdata:WM(),plot:Wb().plot,style:zd().style,styleOnSelect:zd().styleOnSelect,hoverPoints:w5().hoverPoints,eventData:A6e(),selectPoints:T5(),moduleType:"trace",name:"bar",basePlotModule:xl(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var C6e=W((bGr,k6e)=>{"use strict";k6e.exports=E6e()});var KM=W((_Gr,P6e)=>{"use strict";var hqt=C1(),Bd=Ws(),D6e=R1(),dqt=Yl(),F6e=Ts().axisHoverFormat,{hovertemplateAttrs:pqt,templatefallbackAttrs:vqt}=Wa(),om=an().extendFlat,A5=Bd.marker,L6e=A5.line;P6e.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:F6e("x"),yhoverformat:F6e("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({},L6e.color,{arrayOk:!1,dflt:dqt.defaultLine,editType:"style"}),width:om({},L6e.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:hqt(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:D6e.offsetgroup,alignmentgroup:D6e.alignmentgroup,selected:{marker:Bd.selected.marker,editType:"style"},unselected:{marker:Bd.unselected.marker,editType:"style"},text:om({},Bd.text,{}),hovertext:om({},Bd.hovertext,{}),hovertemplate:pqt({}),hovertemplatefallback:vqt(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:Bd.zorder}});var JM=W((wGr,I6e)=>{"use strict";I6e.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((TGr,q6e)=>{"use strict";var qd=tt(),gqt=xi(),mqt=ti(),yqt=ev(),xqt=Pb(),R6e=Rw(),QM=KM();function bqt(e,t,r,i){function n(d,v){return qd.coerce(e,t,QM,d,v)}if(z6e(e,t,n,i),t.visible!==!1){yqt(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",mqt.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"),B6e(e,t,n,{prefix:"box"}),n("zorder")}}function z6e(e,t,r,i){function n(E){var S=0;return E&&E.length&&(S+=1,qd.isArrayOrTypedArray(E[0])&&E[0].length&&(S+=1)),S}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"),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,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=gqt.getComponentMethod("calendars","handleTraceDefaults");y(e,t,["x","y"],i)}function B6e(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 _qt(e,t){var r,i;function n(l){return qd.coerce(i._input,i,QM,l)}for(var a=0;a{"use strict";var wqt=xi(),Tqt=tt(),Aqt=JM();function O6e(e,t,r,i,n){for(var a=n+"Layout",o=!1,s=0;s{"use strict";var ZW=hn(),WL=Yi(),Sqt=iv(),Bl=tt(),R0=(ra(),Pt(ia)).BADNUM,sm=Bl._;X6e.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=Eqt(r,p,h,i[s]),m=v[0],g=v[1],w=Bl.distinctVals(m,h),_=w.vals,b=w.minDiff/2,M,x,A,T,y,E,S=(r.boxpoints||r.points)==="all"?Bl.identity:function(xe){return xe.vM.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=M.q1&&M.q3>=M.med){var R=k("lowerfence");M.lf=R!==R0&&R<=M.q1?R:H6e(M,A,T);var L=k("upperfence");M.uf=L!==R0&&L>=M.q3?L:j6e(M,A,T);var I=k("mean");M.mean=I!==R0?I:T?Bl.mean(A,T):(M.q1+M.q3)/2;var B=k("sd");M.sd=I!==R0&&B>=0?B:T?Bl.stdev(A,T,M.mean):M.q3-M.q1,M.lo=$6e(M),M.uo=W6e(M);var O=k("notchspan");O=O!==R0&&O>0?O:Y6e(M,T),M.ln=M.med-O,M.un=M.med+O;var $=M.lf,X=M.uf;r.boxpoints&&A.length&&($=Math.min($,A[0]),X=Math.max(X,A[T-1])),r.notched&&($=Math.min($,M.ln),X=Math.max(X,M.un)),M.min=$,M.max=X}else{Bl.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+M.q1,"median = "+M.med,"q3 = "+M.q3].join(` +`));var K;M.med!==R0?K=M.med:M.q1!==R0?M.q3!==R0?K=(M.q1+M.q3)/2:K=M.q1:M.q3!==R0?K=M.q3:K=0,M.med=K,M.q1=M.q3=K,M.lf=M.uf=K,M.mean=M.sd=K,M.ln=M.un=K,M.min=M.max=K}D=Math.min(D,M.min),F=Math.max(F,M.max),M.pts2=x.filter(S),o.push(M)}}r._extremes[c._id]=WL.findExtremes(c,[D,F],{padded:!0})}else{var G=c.makeCalcdata(r,f),q=kqt(_,b),J=_.length,N=Cqt(J);for(l=0;l=0&&V0){if(M={},M.pos=M[p]=_[l],x=M.pts=N[l].sort(V6e),A=M[f]=x.map(G6e),T=A.length,M.min=A[0],M.max=A[T-1],M.mean=Bl.mean(A,T),M.sd=Bl.stdev(A,T,M.mean)*r.sdmultiple,M.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)),M.q1=Bl.interp(ue,.5),M.q3=Bl.interp(ge,.5)}else M.q1=Bl.interp(A,.25),M.q3=Bl.interp(A,.75);M.lf=H6e(M,A,T),M.uf=j6e(M,A,T),M.lo=$6e(M),M.uo=W6e(M);var Ee=Y6e(M,T);M.ln=M.med-Ee,M.un=M.med+Ee,Y=Math.min(Y,M.ln),H=Math.max(H,M.un),M.pts2=x.filter(S),o.push(M)}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 Dqt(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 Eqt(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=Sqt(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 Z6e=Yi(),Fqt=tt(),Lqt=kb().getAxisGroup,K6e=["v","h"];function Pqt(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(),Iqt=Qi(),eAe=5,Rqt=.01;function zqt(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),tAe(l,{pos:h,val:p},f,c,n),rAe(l,{x:a,y:o},f,c),iAe(l,{pos:h,val:p},f,c)})}function tAe(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),M=s.l2p(b-m)+f,x=s.l2p(b+g)+f,A=l?(M+x)/2:s.l2p(b)+f,T=r.whiskerwidth,y=l?M*T+(1-T)*A:s.l2p(b-c)+f,E=l?x*T+(1-T)*A:s.l2p(b+c)+f,S=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+","+S+"V"+C+"M"+D+","+M+"V"+x+(d?"H"+B+"L"+P+","+C+"L"+O+","+x:"")+"H"+F+"V"+M+(d?"H"+O+"L"+P+","+S+"L"+B+","+M:"")+"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"+S+","+P+"H"+C+"M"+M+","+D+"H"+x+(d?"V"+B+"L"+C+","+P+"L"+x+","+O:"")+"V"+F+"H"+M+(d?"V"+O+"L"+S+","+P+"L"+M+","+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 rAe(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*Rqt,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(Iqt.translatePoints,n,a)}function iAe(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":""))})}nAe.exports={plot:zqt,plotBoxAndWhiskers:tAe,plotPoints:rAe,plotBoxMean:iAe}});var ZL=W((kGr,aAe)=>{"use strict";var JW=gi(),QW=ti(),eY=Qi();function Bqt(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 qqt(e,t,r){var i=t[0].trace,n=r.selectAll("path.point");i.selectedpoints?eY.selectedPointStyle(n,i):eY.pointStyle(n,i,e)}aAe.exports={style:Bqt,styleOnSelect:qqt}});var rY=W((CGr,uAe)=>{"use strict";var Oqt=Yi(),tY=tt(),l2=Is(),oAe=ti(),Nqt=tY.fillText;function Uqt(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(sAe(e,t,r,i))),o.indexOf("points")!==-1&&(l=lAe(e,t,r)),i==="closest"?l?[l]:s:(l&&s.push(l),s)}function sAe(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,M=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=M,A=0),s.side==="negative"&&(w=function(H){var j=y(H);return l2.inbox(j-T,j,_)},x=0,A=M)):(w=function(H){var j=y(H);return l2.inbox(j-T,j+T,_)},x=A=M);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 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(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;oAe.opacity(F)&&s.line.width?e.color=F:oAe.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";cAe.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((FGr,hAe)=>{"use strict";hAe.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";dAe.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:fAe(),selectPoints:iY(),moduleType:"trace",name:"box",basePlotModule:xl(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var gAe=W((PGr,vAe)=>{"use strict";vAe.exports=pAe()});var S5=W((IGr,yAe)=>{"use strict";var Vqt=Fo(),{extendFlat:Yh}=an(),Gqt=Ja(),{axisHoverFormat:nY}=Ts(),Hqt=jo(),{hovertemplateAttrs:jqt,templatefallbackAttrs:mAe,texttemplateAttrs:$qt}=Wa(),z0=Ws();yAe.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:jqt(),hovertemplatefallback:mAe(),texttemplate:$qt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:mAe({editType:"plot"}),textfont:Hqt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Yh({},Gqt.showlegend,{dflt:!1}),zorder:z0.zorder},Vqt("",{cLetter:"z",autoColorDflt:!1}))});var JL=W((RGr,bAe)=>{"use strict";var Wqt=hn(),KL=tt(),Yqt=xi();bAe.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=xAe(a,i),u=xAe(o,i),!Xqt(s))return 0;i("transpose"),r._length=null}var h=Yqt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],n),!0};function xAe(e,t){var r=t(e),i=r?t(e+"type","array"):"scaled";return i==="scaled"&&(t(e+"0"),t("d"+e)),r}function Xqt(e){for(var t=!0,r=!1,i=!1,n,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var _Ae=tt();wAe.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var i=_Ae.extendFlat({},r.font,{color:"auto",size:"auto"});_Ae.coerceFont(t,"textfont",i)}});var aY=W((BGr,TAe)=>{"use strict";TAe.exports=function(t,r,i){var n=i("zsmooth");n===!1&&(i("xgap"),i("ygap")),i("zhoverformat")}});var SAe=W((qGr,MAe)=>{"use strict";var AAe=tt(),Zqt=JL(),Kqt=tS(),Jqt=ev(),Qqt=aY(),eOt=Bu(),tOt=S5();MAe.exports=function(t,r,i,n){function a(s,l){return AAe.coerce(t,r,tOt,s,l)}var o=Zqt(t,r,a,n);if(!o){r.visible=!1;return}Jqt(t,r,n,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),Kqt(a,n),Qqt(t,r,a,n),a("hoverongaps"),a("connectgaps",AAe.isArray1D(r.z)&&r.zsmooth!==!1),eOt(t,r,n,a,{prefix:"",cLetter:"z"}),a("zorder")}});var oY=W((OGr,EAe)=>{"use strict";var E5=hn();EAe.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";kAe.exports={percent:function(e,t){for(var r=e.length,i=100/t,n=0;n{"use strict";CAe.exports=function(t,r){for(var i=t.length,n=0,a=0;a{"use strict";var k5=(ra(),Pt(ia)),Xb=k5.ONEAVGYEAR,DAe=k5.ONEAVGMONTH,eP=k5.ONEDAY,FAe=k5.ONEHOUR,LAe=k5.ONEMIN,PAe=k5.ONESEC,IAe=Yi().tickIncrement;BAe.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 M=n.d2c(_,0,a);if(MPAe?e>eP?e>Xb*1.1?Xb:e>DAe*1.1?DAe:eP:e>FAe?FAe:e>LAe?LAe:PAe:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function rOt(e,t,r,i,n,a){if(i&&e>eP){var o=zAe(t,n,a),s=zAe(r,n,a),l=e===Xb?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function zAe(e,t,r){var i=t.c2d(e,Xb,r).split("-");return i[0]===""&&(i.unshift(),i[0]="-"+i[0]),i}});var hY=W((GGr,VAe)=>{"use strict";var cY=hn(),Rf=tt(),qAe=xi(),Od=Yi(),{hasColorscale:OAe}=Sc(),NAe=rf(),iOt=WM(),UAe=oY(),nOt=sY(),aOt=lY(),oOt=uY();function sOt(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,M=t.histnorm,x=t.histfunc,A=M.indexOf("density")!==-1,T,y,E;u.enabled&&A&&(M=M.replace(/ ?density$/,""),A=!1);var S=x==="max"||x==="min",C=S?null:0,k=UAe.count,D=nOt[M],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=UAe[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),OAe(t,"marker")&&NAe(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),OAe(t,"marker.line")&&NAe(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),iOt(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 M=[],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 lOt(e,t,r,i,n){var a=e._fullLayout,o=uOt(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())}}VAe.exports={calc:sOt,calcAllAutoBins:fY}});var ZAe=W((HGr,XAe)=>{"use strict";var GAe=tt(),C5=Yi(),HAe=oY(),fOt=sY(),hOt=lY(),dOt=uY(),jAe=hY().calcAllAutoBins;XAe.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=jAe(t,r,i,"x"),m=v[0],g=v[1],w=jAe(t,r,n,"y"),_=w[0],b=w[1],M=r._length;g.length>M&&g.splice(M,g.length-M),b.length>M&&b.splice(M,b.length-M);var x=[],A=[],T=[],y=typeof m.size=="string",E=typeof _.size=="string",S=[],C=[],k=y?S: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=HAe.count,K=fOt[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=HAe[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(),KAe=(ra(),Pt(ia)).BADNUM,JAe=iv();QAe.exports=function(t,r,i,n,a,o){var s=t._length,l=r.makeCalcdata(t,n),u=i.makeCalcdata(t,a);l=JAe(t,r,n,l).vals,u=JAe(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=[],M,x,A=_.length,T=g.length;for(d=0;d{"use strict";var pOt=hn(),vOt=tt(),rP=(ra(),Pt(ia)).BADNUM;eMe.exports=function(t,r,i,n){var a,o,s,l,u,c;function f(g){if(pOt(g))return+g}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var gOt=tt(),tMe=.01,mOt=[[-1,0],[1,0],[0,-1],[0,1]];function yOt(e){return .5-.25*Math.min(1,e*.5)}iMe.exports=function(t,r){var i=1,n;for(rMe(t,r),n=0;ntMe;n++)i=rMe(t,r,yOt(i));return i>tMe&&gOt.log("interp2d didn't converge quickly",i),t};function rMe(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((YGr,nMe)=>{"use strict";var xOt=tt().maxRowLength;nMe.exports=function(t){var r=[],i={},n=[],a=t[0],o=[],s=[0,0,0],l=xOt(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((XGr,sMe)=>{"use strict";var aMe=xi(),oMe=tt().isArrayOrTypedArray;sMe.exports=function(t,r,i,n,a,o){var s=[],l=aMe.traceIs(t,"contour"),u=aMe.traceIs(t,"histogram"),c,f,h,p=oMe(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 lMe=xi(),pY=tt(),oP=Yi(),uMe=iv(),bOt=ZAe(),_Ot=rf(),wOt=tP(),TOt=iP(),AOt=nP(),MOt=aP(),sP=dY(),vY=(ra(),Pt(ia)).BADNUM;fMe.exports=function(t,r){var i=oP.getFromId(t,r.xaxis||"x"),n=oP.getFromId(t,r.yaxis||"y"),a=lMe.traceIs(r,"contour"),o=lMe.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=bOt(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(_)?(wOt(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=uMe(r,i,"x",f).vals,h=uMe(r,n,"y",v).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,p=r.y0,d=r.dy,m=TOt(_,r,i,n)}(i.rangebreaks||n.rangebreaks)&&(m=SOt(l,h,m),o||(l=cMe(l),h=cMe(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=MOt(m),AOt(m,r._emptypoints));function b(k){s=r._input.zsmooth=r.zsmooth=!1,pY.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(g=0;gF)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=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 S={x:T,y:E,z:m,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(S.orig_x=f),r.yperiodalignment&&v&&(S.orig_y=v),A&&A.length===T.length-1&&(S.xCenter=A),y&&y.length===E.length-1&&(S.yCenter=y),o&&(S.xRanges=w.xRanges,S.yRanges=w.yRanges,S.pts=w.pts),a||_Ot(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};S.xfill=sP(C,A,u,c,x,i),S.yfill=sP(C,y,p,d,m.length,n)}return[S]};function cMe(e){for(var t=[],r=e.length,i=0;ihMe,STYLE:()=>EOt});var hMe,EOt,cP=Ci(()=>{"use strict";hMe=[["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"]],EOt=hMe.map(e=>e.join(": ")+"; ").join("")});var mY=W((KGr,pMe)=>{"use strict";var dMe=(cP(),Pt(uP)),kOt=Qi(),gY=tt(),D5=null;function COt(){if(D5!==null)return D5;D5=!1;var e=gY.isSafari()||gY.isMacWKWebView()||gY.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(dMe.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=kOt.tester.append("image").attr("style",dMe.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}pMe.exports=COt});var fP=W((JGr,AMe)=>{"use strict";var vMe=gi(),DOt=xi(),FOt=Qi(),LOt=Yi(),Nd=tt(),gMe=ao(),POt=QF(),mMe=ti(),IOt=es().extractOpts,ROt=es().makeColorScaleFuncFromTrace,zOt=(md(),Pt(gd)),BOt=(Jl(),Pt(Kl)),yY=BOt.LINE_SPACING,qOt=mY(),OOt=(cP(),Pt(uP)).STYLE,wMe="heatmap-label";function TMe(e){return e.selectAll("g."+wMe)}function yMe(e){TMe(e).remove()}AMe.exports=function(e,t,r,i){var n=t.xaxis,a=t.yaxis;Nd.makeTraceGroups(i,r,"hm").each(function(o){var s=vMe.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=DOt.traceIs(u,"contour"),w=g?"best":u.zsmooth,_=h.length,b=Nd.maxRowLength(h),M=!1,x=!1,A,T,y,E,S,C,k,D;for(C=0;A===void 0&&C0;)T=n.c2p(p[C]),C--;for(T0;)S=a.c2p(d[C]),C--;S=n._length||T<=0||E>=a._length||S<=0;if(I){var B=s.selectAll("image").data([]);B.exit().remove(),yMe(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=ROt(u,{noNumericCheck:!0,returnArray:!0}),q,J;F==="fast"?(q=M?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=M?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?bMe:xMe,ze=m?bMe:xMe,we,me,Le;for(C=0;CWt||Wt>a._length))for(k=Ie;kfr||fr>n._length)){var lr=POt({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=LOt.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";MMe.exports={min:"zmin",max:"zmax"}});var hP=W((eHr,SMe)=>{"use strict";var NOt=gi();SMe.exports=function(t){NOt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var pP=W((tHr,kMe)=>{"use strict";var EMe=Is(),rS=tt(),dP=rS.isArrayOrTypedArray,UOt=Yi(),VOt=es().extractOpts;kMe.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,M,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(EMe.inbox(r-f[0],r-f[f.length-1],0)>0||EMe.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";CMe.exports={attributes:S5(),supplyDefaults:SAe(),calc:lP(),plot:fP(),colorbar:F5(),style:hP(),hoverPoints:pP(),moduleType:"trace",name:"heatmap",basePlotModule:xl(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var LMe=W((iHr,FMe)=>{"use strict";FMe.exports=DMe()});var xY=W((nHr,PMe)=>{"use strict";PMe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var IMe={};Jn(IMe,{eventDataKeys:()=>GOt});var GOt,RMe=Ci(()=>{"use strict";GOt=["binNumber"]});var vP=W((aHr,OMe)=>{"use strict";var Xh=R1(),zMe=Ts().axisHoverFormat,{hovertemplateAttrs:HOt,texttemplateAttrs:jOt,templatefallbackAttrs:BMe}=Wa(),bY=jo(),qMe=xY(),$Ot=(RMe(),Pt(IMe)),_Y=an().extendFlat;OMe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:zMe("x"),yhoverformat:zMe("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:qMe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:qMe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:HOt({},{keys:$Ot.eventDataKeys}),hovertemplatefallback:BMe(),texttemplate:jOt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:BMe({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 GMe=W((oHr,VMe)=>{"use strict";var NMe=xi(),iS=tt(),UMe=ti(),WOt=I0().handleText,YOt=NL(),XOt=vP();VMe.exports=function(t,r,i,n){function a(w,_){return iS.coerce(t,r,XOt,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");WOt(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=NMe.getComponentMethod("calendars","handleTraceDefaults");d(t,r,["x","y"],n);var v=r[h];v&&a("histfunc"),a("histnorm"),a("autobin"+f),YOt(t,r,a,i,n),iS.coerceSelectionMarkerOpacity(r,a);var m=(r.marker.line||{}).color,g=NMe.getComponentMethod("errorbars","supplyDefaults");g(t,r,m||UMe.defaultLine,{axis:"y"}),g(t,r,m||UMe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var mP=W((sHr,$Me)=>{"use strict";var nS=tt(),ZOt=Ls(),gP=xi().traceIs,KOt=Pb(),JOt=I0().validateCornerradius,HMe=nS.nestedProperty,wY=kb().getAxisGroup,jMe=[{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"}],QOt=["x","y"];$Me.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=ZOt.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 eNt=w5().hoverPoints,tNt=Yi().hoverLabelText;WMe.exports=function(t,r,i,n,a){var o=eNt(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"]=tNt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var TY=W((uHr,XMe)=>{"use strict";XMe.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 KMe=W((cHr,ZMe)=>{"use strict";ZMe.exports={attributes:vP(),layoutAttributes:OL(),supplyDefaults:GMe(),crossTraceDefaults:mP(),supplyLayoutDefaults:GW(),calc:hY().calc,crossTraceCalc:Ib().crossTraceCalc,plot:Wb().plot,layerName:"barlayer",style:zd().style,styleOnSelect:zd().styleOnSelect,colorbar:Cc(),hoverPoints:YMe(),selectPoints:T5(),eventData:TY(),moduleType:"trace",name:"histogram",basePlotModule:xl(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var QMe=W((fHr,JMe)=>{"use strict";JMe.exports=KMe()});var xP=W((hHr,rSe)=>{"use strict";var dv=vP(),eSe=xY(),yP=S5(),rNt=Ja(),AY=Ts().axisHoverFormat,{hovertemplateAttrs:iNt,texttemplateAttrs:nNt,templatefallbackAttrs:tSe}=Wa(),aNt=Fo(),aS=an().extendFlat;rSe.exports=aS({x:dv.x,y:dv.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:dv.histnorm,histfunc:dv.histfunc,nbinsx:dv.nbinsx,xbins:eSe("x"),nbinsy:dv.nbinsy,ybins:eSe("y"),autobinx:dv.autobinx,autobiny:dv.autobiny,bingroup:aS({},dv.bingroup,{}),xbingroup:aS({},dv.bingroup,{}),ybingroup:aS({},dv.bingroup,{}),xgap:yP.xgap,ygap:yP.ygap,zsmooth:yP.zsmooth,xhoverformat:AY("x"),yhoverformat:AY("y"),zhoverformat:AY("z",1),hovertemplate:iNt({},{keys:["z"]}),hovertemplatefallback:tSe(),texttemplate:nNt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:tSe({editType:"plot"}),textfont:yP.textfont,showlegend:aS({},rNt.showlegend,{dflt:!1})},aNt("",{cLetter:"z",autoColorDflt:!1}))});var MY=W((dHr,nSe)=>{"use strict";var oNt=xi(),iSe=tt();nSe.exports=function(t,r,i,n){var a=i("x"),o=i("y"),s=iSe.minRowLength(a),l=iSe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=oNt.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 oSe=W((pHr,aSe)=>{"use strict";var sNt=tt(),lNt=MY(),uNt=aY(),cNt=Bu(),fNt=tS(),hNt=xP();aSe.exports=function(t,r,i,n){function a(o,s){return sNt.coerce(t,r,hNt,o,s)}lNt(t,r,a,n),r.visible!==!1&&(uNt(t,r,a,n),cNt(t,r,n,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),fNt(a,n),a("xhoverformat"),a("yhoverformat"))}});var uSe=W((vHr,lSe)=>{"use strict";var dNt=pP(),sSe=Yi().hoverLabelText;lSe.exports=function(t,r,i,n,a){var o=dNt(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=sSe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=sSe(t.ya,[p[0],p[1]],f.yhoverformat),o}}});var fSe=W((gHr,cSe)=>{"use strict";cSe.exports={attributes:xP(),supplyDefaults:oSe(),crossTraceDefaults:mP(),calc:lP(),plot:fP(),layerName:"heatmaplayer",colorbar:F5(),style:hP(),hoverPoints:uSe(),eventData:TY(),moduleType:"trace",name:"histogram2d",basePlotModule:xl(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var dSe=W((mHr,hSe)=>{"use strict";hSe.exports=fSe()});var bP={};Jn(bP,{COMPARISON_OPS:()=>pNt,COMPARISON_OPS2:()=>vNt,CONSTRAINT_REDUCTION:()=>yNt,INTERVAL_OPS:()=>gNt,SET_OPS:()=>mNt});var pNt,vNt,gNt,mNt,yNt,_P=Ci(()=>{"use strict";pNt=["=","!=","<",">=",">","<="],vNt=["=","<",">=",">","<="],gNt=["[]","()","[)","(]","][",")(","](",")["],mNt=["{}","}{"],yNt={"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}});var oS=W((yHr,mSe)=>{"use strict";var ql=S5(),wP=Ws(),vSe=Ts(),SY=vSe.axisHoverFormat,xNt=vSe.descriptionOnlyNumbers,bNt=Fo(),_Nt=zu().dash,wNt=jo(),L5=an().extendFlat,gSe=(_P(),Pt(bP)),TNt=gSe.COMPARISON_OPS2,ANt=gSe.INTERVAL_OPS,pSe=wP.line;mSe.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:wNt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:xNt("contour label")},operation:{valType:"enumerated",values:[].concat(TNt).concat(ANt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:L5({},pSe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:_Nt,smoothing:L5({},pSe.smoothing,{}),editType:"plot"},zorder:wP.zorder},bNt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var kY=W((xHr,xSe)=>{"use strict";var sf=xP(),B1=oS(),MNt=Fo(),EY=Ts().axisHoverFormat,ySe=an().extendFlat;xSe.exports=ySe({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:ySe({},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},MNt("",{cLetter:"z",editTypeOverride:"calc"}))});var TP=W((bHr,bSe)=>{"use strict";bSe.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((_Hr,_Se)=>{"use strict";var SNt=tt();_Se.exports=function(t,r,i,n){n||(n={});var a=t("contours.showlabels");if(a){var o=r.font;SNt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:i}}),t("contours.labelformat")}n.hasHover!==!1&&t("zhoverformat")}});var AP=W((wHr,wSe)=>{"use strict";var ENt=Bu(),kNt=CY();wSe.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,ENt(t,r,n,i,{prefix:"",cLetter:"z"})),i("line.smoothing"),kNt(i,n,l,a)}});var SSe=W((THr,MSe)=>{"use strict";var TSe=tt(),CNt=MY(),DNt=TP(),FNt=AP(),LNt=tS(),ASe=kY();MSe.exports=function(t,r,i,n){function a(s,l){return TSe.coerce(t,r,ASe,s,l)}function o(s){return TSe.coerce2(t,r,ASe,s)}CNt(t,r,a,n),r.visible!==!1&&(DNt(t,r,a,o),FNt(t,r,a,n),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&LNt(a,n))}});var LY=W((AHr,kSe)=>{"use strict";var FY=Yi(),DY=tt();kSe.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=ESe(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=ESe(s,l,t.ncontours).dtick,u.size=i.size=c}}};function ESe(e,t,r){var i={type:"linear",range:[e,t]};return FY.autoTicks(i,(t-e)/(r||15)),i}});var sS=W((MHr,CSe)=>{"use strict";CSe.exports=function(t){return t.end+t.size/1e6}});var PY=W((SHr,FSe)=>{"use strict";var DSe=es(),PNt=lP(),INt=LY(),RNt=sS();FSe.exports=function(t,r){var i=PNt(t,r),n=i[0].z;INt(r,n);var a=r.contours,o=DSe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=RNt(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 DSe.calc(t,r,{vals:s,cLetter:"z"}),i}});var lS={};Jn(lS,{BOTTOMSTART:()=>zNt,CHOOSESADDLE:()=>UNt,LABELDISTANCE:()=>GNt,LABELINCREASE:()=>HNt,LABELMAX:()=>$Nt,LABELMIN:()=>jNt,LABELOPTIMIZER:()=>WNt,LEFTSTART:()=>qNt,NEWDELTA:()=>NNt,RIGHTSTART:()=>ONt,SADDLEREMAINDER:()=>VNt,TOPSTART:()=>BNt});var zNt,BNt,qNt,ONt,NNt,UNt,VNt,GNt,HNt,jNt,$Nt,WNt,uS=Ci(()=>{"use strict";zNt=[1,9,13,104,713],BNt=[4,6,7,104,713],qNt=[8,12,14,208,1114],ONt=[2,3,11,208,1114],NNt=[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]],UNt={104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},VNt={1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},GNt=2,HNt=10,jNt=3,$Nt=10,WNt={EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}});var IY=W((EHr,LSe)=>{"use strict";var MP=(uS(),Pt(lS));LSe.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((kHr,RSe)=>{"use strict";var SP=tt(),P5=(uS(),Pt(lS));RSe.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(ISe(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,M,x,A,T,y,E,S,C,k,D,F;for(p=1;p=b;p--)if(M=_[p],M=b&&M+_[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 ISe(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 OSe=W((CHr,qSe)=>{"use strict";var zY=(_P(),Pt(bP)),KNt=hn();qSe.exports={"[]":zSe("[]"),"][":zSe("]["),">":BY(">"),"<":BY("<"),"=":BY("=")};function BSe(e,t){var r=Array.isArray(t),i;function n(a){return KNt(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 zSe(e){return function(t){t=BSe(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=BSe(e,t),{start:t,end:1/0,size:1/0}}}});var qY=W((DHr,USe)=>{"use strict";var NSe=tt(),JNt=OSe(),QNt=sS();USe.exports=function(t,r,i){for(var n=t.type==="constraint"?JNt[t._operation](t.value):t,a=n.size,o=[],s=QNt(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){NSe.warn("Too many contours, clipping at 1000",t);break}return o}});var OY=W((FHr,GSe)=>{"use strict";var I5=tt();GSe.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";HSe.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(),eUt=es(),WSe=ao(),jSe=Yi(),$Se=g1(),tUt=fP(),YSe=IY(),XSe=RY(),rUt=qY(),iUt=OY(),ZSe=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=rUt(p,r,u),v=lc.ensureSingle(l,"g","heatmapcoloring"),m=[];p.coloring==="heatmap"&&(m=[s]),tUt(t,r,m,v),YSe(d),XSe(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),M=[[g,b],[w,b],[w,_],[g,_]],x=d;p.type==="constraint"&&(x=iUt(d,p._operation)),nUt(l,M,p),aUt(l,x,M,p),oUt(l,d,t,u,p),lUt(l,r,t,u,M)})};function nUt(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 aUt(e,t,r,i){var n=i.coloring==="fill"||i.type==="constraint"&&i._operation!=="=",a="M"+r.join("L")+"Z";n&&ZSe(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:"")+KSe(l,r);u?hS.select(this).attr("d",u).style("stroke","none"):hS.select(this).remove()})}function KSe(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 sUt(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 cUt=gi(),UY=es(),fUt=sS();JSe.exports=function(t){var r=t.contours,i=r.start,n=fUt(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(),QSe=Qi(),hUt=hP(),dUt=VY();eEe.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?dUt(a):null;n.selectAll("g.contourlevel").each(function(m){kP.select(this).selectAll("path").call(QSe.lineGroupStyle,s.width,f?p(m.level):s.color,s.dash)});var d=o.labelfont;if(n.selectAll("g.contourlabels text").each(function(m){QSe.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))}}),hUt(t)}});var DP=W((zHr,rEe)=>{"use strict";var tEe=es(),pUt=VY(),vUt=sS();function gUt(e,t,r){var i=t.contours,n=t.line,a=i.size||1,o=i.coloring,s=pUt(t,{isColorbar:!0});if(o==="heatmap"){var l=tEe.extractOpts(t);r._fillgradient=l.reversescale?tEe.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:vUt(i),size:a}}rEe.exports={min:"zmin",max:"zmax",calc:gUt}});var GY=W((BHr,iEe)=>{"use strict";var FP=ti(),mUt=pP();iEe.exports=function(t,r,i,n,a){a||(a={}),a.isContour=!0;var o=mUt(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 aEe=W((qHr,nEe)=>{"use strict";nEe.exports={attributes:kY(),supplyDefaults:SSe(),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 sEe=W((OHr,oEe)=>{"use strict";oEe.exports=aEe()});var HY=W((NHr,dEe)=>{"use strict";var lEe=hn(),yUt=CY(),fEe=ti(),uEe=fEe.addOpacity,xUt=fEe.opacity,hEe=(_P(),Pt(bP)),cEe=tt().isArrayOrTypedArray,bUt=hEe.CONSTRAINT_REDUCTION,_Ut=hEe.COMPARISON_OPS2;dEe.exports=function(t,r,i,n,a,o){var s=r.contours,l,u,c,f=i("contours.operation");if(s._operation=bUt[f],wUt(i,s),f==="="?l=s.showlines=!0:(l=i("contours.showlines"),c=i("fillcolor",uEe((t.line||{}).color||a,.5))),l){var h=c&&xUt(c)?uEe(r.fillcolor,1):a;u=i("line.color",h),i("line.width",2),i("line.dash")}i("line.smoothing"),yUt(i,n,u,o)};function wUt(e,t){var r;_Ut.indexOf(t.operation)===-1?(e("contours.value",[0,1]),cEe(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])]:lEe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),lEe(t.value)||(cEe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var gEe=W((UHr,vEe)=>{"use strict";var jY=tt(),TUt=JL(),AUt=ev(),MUt=HY(),SUt=TP(),EUt=AP(),kUt=tS(),pEe=oS();vEe.exports=function(t,r,i,n){function a(u,c){return jY.coerce(t,r,pEe,u,c)}function o(u){return jY.coerce2(t,r,pEe,u)}var s=TUt(t,r,a,n);if(!s){r.visible=!1;return}AUt(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?MUt(t,r,a,n,i):(SUt(t,r,a,o),EUt(t,r,a,n)),r.contours&&r.contours.coloring==="heatmap"&&kUt(a,n),a("zorder")}});var yEe=W((VHr,mEe)=>{"use strict";mEe.exports={attributes:oS(),supplyDefaults:gEe(),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 bEe=W((GHr,xEe)=>{"use strict";xEe.exports=yEe()});var $Y=W((HHr,AEe)=>{"use strict";var{hovertemplateAttrs:CUt,texttemplateAttrs:DUt,templatefallbackAttrs:_Ee}=Wa(),FUt=C1(),B0=Ws(),LUt=Ja(),wEe=Fo(),PUt=zu().dash,u2=an().extendFlat,Ud=B0.marker,dS=B0.line,TEe=Ud.line;AEe.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:DUt({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:_Ee({editType:"plot"}),hovertext:u2({},B0.hovertext,{}),line:{color:dS.color,width:dS.width,dash:PUt,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:FUt(),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:TEe.width,dash:TEe.dash,editType:"calc"},wEe("marker.line")),gradient:Ud.gradient,editType:"calc"},wEe("marker")),textfont:B0.textfont,textposition:B0.textposition,selected:B0.selected,unselected:B0.unselected,hoverinfo:u2({},LUt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:B0.hoveron,hovertemplate:CUt(),hovertemplatefallback:_Ee()}});var kEe=W((jHr,EEe)=>{"use strict";var MEe=tt(),IUt=(k1(),Pt(E1)),R5=Wo(),RUt=Dd(),zUt=tv(),SEe=Jw(),BUt=rv(),qUt=F1(),OUt=$Y();EEe.exports=function(t,r,i,n){function a(h,p){return MEe.coerce(t,r,OUt,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();CEe.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 IEe=W((WHr,PEe)=>{"use strict";var YY=hn(),NUt=Fd(),UUt=L1(),VUt=C0(),GUt=Ld().calcMarkerSize,FEe=["a","b","c"],LEe={a:["b","c"],b:["a","c"],c:["a","b"]};PEe.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 HUt=n5();REe.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 jUt=l5();BEe.exports=function(t,r,i,n){var a=jUt(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,M){g.push(b._hovertitle+": "+M)}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 NEe=W((ZHr,OEe)=>{"use strict";OEe.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 JEe=W((KHr,KEe)=>{"use strict";var WEe=gi(),XY=xi(),Gd=tt(),Vd=Gd.strTranslate,LP=Gd._,uh=ti(),Zb=Qi(),UEe=ao(),pS=g1(),ZY=an().extendFlat,$Ut=Qo(),um=Yi(),VEe=Ef(),GEe=Is(),YEe=_1(),HEe=YEe.freeMode,WUt=YEe.rectMode,KY=pb(),YUt=xu().prepSelect,XUt=xu().selectOnClick,ZUt=xu().clearOutline,KUt=xu().clearSelectionsCache,XEe=(Zl(),Pt(Xl));function ZEe(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}KEe.exports=ZEe;var pv=ZEe.prototype;pv.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};pv.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],M=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(M,r.graphDiv._fullLayout),M.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 S=Vd(d-x._offset,v+g);r.layers.baxis.attr("transform",S),r.layers.bgrid.attr("transform",S);var C=Vd(d+m/2,v)+"rotate(30)"+Vd(0,-M._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",M.showline?"M"+d+","+(v+g)+"l"+m/2+",-"+g:"M0,0").call(uh.stroke,M.linecolor||"#000").style("stroke-width",(M.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)};pv.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"}})}};pv.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=JUt(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 JUt(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var Vu=XEe.MINZOOM/2+.87,QUt="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",eVt="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",tVt="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",rVt="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",jEe=!0;pv.clearOutline=function(){KUt(this.dragOptions),ZUt(this.dragOptions.gd)};pv.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;HEe(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(S,C,k)):D==="pan"?(e.dragOptions.moveFn=y,e.dragOptions.clickFn=g,e.dragOptions.doneFn=E,T(),e.clearOutline(r)):(WUt(D)||HEe(D))&&YUt(S,C,k,e.dragOptions,D)}};var o,s,l,u,c,f,h,p,d,v;function m(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 g(S,C){var k=r._fullLayout.clickmode;$Ee(r),S===2&&(r.emit("plotly_doubleclick",null),XY.call("_guiRelayout",r,m({a:0,b:0,c:0}))),k.indexOf("select")>-1&&S===1&&XUt(C,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),k.indexOf("event")>-1&&GEe.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=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 _(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))),R=Math.max(0,Math.min(1,M(o,s),M(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(){$Ee(r),c!==l&&(XY.call("_guiRelayout",r,m(c)),jEe&&r.data&&r._context.showTips&&(Gd.notifier(LP(r,"Double-click to zoom back out"),"long",r),jEe=!1))}function T(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function y(S,C){var k=S/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,S=(l.c-c.c-l.b+c.b)*e.xaxis._m);var R=Vd(e.x0+S,e.y0+C);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",R);var L=Vd(-S,-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(S){GEe.hover(r,S,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(S){r._dragging||VEe.unhover(r,S)},VEe.init(this.dragOptions)};function $Ee(e){WEe.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var QY=W((JHr,QEe)=>{"use strict";var iVt=Yl(),nVt=ds().attributes,La=ac(),aVt=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=QEe.exports=aVt({domain:nVt({name:"ternary"}),bgcolor:{valType:"color",dflt:iVt.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((QHr,eke)=>{"use strict";var oVt=tt(),sVt=Ra(),lVt=ds().defaults;eke.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 oVt.coerce(h,p,o,w,_)}for(var v=0;v{"use strict";var uVt=ti(),cVt=Ra(),vS=tt(),fVt=Kb(),hVt=Py(),dVt=Iy(),pVt=Cw(),vVt=ub(),gVt=FM(),rke=QY(),tke=["aaxis","baxis","caxis"];ike.exports=function(t,r,i){fVt(t,r,i,{type:"ternary",attributes:rke,handleDefaults:mVt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function mVt(e,t,r,i){var n=r("bgcolor"),a=r("sum");i.bgColor=uVt.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 yVt(e,t,r,i){var n=rke[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,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"),vVt(e,t,a,"linear"),dVt(e,t,a,"linear"),hVt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),pVt(e,t,a,{outerTicks:!0});var p=a("showticklabels");p&&(vS.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:l}}),a("tickangle"),a("tickformat")),gVt(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 ake=W(Hd=>{"use strict";var xVt=JEe(),bVt=Mc().getSubplotCalcData,_Vt=tt().counterRegex,B5="ternary";Hd.name=B5;var wVt=Hd.attr="subplot";Hd.idRoot=B5;Hd.idRegex=Hd.attrRegex=_Vt(B5);var TVt=Hd.attributes={};TVt[wVt]={valType:"subplotid",dflt:"ternary",editType:"calc"};Hd.layoutAttributes=QY();Hd.supplyLayoutDefaults=nke();Hd.plot=function(t){for(var r=t._fullLayout,i=t.calcdata,n=r._subplots[B5],a=0;a{"use strict";oke.exports={attributes:$Y(),supplyDefaults:kEe(),colorbar:Cc(),formatLabels:DEe(),calc:IEe(),plot:zEe(),style:lh().style,styleOnSelect:lh().styleOnSelect,hoverPoints:qEe(),selectPoints:Rb(),eventData:NEe(),moduleType:"trace",name:"scatterternary",basePlotModule:ake(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var uke=W((ijr,lke)=>{"use strict";lke.exports=ske()});var eX=W((njr,fke)=>{"use strict";var eu=KM(),q5=an().extendFlat,cke=Ts().axisHoverFormat;fke.exports={y:eu.y,x:eu.x,x0:eu.x0,y0:eu.y0,xhoverformat:cke("x"),yhoverformat:cke("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((ajr,hke)=>{"use strict";var tX=JM(),rX=tt().extendFlat;hke.exports={violinmode:rX({},tX.boxmode,{}),violingap:rX({},tX.boxgap,{}),violingroupgap:rX({},tX.boxgroupgap,{})}});var mke=W((ojr,gke)=>{"use strict";var dke=tt(),AVt=ti(),pke=eS(),vke=eX();gke.exports=function(t,r,i,n){function a(M,x){return dke.coerce(t,r,vke,M,x)}function o(M,x){return dke.coerce2(t,r,vke,M,x)}if(pke.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",AVt.addOpacity(r.line.color,.5));pke.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 xke=W((sjr,yke)=>{"use strict";var MVt=tt(),SVt=iX(),EVt=$L();yke.exports=function(t,r,i){function n(a,o){return MVt.coerce(t,r,SVt,a,o)}EVt._supply(t,r,i,n,"violin")}});var RP=W(Jb=>{"use strict";var kVt=tt(),CVt={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=CVt.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(),DVt=KW(),bke=RP(),FVt=(ra(),Pt(ia)).BADNUM;_ke.exports=function(t,r){var i=DVt(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 RVt=YL().setPositionOffset,Tke=["v","h"];Ake.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(),zVt=Qi(),lX=XL(),BVt=R$(),qVt=RP();Ske.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=BVt(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return zVt.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",M=_||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 kke=gi(),O5=ti(),OVt=lh().stylePoints;Cke.exports=function(t){var r=kke.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=kke.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),OVt(a,n,t)})}});var Ike=W((djr,Pke)=>{"use strict";var NVt=ti(),uX=tt(),UVt=Yi(),Fke=rY(),Lke=RP();Pke.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=Fke.hoverOnBoxes(t,r,i,n);if(f&&v.length>0){var m=t.xa,g=t.ya,w,_,b,M,x;l.orientation==="h"?(x=r,w="y",b=g,_="x",M=m):(x=i,w="x",b=m,_="y",M=g);var A=s[t.index];if(x>=A.span[0]&&x<=A.span[1]){var T=uX.extendFlat({},t),y=M.c2p(x,!0),E=Lke.getKdeValue(A,l,x),S=Lke.getPositionOnKdePath(A,l,y),C=b._offset,k=b._length;T[w+"0"]=S[0],T[w+"1"]=S[1],T[_+"0"]=T[_+"1"]=y,T[_+"Label"]=_+": "+UVt.hoverLabelText(M,x,l[_+"hoverformat"])+", "+s[0].t.labels.kde+" "+E.toFixed(3);for(var D=0,F=0;F{"use strict";Rke.exports={attributes:eX(),layoutAttributes:iX(),supplyDefaults:mke(),crossTraceDefaults:eS().crossTraceDefaults,supplyLayoutDefaults:xke(),calc:wke(),crossTraceCalc:Mke(),plot:Eke(),style:Dke(),styleOnSelect:lh().styleOnSelect,hoverPoints:Ike(),selectPoints:iY(),moduleType:"trace",name:"violin",basePlotModule:xl(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var qke=W((vjr,Bke)=>{"use strict";Bke.exports=zke()});var Oke={};Jn(Oke,{eventDataKeys:()=>VVt});var VVt,Nke=Ci(()=>{"use strict";VVt=["percentInitial","percentPrevious","percentTotal"]});var fX=W((gjr,Hke)=>{"use strict";var ps=R1(),cX=Ws().line,GVt=Ja(),Uke=Ts().axisHoverFormat,{hovertemplateAttrs:HVt,texttemplateAttrs:jVt,templatefallbackAttrs:Vke}=Wa(),Gke=(Nke(),Pt(Oke)),cm=an().extendFlat,$Vt=ti();Hke.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:Uke("x"),yhoverformat:Uke("y"),hovertext:ps.hovertext,hovertemplate:HVt({},{keys:Gke.eventDataKeys}),hovertemplatefallback:Vke(),hoverinfo:cm({},GVt.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:jVt({editType:"plot"},{keys:Gke.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Vke({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:WVt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:cm({},cX.color,{dflt:$Vt.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 WVt(){var e=cm({},ps.marker);return delete e.pattern,delete e.cornerradius,e}});var hX=W((mjr,jke)=>{"use strict";jke.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((yjr,Wke)=>{"use strict";var zP=tt(),YVt=Pb(),XVt=I0().handleText,ZVt=Lb(),KVt=ev(),$ke=fX(),dX=ti();function JVt(e,t,r,i){function n(f,h){return zP.coerce(e,t,$ke,f,h)}var a=ZVt(e,t,i,n);if(!a){t.visible=!1;return}KVt(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");XVt(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",QVt(l));var c=n("connector.line.width");c&&(n("connector.line.color"),n("connector.line.dash"))}n("zorder")}function QVt(e){var t=zP.isArrayOrTypedArray(e)?"#000":e;return dX.addOpacity(t,.5*dX.opacity(t))}function eGt(e,t){var r,i;function n(o){return zP.coerce(i._input,i,$ke,o)}for(var a=0;a{"use strict";var tGt=tt(),rGt=hX();Yke.exports=function(e,t,r){var i=!1;function n(s,l){return tGt.coerce(e,t,rGt,s,l)}for(var a=0;a{"use strict";var N5=tt();Zke.exports=function(t,r){for(var i=0;i{"use strict";var Jke=Yi(),Qke=iv(),iGt=Kke(),nGt=C0(),gS=(ra(),Pt(ia)).BADNUM;eCe.exports=function(t,r){var i=Jke.getFromId(t,r.xaxis||"x"),n=Jke.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=Qke(r,n,"y",s),u=!!r.yperiodalignment,c="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=Qke(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 rCe=Ib().setGroupPositions;iCe.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(),aCe=Qi(),c2=(ra(),Pt(ia)).BADNUM,aGt=Wb(),oGt=of().clearMinTextSize;sCe.exports=function(t,r,i,n){var a=t._fullLayout;oGt("funnel",a),sGt(t,r,i,n),lGt(t,r,i,n),aGt.plot(t,r,i,n,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function sGt(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=oCe(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(aCe.setClipUrl,t.layerClipId,e)}})})}function lGt(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=oCe(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(aCe.setClipUrl,t.layerClipId,e)}})})}function oCe(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 fCe=W((Ajr,cCe)=>{"use strict";var mS=gi(),uCe=Qi(),gX=ti(),uGt=(Ng(),Pt(Og)).DESELECTDIM,cGt=zd(),fGt=of().resizeText,hGt=cGt.styleTextPoints;function dGt(e,t,r){var i=r||mS.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");fGt(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(uCe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?uGt:1)}}),hGt(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;uCe.lineGroupStyle(mS.select(this).selectAll("path"),s.width,s.color,s.dash)})})}cCe.exports={style:dGt}});var pCe=W((Mjr,dCe)=>{"use strict";var hCe=ti().opacity,pGt=w5().hoverOnBars,mX=tt().formatPercent;dCe.exports=function(t,r,i,n,a){var o=pGt(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=vGt(l,f),[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(hCe(i))return i;if(hCe(n)&&a)return n}});var gCe=W((Sjr,vCe)=>{"use strict";vCe.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 yCe=W((Ejr,mCe)=>{"use strict";mCe.exports={attributes:fX(),layoutAttributes:hX(),supplyDefaults:pX().supplyDefaults,crossTraceDefaults:pX().crossTraceDefaults,supplyLayoutDefaults:Xke(),calc:tCe(),crossTraceCalc:nCe(),plot:lCe(),style:fCe().style,hoverPoints:pCe(),eventData:gCe(),selectPoints:T5(),moduleType:"trace",name:"funnel",basePlotModule:xl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var bCe=W((kjr,xCe)=>{"use strict";xCe.exports=yCe()});var _Ce={};Jn(_Ce,{eventDataKeys:()=>gGt});var gGt,wCe=Ci(()=>{"use strict";gGt=["initial","delta","final"]});var bX=W((Cjr,SCe)=>{"use strict";var Xo=R1(),yX=Ws().line,mGt=Ja(),TCe=Ts().axisHoverFormat,{hovertemplateAttrs:yGt,texttemplateAttrs:xGt,templatefallbackAttrs:ACe}=Wa(),MCe=(wCe(),Pt(_Ce)),U5=an().extendFlat,bGt=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"}}SCe.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:TCe("x"),yhoverformat:TCe("y"),hovertext:Xo.hovertext,hovertemplate:yGt({},{keys:MCe.eventDataKeys}),hovertemplatefallback:ACe(),hoverinfo:U5({},mGt.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:xGt({editType:"plot"},{keys:MCe.eventDataKeys.concat(["label"])}),texttemplatefallback:ACe({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:bGt.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((Djr,ECe)=>{"use strict";ECe.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:()=>wGt,INCREASING:()=>_Gt});var _Gt,wGt,G5=Ci(()=>{"use strict";_Gt={COLOR:"#3D9970",SYMBOL:"\u25B2"},wGt={COLOR:"#FF4136",SYMBOL:"\u25BC"}});var TX=W((Fjr,FCe)=>{"use strict";var kCe=tt(),TGt=Pb(),AGt=I0().handleText,MGt=Lb(),SGt=ev(),CCe=bX(),EGt=ti(),DCe=(G5(),Pt(V5)),kGt=DCe.INCREASING.COLOR,CGt=DCe.DECREASING.COLOR,DGt="#4499FF";function wX(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",EGt.defaultLine),e(t+".marker.line.width")}function FGt(e,t,r,i){function n(u,c){return kCe.coerce(e,t,CCe,u,c)}var a=MGt(e,t,i,n);if(!a){t.visible=!1;return}SGt(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");AGt(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",kGt),wX(n,"decreasing",CGt),wX(n,"totals",DGt);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 LGt(e,t){var r,i;function n(o){return kCe.coerce(i._input,i,CCe,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var PGt=tt(),IGt=_X();LCe.exports=function(e,t,r){var i=!1;function n(s,l){return PGt.coerce(e,t,IGt,s,l)}for(var a=0;a{"use strict";var ICe=Yi(),RCe=iv(),zCe=tt().mergeArray,RGt=C0(),BCe=(ra(),Pt(ia)).BADNUM;function AX(e){return e==="a"||e==="absolute"}function MX(e){return e==="t"||e==="total"}qCe.exports=function(t,r){var i=ICe.getFromId(t,r.xaxis||"x"),n=ICe.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=RCe(r,n,"y",s),u=!!r.yperiodalignment,c="y"):(a=n.makeCalcdata(r,"y"),s=i.makeCalcdata(r,"x"),l=RCe(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 NCe=Ib().setGroupPositions;UCe.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 GCe=gi(),qP=tt(),zGt=Qi(),H5=(ra(),Pt(ia)).BADNUM,BGt=Wb(),qGt=of().clearMinTextSize;HCe.exports=function(t,r,i,n){var a=t._fullLayout;qGt("waterfall",a),BGt.plot(t,r,i,n,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),OGt(t,r,i,n)};function OGt(e,t,r,i){var n=t.xaxis,a=t.yaxis;qP.makeTraceGroups(i,r,"trace bars").each(function(o){var s=GCe.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=NGt(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(),$Ce=Qi(),WCe=ti(),UGt=(Ng(),Pt(Og)).DESELECTDIM,VGt=zd(),GGt=of().resizeText,HGt=VGt.styleTextPoints;function jGt(e,t,r){var i=r||OP.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");GGt(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(WCe.fill,l.color).call(WCe.stroke,l.line.color).call($Ce.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?UGt:1)}}),HGt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;$Ce.lineGroupStyle(OP.select(this).selectAll("path"),s.width,s.color,s.dash)})})}YCe.exports={style:jGt}});var e8e=W((Bjr,QCe)=>{"use strict";var $Gt=Yi().hoverLabelText,ZCe=ti().opacity,WGt=w5().hoverOnBars,KCe=(G5(),Pt(V5)),JCe={increasing:KCe.INCREASING.SYMBOL,decreasing:KCe.DECREASING.SYMBOL};QCe.exports=function(t,r,i,n,a){var o=WGt(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 $Gt(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("+"),M=function(x){return _||b.indexOf(x)!==-1};d.isSum||(M("final")&&(u?!M("x"):!M("y"))&&w.push(o.finalLabel),M("delta")&&(v<0?w.push(o.deltaLabel+" "+JCe.decreasing):w.push(o.deltaLabel+" "+JCe.increasing)),M("initial")&&w.push("Initial: "+o.initialLabel))}return w.length&&(o.extraText=w.join("
")),o.color=YGt(l,d),[o]};function YGt(e,t){var r=e[t.dir].marker,i=r.color,n=r.line.color,a=r.line.width;if(ZCe(i))return i;if(ZCe(n)&&a)return n}});var r8e=W((qjr,t8e)=>{"use strict";t8e.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 n8e=W((Ojr,i8e)=>{"use strict";i8e.exports={attributes:bX(),layoutAttributes:_X(),supplyDefaults:TX().supplyDefaults,crossTraceDefaults:TX().crossTraceDefaults,supplyLayoutDefaults:PCe(),calc:OCe(),crossTraceCalc:VCe(),plot:jCe(),style:XCe().style,hoverPoints:e8e(),eventData:r8e(),selectPoints:T5(),moduleType:"trace",name:"waterfall",basePlotModule:xl(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var o8e=W((Njr,a8e)=>{"use strict";a8e.exports=n8e()});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:()=>ZGt});var s8e,l8e,NP,u8e,c8e,f8e,h8e,XGt,ZGt,kX=Ci(()=>{"use strict";s8e=l1(an()),l8e=l1(Ja()),NP=l1(Wa()),u8e=l1(Ws());j5();c8e=["rgb","rgba","rgba256","hsl","hsla"],f8e=[],h8e=[];for(let e of c8e){let t=SX[e];f8e.push(`For the \`${e}\` colormodel, it is [${(t.zminDflt||t.min).join(", ")}].`),h8e.push(`For the \`${e}\` colormodel, it is [${(t.zmaxDflt||t.max).join(", ")}].`)}XGt={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:c8e,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.",f8e.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.",h8e.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,s8e.extendFlat)({},l8e.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:u8e.zorder},ZGt=XGt});var v8e=W((Vjr,p8e)=>{"use strict";var KGt=tt(),JGt=(kX(),Pt(EX)).default,d8e=(j5(),Pt(yS)),QGt=em().IMAGE_URL_PREFIX;p8e.exports=function(t,r){function i(o,s){return KGt.coerce(t,r,JGt,o,s)}i("source"),r.source&&!r.source.match(QGt)&&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=d8e.colormodel[r.colormodel],i("zmin",a.zminDflt||a.min),i("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=d8e.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((Gjr,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((Hjr,g8e)=>{g8e.exports=ib().EventEmitter});var x8e=W(UP=>{"use strict";UP.byteLength=tHt;UP.toByteArray=iHt;UP.fromByteArray=oHt;var O1=[],jd=[],eHt=typeof Uint8Array!="undefined"?Uint8Array:Array,FX="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Qb=0,m8e=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 tHt(e){var t=y8e(e),r=t[0],i=t[1];return(r+i)*3/4-i}function rHt(e,t,r){return(t+r)*3/4-r}function iHt(e){var t,r=y8e(e),i=r[0],n=r[1],a=new eHt(rHt(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 nHt(e){return O1[e>>18&63]+O1[e>>12&63]+O1[e>>6&63]+O1[e&63]}function aHt(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 b8e=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=x8e(),W5=b8e(),_8e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;X5.Buffer=Ur;X5.SlowBuffer=hHt;X5.INSPECT_MAX_BYTES=50;var VP=2147483647;X5.kMaxLength=VP;Ur.TYPED_ARRAY_SUPPORT=sHt();!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 sHt(){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 M8e(e,t,r)}Ur.poolSize=8192;function M8e(e,t,r){if(typeof e=="string")return uHt(e,t);if(ArrayBuffer.isView(e))return cHt(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=fHt(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 M8e(e,t,r)};Object.setPrototypeOf(Ur.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ur,Uint8Array);function S8e(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 lHt(e,t,r){return S8e(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 lHt(e,t,r)};function BX(e){return S8e(e),hm(e<0?0:qX(e)|0)}Ur.allocUnsafe=function(e){return BX(e)};Ur.allocUnsafeSlow=function(e){return BX(e)};function uHt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Ur.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=E8e(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 hHt(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 E8e(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 z8e(e).length;default:if(n)return i?-1:zX(e).length;t=(""+t).toLowerCase(),n=!0}}Ur.byteLength=E8e;function dHt(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 THt(this,t,r);case"utf8":case"utf-8":return C8e(this,t,r);case"ascii":return _Ht(this,t,r);case"latin1":case"binary":return wHt(this,t,r);case"base64":return xHt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return AHt(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+=" ... "),""};_8e&&(Ur.prototype[_8e]=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:w8e(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):w8e(e,[t],r,i,n);throw new TypeError("val must be string, number or Buffer")}function w8e(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 pHt(this,t,r,i);case"utf8":case"utf-8":return vHt(this,t,r,i);case"ascii":case"latin1":case"binary":return gHt(this,t,r,i);case"base64":return mHt(this,t,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yHt(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 xHt(e,t,r){return t===0&&r===e.length?PX.fromByteArray(e):PX.fromByteArray(e.slice(t,r))}function C8e(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 bHt(i)}var T8e=4096;function bHt(e){let t=e.length;if(t<=T8e)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 D8e(e,t,r,i,n){R8e(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 F8e(e,t,r,i,n){R8e(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 D8e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});Ur.prototype.writeBigUInt64BE=h2(function(t,r=0){return F8e(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 D8e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});Ur.prototype.writeBigInt64BE=h2(function(t,r=0){return F8e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function L8e(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 P8e(e,t,r,i,n){return t=+t,r=r>>>0,n||L8e(e,t,r,4,34028234663852886e22,-34028234663852886e22),W5.write(e,t,r,i,23,4),r+4}Ur.prototype.writeFloatLE=function(t,r,i){return P8e(this,t,r,!0,i)};Ur.prototype.writeFloatBE=function(t,r,i){return P8e(this,t,r,!1,i)};function I8e(e,t,r,i,n){return t=+t,r=r>>>0,n||L8e(e,t,r,8,17976931348623157e292,-17976931348623157e292),W5.write(e,t,r,i,52,8),r+8}Ur.prototype.writeDoubleLE=function(t,r,i){return I8e(this,t,r,!0,i)};Ur.prototype.writeDoubleBE=function(t,r,i){return I8e(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=A8e(String(r)):typeof r=="bigint"&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=A8e(n)),n+="n"),i+=` It must be ${t}. Received ${n}`,i},RangeError);function A8e(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 MHt(e,t,r){Y5(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&xS(t,e.length-(r+1))}function R8e(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)}MHt(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 SHt=/[^+/0-9A-Za-z-_]/g;function EHt(e){if(e=e.split("=")[0],e=e.trim().replace(SHt,""),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 kHt(e){let t=[];for(let r=0;r>8,n=r%256,a.push(n),a.push(i);return a}function z8e(e){return PX.toByteArray(EHt(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 DHt=(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"?FHt:e}function FHt(){throw new Error("BigInt not supported")}});var HP=W((Xjr,B8e)=>{"use strict";B8e.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((Zjr,q8e)=>{"use strict";var LHt=HP();q8e.exports=function(){return LHt()&&!!Symbol.toStringTag}});var jP=W((Kjr,O8e)=>{"use strict";O8e.exports=Object});var U8e=W((Jjr,N8e)=>{"use strict";N8e.exports=Error});var G8e=W((Qjr,V8e)=>{"use strict";V8e.exports=EvalError});var j8e=W((e$r,H8e)=>{"use strict";H8e.exports=RangeError});var W8e=W((t$r,$8e)=>{"use strict";$8e.exports=ReferenceError});var UX=W((r$r,Y8e)=>{"use strict";Y8e.exports=SyntaxError});var Z5=W((i$r,X8e)=>{"use strict";X8e.exports=TypeError});var K8e=W((n$r,Z8e)=>{"use strict";Z8e.exports=URIError});var Q8e=W((a$r,J8e)=>{"use strict";J8e.exports=Math.abs});var tDe=W((o$r,eDe)=>{"use strict";eDe.exports=Math.floor});var iDe=W((s$r,rDe)=>{"use strict";rDe.exports=Math.max});var aDe=W((l$r,nDe)=>{"use strict";nDe.exports=Math.min});var sDe=W((u$r,oDe)=>{"use strict";oDe.exports=Math.pow});var uDe=W((c$r,lDe)=>{"use strict";lDe.exports=Math.round});var fDe=W((f$r,cDe)=>{"use strict";cDe.exports=Number.isNaN||function(t){return t!==t}});var dDe=W((h$r,hDe)=>{"use strict";var PHt=fDe();hDe.exports=function(t){return PHt(t)||t===0?t:t<0?-1:1}});var vDe=W((d$r,pDe)=>{"use strict";pDe.exports=Object.getOwnPropertyDescriptor});var r_=W((p$r,gDe)=>{"use strict";var $P=vDe();if($P)try{$P([],"length")}catch(e){$P=null}gDe.exports=$P});var _S=W((v$r,mDe)=>{"use strict";var WP=Object.defineProperty||!1;if(WP)try{WP({},"a",{value:1})}catch(e){WP=!1}mDe.exports=WP});var bDe=W((g$r,xDe)=>{"use strict";var yDe=typeof Symbol!="undefined"&&Symbol,IHt=HP();xDe.exports=function(){return typeof yDe!="function"||typeof Symbol!="function"||typeof yDe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:IHt()}});var VX=W((m$r,_De)=>{"use strict";_De.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var GX=W((y$r,wDe)=>{"use strict";var RHt=jP();wDe.exports=RHt.getPrototypeOf||null});var MDe=W((x$r,ADe)=>{"use strict";var zHt="Function.prototype.bind called on incompatible ",BHt=Object.prototype.toString,qHt=Math.max,OHt="[object Function]",TDe=function(t,r){for(var i=[],n=0;n{"use strict";var VHt=MDe();SDe.exports=Function.prototype.bind||VHt});var YP=W((_$r,EDe)=>{"use strict";EDe.exports=Function.prototype.call});var XP=W((w$r,kDe)=>{"use strict";kDe.exports=Function.prototype.apply});var DDe=W((T$r,CDe)=>{"use strict";CDe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var HX=W((A$r,FDe)=>{"use strict";var GHt=K5(),HHt=XP(),jHt=YP(),$Ht=DDe();FDe.exports=$Ht||GHt.call(jHt,HHt)});var ZP=W((M$r,LDe)=>{"use strict";var WHt=K5(),YHt=Z5(),XHt=YP(),ZHt=HX();LDe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new YHt("a function is required");return ZHt(WHt,XHt,t)}});var qDe=W((S$r,BDe)=>{"use strict";var KHt=ZP(),PDe=r_(),RDe;try{RDe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var jX=!!RDe&&PDe&&PDe(Object.prototype,"__proto__"),zDe=Object,IDe=zDe.getPrototypeOf;BDe.exports=jX&&typeof jX.get=="function"?KHt([jX.get]):typeof IDe=="function"?function(t){return IDe(t==null?t:zDe(t))}:!1});var KP=W((E$r,VDe)=>{"use strict";var ODe=VX(),NDe=GX(),UDe=qDe();VDe.exports=ODe?function(t){return ODe(t)}:NDe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return NDe(t)}:UDe?function(t){return UDe(t)}:null});var $X=W((k$r,GDe)=>{"use strict";var JHt=Function.prototype.call,QHt=Object.prototype.hasOwnProperty,ejt=K5();GDe.exports=ejt.call(JHt,QHt)});var e9=W((C$r,XDe)=>{"use strict";var oo,tjt=jP(),rjt=U8e(),ijt=G8e(),njt=j8e(),ajt=W8e(),t4=UX(),e4=Z5(),ojt=K8e(),sjt=Q8e(),ljt=tDe(),ujt=iDe(),cjt=aDe(),fjt=sDe(),hjt=uDe(),djt=dDe(),WDe=Function,WX=function(e){try{return WDe('"use strict"; return ('+e+").constructor;")()}catch(t){}},wS=r_(),pjt=_S(),YX=function(){throw new e4},vjt=wS?(function(){try{return arguments.callee,YX}catch(e){try{return wS(arguments,"callee").get}catch(t){return YX}}})():YX,J5=bDe()(),Lc=KP(),gjt=GX(),mjt=VX(),YDe=XP(),TS=YP(),Q5={},yjt=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%":rjt,"%eval%":eval,"%EvalError%":ijt,"%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%":WDe,"%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%":tjt,"%Object.getOwnPropertyDescriptor%":wS,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?oo:Promise,"%Proxy%":typeof Proxy=="undefined"?oo:Proxy,"%RangeError%":njt,"%ReferenceError%":ajt,"%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%":vjt,"%TypedArray%":yjt,"%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%":ojt,"%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%":YDe,"%Object.defineProperty%":pjt,"%Object.getPrototypeOf%":gjt,"%Math.abs%":sjt,"%Math.floor%":ljt,"%Math.max%":ujt,"%Math.min%":cjt,"%Math.pow%":fjt,"%Math.round%":hjt,"%Math.sign%":djt,"%Reflect.getPrototypeOf%":mjt};if(Lc)try{null.error}catch(e){HDe=Lc(Lc(e)),i_["%Error.prototype%"]=HDe}var HDe,xjt=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},jDe={__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(),bjt=AS.call(TS,Array.prototype.concat),_jt=AS.call(YDe,Array.prototype.splice),$De=AS.call(TS,String.prototype.replace),QP=AS.call(TS,String.prototype.slice),wjt=AS.call(TS,RegExp.prototype.exec),Tjt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ajt=/\\(\\)?/g,Mjt=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 $De(t,Tjt,function(a,o,s,l){n[n.length]=s?$De(l,Ajt,"$1"):o||a}),n},Sjt=function(t,r){var i=t,n;if(JP(jDe,i)&&(n=jDe[i],i="%"+n[0]+"%"),JP(i_,i)){var a=i_[i];if(a===Q5&&(a=xjt(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!")};XDe.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(wjt(/^%?[^%]*%?$/,t)===null)throw new t4("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=Mjt(t),n=i.length>0?i[0]:"",a=Sjt("%"+n+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(n=u[0],_jt(i,bjt([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((D$r,JDe)=>{"use strict";var ZDe=e9(),KDe=ZP(),Ejt=KDe([ZDe("%String.prototype.indexOf%")]);JDe.exports=function(t,r){var i=ZDe(t,!!r);return typeof i=="function"&&Ejt(t,".prototype.")>-1?KDe([i]):i}});var t7e=W((F$r,e7e)=>{"use strict";var kjt=bS()(),Cjt=n_(),XX=Cjt("Object.prototype.toString"),t9=function(t){return kjt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:XX(t)==="[object Arguments]"},QDe=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]"},Djt=(function(){return t9(arguments)})();t9.isLegacyArguments=QDe;e7e.exports=Djt?t9:QDe});var s7e=W((L$r,o7e)=>{"use strict";var r7e=n_(),Fjt=bS()(),Ljt=$X(),Pjt=r_(),JX;Fjt?(i7e=r7e("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=Pjt(t,"lastIndex"),i=r&&Ljt(r,"value");if(!i)return!1;try{i7e(t,KX)}catch(n){return n===ZX}}):(n7e=r7e("Object.prototype.toString"),a7e="[object RegExp]",JX=function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:n7e(t)===a7e});var i7e,ZX,r9,KX,n7e,a7e;o7e.exports=JX});var u7e=W((P$r,l7e)=>{"use strict";var Ijt=n_(),Rjt=s7e(),zjt=Ijt("RegExp.prototype.exec"),Bjt=Z5();l7e.exports=function(t){if(!Rjt(t))throw new Bjt("`regex` must be a RegExp");return function(i){return zjt(t,i)!==null}}});var f7e=W((I$r,c7e)=>{"use strict";var qjt=function*(){}.constructor;c7e.exports=()=>qjt});var v7e=W((R$r,p7e)=>{"use strict";var d7e=n_(),Ojt=u7e(),Njt=Ojt(/^\s*(?:function)?\*/),Ujt=bS()(),h7e=KP(),Vjt=d7e("Object.prototype.toString"),Gjt=d7e("Function.prototype.toString"),Hjt=f7e();p7e.exports=function(t){if(typeof t!="function")return!1;if(Njt(Gjt(t)))return!0;if(!Ujt){var r=Vjt(t);return r==="[object GeneratorFunction]"}if(!h7e)return!1;var i=Hjt();return i&&h7e(t)===i.prototype}});var x7e=W((z$r,y7e)=>{"use strict";var m7e=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 jjt=/^\s*class\b/,tZ=function(t){try{var r=m7e.call(t);return jjt.test(r)}catch(i){return!1}},QX=function(t){try{return tZ(t)?!1:(m7e.call(t),!0)}catch(r){return!1}},n9=Object.prototype.toString,$jt="[object Object]",Wjt="[object Function]",Yjt="[object GeneratorFunction]",Xjt="[object HTMLAllCollection]",Zjt="[object HTML document.all class]",Kjt="[object HTMLCollection]",Jjt=typeof Symbol=="function"&&!!Symbol.toStringTag,Qjt=!(0 in[,]),rZ=function(){return!1};typeof document=="object"&&(g7e=document.all,n9.call(g7e)===n9.call(document.all)&&(rZ=function(t){if((Qjt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=n9.call(t);return(r===Xjt||r===Zjt||r===Kjt||r===$jt)&&t("")==null}catch(i){}return!1}));var g7e;y7e.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(Jjt)return QX(t);if(tZ(t))return!1;var r=n9.call(t);return r!==Wjt&&r!==Yjt&&!/^\[object HTML/.test(r)?!1:QX(t)}});var w7e=W((B$r,_7e)=>{"use strict";var e$t=x7e(),t$t=Object.prototype.toString,b7e=Object.prototype.hasOwnProperty,r$t=function(t,r,i){for(var n=0,a=t.length;n=3&&(n=i),a$t(t)?r$t(t,r,n):typeof t=="string"?i$t(t,r,n):n$t(t,r,n)}});var A7e=W((q$r,T7e)=>{"use strict";T7e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]});var S7e=W((O$r,M7e)=>{"use strict";var iZ=A7e(),o$t=typeof globalThis=="undefined"?window:globalThis;M7e.exports=function(){for(var t=[],r=0;r{"use strict";var E7e=_S(),s$t=UX(),i4=Z5(),k7e=r_();C7e.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=!!k7e&&k7e(t,r);if(E7e)E7e(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 s$t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var oZ=W((U$r,F7e)=>{"use strict";var aZ=_S(),D7e=function(){return!!aZ};D7e.hasArrayLengthDefineBug=function(){if(!aZ)return null;try{return aZ([],"length",{value:1}).length!==1}catch(t){return!0}};F7e.exports=D7e});var z7e=W((V$r,R7e)=>{"use strict";var l$t=e9(),L7e=nZ(),u$t=oZ()(),P7e=r_(),I7e=Z5(),c$t=l$t("%Math.floor%");R7e.exports=function(t,r){if(typeof t!="function")throw new I7e("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||c$t(r)!==r)throw new I7e("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],n=!0,a=!0;if("length"in t&&P7e){var o=P7e(t,"length");o&&!o.configurable&&(n=!1),o&&!o.writable&&(a=!1)}return(n||a||!i)&&(u$t?L7e(t,"length",r,!0,!0):L7e(t,"length",r)),t}});var q7e=W((G$r,B7e)=>{"use strict";var f$t=K5(),h$t=XP(),d$t=HX();B7e.exports=function(){return d$t(f$t,h$t,arguments)}});var MS=W((H$r,a9)=>{"use strict";var p$t=z7e(),O7e=_S(),v$t=ZP(),N7e=q7e();a9.exports=function(t){var r=v$t(arguments),i=1+t.length-(arguments.length-1);return p$t(r,i>0?i:0,!0)};O7e?O7e(a9.exports,"apply",{value:N7e}):a9.exports.apply=N7e});var cZ=W((j$r,H7e)=>{"use strict";var l9=w7e(),g$t=S7e(),U7e=MS(),lZ=n_(),s9=r_(),o9=KP(),m$t=lZ("Object.prototype.toString"),G7e=bS()(),V7e=typeof globalThis=="undefined"?window:globalThis,sZ=g$t(),uZ=lZ("String.prototype.slice"),y$t=lZ("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i-1}function w$t(e){if(!e||typeof e!="object")return!1;if(!G7e){var t=uZ(m$t(e),8,-1);return _$t(t)?t:t!=="Object"?!1:b$t(e)}return s9?x$t(e):null}H7e.exports=w$t});var $7e=W(($$r,j7e)=>{"use strict";var T$t=cZ();j7e.exports=function(t){return!!T$t(t)}});var dZ=W(so=>{"use strict";var A$t=t7e(),M$t=v7e(),vv=cZ(),W7e=$7e();function n4(e){return e.call.bind(e)}var Y7e=typeof BigInt!="undefined",X7e=typeof Symbol!="undefined",$d=n4(Object.prototype.toString),S$t=n4(Number.prototype.valueOf),E$t=n4(String.prototype.valueOf),k$t=n4(Boolean.prototype.valueOf);Y7e&&(Z7e=n4(BigInt.prototype.valueOf));var Z7e;X7e&&(K7e=n4(Symbol.prototype.valueOf));var K7e;function ES(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}so.isArgumentsObject=A$t;so.isGeneratorFunction=M$t;so.isTypedArray=W7e;function C$t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}so.isPromise=C$t;function D$t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):W7e(e)||Q7e(e)}so.isArrayBufferView=D$t;function F$t(e){return vv(e)==="Uint8Array"}so.isUint8Array=F$t;function L$t(e){return vv(e)==="Uint8ClampedArray"}so.isUint8ClampedArray=L$t;function P$t(e){return vv(e)==="Uint16Array"}so.isUint16Array=P$t;function I$t(e){return vv(e)==="Uint32Array"}so.isUint32Array=I$t;function R$t(e){return vv(e)==="Int8Array"}so.isInt8Array=R$t;function z$t(e){return vv(e)==="Int16Array"}so.isInt16Array=z$t;function B$t(e){return vv(e)==="Int32Array"}so.isInt32Array=B$t;function q$t(e){return vv(e)==="Float32Array"}so.isFloat32Array=q$t;function O$t(e){return vv(e)==="Float64Array"}so.isFloat64Array=O$t;function N$t(e){return vv(e)==="BigInt64Array"}so.isBigInt64Array=N$t;function U$t(e){return vv(e)==="BigUint64Array"}so.isBigUint64Array=U$t;function c9(e){return $d(e)==="[object Map]"}c9.working=typeof Map!="undefined"&&c9(new Map);function V$t(e){return typeof Map=="undefined"?!1:c9.working?c9(e):e instanceof Map}so.isMap=V$t;function f9(e){return $d(e)==="[object Set]"}f9.working=typeof Set!="undefined"&&f9(new Set);function G$t(e){return typeof Set=="undefined"?!1:f9.working?f9(e):e instanceof Set}so.isSet=G$t;function h9(e){return $d(e)==="[object WeakMap]"}h9.working=typeof WeakMap!="undefined"&&h9(new WeakMap);function H$t(e){return typeof WeakMap=="undefined"?!1:h9.working?h9(e):e instanceof WeakMap}so.isWeakMap=H$t;function hZ(e){return $d(e)==="[object WeakSet]"}hZ.working=typeof WeakSet!="undefined"&&hZ(new WeakSet);function j$t(e){return hZ(e)}so.isWeakSet=j$t;function d9(e){return $d(e)==="[object ArrayBuffer]"}d9.working=typeof ArrayBuffer!="undefined"&&d9(new ArrayBuffer);function J7e(e){return typeof ArrayBuffer=="undefined"?!1:d9.working?d9(e):e instanceof ArrayBuffer}so.isArrayBuffer=J7e;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 Q7e(e){return typeof DataView=="undefined"?!1:p9.working?p9(e):e instanceof DataView}so.isDataView=Q7e;var fZ=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function SS(e){return $d(e)==="[object SharedArrayBuffer]"}function eFe(e){return typeof fZ=="undefined"?!1:(typeof SS.working=="undefined"&&(SS.working=SS(new fZ)),SS.working?SS(e):e instanceof fZ)}so.isSharedArrayBuffer=eFe;function $$t(e){return $d(e)==="[object AsyncFunction]"}so.isAsyncFunction=$$t;function W$t(e){return $d(e)==="[object Map Iterator]"}so.isMapIterator=W$t;function Y$t(e){return $d(e)==="[object Set Iterator]"}so.isSetIterator=Y$t;function X$t(e){return $d(e)==="[object Generator]"}so.isGeneratorObject=X$t;function Z$t(e){return $d(e)==="[object WebAssembly.Module]"}so.isWebAssemblyCompiledModule=Z$t;function tFe(e){return ES(e,S$t)}so.isNumberObject=tFe;function rFe(e){return ES(e,E$t)}so.isStringObject=rFe;function iFe(e){return ES(e,k$t)}so.isBooleanObject=iFe;function nFe(e){return Y7e&&ES(e,Z7e)}so.isBigIntObject=nFe;function aFe(e){return X7e&&ES(e,K7e)}so.isSymbolObject=aFe;function K$t(e){return tFe(e)||rFe(e)||iFe(e)||nFe(e)||aFe(e)}so.isBoxedPrimitive=K$t;function J$t(e){return typeof Uint8Array!="undefined"&&(J7e(e)||eFe(e))}so.isAnyArrayBuffer=J$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((Y$r,oFe)=>{oFe.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 sFe=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=eWt),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 eWt(e,t){var r=d2.styles[t];return r?"\x1B["+d2.colors[r][0]+"m"+e+"\x1B["+d2.colors[r][1]+"m":e}function tWt(e,t){return e}function rWt(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=iWt(e,t);if(n)return n;var a=Object.keys(t),o=rWt(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(uFe(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=nWt(e,t,r,o,a):h=a.map(function(p){return mZ(e,t,r,o,p,u)}),e.seen.pop(),aWt(h,l,c)}function iWt(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(cFe(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 nWt(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 tWt(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 aWt(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]}lo.types=dZ();function lFe(e){return Array.isArray(e)}lo.isArray=lFe;function yZ(e){return typeof e=="boolean"}lo.isBoolean=yZ;function b9(e){return e===null}lo.isNull=b9;function rWt(e){return e==null}lo.isNullOrUndefined=rWt;function uFe(e){return typeof e=="number"}lo.isNumber=uFe;function _9(e){return typeof e=="string"}lo.isString=_9;function iWt(e){return typeof e=="symbol"}lo.isSymbol=iWt;function o_(e){return e===void 0}lo.isUndefined=o_;function kS(e){return a4(e)&&xZ(e)==="[object RegExp]"}lo.isRegExp=kS;lo.types.isRegExp=kS;function a4(e){return typeof e=="object"&&e!==null}lo.isObject=a4;function x9(e){return a4(e)&&xZ(e)==="[object Date]"}lo.isDate=x9;lo.types.isDate=x9;function CS(e){return a4(e)&&(xZ(e)==="[object Error]"||e instanceof Error)}lo.isError=CS;lo.types.isNativeError=CS;function m9(e){return typeof e=="function"}lo.isFunction=m9;function nWt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}lo.isPrimitive=nWt;lo.isBuffer=pZ();function xZ(e){return Object.prototype.toString.call(e)}function gZ(e){return e<10?"0"+e.toString(10):e.toString(10)}var aWt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function oWt(){var e=new Date,t=[gZ(e.getHours()),gZ(e.getMinutes()),gZ(e.getSeconds())].join(":");return[e.getDate(),aWt[e.getMonth()],t].join(" ")}lo.log=function(){console.log("%s - %s",oWt(),lo.format.apply(lo,arguments))};lo.inherits=fm();lo._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 cFe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var a_=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;lo.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 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{"use strict";function hFe(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 dFe(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;)bWt(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:xWt,value:function(r,i){return _Z(this,dFe(dFe({},i),{},{depth:0,customInspect:!1}))}}]),e})()});var TZ=W((K$r,xFe)=>{"use strict";function _Wt(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(yFe,r,a)):process.nextTick(yFe,r,a):t?(process.nextTick(T9,r),t(a)):process.nextTick(T9,r)}),this)}function yFe(e,t){wZ(e,t),T9(e)}function T9(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function wWt(){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 TWt(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}xFe.exports={destroy:_Wt,undestroy:wWt,errorOrDestroy:TWt}});var s_=W((J$r,wFe)=>{"use strict";function AWt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var _Fe={};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){AWt(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,_Fe[e]=n}function bFe(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 MWt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function SWt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function EWt(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"&&MWt(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(SWt(e," argument"))n="The ".concat(e," ").concat(i," ").concat(bFe(t,"type"));else{var a=EWt(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(bFe(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");wFe.exports.codes=_Fe});var AZ=W((Q$r,TFe)=>{"use strict";var kWt=s_().codes.ERR_INVALID_OPT_VALUE;function CWt(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function DWt(e,t,r,i){var n=CWt(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var a=i?r:"highWaterMark";throw new kWt(a,n)}return Math.floor(n)}return e.objectMode?16:16*1024}TFe.exports={getHighWaterMark:DWt}});var MFe=W((eWr,AFe)=>{AFe.exports=FWt;function FWt(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((tWr,FFe)=>{"use strict";FFe.exports=tu;function EFe(e){var t=this;this.next=null,this.entry=null,this.finish=function(){nYt(t,e)}}var o4;tu.WritableState=FS;var LWt={deprecate:MFe()},kFe=DX(),M9=t_().Buffer,PWt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function IWt(e){return M9.from(e)}function RWt(e){return M9.isBuffer(e)||e instanceof PWt}var EZ=TZ(),zWt=AZ(),BWt=zWt.getHighWaterMark,p2=s_().codes,qWt=p2.ERR_INVALID_ARG_TYPE,OWt=p2.ERR_METHOD_NOT_IMPLEMENTED,NWt=p2.ERR_MULTIPLE_CALLBACK,UWt=p2.ERR_STREAM_CANNOT_PIPE,VWt=p2.ERR_STREAM_DESTROYED,GWt=p2.ERR_STREAM_NULL_VALUES,HWt=p2.ERR_STREAM_WRITE_AFTER_END,jWt=p2.ERR_UNKNOWN_ENCODING,s4=EZ.errorOrDestroy;fm()(tu,kFe);function $Wt(){}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=BWt(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){QWt(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 EFe(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:LWt.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)),kFe.call(this)}tu.prototype.pipe=function(){s4(this,new UWt)};function WWt(e,t){var r=new HWt;s4(e,r),process.nextTick(t,r)}function YWt(e,t,r,i){var n;return r===null?n=new GWt:typeof r!="string"&&!t.objectMode&&(n=new qWt("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&&RWt(e);return a&&!M9.isBuffer(e)&&(e=IWt(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=$Wt),i.ending?WWt(this,r):(a||YWt(this,i,e,r))&&(i.pendingcb++,n=ZWt(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&&CFe(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 jWt(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(tu.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function XWt(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 ZWt(e,t,r,i,n,a){if(!r){var o=XWt(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 aYt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};PFe.exports=U1;var LFe=FZ(),DZ=kZ();fm()(U1,LFe);for(CZ=aYt(DZ.prototype),S9=0;S9{var k9=t_(),V1=k9.Buffer;function IFe(e,t){for(var r in e)t[r]=e[r]}V1.from&&V1.alloc&&V1.allocUnsafe&&V1.allocUnsafeSlow?RFe.exports=k9:(IFe(k9,LZ),LZ.Buffer=u_);function u_(e,t,r){return V1(e,t,r)}u_.prototype=Object.create(V1.prototype);IFe(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(qFe=>{"use strict";var IZ=zFe().Buffer,BFe=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 lYt(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 uYt(e){var t=lYt(e);if(typeof t!="string"&&(IZ.isEncoding===BFe||!BFe(e)))throw new Error("Unknown encoding: "+e);return t||e}qFe.StringDecoder=LS;function LS(e){this.encoding=uYt(e);var t;switch(this.encoding){case"utf16le":this.text=vYt,this.end=gYt,t=4;break;case"utf8":this.fillLast=hYt,t=4;break;case"base64":this.text=mYt,this.end=yYt,t=3;break;default:this.write=xYt,this.end=bYt;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 cYt(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 fYt(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 hYt(e){var t=this.lastTotal-this.lastNeed,r=fYt(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 dYt(e,t){var r=cYt(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 pYt(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 gYt(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 mYt(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 yYt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function xYt(e){return e.toString(this.encoding)}function bYt(e){return e&&e.length?this.write(e):""}});var C9=W((nWr,UFe)=>{"use strict";var OFe=s_().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 D9;function v2(e,t,r){return t=AYt(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AYt(e){var t=MYt(e,"string");return typeof t=="symbol"?t:String(t)}function MYt(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 SYt=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 EYt(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 kYt(e){process.nextTick(EYt,e)}function CYt(e,t){return function(r,i){e.then(function(){if(t[F9]){r(m2(void 0,!0));return}t[zZ](r,i)},i)}}var DYt=Object.getPrototypeOf(function(){}),FYt=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(CYt(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),DYt),LYt=function(t){var r,i=Object.create(FYt,(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,SYt(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",kYt.bind(null,i)),i};VFe.exports=LYt});var jFe=W((oWr,HFe)=>{HFe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var FZ=W((lWr,tLe)=>{"use strict";tLe.exports=Lo;var l4;Lo.ReadableState=XFe;var sWr=ib().EventEmitter,YFe=function(t,r){return t.listeners(r).length},RS=DX(),L9=t_().Buffer,PYt=(typeof window!="undefined"||typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function IYt(e){return L9.from(e)}function RYt(e){return L9.isBuffer(e)||e instanceof PYt}var BZ=bZ(),to;BZ&&BZ.debuglog?to=BZ.debuglog("stream"):to=function(){};var zYt=mFe(),HZ=TZ(),BYt=AZ(),qYt=BYt.getHighWaterMark,P9=s_().codes,OYt=P9.ERR_INVALID_ARG_TYPE,NYt=P9.ERR_STREAM_PUSH_AFTER_EOF,UYt=P9.ERR_METHOD_NOT_IMPLEMENTED,VYt=P9.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,u4,qZ,OZ;fm()(Lo,RS);var IS=HZ.errorOrDestroy,NZ=["error","close","destroy","pause","resume"];function GYt(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 XFe(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=qYt(this,e,"readableHighWaterMark",r),this.buffer=new zYt,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 XFe(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),ZFe(this,e,t,!1,i)};Lo.prototype.unshift=function(e){return ZFe(this,e,null,!0,!1)};function ZFe(e,t,r,i,n){to("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,$Yt(e,a);else{var o;if(n||(o=HYt(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=IYt(t)),i)a.endEmitted?IS(e,new VYt):UZ(e,a,t,!0);else if(a.ended)IS(e,new NYt);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=$Fe?e=$Fe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function WFe(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=jYt(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=WFe(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=QFe(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 $Yt(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,KFe(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(KFe,e))}function KFe(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(WYt,e,t))}function WYt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&eLe(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),YFe(e,"error")===0&&IS(e,m)}GYt(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 YYt(e){return function(){var r=e._readableState;to("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&YFe(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(XYt,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(JFe,this),r};Lo.prototype.removeAllListeners=function(e){var t=RS.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(JFe,this),t};function JFe(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 XYt(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,ZYt(this,e)),e.paused=!1,this};function ZYt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(KYt,e,t))}function KYt(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(JYt,t,e))}function JYt(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=jFe()),OZ(Lo,e,t)});function eLe(e,t){for(var r=0,i=e.length;r{"use strict";iLe.exports=dm;var R9=s_().codes,QYt=R9.ERR_METHOD_NOT_IMPLEMENTED,eXt=R9.ERR_MULTIPLE_CALLBACK,tXt=R9.ERR_TRANSFORM_ALREADY_TRANSFORMING,rXt=R9.ERR_TRANSFORM_WITH_LENGTH_0,z9=l_();fm()(dm,z9);function iXt(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new eXt);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";aLe.exports=zS;var nLe=$Z();fm()(zS,nLe);function zS(e){if(!(this instanceof zS))return new zS(e);nLe.call(this,e)}zS.prototype._transform=function(e,t,r){r(null,e)}});var fLe=W((fWr,cLe)=>{"use strict";var WZ;function aXt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var uLe=s_().codes,oXt=uLe.ERR_MISSING_ARGS,sXt=uLe.ERR_STREAM_DESTROYED;function sLe(e){if(e)throw e}function lXt(e){return e.setHeader&&typeof e.abort=="function"}function uXt(e,t,r,i){i=aXt(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,lXt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(o||new sXt("pipe"))}}}function lLe(e){e()}function cXt(e,t){return e.pipe(t)}function fXt(e){return!e.length||typeof e[e.length-1]!="function"?sLe:e.pop()}function hXt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return uXt(o,l,u,function(c){n||(n=c),c&&a.forEach(lLe),!l&&(a.forEach(lLe),i(n))})});return t.reduce(cXt)}cLe.exports=hXt});var dLe=W((hWr,hLe)=>{hLe.exports=Yd;var YZ=ib().EventEmitter,dXt=fm();dXt(Yd,YZ);Yd.Readable=FZ();Yd.Writable=kZ();Yd.Duplex=l_();Yd.Transform=$Z();Yd.PassThrough=oLe();Yd.finished=C9();Yd.pipeline=fLe();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 pLe=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=vXt),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 vXt(e,t){var r=y2.styles[t];return r?"\x1B["+y2.colors[r][0]+"m"+e+"\x1B["+y2.colors[r][1]+"m":e}function gXt(e,t){return e}function mXt(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=yXt(e,t);if(n)return n;var a=Object.keys(t),o=mXt(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(gLe(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=xXt(e,t,r,o,a):h=a.map(function(p){return KZ(e,t,r,o,p,u)}),e.seen.pop(),bXt(h,l,c)}function yXt(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(mLe(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 xXt(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 gXt(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 bXt(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]}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(` + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}uo.types=dZ();function gLe(e){return Array.isArray(e)}uo.isArray=gLe;function JZ(e){return typeof e=="boolean"}uo.isBoolean=JZ;function V9(e){return e===null}uo.isNull=V9;function _Xt(e){return e==null}uo.isNullOrUndefined=_Xt;function mLe(e){return typeof e=="number"}uo.isNumber=mLe;function G9(e){return typeof e=="string"}uo.isString=G9;function wXt(e){return typeof e=="symbol"}uo.isSymbol=wXt;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 TXt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}uo.isPrimitive=TXt;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 AXt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function MXt(){var e=new Date,t=[ZZ(e.getHours()),ZZ(e.getMinutes()),ZZ(e.getSeconds())].join(":");return[e.getDate(),AXt[e.getMonth()],t].join(" ")}uo.log=function(){console.log("%s - %s",MXt(),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 yLe(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 xLe(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 BXt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function qXt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function OXt(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"&&BXt(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var n;if(qXt(e," argument"))n="The ".concat(e," ").concat(i," ").concat(bLe(t,"type"));else{var a=OXt(e,".")?"property":"argument";n='The "'.concat(e,'" ').concat(a," ").concat(i," ").concat(bLe(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);wLe.exports.codes=_Le});var LLe=W((vWr,FLe)=>{"use strict";function TLe(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 ALe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function ZXt(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 gv="",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:"},KXt=10;function ELe(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 JXt(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],` +`),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<=KXt){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($Xt(" ",f),"^"),f=0)}}}for(var v=u[u.length-1],m=c[c.length-1];v===m&&(f++<2?o=` + `.concat(ZXt(" ",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(vv,"...").concat(lf);w.length>27;)w.pop();return"".concat(v_.notIdentical,` +`);if(w.length>30)for(w[26]="".concat(gv,"...").concat(lf);w.length>27;)w.pop();return"".concat(v_.notIdentical,` `).concat(w.join(` `),` `)}f>3&&(o=` -`.concat(vv,"...").concat(lf).concat(o),s=!0),i!==""&&(o=` +`.concat(gv,"...").concat(lf).concat(o),s=!0),i!==""&&(o=` `.concat(i).concat(o),i="");var _=0,b=v_[r]+` -`.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(NS,"+ actual").concat(lf," ").concat(US,"- expected").concat(lf),M=" ".concat(gv,"...").concat(lf," Lines skipped");for(f=0;f1&&f>2&&(x>4?(n+=` +`.concat(gv,"...").concat(lf),s=!0):x>3&&(n+=` `.concat(c[f-2]),_++),n+=` `.concat(c[f-1]),_++),a=f,i+=` `.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(gv,"...").concat(lf),s=!0):x>3&&(n+=` `.concat(u[f-2]),_++),n+=` `.concat(u[f-1]),_++),a=f,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(NS,"+").concat(lf," ").concat(u[f]),_++;else{var A=c[f],T=u[f],y=T!==A&&(!SLe(T,",")||T.slice(0,-1)!==A);y&&SLe(A,",")&&A.slice(0,-1)===T&&(y=!1,T+=","),y?(x>1&&f>2&&(x>4?(n+=` +`.concat(gv,"...").concat(lf),s=!0):x>3&&(n+=` `.concat(u[f-2]),_++),n+=` `.concat(u[f-1]),_++),a=f,n+=` `.concat(NS,"+").concat(lf," ").concat(T),i+=` `.concat(US,"-").concat(lf," ").concat(A),_+=2):(n+=i,i="",(x===1||f===0)&&(n+=` - `.concat(T),_++))}if(_>20&&f20&&f30)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(gv,"...").concat(lf).concat(i,` +`)+"".concat(gv,"...").concat(lf)}return"".concat(b).concat(s?M:"",` +`).concat(n).concat(i).concat(o).concat(h)}var QXt=(function(e,t){HXt(i,e);var r=jXt(i);function i(n){var a;if(UXt(this,i),Kh(n)!=="object"||n===null)throw new XXt("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?(gv="\x1B[34m",NS="\x1B[32m",lf="\x1B[39m",US="\x1B[31m"):(gv="",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=ELe(u),c=ELe(c)),s==="deepStrictEqual"||s==="strictEqual")a=r.call(this,JXt(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(gv,"...").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(` `),` @@ -86,22 +86,22 @@ should equal -`):v=" ".concat(s," ").concat(v)),a=r.call(this,"".concat(d).concat(v))}return Error.stackTraceLimit=f,a.generatedMessage=!o,Object.defineProperty(iK(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(iK(a),l),a.stack,a.name="AssertionError",kLe(a)}return qXt(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return aK(this,TLe(TLe({},o),{},{customInspect:!1,depth:0}))}}]),i})(nK(Error),aK.custom);DLe.exports=XXt});var oK=W((hWr,PLe)=>{"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{"use strict";var PLe=Object.prototype.toString;ILe.exports=function(t){var r=PLe.call(t),i=r==="[object Arguments]";return i||(i=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&PLe.call(t.callee)==="[object Function]"),i}});var GLe=W((mWr,VLe)=>{"use strict";var ULe;Object.keys||(jS=Object.prototype.hasOwnProperty,sK=Object.prototype.toString,RLe=oK(),lK=Object.prototype.propertyIsEnumerable,zLe=!lK.call({toString:null},"toString"),BLe=lK.call(function(){},"prototype"),$S=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],W9=function(e){var t=e.constructor;return t&&t.prototype===e},qLe={$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},OLe=(function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!qLe["$"+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})(),NLe=function(e){if(typeof window=="undefined"||!OLe)return W9(e);try{return W9(e)}catch(t){return!1}},ULe=function(t){var r=t!==null&&typeof t=="object",i=sK.call(t)==="[object Function]",n=RLe(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=BLe&&i;if(a&&t.length>0&&!jS.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var eZt=Array.prototype.slice,tZt=oK(),HLe=Object.keys,Y9=HLe?function(t){return HLe(t)}:GLe(),jLe=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 tZt(i)?jLe(eZt.call(i)):jLe(i)})}else Object.keys=Y9;return Object.keys||Y9};$Le.exports=Y9});var KLe=W((xWr,ZLe)=>{"use strict";var rZt=uK(),YLe=HP()(),XLe=n_(),X9=jP(),iZt=XLe("Array.prototype.push"),WLe=XLe("Object.prototype.propertyIsEnumerable"),nZt=YLe?X9.getOwnPropertySymbols:null;ZLe.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=KLe(),aZt=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},i=0;i{"use strict";var ePe=function(e){return e!==e};tPe.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||ePe(t)&&ePe(r))}});var Z9=W((wWr,rPe)=>{"use strict";var sZt=fK();rPe.exports=function(){return typeof Object.is=="function"?Object.is:sZt}});var oPe=W((TWr,aPe)=>{"use strict";var iPe=e9(),nPe=MS(),lZt=nPe(iPe("String.prototype.indexOf"));aPe.exports=function(t,r){var i=iPe(t,!!r);return typeof i=="function"&&lZt(t,".prototype.")>-1?nPe(i):i}});var WS=W((AWr,cPe)=>{"use strict";var uZt=uK(),cZt=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",fZt=Object.prototype.toString,hZt=Array.prototype.concat,sPe=nZ(),dZt=function(e){return typeof e=="function"&&fZt.call(e)==="[object Function]"},lPe=oZ()(),pZt=function(e,t,r,i){if(t in e){if(i===!0){if(e[t]===r)return}else if(!dZt(i)||!i())return}lPe?sPe(e,t,r,!0):sPe(e,t,r)},uPe=function(e,t){var r=arguments.length>2?arguments[2]:{},i=uZt(t);cZt&&(i=hZt.call(i,Object.getOwnPropertySymbols(t)));for(var n=0;n{"use strict";var vZt=Z9(),gZt=WS();fPe.exports=function(){var t=vZt();return gZt(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var gPe=W((SWr,vPe)=>{"use strict";var mZt=WS(),yZt=MS(),xZt=fK(),dPe=Z9(),bZt=hPe(),pPe=yZt(dPe(),Object);mZt(pPe,{getPolyfill:dPe,implementation:xZt,shim:bZt});vPe.exports=pPe});var hK=W((EWr,mPe)=>{"use strict";mPe.exports=function(t){return t!==t}});var dK=W((kWr,yPe)=>{"use strict";var _Zt=hK();yPe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:_Zt}});var bPe=W((CWr,xPe)=>{"use strict";var wZt=WS(),TZt=dK();xPe.exports=function(){var t=TZt();return wZt(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var APe=W((DWr,TPe)=>{"use strict";var AZt=MS(),MZt=WS(),SZt=hK(),_Pe=dK(),EZt=bPe(),wPe=AZt(_Pe(),Number);MZt(wPe,{getPolyfill:_Pe,implementation:SZt,shim:EZt});TPe.exports=wPe});var HPe=W((FWr,GPe)=>{"use strict";function MPe(e,t){return FZt(e)||DZt(e,t)||CZt(e,t)||kZt()}function kZt(){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 CZt(e,t){if(e){if(typeof e=="string")return SPe(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 SPe(e,t)}}function SPe(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(NZt).concat(tI(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function OPe(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 mv(e){"@babel/helpers - typeof";return mv=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},mv(e)}function jPe(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 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 +`));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){o9e(t,r,i,e,"match")};Xs.doesNotMatch=function e(t,r,i){o9e(t,r,i,e,"doesNotMatch")};function s9e(){for(var e=arguments.length,t=new Array(e),r=0;r{var JS=1e3,QS=JS*60,eE=QS*60,tE=eE*24,hKt=tE*365.25;u9e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return dKt(e);if(r==="number"&&isNaN(e)===!1)return t.long?vKt(e):pKt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function dKt(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*hKt;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 pKt(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 vKt(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=f9e.exports=bK.debug=bK.default=bK;is.coerce=bKt;is.disable=yKt;is.enable=mKt;is.enabled=xKt;is.humanize=c9e();is.names=[];is.skips=[];is.formatters={};var xK;function gKt(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=p9e.exports=h9e();fh.log=TKt;fh.formatArgs=wKt;fh.save=AKt;fh.load=d9e;fh.useColors=_Kt;fh.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:MKt();fh.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+)/)}fh.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function wKt(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 TKt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function AKt(e){try{e==null?fh.storage.removeItem("debug"):fh.storage.debug=e}catch(t){}}function d9e(){var e;try{e=fh.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}fh.enable(d9e());function MKt(){try{return window.localStorage}catch(e){}}});var T9e=W((IWr,w9e)=>{var p4=j9(),T2=v9e()("stream-parser");w9e.exports=EKt;var m9e=-1,cI=0,SKt=1,y9e=2;function EKt(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=kKt,e._skipBytes=CKt,t&&(e._passthrough=DKt),t?e._transform=LKt:e._write=FKt}function rE(e){T2("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=m9e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function kKt(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 CKt(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=SKt}function DKt(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=y9e}function FKt(e,t,r){this._parserInit||rE(this),T2("write(%o bytes)",e.length),typeof t=="function"&&(r=t),b9e(this,e,null,r)}function LKt(e,t,r){this._parserInit||rE(this),T2("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),b9e(this,e,t,r)}function x9e(e,t,r,i){return e._parserBytesLeft<=0?i(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return g9e(e,t,r,i)}:function(){var n=t.slice(0,e._parserBytesLeft);return g9e(e,n,r,function(a){if(a)return i(a);if(t.length>n.length)return function(){return x9e(e,t.slice(n.length),r,i)}})}}function g9e(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===y9e&&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=m9e,e._parserBuffers.splice(0),n){var a=[];t&&a.push(t),r&&a.push(r);var o=n.length>a.length;o&&a.push(_9e(i));var s=n.apply(e,a);if(!o||i===s)return i}}else return i}var b9e=_9e(x9e);function _9e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var A9e=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 M9e=dLe().Transform,PKt=T9e(),A2=A9e();function iE(){M9e.call(this,{readableObjectMode:!0})}iE.prototype=Object.create(M9e.prototype);iE.prototype.constructor=iE;PKt(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(qKt(e,t),!!t.sizes.length){var r=OKt(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 NKt(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 k9e=W((OWr,E9e)=>{"use strict";var UKt=Ao().str2arr,VKt=Ao().sliceEq,GKt=Ao().readUInt32BE,vI=S9e(),HKt=pI(),jKt=UKt("ftyp");E9e.exports=function(e){if(VKt(e,4,jKt)){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=GKt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=HKt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var L9e=W((NWr,F9e)=>{"use strict";var $Kt=Ao().str2arr,WKt=Ao().sliceEq,C9e=Ao().readInt16LE,D9e=Ao().readInt32LE,YKt=Ao().readUInt32LE,XKt=$Kt("BM");F9e.exports=function(e){if(!(e.length<26)&&WKt(e,0,XKt)){var t,r,i=YKt(e,14);if(i===12)r=C9e(e,18),t=C9e(e,20);else if(i>12)r=D9e(e,18),t=D9e(e,22);else return;return{width:r,height:Math.abs(t),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}});var B9e=W((UWr,z9e)=>{"use strict";var R9e=Ao().str2arr,P9e=Ao().sliceEq,I9e=Ao().readUInt16LE,ZKt=R9e("GIF87a"),KKt=R9e("GIF89a");z9e.exports=function(e){if(!(e.length<10)&&!(!P9e(e,0,ZKt)&&!P9e(e,0,KKt)))return{width:I9e(e,6),height:I9e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var O9e=W((VWr,q9e)=>{"use strict";var AK=Ao().readUInt16LE,JKt=0,QKt=1,MK=16;q9e.exports=function(e){var t=AK(e,0),r=AK(e,2),i=AK(e,4);if(!(t!==JKt||r!==QKt||!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 U9e=W((GWr,N9e)=>{"use strict";var SK=Ao().readUInt16BE,eJt=Ao().str2arr,tJt=Ao().sliceEq,rJt=pI(),iJt=eJt("Exif\0\0");N9e.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&&tJt(e,t,iJt)&&(n=rJt.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 $9e=W((HWr,j9e)=>{"use strict";var H9e=Ao().str2arr,V9e=Ao().sliceEq,G9e=Ao().readUInt32BE,nJt=H9e(`\x89PNG\r  -`),tJt=G9e("IHDR");H9e.exports=function(e){if(!(e.length<24)&&U9e(e,0,eJt)&&U9e(e,12,tJt))return{width:V9e(e,16),height:V9e(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var Y9e=W((UWr,W9e)=>{"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{"use strict";var oJt=Ao().str2arr,sJt=Ao().sliceEq,W9e=Ao().readUInt32BE,lJt=oJt("8BPS\0");Y9e.exports=function(e){if(!(e.length<22)&&sJt(e,0,lJt))return{width:W9e(e,18),height:W9e(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:._-]*",K9e="[^\"'=<>`\\x00-\\x20]+",uJt="'[^']*'",cJt='"[^"]*"',fJt="(?:"+K9e+"|"+uJt+"|"+cJt+")",hJt="(?:\\s+"+EK+"(?:\\s*=\\s*"+fJt+")?)",dJt="<[?][\\s\\S]*?[?]>",pJt="",vJt="",gJt="]*(?:\\[[\\s\\S]*?\\][^>]*)?>",mJt=new RegExp("^(?:\\s+|"+dJt+"|"+pJt+"|"+vJt+"|"+gJt+")*"),yJt=new RegExp("^<("+EK+")("+hJt+"*)\\s*/?>"),Z9e=new RegExp("\\s+("+EK+")(?:\\s*=\\s*(?:("+K9e+`)|'([^']*)'|"([^"]*)"))?`,"g"),xJt=/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(xJt);return r===null?"px":r[0]}kK.parse=function(e){var t=e.match(mJt)[0],r=yJt.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(Z9e.lastIndex=0;(a=Z9e.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 Q9e=W((WWr,J9e)=>{"use strict";var bJt=CK().parse,_Jt=CK().MAX_DATA_LENGTH;J9e.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 rIe=Ao().str2arr,eIe=Ao().sliceEq,wJt=Ao().readUInt16LE,TJt=Ao().readUInt16BE,AJt=Ao().readUInt32LE,MJt=Ao().readUInt32BE,SJt=rIe("II*\0"),EJt=rIe("MM\0*");function gI(e,t,r){return r?TJt(e,t):wJt(e,t)}function DK(e,t,r){return r?MJt(e,t):AJt(e,t)}function tIe(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)}iIe.exports=function(e){if(!(e.length<8)&&!(!eIe(e,0,SJt)&&!eIe(e,0,EJt))){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 sIe=Ao().str2arr,aIe=Ao().sliceEq,oIe=Ao().readUInt16LE,FK=Ao().readUInt32LE,kJt=pI(),CJt=sIe("RIFF"),DJt=sIe("WEBP");function FJt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:oIe(e,t+6)&16383,height:oIe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function LJt(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 PJt(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"}}lIe.exports=function(e){if(!(e.length<16)&&!(!aIe(e,0,CJt)||!aIe(e,8,DJt))){var t=12,r=null,i=0,n=FK(e,4)+8;if(!(n>e.length)){for(;t+8=10?r=r||FJt(e,t+8):a==="VP8L"&&o>=5?r=r||LJt(e,t+8):a==="VP8X"&&o>=10?r=r||PJt(e,t+8):a==="EXIF"&&(i=kJt.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 fIe=W((ZWr,cIe)=>{"use strict";cIe.exports={avif:k9e(),bmp:L9e(),gif:B9e(),ico:O9e(),jpeg:U9e(),png:$9e(),psd:X9e(),svg:Q9e(),tiff:nIe(),webp:uIe()}});var hIe=W((KWr,PK)=>{"use strict";var LK=fIe();function IJt(e){for(var t=Object.keys(LK),r=0;r0&&i.height>0?i:null}return null}PK.exports=function(t){return IJt(t)};PK.exports.parsers=LK});var pIe=W(dIe=>{"use strict";var RJt=hIe(),zJt=em().IMAGE_URL_PREFIX,BJt=t_().Buffer;dIe.getImageSize=function(e){var t=e.replace(zJt,""),r=new BJt(t,"base64");return RJt(r)}});var mIe=W((QWr,gIe)=>{"use strict";var vIe=tt(),qJt=(j5(),Pt(yS)),OJt=hn(),mI=Yi(),NJt=tt().maxRowLength,UJt=pIe().getImageSize;gIe.exports=function(t,r){var i,n;if(r._hasZ)i=r.z.length,n=NJt(r.z);else if(r._hasSource){var a=UJt(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 jJt=gi(),g_=tt(),yIe=g_.strTranslate,$Jt=(md(),Pt(gd)),WJt=(j5(),Pt(yS)),YJt=mY(),XJt=(cP(),Pt(uP)).STYLE;xIe.exports=function(t,r,i,n){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&YJt();g_.makeTraceGroups(n,i,"im").each(function(l){var u=jJt.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,M,x,A,T,y;for(y=0;b===void 0&&y0;)M=a.c2p(d+y*w),y--;for(y=0;A===void 0&&y0;)T=o.c2p(v+y*_),y--;if(MI[0];if(B||O){var $=b+S/2,X=A+C/2;R+="transform:"+yIe($+"px",X+"px")+"scale("+(B?-1:1)+","+(O?-1:1)+")"+yIe(-$+"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:S,x:b,y:A})});t._promises.push(K)})}});var wIe=W((tYr,_Ie)=>{"use strict";var ZJt=gi();_Ie.exports=function(t){ZJt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var SIe=W((rYr,MIe)=>{"use strict";var TIe=Is(),AIe=tt(),yI=AIe.isArrayOrTypedArray,KJt=(j5(),Pt(yS));MIe.exports=function(t,r,i){var n=t.cd[0],a=n.trace,o=t.xa,s=t.ya;if(!(TIe.inbox(r-n.x0,r-(n.x0+n.w*a.dx),0)>0||TIe.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=KJt.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 M=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[AIe.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: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 kIe=W((iYr,EIe)=>{"use strict";EIe.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 DIe=W((nYr,CIe)=>{"use strict";CIe.exports={attributes:(kX(),Pt(EX)).default,supplyDefaults:v8e(),calc:mIe(),plot:bIe(),style:wIe(),hoverPoints:SIe(),eventData:kIe(),moduleType:"trace",name:"image",basePlotModule:xl(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var LIe=W((aYr,FIe)=>{"use strict";FIe.exports=DIe()});var m_=W((oYr,IIe)=>{"use strict";var xI=Ja(),JJt=ds().attributes,QJt=jo(),eQt=Yl(),{hovertemplateAttrs:tQt,texttemplateAttrs:rQt,templatefallbackAttrs:PIe}=Wa(),M2=an().extendFlat,iQt=zu().pattern,bI=QJt({editType:"plot",arrayOk:!0,colorEditType:"plot"});IIe.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:eQt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:iQt,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:tQt({},{keys:["label","color","value","percent","text"]}),hovertemplatefallback:PIe(),texttemplate:rQt({editType:"plot"},{keys:["label","color","value","percent","text"]}),texttemplatefallback:PIe({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:JJt({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((sYr,BIe)=>{"use strict";var nQt=hn(),aE=tt(),aQt=m_(),oQt=ds().defaults,sQt=I0().handleText,lQt=tt().coercePattern;function RIe(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 zIe(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");lQt(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 uQt(e,t,r,i){function n(w,_){return aE.coerce(e,t,aQt,w,_)}var a=n("labels"),o=n("values"),s=RIe(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,zIe(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");sQt(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");oQt(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")}BIe.exports={handleLabelsAndValues:RIe,handleMarkerDefaults:zIe,supplyDefaults:uQt}});var _I=W((lYr,qIe)=>{"use strict";qIe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var NIe=W((uYr,OIe)=>{"use strict";var cQt=tt(),fQt=_I();OIe.exports=function(t,r){function i(n,a){return cQt.coerce(t,r,fQt,n,a)}i("hiddenlabels"),i("piecolorway",r.colorway),i("extendpiecolors")}});var y4=W((cYr,GIe)=>{"use strict";var hQt=hn(),m4=ti(),dQt={};function pQt(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(M,x){return x.v-M.v}),r[0]&&(r[0].vTotal=d),r}function UIe(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 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=VIe(a,dQt));for(var s=0,l=0;l{"use strict";var gQt=ah().appendArrayMultiPointValues;HIe.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]),gQt(i,r,t.pts),r.type==="funnelarea"&&(delete i.v,delete i.i),i}});var MI=W((hYr,hRe)=>{"use strict";var Jh=gi(),mQt=Qo(),wI=Is(),KIe=ti(),vm=Qi(),Pc=tt(),yQt=Pc.strScale,$Ie=Pc.strTranslate,IK=ao(),JIe=of(),xQt=JIe.recordMinTextSize,bQt=JIe.clearMinTextSize,QIe=(Qy(),Pt(Jy)).TEXTPAD,Rn=Gy(),TI=jIe(),WIe=tt().isValidTextValue;function _Qt(e,t){var r=e._context.staticPlot,i=e._fullLayout,n=i._size;bQt("pie",i),rRe(t,e),uRe(t,n);var a=Pc.makeTraceGroups(i._pielayer,t,"trace").each(function(o){var s=Jh.select(this),l=o[0],u=l.trace;DQt(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,M){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(eRe,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 S(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])+S(b.px0,b.pxmid,!0,1)+S(b.pxmid,b.px0,!0,1)+"Z";C?y.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):y.attr("d",k)}else{var D=S(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])+S(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")}cRe(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"?TQt(u,b,i.font):tRe(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=ZIe(B,b);else if(O=iRe(B,b,l),P==="auto"&&O.scale<1){var $=Pc.ensureUniformFontSize(e,u.outsidetextfont);L.call(vm.font,$),B=vm.bBox(L.node()),O=ZIe(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),fRe(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,xQt(u.type,O,i),o[M].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)}),M=u.title.text;u._meta&&(M=Pc.templateString(M,u._meta)),b.text(M).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=SQt(l):x=sRe(l,n),b.attr("transform",$Ie(x.x,x.y)+yQt(Math.min(1,x.scale))+$Ie(x.tx,x.ty))}),h&&kQt(f,u),wQt(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;mQt.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 wQt(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(KIe.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function eRe(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 TQt(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 tRe(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||KIe.contrast(t.color),family:n,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function rRe(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=YIe(e,i,o,l,u),m.textPosAngle=(t.startangle+t.stopangle)/2,v.push(m)),(d||h)&&(m=XIe(e,i,o,l,u),m.textPosAngle=(t.startangle+t.stopangle)/2,v.push(m));for(var b=0,M=0,x=0;x=1)break}return v[b]}function AQt(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 SQt(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 sRe(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=lRe(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=EQt(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 EQt(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 lRe(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 kQt(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 M=b.labelExtraY+(i?b.yLabelMax:b.yLabelMin),x=i?_.yLabelMin:_.yLabelMax,A=i?_.yLabelMax:_.yLabelMin,T=_.cyFinal+o(_.px0[1],_.px1[1]),y=M-x,E,S,C,k,D,F;if(y*l>0&&(_.labelExtraY=y),!!Pc.isArrayOrTypedArray(t.pull))for(S=0;S=(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(S-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=MQt(u,t))}function AI(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function cRe(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);WIe(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);(WIe(_)||_==="")&&(w.text=_),t.text=Pc.texttemplateString({data:[w,n._meta],fallback:n.texttemplatefallback,labels:w,locale:e._fullLayout._d3locale,template:g})}}}function fRe(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}hRe.exports={plot:_Qt,formatSliceLabel:cRe,transformInsideText:iRe,determineInsideTextFont:tRe,positionTitleOutside:sRe,prerenderTitles:rRe,layoutAreas:uRe,attachFxHandlers:eRe,computeTransform:fRe}});var vRe=W((dYr,pRe)=>{"use strict";var dRe=gi(),FQt=Nw(),LQt=of().resizeText;pRe.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");LQt(t,r,"pie"),r.each(function(i){var n=i[0],a=n.trace,o=dRe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){dRe.select(this).call(FQt,s,a,t)})})}});var mRe=W(x4=>{"use strict";var gRe=Qo();x4.name="pie";x4.plot=function(e,t,r,i){gRe.plotBasePlot(x4.name,e,t,r,i)};x4.clean=function(e,t,r,i){gRe.cleanBasePlot(x4.name,e,t,r,i)}});var xRe=W((vYr,yRe)=>{"use strict";yRe.exports={attributes:m_(),supplyDefaults:y_().supplyDefaults,supplyLayoutDefaults:NIe(),layoutAttributes:_I(),calc:y4().calc,crossTraceCalc:y4().crossTraceCalc,plot:MI().plot,style:vRe(),styleOne:Nw(),moduleType:"trace",name:"pie",basePlotModule:mRe(),categories:["pie-like","pie","showLegend"],meta:{}}});var _Re=W((gYr,bRe)=>{"use strict";bRe.exports=xRe()});var TRe=W(b4=>{"use strict";var wRe=Qo();b4.name="sunburst";b4.plot=function(e,t,r,i){wRe.plotBasePlot(b4.name,e,t,r,i)};b4.clean=function(e,t,r,i){wRe.cleanBasePlot(b4.name,e,t,r,i)}});var zK={};Jn(zK,{CLICK_TRANSITION_EASING:()=>IQt,CLICK_TRANSITION_TIME:()=>PQt,eventDataKeys:()=>RQt});var PQt,IQt,RQt,BK=Ci(()=>{"use strict";PQt=750,IQt="linear",RQt=["currentPath","root","entry","percentRoot","percentEntry","percentParent"]});var sE=W((yYr,SRe)=>{"use strict";var zQt=Ja(),{hovertemplateAttrs:BQt,texttemplateAttrs:qQt,templatefallbackAttrs:ARe}=Wa(),OQt=Fo(),NQt=ds().attributes,gm=m_(),MRe=(BK(),Pt(zK)),oE=an().extendFlat,UQt=zu().pattern;SRe.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:UQt,editType:"calc"},OQt("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:qQt({editType:"plot"},{keys:MRe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:ARe({editType:"plot"}),hovertext:gm.hovertext,hoverinfo:oE({},zQt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:BQt({},{keys:MRe.eventDataKeys}),hovertemplatefallback:ARe(),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:NQt({name:"sunburst",trace:!0,editType:"calc"})}});var qK=W((xYr,ERe)=>{"use strict";ERe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var FRe=W((bYr,DRe)=>{"use strict";var kRe=tt(),VQt=sE(),GQt=ds().defaults,HQt=I0().handleText,jQt=y_().handleMarkerDefaults,CRe=es(),$Qt=CRe.hasColorscale,WQt=CRe.handleDefaults;DRe.exports=function(t,r,i,n){function a(h,p){return kRe.coerce(t,r,VQt,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"),jQt(t,r,n,a);var u=r._hasColorscale=$Qt(t,"marker","colors")||(t.marker||{}).coloraxis;u&&WQt(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",kRe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f="auto";HQt(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"),GQt(r,n,a),r._length=null}});var PRe=W((_Yr,LRe)=>{"use strict";var YQt=tt(),XQt=qK();LRe.exports=function(t,r){function i(n,a){return YQt.coerce(t,r,XQt,n,a)}i("sunburstcolorway",r.colorway),i("extendsunburstcolors")}});var lE=W((SI,IRe)=>{(function(e,t){typeof SI=="object"&&typeof IRe!="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 M(){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 S(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 S(_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 S(Oe){this.data=Oe,this.depth=this.height=0,this.parent=null}S.prototype=x.prototype={constructor:S,count:c,each:f,eachAfter:p,eachBefore:h,sum:d,sort:v,path:m,ancestors:w,descendants:_,leaves:b,links:M,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(S.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 RRe=lE(),ZQt=hn(),_4=tt(),KQt=es().makeColorScaleFuncFromTrace,JQt=y4().makePullColorFn,QQt=y4().generateExtendedColors,eer=es().calc,ter=(ra(),Pt(ia)).ALMOST_EQUAL,rer={},ier={},ner={};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||ZQt(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 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<{});function j1(){}function qRe(){return this.rgb().formatHex()}function her(){return this.rgb().formatHex8()}function der(){return jRe(this).formatHsl()}function ORe(){return this.rgb().formatRgb()}function k2(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=aer.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?NRe(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=oer.exec(e))?new Gu(t[1],t[2],t[3],1):(t=ser.exec(e))?new Gu(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ler.exec(e))?kI(t[1],t[2],t[3],t[4]):(t=uer.exec(e))?kI(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=cer.exec(e))?GRe(t[1],t[2]/100,t[3]/100,1):(t=fer.exec(e))?GRe(t[1],t[2]/100,t[3]/100,t[4]):BRe.hasOwnProperty(e)?NRe(BRe[e]):e==="transparent"?new Gu(NaN,NaN,NaN,0):null}function NRe(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 URe(){return`#${x_(this.r)}${x_(this.g)}${x_(this.b)}`}function per(){return`#${x_(this.r)}${x_(this.g)}${x_(this.b)}${x_((isNaN(this.opacity)?1:this.opacity)*255)}`}function VRe(){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 GRe(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xv(e,t,r,i)}function jRe(e){if(e instanceof xv)return new xv(e.h,e.s,e.l,e.opacity);if(e instanceof j1||(e=k2(e)),!e)return new xv;if(e instanceof xv)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 xv(o,s,l,e.opacity)}function dE(e,t,r,i){return arguments.length===1?jRe(e):new xv(e,t,r,i==null?1:i)}function xv(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}function HRe(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,aer,oer,ser,ler,uer,cer,fer,BRe,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*",aer=/^#([0-9a-f]{3,8})$/,oer=new RegExp(`^rgb\\(${w4},${w4},${w4}\\)$`),ser=new RegExp(`^rgb\\(${H1},${H1},${H1}\\)$`),ler=new RegExp(`^rgba\\(${w4},${w4},${w4},${fE}\\)$`),uer=new RegExp(`^rgba\\(${H1},${H1},${H1},${fE}\\)$`),cer=new RegExp(`^hsl\\(${fE},${H1},${H1}\\)$`),fer=new RegExp(`^hsla\\(${fE},${H1},${H1},${fE}\\)$`),BRe={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:qRe,formatHex:qRe,formatHex8:her,formatHsl:der,formatRgb:ORe,toString:ORe});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:URe,formatHex:URe,formatHex8:per,formatRgb:VRe,toString:VRe}));mm(xv,dE,S2(j1,{brighter(e){return e=e==null?__:Math.pow(__,e),new xv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?E2:Math.pow(E2,e),new xv(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 xv(HRe(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("}${HRe(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 KRe(e){if(e instanceof $1)return new $1(e.l,e.a,e.b,e.opacity);if(e instanceof ym)return JRe(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)/WRe),a,o;return t===r&&r===i?a=o=n:(a=UK((.4360747*t+.3850649*r+.1430804*i)/$Re),o=UK((.0139322*t+.0971045*r+.7141733*i)/YRe)),new $1(116*n-16,500*(a-n),200*(n-o),e.opacity)}function M4(e,t,r,i){return arguments.length===1?KRe(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>ver?Math.pow(e,1/3):e/ZRe+XRe}function VK(e){return e>A4?e*e*e:ZRe*(e-XRe)}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 ger(e){if(e instanceof ym)return new ym(e.h,e.c,e.l,e.opacity);if(e instanceof $1||(e=KRe(e)),e.a===0&&e.b===0)return new ym(NaN,0{EI();FI();NK();II=18,$Re=.96422,WRe=1,YRe=.82521,XRe=4/29,A4=6/29,ZRe=3*A4*A4,ver=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=$Re*VK(t),e=WRe*VK(e),r=YRe*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 JRe(this).rgb()}}))});function mer(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=(rze*i+eze*t-tze*r)/(rze+eze-tze),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?mer(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 ize,jK,$K,RI,vE,eze,tze,rze,nze=Ci(()=>{EI();FI();NK();ize=-.14861,jK=1.78277,$K=-.29227,RI=-.90649,vE=1.97294,eze=vE*RI,tze=vE*jK,rze=jK*$K-RI*ize;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*(ize*i+jK*n)),255*(t+r*($K*i+RI*n)),255*(t+r*(vE*i)),this.opacity)}}))});var T_=Ci(()=>{FI();QRe();nze()});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 aze(e,t){return function(r){return e+r*t}}function yer(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?aze(e,r>180||r<-180?r-360*Math.round(r/360):r):E4(isNaN(e)?t:e)}function oze(e){return(e=+e)==1?_l:function(t,r){return r-t?yer(t,r,e):E4(isNaN(t)?r:t)}}function _l(e,t){var r=t-e;return r?aze(e,r):E4(isNaN(e)?t:e)}var A_=Ci(()=>{XK()});function sze(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=oze(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);lze=sze(zI),uze=sze(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 cze(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 xer(e){return function(){return e}}function ber(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 fze(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var hze=Ci(()=>{});function dze(e,t){var r=C2(+e,+t);return function(i){var n=r(i);return n-360*Math.floor(n/360)}}var pze=Ci(()=>{A_()});function vze(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var gze=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{mze=180/Math.PI,HI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function xze(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 bze(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,_ze=Ci(()=>{yze()});function wze(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();_ze();Tze=wze(xze,"px, ","px)","deg)"),Aze=wze(bze,", ",")",")")});function Sze(e){return((e=Math.exp(e))+1/e)/2}function wer(e){return((e=Math.exp(e))-1/e)/2}function Ter(e){return((e=Math.exp(2*e))-1)/(e+1)}var _er,Eze,kze=Ci(()=>{_er=1e-12;Eze=(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<_er)g=Math.log(h/u)/t,m=function(A){return[s+A*p,l+A*d,u*Math.exp(t*A*g)]};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);g=(x-M)/t,m=function(A){var T=A*g,y=Sze(M),E=u/(r*w)*(y*Ter(t*T+M)-wer(M));return[s+E*p,l+E*d,u*y/Sze(t*T+M)]}}return m.duration=g*1e3*t/Math.SQRT2,m}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 Cze(e){return function(t,r){var i=e((t=dE(t)).h,(r=dE(r)).h),n=_l(t.s,r.s),a=_l(t.l,r.l),o=_l(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 Dze,Fze,Lze=Ci(()=>{T_();A_();Dze=Cze(C2),Fze=Cze(_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 Pze=Ci(()=>{T_();A_()});function Ize(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 Rze,zze,Bze=Ci(()=>{T_();A_();Rze=Ize(C2),zze=Ize(_l)});function qze(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 Oze,Nze,Uze=Ci(()=>{T_();A_();Oze=qze(C2),Nze=qze(_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 Gze(e,t){for(var r=new Array(t),i=0;i{});var M_={};Jn(M_,{interpolate:()=>D2,interpolateArray:()=>cze,interpolateBasis:()=>zI,interpolateBasisClosed:()=>qI,interpolateCubehelix:()=>Oze,interpolateCubehelixLong:()=>Nze,interpolateDate:()=>UI,interpolateDiscrete:()=>fze,interpolateHcl:()=>Rze,interpolateHclLong:()=>zze,interpolateHsl:()=>Dze,interpolateHslLong:()=>Fze,interpolateHue:()=>dze,interpolateLab:()=>aJ,interpolateNumber:()=>Qh,interpolateNumberArray:()=>k4,interpolateObject:()=>VI,interpolateRgb:()=>gE,interpolateRgbBasis:()=>lze,interpolateRgbBasisClosed:()=>uze,interpolateRound:()=>vze,interpolateString:()=>GI,interpolateTransformCss:()=>Tze,interpolateTransformSvg:()=>Aze,interpolateZoom:()=>Eze,piecewise:()=>oJ,quantize:()=>Gze});var S_=Ci(()=>{mE();JK();BI();YK();QK();hze();pze();yE();NI();eJ();gze();iJ();Mze();kze();ZK();Lze();Pze();Bze();Uze();Vze();Hze()});var $I=W((fZr,jze)=>{"use strict";var Aer=Qi(),Mer=ti();jze.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),Aer.pointStyle(t,i,n,r)}else Mer.fill(t,l)}});var sJ=W((hZr,Zze)=>{"use strict";var $ze=gi(),Wze=ti(),Yze=tt(),Ser=of().resizeText,Eer=$I();function ker(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");Ser(e,t,"sunburst"),t.each(function(r){var i=$ze.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){$ze.select(this).call(Xze,o,a,e)})})}function Xze(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=Yze.castOption(r,o,"marker.line.color")||Wze.defaultLine,l=Yze.castOption(r,o,"marker.line.width")||0;e.call(Eer,t,r,i).style("stroke-width",l).call(Wze.stroke,s).style("opacity",a?r.leaf.opacity:null)}Zze.exports={style:ker,styleOne:Xze}});var xm=W(sa=>{"use strict";var E_=tt(),Cer=ti(),Der=Xp(),Kze=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 Jze(e){return e.data.data.pid}sa.getParent=function(e,t){return sa.findEntryWithLevel(e,Jze(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=Kze.formatPieValue;sa.formatPercent=function(e,t){var r=E_.formatPercent(e,0);return r==="0%"&&(r=Kze.formatPiePercent(e,t)),r}});var _E=W((pZr,tBe)=>{"use strict";var C4=gi(),Qze=xi(),Per=ah().appendArrayPointValue,xE=Is(),eBe=tt(),Ier=ww(),_u=xm(),Rer=Gy(),zer=Rer.formatPieValue;tBe.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),M=_u.getValue(d),x=function(X){return eBe.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 S,C;u&&(S=o.cx+d.pxmid[0]*(1-d.rInscribed),C=o.cy+d.pxmid[1]*(1-d.rInscribed)),c&&(S=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=zer(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=M/_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=M/_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=M/_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,eBe.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=S-d.rInscribed*d.rpx1,B.x1=S+d.rInscribed*d.rpx1,B.idealAlign=d.pxmid[0]<0?"left":"right"),c&&(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(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(_),M={points:[bE(d,m,a.eventDataKeys)],event:C4.event};g||(M.nextLevel=b);var x=Ier.triggerHandler(i,"plotly_"+s.type+"click",M);if(x!==!1&&v.hovermode&&(i._hoverdata=[bE(d,m,a.eventDataKeys)],xE.click(i,C4.event)),!g&&x!==!1&&!i._dragging&&!i._transitioning){Qze.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()),Qze.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(),Ber=lE(),bv=(S_(),Pt(M_)).interpolate,rBe=Qi(),uf=tt(),qer=ao(),oBe=of(),iBe=oBe.recordMinTextSize,Oer=oBe.clearMinTextSize,sBe=MI(),Ner=Gy().getRotationAngle,Uer=sBe.computeTransform,Ver=sBe.transformInsideText,Ger=sJ().styleOne,Her=zd().resizeText,jer=_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(Oer("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){nBe(e,f,this,r)})})}else o.each(function(f){nBe(e,f,this,r)}),n.uniformtext.mode&&Her(e,n._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function nBe(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 M=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},!M&&qa.isEntry(G)&&(M=G)});var A=$er(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 S=Ner(c.rotation);S&&A.forEach(function(G){G.x0+=S,G.x1+=S});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 _+aBe(G)[0]*(G.transform.rCenter||0)+(G.transform.x||0)},R=function(G){return b+aBe(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&&M){var I=qa.getPtId(M);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=Wer(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(jer,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(Ger,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(rBe.font,Y).call(qer.convertToTspans,e);var H=rBe.bBox(V.node());G.transform=Ver(H,G,u),G.transform.targetX=P(G),G.transform.targetY=R(G);var j=function(Q,te){var ue=Q.transform;return Uer(ue,te),ue.fontSize=Y.size,iBe(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)+S;V=G.rpx1L?2*Math.PI:0)+S;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:S,x1:S};return bv(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}},M)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=S;else J.x0=J.x1=S;var Y=bv(J.transform.textPosAngle,G.transform.textPosAngle),H=bv(J.rpx1,G.rpx1),j=bv(J.x0,G.x0),Q=bv(J.x1,G.x1),te=bv(J.transform.scale,N.scale),ue=bv(J.transform.rotate,N.rotate),ge=N.rCenter===0?3:J.transform.rCenter===0?1/3:1,Ee=bv(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 iBe(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=bv(J.x0,J.x1);N.x0=j(Y/H),N.x1=j(Y/H)}else N.x0=N.x1=0;return N}}function $er(e){return Ber.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,M=function(y){g=qa.formatPercent(b,s),_&&(g+=" of "+y),m.push(g)};v("percent parent")&&!f&&(b=p/qa.getValue(h),M("parent")),v("percent entry")&&(b=p/qa.getValue(t),M("entry")),v("percent root")&&(b=p/qa.getValue(c),M("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 Wer(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 aBe(e){return Yer(e.rpx1,e.transform.textPosAngle)}function Yer(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var uBe=W((gZr,lBe)=>{"use strict";lBe.exports={moduleType:"trace",name:"sunburst",basePlotModule:TRe(),categories:[],animatable:!0,attributes:sE(),layoutAttributes:qK(),supplyDefaults:FRe(),supplyLayoutDefaults:PRe(),calc:cE().calc,crossTraceCalc:cE().crossTraceCalc,plot:YI().plot,style:sJ().style,colorbar:Cc(),meta:{}}});var fBe=W((mZr,cBe)=>{"use strict";cBe.exports=uBe()});var dBe=W(D4=>{"use strict";var hBe=Qo();D4.name="treemap";D4.plot=function(e,t,r,i){hBe.plotBasePlot(D4.name,e,t,r,i)};D4.clean=function(e,t,r,i){hBe.cleanBasePlot(D4.name,e,t,r,i)}});var k_={};Jn(k_,{CLICK_TRANSITION_EASING:()=>Zer,CLICK_TRANSITION_TIME:()=>Xer,eventDataKeys:()=>Ker,gapWithPathbar:()=>Jer});var Xer,Zer,Ker,Jer,C_=Ci(()=>{"use strict";Xer=750,Zer="poly",Ker=["currentPath","root","entry","percentRoot","percentEntry","percentParent"],Jer=1});var XI=W((xZr,gBe)=>{"use strict";var{hovertemplateAttrs:Qer,texttemplateAttrs:etr,templatefallbackAttrs:pBe}=Wa(),ttr=Fo(),rtr=ds().attributes,D_=m_(),Kd=sE(),vBe=(C_(),Pt(k_)),uJ=an().extendFlat,itr=zu().pattern;gBe.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:itr,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:Kd.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},ttr("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:etr({editType:"plot"},{keys:vBe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:pBe({editType:"plot"}),hovertext:D_.hovertext,hoverinfo:Kd.hoverinfo,hovertemplate:Qer({},{keys:vBe.eventDataKeys}),hovertemplatefallback:pBe(),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:rtr({name:"treemap",trace:!0,editType:"calc"})}});var cJ=W((bZr,mBe)=>{"use strict";mBe.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var _Be=W((_Zr,bBe)=>{"use strict";var yBe=tt(),ntr=XI(),atr=ti(),otr=ds().defaults,str=I0().handleText,ltr=(Qy(),Pt(Jy)).TEXTPAD,utr=y_().handleMarkerDefaults,xBe=es(),ctr=xBe.hasColorscale,ftr=xBe.handleDefaults;bBe.exports=function(t,r,i,n){function a(m,g){return yBe.coerce(t,r,ntr,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",yBe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var f=a("pathbar.visible"),h="auto";str(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;utr(t,r,n,a);var d=r._hasColorscale=ctr(t,"marker","colors")||(t.marker||{}).coloraxis;d?ftr(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:atr.contrast(n.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*ltr),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),otr(r,n,a),r._length=null}});var TBe=W((wZr,wBe)=>{"use strict";var htr=tt(),dtr=cJ();wBe.exports=function(t,r){function i(n,a){return htr.coerce(t,r,dtr,n,a)}i("treemapcolorway",r.colorway),i("extendtreemapcolors")}});var hJ=W(fJ=>{"use strict";var ABe=cE();fJ.calc=function(e,t){return ABe.calc(e,t)};fJ.crossTraceCalc=function(e){return ABe._runCrossTraceCalc("treemap",e)}});var dJ=W((AZr,MBe)=>{"use strict";MBe.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(),ptr=dJ();SBe.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(vtr(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)&&ptr(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 ZI=W((SZr,DBe)=>{"use strict";var EBe=gi(),L4=ti(),kBe=tt(),vJ=xm(),gtr=of().resizeText,mtr=$I();function ytr(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");gtr(e,t,"treemap"),t.each(function(r){var i=EBe.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){EBe.select(this).call(CBe,o,a,e,{hovered:!1})})})}function CBe(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=kBe.castOption(r,s,"marker.line.color")||L4.defaultLine,u=kBe.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 FBe=gi(),KI=tt(),LBe=Qi(),xtr=ao(),btr=pJ(),PBe=ZI().styleOne,gJ=(C_(),Pt(k_)),P4=xm(),_tr=_E(),mJ=!0;IBe.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,M=r[0],x=M.trace,A=M.hierarchy,T=s/x._entryDepth,y=P4.listPath(i.data,"id"),E=btr(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 S=n;d&&(S=S.transition().each("end",function(){var C=FBe.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=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=FBe.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(_tr,i,t,r,{styleOne:PBe,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(PBe,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(LBe.font,R).call(xtr.convertToTspans,t),C.textBB=LBe.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 OBe=W((kZr,qBe)=>{"use strict";var zBe=gi(),yJ=(S_(),Pt(M_)).interpolate,F2=xm(),TE=tt(),BBe=(Qy(),Pt(Jy)).TEXTPAD,wtr=Wb(),Ttr=wtr.toMoveInsideBar,Atr=of(),xJ=Atr.recordMinTextSize,Mtr=(C_(),Pt(k_)),Str=RBe();function F_(e){return F2.isHierarchyRoot(e)?"":F2.getPtId(e)}qBe.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=zBe.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:S,y1:S+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*(M.x[1]+M.x[0])/2,O=-A/2+b.t+b.h*(1-(M.y[1]+M.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)-BBe,Ce-=(c?Q:Q.r)-BBe,Te>=Ce){var dt=(Te+Ce)/2;Te=dt,Ce=dt}var St;xe?(St=we-(c?Q:Q.b),ze{"use strict";var Etr=gi(),ktr=xm(),Ctr=of(),Dtr=Ctr.clearMinTextSize,Ftr=zd().resizeText,NBe=OBe();UBe.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(Dtr(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&&ktr.hasTransition(i)){n&&(f=n());var p=Etr.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){NBe(t,d,this,i,s)})})}else c.each(function(d){NBe(t,d,this,i,s)}),l.uniformtext.mode&&Ftr(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var $Be=W((DZr,jBe)=>{"use strict";var VBe=gi(),JI=tt(),GBe=Qi(),Ltr=ao(),Ptr=pJ(),HBe=ZI().styleOne,_J=(C_(),Pt(k_)),L2=xm(),Itr=_E(),Rtr=YI().formatSliceLabel,wJ=!1;jBe.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,M=r[0],x=M.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,S=Ptr(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(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=VBe.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=VBe.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(Itr,i,t,r,{styleOne:HBe,eventDataKeys:_J.eventDataKeys,transitionTime:_J.CLICK_TRANSITION_TIME,transitionEasing:_J.CLICK_TRANSITION_EASING}).call(L2.setSliceCursor,t,{isTransitioning:t._transitioning}),$.call(HBe,I,x,t,{hovered:!1}),I.x0===I.x1||I.y0===I.y1?I._text="":B?I._text=E?"":L2.getPtLabel(I)||"":I._text=Rtr(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(GBe.font,G).call(Ltr.convertToTspans,t),I.textBB=GBe.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 YBe=W((FZr,WBe)=>{"use strict";var ztr=bJ(),Btr=$Be();WBe.exports=function(t,r,i,n){return ztr(t,r,i,n,{type:"treemap",drawDescendants:Btr})}});var ZBe=W((LZr,XBe)=>{"use strict";XBe.exports={moduleType:"trace",name:"treemap",basePlotModule:dBe(),categories:[],animatable:!0,attributes:XI(),layoutAttributes:cJ(),supplyDefaults:_Be(),supplyLayoutDefaults:TBe(),calc:hJ().calc,crossTraceCalc:hJ().crossTraceCalc,plot:YBe(),style:ZI().style,colorbar:Cc(),meta:{}}});var JBe=W((PZr,KBe)=>{"use strict";KBe.exports=ZBe()});var eqe=W(I4=>{"use strict";var QBe=Qo();I4.name="icicle";I4.plot=function(e,t,r,i){QBe.plotBasePlot(I4.name,e,t,r,i)};I4.clean=function(e,t,r,i){QBe.cleanBasePlot(I4.name,e,t,r,i)}});var TJ=W((RZr,iqe)=>{"use strict";var{hovertemplateAttrs:qtr,texttemplateAttrs:Otr,templatefallbackAttrs:tqe}=Wa(),Ntr=Fo(),Utr=ds().attributes,AE=m_(),N0=sE(),QI=XI(),rqe=(C_(),Pt(k_)),Vtr=an().extendFlat,Gtr=zu().pattern;iqe.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:Vtr({colors:N0.marker.colors,line:N0.marker.line,pattern:Gtr,editType:"calc"},Ntr("marker",{colorAttr:"colors",anim:!1})),leaf:N0.leaf,pathbar:QI.pathbar,text:AE.text,textinfo:N0.textinfo,texttemplate:Otr({editType:"plot"},{keys:rqe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:tqe({editType:"plot"}),hovertext:AE.hovertext,hoverinfo:N0.hoverinfo,hovertemplate:qtr({},{keys:rqe.eventDataKeys}),hovertemplatefallback:tqe(),textfont:AE.textfont,insidetextfont:AE.insidetextfont,outsidetextfont:QI.outsidetextfont,textposition:QI.textposition,sort:AE.sort,root:N0.root,domain:Utr({name:"icicle",trace:!0,editType:"calc"})}});var AJ=W((zZr,nqe)=>{"use strict";nqe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var lqe=W((BZr,sqe)=>{"use strict";var aqe=tt(),Htr=TJ(),jtr=ti(),$tr=ds().defaults,Wtr=I0().handleText,Ytr=(Qy(),Pt(Jy)).TEXTPAD,Xtr=y_().handleMarkerDefaults,oqe=es(),Ztr=oqe.hasColorscale,Ktr=oqe.handleDefaults;sqe.exports=function(t,r,i,n){function a(p,d){return aqe.coerce(t,r,Htr,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",aqe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback");var c=a("pathbar.visible"),f="auto";Wtr(t,r,n,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),Xtr(t,r,n,a);var h=r._hasColorscale=Ztr(t,"marker","colors")||(t.marker||{}).coloraxis;h&&Ktr(t,r,n,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:jtr.contrast(n.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*Ytr),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),$tr(r,n,a),r._length=null}});var cqe=W((qZr,uqe)=>{"use strict";var Jtr=tt(),Qtr=AJ();uqe.exports=function(t,r){function i(n,a){return Jtr.coerce(t,r,Qtr,n,a)}i("iciclecolorway",r.colorway),i("extendiciclecolors")}});var SJ=W(MJ=>{"use strict";var fqe=cE();MJ.calc=function(e,t){return fqe.calc(e,t)};MJ.crossTraceCalc=function(e){return fqe._runCrossTraceCalc("icicle",e)}});var dqe=W((NZr,hqe)=>{"use strict";var err=lE(),trr=dJ();hqe.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=err.partition().padding(i.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||n||a)&&trr(c,r,{swapXY:o,flipX:n,flipY:a}),c}});var EJ=W((UZr,yqe)=>{"use strict";var pqe=gi(),vqe=ti(),gqe=tt(),rrr=of().resizeText,irr=$I();function nrr(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");rrr(e,t,"icicle"),t.each(function(r){var i=pqe.select(this),n=r[0],a=n.trace;i.style("opacity",a.opacity),i.selectAll("path.surface").each(function(o){pqe.select(this).call(mqe,o,a,e)})})}function mqe(e,t,r,i){var n=t.data.data,a=!t.children,o=n.i,s=gqe.castOption(r,o,"marker.line.color")||vqe.defaultLine,l=gqe.castOption(r,o,"marker.line.width")||0;e.call(irr,t,r,i).style("stroke-width",l).call(vqe.stroke,s).style("opacity",a?r.leaf.opacity:null)}yqe.exports={style:nrr,styleOne:mqe}});var Tqe=W((VZr,wqe)=>{"use strict";var xqe=gi(),eR=tt(),bqe=Qi(),arr=ao(),orr=dqe(),_qe=EJ().styleOne,kJ=(C_(),Pt(k_)),R4=xm(),srr=_E(),lrr=YI().formatSliceLabel,CJ=!1;wqe.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,M=r[0],x=M.trace,A=x.textposition.indexOf("left")!==-1,T=x.textposition.indexOf("right")!==-1,y=x.textposition.indexOf("bottom")!==-1,E=orr(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 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(S,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=xqe.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=xqe.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(srr,i,t,r,{styleOne:_qe,eventDataKeys:kJ.eventDataKeys,transitionTime:kJ.CLICK_TRANSITION_TIME,transitionEasing:kJ.CLICK_TRANSITION_EASING}).call(R4.setSliceCursor,t,{isTransitioning:t._transitioning}),B.call(_qe,L,x,t,{hovered:!1}),L.x0===L.x1||L.y0===L.y1?L._text="":L._text=lrr(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(bqe.font,X).call(arr.convertToTspans,t),L.textBB=bqe.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 Mqe=W((GZr,Aqe)=>{"use strict";var urr=bJ(),crr=Tqe();Aqe.exports=function(t,r,i,n){return urr(t,r,i,n,{type:"icicle",drawDescendants:crr})}});var Eqe=W((HZr,Sqe)=>{"use strict";Sqe.exports={moduleType:"trace",name:"icicle",basePlotModule:eqe(),categories:[],animatable:!0,attributes:TJ(),layoutAttributes:AJ(),supplyDefaults:lqe(),supplyLayoutDefaults:cqe(),calc:SJ().calc,crossTraceCalc:SJ().crossTraceCalc,plot:Mqe(),style:EJ().style,colorbar:Cc(),meta:{}}});var Cqe=W((jZr,kqe)=>{"use strict";kqe.exports=Eqe()});var Fqe=W(z4=>{"use strict";var Dqe=Qo();z4.name="funnelarea";z4.plot=function(e,t,r,i){Dqe.plotBasePlot(z4.name,e,t,r,i)};z4.clean=function(e,t,r,i){Dqe.cleanBasePlot(z4.name,e,t,r,i)}});var DJ=W((WZr,Pqe)=>{"use strict";var Ic=m_(),frr=Ja(),hrr=ds().attributes,{hovertemplateAttrs:drr,texttemplateAttrs:prr,templatefallbackAttrs:Lqe}=Wa(),L_=an().extendFlat;Pqe.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:prr({editType:"plot"},{keys:["label","color","value","text","percent"]}),texttemplatefallback:Lqe({editType:"plot"}),hoverinfo:L_({},frr.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:drr({},{keys:["label","color","value","text","percent"]}),hovertemplatefallback:Lqe(),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:hrr({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((YZr,Iqe)=>{"use strict";var vrr=_I().hiddenlabels;Iqe.exports={hiddenlabels:vrr,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var Bqe=W((XZr,zqe)=>{"use strict";var Rqe=tt(),grr=DJ(),mrr=ds().defaults,yrr=I0().handleText,xrr=y_().handleLabelsAndValues,brr=y_().handleMarkerDefaults;zqe.exports=function(t,r,i,n){function a(v,m){return Rqe.coerce(t,r,grr,v,m)}var o=a("labels"),s=a("values"),l=xrr(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,brr(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");yrr(t,r,n,a,p,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");mrr(r,n,a);var d=a("title.text");d&&(a("title.position"),Rqe.coerceFont(a,"title.font",n.font)),a("aspectratio"),a("baseratio")}});var Oqe=W((ZZr,qqe)=>{"use strict";var _rr=tt(),wrr=FJ();qqe.exports=function(t,r){function i(n,a){return _rr.coerce(t,r,wrr,n,a)}i("hiddenlabels"),i("funnelareacolorway",r.colorway),i("extendfunnelareacolors")}});var LJ=W((KZr,Uqe)=>{"use strict";var Nqe=y4();function Trr(e,t){return Nqe.calc(e,t)}function Arr(e){Nqe.crossTraceCalc(e,{type:"funnelarea"})}Uqe.exports={calc:Trr,crossTraceCalc:Arr}});var $qe=W((JZr,jqe)=>{"use strict";var P_=gi(),PJ=Qi(),P2=tt(),Mrr=P2.strScale,Vqe=P2.strTranslate,Gqe=ao(),Srr=Wb(),Err=Srr.toMoveInsideBar,Hqe=of(),krr=Hqe.recordMinTextSize,Crr=Hqe.clearMinTextSize,Drr=Gy(),B4=MI(),Frr=B4.attachFxHandlers,Lrr=B4.determineInsideTextFont,Prr=B4.layoutAreas,Irr=B4.prerenderTitles,Rrr=B4.positionTitleOutside,zrr=B4.formatSliceLabel;jqe.exports=function(t,r){var i=t._context.staticPlot,n=t._fullLayout;Crr("funnelarea",n),Irr(r,t),Prr(r,n._size),P2.makeTraceGroups(n._funnelarealayer,r,"trace").each(function(a){var o=P_.select(this),s=a[0],l=s.trace;qrr(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(Frr,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),zrr(t,f,s);var w=Drr.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)}),M=P2.ensureUniformFontSize(t,Lrr(l,f,n.font));b.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(PJ.font,M).call(Gqe.convertToTspans,t);var x=PJ.bBox(b.node()),A,T,y,E=Math.min(f.BL[1],f.BR[1])+d,S=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=Err(T,y,E,S,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),A.fontSize=M.size,krr(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(Gqe.convertToTspans,t);var p=Rrr(s,n._size);f.attr("transform",Vqe(p.x,p.y)+Mrr(Math.min(1,p.scale))+Vqe(p.tx,p.ty))})})})};function IJ(e,t){var r=t[0]-e[0],i=t[1]-e[1];return"l"+r+","+i}function Brr(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function qrr(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 S=p[E][0],C=p[E][1];v.TL=[-S,C],v.TR=[S,C],v.BL=T,v.BR=y,v.pxmid=Brr(v.TR,v.BR),T=v.TL,y=v.TR}}});var Xqe=W((QZr,Yqe)=>{"use strict";var Wqe=gi(),Orr=Nw(),Nrr=of().resizeText;Yqe.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");Nrr(t,r,"funnelarea"),r.each(function(i){var n=i[0],a=n.trace,o=Wqe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){Wqe.select(this).call(Orr,s,a,t)})})}});var Kqe=W((eKr,Zqe)=>{"use strict";Zqe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:Fqe(),categories:["pie-like","funnelarea","showLegend"],attributes:DJ(),layoutAttributes:FJ(),supplyDefaults:Bqe(),supplyLayoutDefaults:Oqe(),calc:LJ().calc,crossTraceCalc:LJ().crossTraceCalc,plot:$qe(),style:Xqe(),styleOne:Nw(),meta:{}}});var Qqe=W((tKr,Jqe)=>{"use strict";Jqe.exports=Kqe()});var uc=W((rKr,eOe)=>{"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 M=_.indexOf("=");M===-1&&(M=b);var x=M===b?0:4-M%4;return[M,x]}function p(_){var b=h(_),M=b[0],x=b[1];return(M+x)*3/4-x}function d(_,b,M){return(b+M)*3/4-M}function v(_){var b,M=h(_),x=M[0],A=M[1],T=new l(d(_,x,A)),y=0,E=A>0?x-4:x,S;for(S=0;S>16&255,T[y++]=b>>8&255,T[y++]=b&255;return A===2&&(b=s[_.charCodeAt(S)]<<2|s[_.charCodeAt(S+1)]>>4,T[y++]=b&255),A===1&&(b=s[_.charCodeAt(S)]<<10|s[_.charCodeAt(S+1)]<<4|s[_.charCodeAt(S+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,M){for(var x,A=[],T=b;TE?E:y+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,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 M=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||(M=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=M(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 S(){E.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(S,E),S.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},S.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 S;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),S=s.mallocInt32(x);if(x=f(w,T,E,S),x>0){if(T===1&&M)l.init(x),y=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=f(_,T,C,k),A>0&&(l.init(x+A),T===1?y=l.sweepBipartite(T,b,0,x,E,S,0,A,C,k):y=u(T,b,M,x,E,S,A,C,k),s.free(C),s.free(k))}s.free(E),s.free(S)}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,M,x){for(var A=2*h,T=v,y=A*v;Tb-_?u(h,p,d,v,m,g,w,_,b,M,x):c(h,p,d,v,m,g,w,_,b,M,x)}return f}function s(){function u(d,v,m,g,w,_,b,M,x,A,T){for(var y=2*d,E=g,S=y*g;EA-x?g?u(d,v,m,w,_,b,M,x,A,T,y):c(d,v,m,w,_,b,M,x,A,T,y):g?f(d,v,m,w,_,b,M,x,A,T,y):h(d,v,m,w,_,b,M,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=S[Y],j=S[Y+1],Q=S[Y+2],te=S[Y+3],ue=S[Y+4],ge=S[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=M(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]>M;--x,A-=w){for(var T=A,y=A+w,E=0;E>>1,M=2*h,x=b,A=m[M*b+p];w<_;){if(_-w=C?(x=S,A=C):E>=D?(x=y,A=E):(x=k,A=D):C>=D?(x=S,A=C):D>=E?(x=y,A=E):(x=k,A=D);for(var R=M*(_-1),L=M*x,F=0;F=p0)&&!(p1>=hi)":p};function o(d){return a[d]}function s(d,v,m,g,w,_,b){for(var M=2*d,x=M*m,A=x,T=m,y=v,E=d+v,S=m;g>S;++S,x+=M){var C=w[x+y];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 F=_[S];_[S]=_[T],_[T++]=F}}return T}function l(d,v,m,g,w,_,b){for(var M=2*d,x=M*m,A=x,T=m,y=v,E=d+v,S=m;g>S;++S,x+=M){var C=w[x+y];if(Ck;++k){var D=w[x+k];w[x+k]=w[A],w[A++]=D}var F=_[S];_[S]=_[T],_[T++]=F}}return T}function u(d,v,m,g,w,_,b){for(var M=2*d,x=M*m,A=x,T=m,y=v,E=d+v,S=m;g>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 F=_[S];_[S]=_[T],_[T++]=F}}return T}function c(d,v,m,g,w,_,b){for(var M=2*d,x=M*m,A=x,T=m,y=v,E=d+v,S=m;g>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 F=_[S];_[S]=_[T],_[T++]=F}}return T}function f(d,v,m,g,w,_,b){for(var M=2*d,x=M*m,A=x,T=m,y=v,E=d+v,S=m;g>S;++S,x+=M){var C=w[x+y],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 F=w[x+D];w[x+D]=w[A],w[A++]=F}var P=_[S];_[S]=_[T],_[T++]=P}}return T}function h(d,v,m,g,w,_,b){for(var M=2*d,x=M*m,A=x,T=m,y=v,E=d+v,S=m;g>S;++S,x+=M){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=_[S];_[S]=_[T],_[T++]=P}}return T}function p(d,v,m,g,w,_,b,M){for(var x=2*d,A=x*m,T=A,y=m,E=v,S=d+v,C=m;g>C;++C,A+=x){var k=w[A+E],D=w[A+S];if(!(k>=b)&&!(M>=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++],M=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=M-w,A=M+w,T=_,y=x,E=M,S=A,C=b,k=v+1,D=m-1,F=0;h(T,y,g)&&(F=T,T=y,y=F),h(S,C,g)&&(F=S,S=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,S,g)&&(F=T,T=S,S=F),h(E,S,g)&&(F=E,E=S,S=F),h(y,C,g)&&(F=y,y=C,C=F),h(y,E,g)&&(F=y,y=E,E=F),h(S,C,g)&&(F=S,S=C,C=F);for(var P=g[2*y],R=g[2*y+1],L=g[2*S],I=g[2*S+1],B=2*T,O=2*E,$=2*C,X=2*_,K=2*M,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,S,C,k,D,F,P,R,L,I,B,O){var $=0,X=2*E,K=S,G=S+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)M(h,p,Q++,V);else{var ge=O[V],Ee=X*V,xe=B[Ee+S+1],ce=B[Ee+S+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+S+1],ue=I[Q+S+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 M(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 S(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),M=!!d(w,"exterior",!0),x=!!d(w,"infinity",!1);if(!b&&!M||m.length===0)return[];var A=s(m,g);if(_||b!==M||x){for(var T=l(m.length,p(g)),y=0;y0;){for(var _=p.pop(),m=p.pop(),b=-1,M=-1,g=v[m],A=1;A=0||(h.flip(m,_),u(f,h,p,b,m,M),u(f,h,p,m,M,b),u(f,h,p,M,_,b),u(f,h,p,_,b,M))}}},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(M[y]!==-w){M[y]=w;for(var E=x[y],S=0;S<3;++S){var C=T[3*y+S];C>=0&&M[C]===0&&(A[3*y+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 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(M,x,A,T,y){this.a=M,this.b=x,this.idx=A,this.lowerIds=T,this.upperIds=y}function p(M,x,A,T){this.a=M,this.b=x,this.type=A,this.idx=T}function d(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 m(M,x,A,T,y){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],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;)M.push([F[P-2],F[P-1],y]),P-=1;F.length=P,F.push(y)}}function g(M,x){var A;return M.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;LM+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*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,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 M=h(d,v,m),x=h(d,v,g);return M===x?0:M?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],M=u[1],x=u[2],A=u[3];return m+g+w+_-(b+M+x+A)||a(m,g,w,_)-a(b,M,x,A,b)||a(m+g,m+w,m+_,g+w,g+_,w+_)-a(b+M,b+x,b+A,M+x,M+A,x+A)||a(m+g+w,m+g+_,m+w+_,g+w+_)-a(b+M+x,b+M+A,b+x+A,M+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),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,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(M[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;--M)m.push(u(_[M-1],b[M-1],arguments[M])),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,M=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(M[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(M[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];S[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 S=d(x,A,T,y.left);if(S)return S}var S=T(y.key,y.value);if(S)return S}if(y.right)return d(x,A,T,y.right)}function v(x,A,T,y,E){var S=T(x,E.key),C=T(A,E.key),k;if(S<=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 S=A(x,T.key);y.push(T),S<=0&&(E=y.length),S<=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 S=A(x,T.key);y.push(T),S<0&&(E=y.length),S<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 S=A(x,T.key);y.push(T),S>0&&(E=y.length),S<=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 S=A(x,T.key);y.push(T),S>=0&&(E=y.length),S<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,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(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),S>1){var C=x[S-2];C.left===T?C.left=y:C.right=y}x[S-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),S>1){var C=x[S-2];C.left===T?C.left=E:C.right=E}x[S-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),S>1){var C=x[S-2];C.left===T?C.left=y:C.right=y}x[S-1]=y,x[S]=T,S+11){var C=x[S-2];C.right===T?C.right=y:C.left=y}x[S-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),S>1){var C=x[S-2];C.right===T?C.right=E:C.left=E}x[S-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),S>1){var C=x[S-2];C.right===T?C.right=y:C.left=y}x[S-1]=y,x[S]=T,S+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 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 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 M(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 M=[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],S=[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=M,V=0;V<3;++V)x(M[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(S,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 M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.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(),M.disable(M.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],M=[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,M[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],M[0],M[1],M[2]),m+=1}var y=w;w=_,_=y}var E=s(p,new Float32Array(d)),S=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}],S),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 S=0;S<3;++S)A[E]+=T[S]*y[4*S+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[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; +}`]);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,M,x){this.gl=_,this.shader=b,this.buffer=M,this.vao=x,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var v=d.prototype,m=[0,0];v.bind=function(_,b,M,x){this.vao.bind(),this.shader.bind();var A=this.shader.uniforms;A.model=_,A.view=b,A.projection=M,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,M,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],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]=T.length/p|0,y(.5*(_[0][P]+_[1][P]),b[P],M[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,M),_}function d(g,w){for(var _=s.malloc(g.length,w),b=g.length,M=0;M=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 M=s.malloc(g.size,_),x=u(M,g.shape);l.assign(x,g),w<0?this.length=p(this.gl,this.type,this.length,this.usage,M,w):this.length=p(this.gl,this.type,this.length,this.usage,M.subarray(0,g.size),w),s.free(M)}}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 M=g.createBuffer(),x=new f(g,_,M,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,M=null,x=null,A=[],T=1/0,y=!1,E=u.coneSizemode==="raw",S=0;Sd&&(d=s.length(k)),S&&!E){var D=2*s.distance(M,C)/(s.length(x)+s.length(k));D?(T=Math.min(T,D),y=!1):y=!0}y||(M=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 S=0,I=0;S=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 S=T[E],C=0;C<3;++C)y[4*E+C]=S[C];y[4*E+3]=S[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,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(y),this._view=[].slice.call(E),this._projection=[].slice.call(S),this._resolution=[T.drawingBufferWidth,T.drawingBufferHeight];var D={model:y,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(),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),S={position:E,dataCoordinate:E,index:Math.floor(y[1]/48)};return this.traceType==="cone"?S.index=Math.floor(y[1]/48):this.traceType==="streamtube"&&(S.intensity=this.intensity[y[1]],S.velocity=this.vectors[y[1]].slice(0,3),S.divergence=this.vectors[y[1]][3],S.index=T),S},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 M(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 S=b(A,E),C=M(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,S,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],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; +}`]);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,M=_.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,S=E?2:1,C=S*this.pixelRatio*(M[3]*x+M[7]*A+M[11]*T+M[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 M=-1;M<=1;M+=2){var x=(b+w)%3,A=[0,0,0];A[x]=M,_.push(A)}g[w]=_}return g})();function v(g,w,_,b){for(var M=d[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),p(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 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}]),M=u(w);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var x=new f(w,_,b,M);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,11 +707,11 @@ 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=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: +}`]);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),S=T.getParameter(T.TEXTURE_BINDING_2D);return[y,E,S]}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 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?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(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 F=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");F=T.FLOAT}else S.preferFloat&&D>0&&P&&(F=T.FLOAT);var R=!0;"depth"in S&&(R=!!S.depth);var L=!1;return"stencil"in S&&(L=!!S.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 A=parseInt(x.split(":")[2]);if(isNaN(A))throw new Error(s("Could not parse error: %s",x));b[A]=x}}for(var T=c(p).split(` -`),S=0;S0){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; +}`]),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,S,C){return c[0]=C,c[1]=S,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 S=0,C=0;C<3;++C){var k=y[C]-E[C];S+=k*k}return Math.sqrt(S)}function b(y){for(var E=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],S=0;S<3;++S)E[0][S]=Math.max(y[0][S],E[0][S]),E[1][S]=Math.min(y[1][S],E[1][S]);return E}function M(y,E,S,C){this.arcLength=y,this.position=E,this.index=S,this.dataCoordinate=C}function x(y,E,S,C,k,D){this.gl=y,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 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,S=this.shader,C=this.vao;S.bind(),S.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,S=this.pickShader,C=this.vao;S.bind(),S.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,S;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][S]=Math.min(L[0][S],X[S],K[S]),L[1][S]=Math.max(L[1][S],X[S],K[S])}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(S=0;S<2;++S)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;S+=E[M]}return Math.abs(S-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,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; +`]);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),M=o(7626),x=b.meshShader,A=b.wireShader,T=b.pointShader,y=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(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*S*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: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(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 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;w0){var S=Math.round(Math.pow(10,E));return Math.ceil(y/S)*S}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 S=y.container;S.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),M=Math.sin((1-u)*w)/b,x=Math.sin(u*w)/b):(M=1-u,x=u),o[0]=M*c+x*d,o[1]=M*f+x*v,o[2]=M*h+x*m,o[3]=M*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 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;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],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],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(S),pe=L(C);re[ae]=1,pe[_e]=1;var Te=M(xe,Ee,ge,I(k,re)),Ce=M(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,M){var x=new p(g);return x.update(w,_,b,M),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,M=_._locations[_._index];b.vertexAttribPointer(M,_._dimension,v||b.FLOAT,!!m,g||0,w||0),b.enableVertexAttribArray(M)},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 M=c[w],x=new l(d,v,m,g,w,M);Object.defineProperty(_,b,{set:function(A){return d.disableVertexAttribArray(g[m]),M(d,g[m],A),A},get:function(){return x},enumerable:!0})}function h(d,v,m,g,w,_,b){for(var M=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 S=T[E],C=A;parseInt(E)+""===E?C+="["+E+"]":C+="."+E,typeof S=="object"?y.push.apply(y,w(C,S)):y.push([C,S])}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=M(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 M(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 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; +}`]);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,M,x,A){for(var T=b.points,y=b.velocities,E=b.divergences,S=[],C=[],k=[],D=[],F=[],P=[],R=0,L=0,I=l.create(),B=l.create(),O=8,$=0;$0)for(var q=0;qM)return A-1}return A},p=function(b,M,x){return bx?x:b},d=function(b,M,x){var A=M.vectors,T=M.meshgrid,y=b[0],E=b[1],S=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],S),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=(S-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,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},m=function(b){var M=1/0;b.sort(function(y,E){return y-E});for(var x=b.length,A=1;AL||feI||eeB)},$=s.distance(M[0],M[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,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(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;hH&&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:[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,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: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(),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||S,te.view=H.view||S,te.projection=H.projection||S,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=[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 g(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,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 S=this.gl;if(this.type===S.FLOAT&&c.indexOf(E)>=0&&(S.getExtension("OES_texture_float_linear")||(E=S.NEAREST)),f.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&&c.indexOf(E)>=0&&(S.getExtension("OES_texture_float_linear")||(E=S.NEAREST)),f.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 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 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=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,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,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,S,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,S,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,S,C,I[0],I[1],D,F,q.subarray(0,K)),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 g(E,P,S,C,k,D)}function A(E,S,C,k,D,F){var P=M(E);return E.texImage2D(E.TEXTURE_2D,0,D,D,F,S),new g(E,P,C,k,D,F)}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 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 R=0;if(k.length===2)R=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)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=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];I=u.malloc(B,C);var $=s(I,k,O,0);(C==="float32"||C==="float64")&&P===E.UNSIGNED_BYTE?v($,S):l.assign($,S),L=I.subarray(0,B)}var X=M(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 S=arguments[1],C=d(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 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,` +`)&&R!=="\\"?(Q(L.join("")),F=h,k):(L.push(P),R=P,k+1)}function ce(){return xe()}function oe(){return P==="/"&&R==="*"?(L.push(P),Q(L.join("")),F=h,k+1):(L.push(P),R=P,k+1)}function Se(){if(R==="."&&/\d/.test(P))return F=_,k;if(R==="/"&&P==="*")return F=d,k;if(R==="/"&&P==="/")return F=v,k;if(P==="."&&L.length){for(;be(L););return F=_,k}if(P===";"||P===")"||P==="("){if(L.length)for(;be(L););return Q(P),F=h,k+1}var re=L.length===2&&P!=="=";if(/[\w_\d\s]/.test(P)||re){for(;be(L););return F=h,k}return L.push(P),R=P,k+1}function be(re){var pe=0,Te,Ce;do{if(Te=l.indexOf(re.slice(0,re.length+pe).join("")),Ce=l[Te],Te===-1){if(pe--+re.length>0)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=M: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,M=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]|=M*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 M=0;M<=w;++M)this.tuple[M]=this.vertices[M];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,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 y=w.adjacent,E=0;E<=b;++E){var S=y[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 F=this.orient();if(F>0)return S;S.lastVisited=-M,F===0&&T.push(S)}}}return null},m.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,y=this.interior[T];e:for(;!y.boundary;){for(var E=y.vertices,S=y.adjacent,C=0;C<=M;++C)A[C]=x[E[C]];y.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 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,M=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 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 R=P.vertices;if(P.lastVisited!==-b){for(var L=0,I=0;I<=M;++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<=M;++I){var q=$[I];if(!(q<0||q===b)){for(var J=new Array(M-1),N=0,V=0;V<=M;++V){var Y=$[V];Y<0||V===I||(J[N++]=Y)}S.push(new c(J,K,I))}}}}}}}S.sort(f);for(var F=0;F+1=0?T[E++]=y[C]:S=C&1;if(S===(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 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),y=0;y<=M;++y)T[y]=y;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),y=0;y<=M;++y){for(var k=T.slice(),D=0;D<=M;++D)D===y&&(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[y]=P,C[y]=P}C[M+1]=E;for(var y=0;y<=M;++y)for(var k=S[y].vertices,R=S[y].adjacent,D=0;D<=M;++D){var L=k[D];if(L<0){R[D]=E;continue}for(var I=0;I<=M;++I)S[I].vertices.indexOf(L)<0&&(R[D]=S[I])}for(var B=new v(M,x,C),O=!!_,y=M+1;y3*(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 m(this,S);var D=this.left.remove(S);return D===c?(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 m(this,S);var D=this.right.remove(S);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]===S?c:l;if(this.leftPoints.length===1&&this.leftPoints[0]===S){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,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 A(S){if(S.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,S,C){if(T||(T=[0,0,0]),y||(y=[0,0,0]),E||(E=[0,0,0]),S||(S=[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),_(S,m,v)}else S[0]=S[1]=S[2]=0,S[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]),M(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]),M(g[2],g[2],g[0],1,-E[1]),E[2]=p.dot(g[1],g[2]),M(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],S=A[2],C=A[3];return x[0]=T[0]*y+T[4]*E+T[8]*S+T[12]*C,x[1]=T[1]*y+T[5]*E+T[9]*S+T[13]*C,x[2]=T[2]*y+T[6]*E+T[10]*S+T[14]*C,x[3]=T[3]*y+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,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,M,x){if(c(b)===0||c(M)===0)return!1;var A=u(b,h.translate,h.scale,h.skew,h.perspective,h.quaternion),T=u(M,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=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),y=this.computedMatrix;if(!(T<0)){var E=this._components;if(T===A.length-1)for(var S=16*T,C=0;C<16;++C)y[C]=E[S++];else{for(var k=A[T+1]-A[T],S=16*T,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)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;--M)w[_++]=d[M];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(S){var C=!1;return"altKey"in S&&(C=C||S.altKey!==d.alt,d.alt=!!S.altKey),"shiftKey"in S&&(C=C||S.shiftKey!==d.shift,d.shift=!!S.shiftKey),"ctrlKey"in S&&(C=C||S.ctrlKey!==d.control,d.control=!!S.ctrlKey),"metaKey"in S&&(C=C||S.metaKey!==d.meta,d.meta=!!S.metaKey),C}function g(S,C){var k=s.x(C),D=s.y(C);"buttons"in C&&(S=C.buttons|0),(S!==f||k!==h||D!==p||m(C))&&(f=S|0,h=k||0,p=D||0,c&&c(f,h,p,d))}function w(S){g(0,S)}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(S){m(S)&&c&&c(f,h,p,d)}function M(S){s.buttons(S)===0?g(0,S):g(f,S)}function x(S){g(f|s.buttons(S),S)}function A(S){g(f&~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 y(){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():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,M),C+=B,x>0)for($=1,k=T[C],V=q[N]=d(k,_,b,M),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,M),ce=J[N]=K++),N+=1,C+=B,$=2;$0)for($=1,k=T[C],V=q[N]=d(k,_,b,M),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,M),ce=J[N]=K++,xe!==ue&&p(J[N+Q],ce,R,I,ue,xe,_,b,M)),N+=1,C+=B,$=2;$0){if($=1,q[N++]=d(T[C],_,b,M),C+=B,A>0)for(X=1,k=T[C],V=q[N]=d(k,_,b,M),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,M),ce=J[N]=K++),N+=1,C+=B,X=2;X0)for(X=1,k=T[C],V=q[N]=d(k,_,b,M),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,M),ce=J[N]=K++,xe!==ue&&p(J[N+Q],ce,I,F,xe,ue,_,b,M)),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(M,x,A,T){var y=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),y.pick(-1,-1,0).lo(1,1).hi(S[0]-2,S[1]-2),y.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),y.pick(0,-1,1).lo(1).hi(S[1]-2)),x(y.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),y.pick(S[0]-1,-1,1).lo(1).hi(S[1]-2)),x(y.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),y.pick(-1,0,0).lo(1).hi(S[0]-2)),x(y.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),y.pick(-1,S[1]-1,0).lo(1).hi(S[0]-2)),x(y.pick(-1,S[1]-1,1).lo(1).hi(S[0]-2))),y.set(0,0,0,0),y.set(0,0,1,0),y.set(S[0]-1,0,0,0),y.set(S[0]-1,0,1,0),y.set(0,S[1]-1,0,0),y.set(0,S[1]-1,1,0),y.set(S[0]-1,S[1]-1,0,0),y.set(S[0]-1,S[1]-1,1,0),y}}function b(M){var x=M.join(),S=d[x];if(S)return S;for(var A=M.length,T=[m,g],y=1;y<=A;++y)T.push(w(y));var E=_,S=E.apply(void 0,T);return d[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 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,$=S,X=y-T*S,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?(M=D,D=0):(M=64,D-=64),g=S+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?(M=R,R=0):(M=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*S+L*C;var I=0,B=0,O=0,$=E,X=T-A*E,K=y-M*T,G=k,q=S-A*k,J=C-M*S;for(O=0;Ow;){I=0,B=F-x;t:for(R=0;R$)break t;B+=S,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,M=g.stride,x=M[0]|0,A=b[0]|0,T=M[1]|0,y=b[1]|0,E=T,S=T,C=1;A<=32?v(0,A-1,w,_,x,T,A,y,E,S,C):m(0,A-1,w,_,x,T,A,y,E,S,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,S=Math.ceil;return typeof x=="number"&&(E=x|0,E<0?(y+=T*(A-1),A=S(-A/E)):A=S(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 _(M,x,A,T,y,E){this.data=M,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],S=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,S-=y),new _(this.data,E,S,C,k,T)},b.step=function(x,A){var T=this.shape[0],y=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*(y-1),y=D(-y/k)):y=D(y/k),S*=k),new _(this.data,T,y,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,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 S=g[T.length+1];return S(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 _(M,x,A,T,y,E,S,C){this.data=M,this.shape=[x,A,T],this.stride=[y,E,S],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,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,y+=D*E,S-=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,S,C,k,D,F,P,y)},b.step=function(x,A,T){var y=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,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*(S-1),S=R(-S/P)):S=R(S/P),D*=P),new _(this.data,y,E,S,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=[],S=this.offset;typeof x=="number"&&x>=0?S=S+this.stride[0]*x|0:(y.push(this.shape[0]),E.push(this.stride[0])),typeof A=="number"&&A>=0?S=S+this.stride[1]*A|0:(y.push(this.shape[1]),E.push(this.stride[1])),typeof T=="number"&&T>=0?S=S+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,S)},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 _(M,x,A,T,y,E,S,C,k,D){this.data=M,this.shape=[x,A,T,y],this.stride=[E,S,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,S=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&&(S=x|0,E+=P*S,C-=S),typeof A=="number"&&A>=0&&(S=A|0,E+=R*S,k-=S),typeof T=="number"&&T>=0&&(S=T|0,E+=L*S,D-=S),typeof y=="number"&&y>=0&&(S=y|0,E+=I*S,F-=S),new _(this.data,C,k,D,F,P,R,L,I,E)},b.step=function(x,A,T,y){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],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*(S-1),S=B(-S/I)):S=B(S/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,S,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,S=this.stride;return new _(this.data,E[x],E[A],E[T],E[y],S[x],S[A],S[T],S[y],this.offset)},b.pick=function(x,A,T,y){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 y=="number"&&y>=0?C=C+this.stride[3]*y|0:(E.push(this.shape[3]),S.push(this.stride[3]));var k=g[E.length+1];return k(this.data,E,S,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,S,C,k,D,F,P,R){this.data=x,this.shape=[A,T,y,E,S],this.stride=[C,k,D,F,P],this.offset=R|0}var M=b.prototype;return M.dtype=g,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,y,E,S,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]*S,C):this.data[this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*y+this.stride[3]*E+this.stride[4]*S]=C},M.get=function(A,T,y,E,S){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]*S):this.data[this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*y+this.stride[3]*E+this.stride[4]*S]},M.index=function(A,T,y,E,S){return this.offset+this.stride[0]*A+this.stride[1]*T+this.stride[2]*y+this.stride[3]*E+this.stride[4]*S},M.hi=function(A,T,y,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 y!="number"||y<0?this.shape[2]:y|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,y,E,S){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 S=="number"&&S>=0&&(k=S|0,C+=X*k,L-=k),new b(this.data,D,F,P,R,L,I,B,O,$,X,C)},M.step=function(A,T,y,E,S){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 S=="number"&&(X=S|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,$)},M.transpose=function(A,T,y,E,S){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,S=S===void 0?4:S|0;var C=this.shape,k=this.stride;return new b(this.data,C[A],C[T],C[y],C[E],C[S],k[A],k[T],k[y],k[E],k[S],this.offset)},M.pick=function(A,T,y,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 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 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(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 M=b-1,x=1;M>=0;--M)w[M]=x,x*=g[M]}if(_===void 0){_=0;for(var M=0;M>>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),S=0;S<3;++S){var D=(S+1)%3,F=(S+2)%3;C[S]+=k*(y[D]*A[F]-y[F]*A[D])}}for(var d=0;dp)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,c){for(var f=l.length,h=new Array(f),p=c===void 0?s:c,d=0;dp?M=1/Math.sqrt(M):M=0;for(var g=0;g<3;++g)b[g]*=M;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,M){return Math.sqrt(Math.pow(w,2)+Math.pow(_,2)+Math.pow(b,2)+Math.pow(M,2))}function d(w,_){var b=_[0],M=_[1],x=_[2],A=_[3],T=p(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 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 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 y=0;y<3;++y){for(var E=0,S=0;S<3;++S)E+=b[y+4*S]*x[S];b[12+y]=-E}},m.getMatrix=function(w,_){this.recalcMatrix(w);var b=this.computedMatrix;if(_){for(var M=0;M<16;++M)_[M]=b[M];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,M){_=_||0,b=b||0,M=M||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 S=x[0],C=x[4],k=x[8],D=S*A+C*T+k*y;S-=A*D,C-=T*D,k-=y*D;var F=h(S,C,k);S/=F,C/=F,k/=F;var P=x[2],R=x[6],L=x[10],I=P*A+R*T+L*y,B=P*S+R*C+L*k;P-=I*A+B*S,R-=I*T+B*C,L-=I*y+B*k;var O=h(P,R,L);P/=O,R/=O,L/=O;var $=S*_+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+M),this.radius.set(w,Math.log(G))},m.rotate=function(w,_,b,M){this.recalcMatrix(w),_=_||0,b=b||0;var x=this.computedMatrix,A=x[0],T=x[4],y=x[8],E=x[1],S=x[5],C=x[9],k=x[2],D=x[6],F=x[10],P=_*A+b*E,R=_*T+b*S,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(M){I=k,B=D,O=F;var Q=Math.sin(M)/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,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;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,M){this.center.move(w,_||0,b||0,M||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 M=this.computedMatrix;c(M,_);var x=M[15];if(Math.abs(x)>1e-6){var A=M[12]/x,T=M[13]/x,y=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,y-M[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 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 g(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),d(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,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 S||C&&g(C,D),k}function _(y,E){var S=p[E][y][0],C=[y];g(S,E);for(var k=S[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,M);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),S=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,M){var x=_[b];return x?!!x.queryPoint(M,f):!1}}function p(_){for(var b={},M=0;M<_.length;++M){var x=_[M],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 S={},C=Object.keys(b),M=0;M0&&b[x]===M[0])A=_[x-1];else return 1;for(var T=1;A;){var y=A.key,E=s(M,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(M){return _(M[0],M[1])?0:1}}function g(_,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?(y=1,S=v+2*w+b):(y=-w/v,S=w*y+b)):(y=0,_>=0?(E=0,S=b):-_>=g?(E=1,S=g+2*_+b):(E=-_/g,S=_*E+b));else if(E<0)E=0,w>=0?(y=0,S=b):-w>=v?(y=1,S=v+2*w+b):(y=-w/v,S=w*y+b);else{var C=1/T;y*=C,E*=C,S=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,S=v+2*w+b):(y=F/P,E=1-y,S=y*(v*y+m*E+2*w)+E*(m*y+g*E+2*_)+b)):(y=0,D<=0?(E=1,S=g+2*_+b):_>=0?(E=0,S=b):(E=-_/g,S=_*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,S=g+2*_+b):(E=F/P,y=1-E,S=y*(v*y+m*E+2*w)+E*(m*y+g*E+2*_)+b)):(E=0,D<=0?(y=1,S=v+2*w+b):w>=0?(y=0,S=b):(y=-w/v,S=w*y+b))):(F=g+_-m-w,F<=0?(y=0,E=1,S=g+2*_+b):(P=v-2*m+g,F>=P?(y=1,E=0,S=v+2*w+b):(y=F/P,E=1-y,S=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,S,C)},function(E,S,C,k){var D=E[0]-k[0],F=S[0]-k[0],P=C[0]-k[0],R=E[1]-k[1],L=S[1]-k[1],I=C[1]-k[1],B=E[2]-k[2],O=S[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,S,C,k)}];function x(y){var E=M[y.length];return E||(E=M[y.length]=w(y.length)),E.apply(void 0,y)}function A(y,E,S,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(_),M,x;w=c?(M=g,d+=1,d=c?(M=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],S);P<=0?(P===0&&(D=F),C=F+1):P>0&&(k=F-1)}return D}s=g;function w(E,S){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,S){if(!S)return w(m(M(E,0)),E,0);for(var C=new Array(S),k=0;k>>I&1&&L.push(D[I]);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 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,S=Math.max,C=0,k=y.length;C>1,F=h(y[D],E);F<=0?(F===0&&(k=D),S=D+1):F>0&&(C=D-1)}return k}a.findCell=m;function g(y,E){for(var S=new Array(y.length),C=0,k=S.length;C=y.length||h(y[$],D)!==0););}return S}a.incidence=g;function w(y,E){if(!E)return g(v(b(y,0)),y,0);for(var S=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 S=[],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=S(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 M=w.key,x,A;M[0][0]0)if(_[0]!==M[1][0])b=w,w=w.right;else{var y=d(w.right,_);if(y)return y;w=w.left}else{if(_[0]!==M[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[_],M=d(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=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;S=y[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 m(w,_,b,M){this.x=w,this.segment=_,this.create=b,this.index=M}function g(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=d.length,x=new Array(M),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&&M<0)&&m.push(c(w,M,_,g)),M>=0&&m.push(_.slice()),g=M}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&&M<0)&&m.push(c(w,M,_,g)),M<=0&&m.push(_.slice()),g=M}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,M,x,A,T,y,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):" ",y=x.width-(S+w).length,A=x.width&&y>0?T.repeat(y):"",_+=x.align?S+w+A:T==="0"?S+A+w:A+S+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],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");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,M,x){return _>x|0},vertex:function(_,b,M,x,A,T,y,E,S,C,k,D,F){var P=(y<<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*(A+M-2*F)/(M-A)]);break;case 2:k.push([_-.75-.25*(-x-M+2*F)/(x-M),b-.25-.25*(T+x-2*F)/(x-T)]);break;case 3:k.push([_-.5,b-.5-.5*(A+M+T+x-4*F)/(M-A+x-T)]);break;case 4:k.push([_-.25-.25*(T+A-2*F)/(A-T),b-.75-.25*(-A-M+2*F)/(A-M)]);break;case 5:k.push([_-.5-.5*(x+M+T+A-4*F)/(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*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+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*F)/(x-M+T-A),b-.5]);break;case 11:k.push([_-.25-.25*(-T-A+2*F)/(T-A),b-.75-.25*(A+M-2*F)/(M-A)]);break;case 12:k.push([_-.5,b-.5-.5*(-A-M+-T-x+4*F)/(A-M+T-x)]);break;case 13:k.push([_-.75-.25*(x+M-2*F)/(M-x),b-.25-.25*(-T-x+2*F)/(T-x)]);break;case 14:k.push([_-.25-.25*(-x-M+2*F)/(x-M),b-.25-.25*(-A-M+2*F)/(A-M)]);break;case 15:k.push([_-.5,b-.5]);break}},cell:function(_,b,M,x,A,T,y,E,S){A?E.push([_,b]):E.push([b,_])}});return function(w,_){var b=[],M=[];return g(w,b,M,_),{positions:b,cells:M}}}};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(M,A)?T[0]=1:T[1]=1;for(var y=0,E=0,S=0;S<3;++S)y+=b[S]*b[S],E+=T[S]*b[S];for(var S=0;S<3;++S)T[S]-=E/y*b[S];return f(T,T),T}function m(b,M,x,A,T,y,E,S){this.center=s(x),this.up=s(A),this.right=s(T),this.radius=s([y]),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 g=m.prototype;g.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},g.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])]},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 M=this.computedUp,x=this.computedRight,A=0,T=0,y=0;y<3;++y)T+=M[y]*x[y],A+=M[y]*M[y];for(var E=Math.sqrt(A),S=0,y=0;y<3;++y)x[y]-=M[y]*T/A,S+=x[y]*x[y],M[y]/=E;for(var C=Math.sqrt(S),y=0;y<3;++y)x[y]/=C;var k=this.computedToward;c(k,M,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*M[y];V[4*y+1]=G*x[y]+q*k[y]+J*M[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 S=0,Se=0;Se<3;++Se)S+=V[y+4*Se]*N[Se];V[12+y]=-S}V[15]=1},g.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];g.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 y=this.computedUp,E=this.computedRight,S=this.computedToward,C=0;C<3;++C)T[4*C]=y[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)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,M,x,A){M=M||0,x=x||0,A=A||0,this.recalcMatrix(b);var T=this.computedMatrix,y=Math.exp(this.computedRadius[0]),E=T[1],S=T[5],C=T[9],k=p(E,S,C);E/=k,S/=k,C/=k;var D=T[0],F=T[4],P=T[8],R=D*E+F*S+P*C;D-=E*R,F-=S*R,P-=C*R;var L=p(D,F,P);D/=L,F/=L,P/=L;var I=D*M+E*x,B=F*M+S*x,O=P*M+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,M,x,A){this.center.move(b,M||0,x||0,A||0)},g.setMatrix=function(b,M,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;M||(this.recalcMatrix(b),M=this.computedMatrix);var S=M[T],C=M[T+4],k=M[T+8];if(A){var F=Math.abs(S),P=Math.abs(C),R=Math.abs(k),L=Math.max(F,P,R);F===L?(S=S<0?-1:1,C=k=0):R===L?(k=k<0?-1:1,S=C=0):(C=C<0?-1:1,S=k=0)}else{var D=p(S,C,k);S/=D,C/=D,k/=D}var I=M[y],B=M[y+4],O=M[y+8],$=I*S+B*C+O*k;I-=S*$,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-S*O,q=S*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,S,C,k),this.right.jump(b,I,B,O);var N,V;if(T===2){var Y=M[1],H=M[5],j=M[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=M[2],ge=M[6],Ee=M[10],xe=ue*S+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=M[2],be=M[6],fe=M[10],ee=this.computedMatrix;l(ee,M);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,M){M>0&&this.radius.set(b,Math.log(M))},g.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],y=A[1],E=A[2],S=p(T,y,E);if(!(S<1e-6)){T/=S,y/=S,E/=S;var C=M[0]-x[0],k=M[1]-x[1],D=M[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 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 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 S(P){return c?new Uint8ClampedArray(w(P),0,P):_(P)}a.mallocUint8Clamped=S;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]===M,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; +`),G=K.length,q=Math.round(L*R),J=R,N=R*2,V=0,Y=G*q+N;D.height-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(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,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(S){return(S%36).toString(36)}).join("")+"___"}function _(S){return!(S.substr(0,v.length)==v&&S.substr(S.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 M(S){if(S!==Object(S))throw new TypeError("Not an object: "+S);var C=S[m];if(C&&C.key===S)return C;if(d(S)){C={key:S};try{return p(S,m,{value:C,writable:!1,enumerable:!1,configurable:!1}),C}catch(k){return}}}(function(){var S=Object.freeze;p(Object,"freeze",{value:function(F){return M(F),S(F)}});var C=Object.seal;p(Object,"seal",{value:function(F){return M(F),C(F)}});var k=Object.preventExtensions;p(Object,"preventExtensions",{value:function(F){return M(F),k(F)}})})();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 y=0,E=function(){this instanceof E||T();var S=[],C=[],k=y++;function D(L,I){var B,O=M(L);return O?k in O?O[k]:I:(B=S.indexOf(L),B>=0?C[B]:I)}function F(L){var I=M(L);return I?k in I:S.indexOf(L)>=0}function P(L,I){var B,O=M(L);return O?O[k]=I:(B=S.indexOf(L),B>=0?C[B]=I:(B=S.length,C[B]=I,S[B]=L)),this}function R(L){var I=M(L),B,O;return I?k in I&&delete I[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(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 S(){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___")})}})}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(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 M=0,x=w;for(M=0;M=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);eOe.exports=i})()});var bm=W((iKr,tOe)=>{"use strict";var{normalize:Urr}=ti();function Vrr(e){return e?Urr(e):[0,0,0,1]}tOe.exports=Vrr});var _m=W((nKr,sOe)=>{"use strict";var aOe=hn(),tR=es(),q4=ti(),Grr=Yl().defaultLine,rOe=Tc().isArrayOrTypedArray,zJ=q4.normalize(Grr),oOe=1;function iOe(e,t){return[e[0],e[1],e[2],e[3]*t]}function RJ(e){return aOe(e)||!q4.isChannelArray(e)&&!q4.isValid(e)?zJ:q4.normalize(e)}function nOe(e){return aOe(e)?e:oOe}function Hrr(e,t,r){var i=e.color;i&&i._inputArray&&(i=i._inputArray);var n=rOe(i),a=rOe(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?oOe:nOe(d[v])}:c=nOe,n||a)for(var p=0;pWrr});var $rr,Wrr,qJ=Ci(()=>{"use strict";$rr={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]},Wrr=$rr});var rR={};Jn(rR,{default:()=>Xrr});var Yrr,Xrr,iR=Ci(()=>{"use strict";Yrr={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"},Xrr=Yrr});var uOe=W((aKr,lOe)=>{"use strict";var Zrr=xi();function OJ(e,t,r,i){if(!t||!t.visible)return null;for(var n=Zrr.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 Krr(e){for(var t=0;t{"use strict";var Qrr=uc().gl_line3d,cOe=uc().gl_scatter3d,eir=uc().gl_error3d,tir=uc().gl_mesh3d,rir=uc().delaunay_triangulate,wm=tt(),vOe=bm(),nR=_m().formatColor,iir=MA(),NJ=(qJ(),Pt(BJ)).default,nir=(iR(),Pt(rR)).default,air=Yi(),oir=ah().appendArrayPointValue,sir=uOe();function gOe(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=gOe.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 lir(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 hOe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function cir(e){var t=0,r=0,i=[t,r];if(Array.isArray(e))for(var n=0;n=0){var u=lir(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=tir(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 pir(e,t){var r=new gOe(e,t.uid);return r.update(t),r}mOe.exports=pir});var WJ=W((sKr,wOe)=>{"use strict";var Tm=Ws(),vir=jo(),$J=Fo(),GJ=Ts().axisHoverFormat,{hovertemplateAttrs:gir,texttemplateAttrs:mir,templatefallbackAttrs:xOe}=Wa(),bOe=Ja(),yir=(qJ(),Pt(BJ)).default,xir=(iR(),Pt(rR)).default,_v=an().extendFlat,bir=hs().overrideAll,_Oe=(Qx(),Pt(Jx)).default,_ir=Tm.line,I_=Tm.marker,wir=I_.line,Tir=_v({width:_ir.width,dash:{valType:"enumerated",values:_Oe(yir),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=wOe.exports=bir({x:Tm.x,y:Tm.y,z:{valType:"data_array"},text:_v({},Tm.text,{}),texttemplate:mir(),texttemplatefallback:xOe({editType:"calc"}),hovertext:_v({},Tm.hovertext,{}),hovertemplate:gir(),hovertemplatefallback:xOe(),xhoverformat:GJ("x"),yhoverformat:GJ("y"),zhoverformat:GJ("z"),mode:_v({},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:Tir,marker:_v({symbol:{valType:"enumerated",values:_Oe(xir),dflt:"circle",arrayOk:!0},size:_v({},I_.size,{dflt:8}),sizeref:I_.sizeref,sizemin:I_.sizemin,sizemode:I_.sizemode,opacity:_v({},I_.opacity,{arrayOk:!1}),colorbar:I_.colorbar,line:_v({width:_v({},wir.width,{arrayOk:!1})},$J("marker.line"))},$J("marker")),textposition:_v({},Tm.textposition,{dflt:"top center"}),textfont:vir({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:bOe.opacity,hoverinfo:_v({},bOe.hoverinfo)},"calc","nested");jJ.x.editType=jJ.y.editType=jJ.z.editType="calc+clearAxisTypes"});var MOe=W((lKr,AOe)=>{"use strict";var TOe=xi(),Air=tt(),YJ=Wo(),Mir=Dd(),Sir=tv(),Eir=rv(),kir=WJ();AOe.exports=function(t,r,i,n){function a(p,d){return Air.coerce(t,r,kir,p,d)}var o=Cir(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)&&Mir(t,r,i,n,a,{noAngle:!0,noLineDash:!0,noSelect:!0}),YJ.hasLines(r)&&(a("connectgaps"),Sir(t,r,i,n,a)),YJ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),Eir(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=TOe.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 Cir(e,t,r,i){var n=0,a=r("x"),o=r("y"),s=r("z"),l=TOe.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 EOe=W((uKr,SOe)=>{"use strict";var Dir=L1(),Fir=Fd();SOe.exports=function(t,r){var i=[{x:!1,y:!1,trace:r,t:{}}];return Dir(i,r),Fir(t,r),i}});var COe=W((cKr,kOe)=>{kOe.exports=Lir;function Lir(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 Pir=COe();DOe.exports=function(t){return Pir("webgl",t)}});var XJ=W((hKr,POe)=>{"use strict";var LOe=ti(),Iir=function(){};POe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=Iir);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=LOe.defaults[0],i.style.position="absolute",i.style.left=i.style.top="0px",i.style.width=i.style.height="100%",i.style["background-color"]=LOe.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 zOe=W((dKr,ROe)=>{"use strict";var R_=bm(),Rir=tt(),zir=["xaxis","yaxis","zaxis"];function IOe(){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 Bir=IOe.prototype;Bir.merge=function(e,t){for(var r=this,i=0;i<3;++i){var n=t[zir[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?Rir.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 qir(e,t){var r=new IOe;return r.merge(e,t),r}ROe.exports=qir});var OOe=W((pKr,qOe)=>{"use strict";var Oir=bm(),Nir=["xaxis","yaxis","zaxis"];function BOe(){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 Uir=BOe.prototype;Uir.merge=function(e){for(var t=0;t<3;++t){var r=e[Nir[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=Oir(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function Vir(e){var t=new BOe;return t.merge(e),t}qOe.exports=Vir});var VOe=W((vKr,UOe)=>{"use strict";UOe.exports=Wir;var NOe=Yi(),Gir=tt(),Hir=["xaxis","yaxis","zaxis"],jir=[0,0,0];function $ir(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){jir[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=$ir(n)}});var XOe=W((gKr,YOe)=>{"use strict";var jOe=uc().gl_plot3d,Yir=jOe.createCamera,GOe=jOe.createScene,Xir=FOe(),Zir=M7(),sR=xi(),hh=tt(),oR=hh.preserveDrawingBuffer(),lR=Yi(),wv=Is(),Kir=bm(),Jir=XJ(),Qir=nW(),enr=zOe(),tnr=OOe(),rnr=VOe(),inr=Yp().applyAutorangeOptions,ME,aR,$Oe=!1;function WOe(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=enr(t,t[this.id]),this.spikeOptions=tnr(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=WOe.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=Xir({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 HOe=!0;cf.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=GOe(t)}catch(i){if(e.staticMode||!HOe||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=GOe(t)}catch(n){oR=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return HOe=!1,r};cf.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=Yir(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 Jir(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(){$Oe=!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)}},Zir?{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),rnr(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),M=x.join("
")):M=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};wv.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=[];wv.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:M,name:c.name,color:wv.castHoverOption(v,m,"bgcolor")||c.color,borderColor:wv.castHoverOption(v,m,"bordercolor"),fontFamily:wv.castHoverOption(v,m,"font.family"),fontSize:wv.castHoverOption(v,m,"font.size"),fontColor:wv.castHoverOption(v,m,"font.color"),nameLength:wv.castHoverOption(v,m,"namelength"),textAlign:wv.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||$Oe)?t.emit("plotly_click",T):t.emit("plotly_hover",T),this.oldEventData=T}else wv.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 nnr(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 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=inr(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 onr(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 snr(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()),snr(e.camera)};cf.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,onr(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 lnr(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),lnr(a,i,n),unr(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)};YOe.exports=WOe});var KOe=W((mKr,ZOe)=>{"use strict";ZOe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var KJ=W((yKr,JOe)=>{"use strict";var cnr=ti(),Qn=ac(),ZJ=an().extendFlat,fnr=hs().overrideAll;JOe.exports=fnr({visible:Qn.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:cnr.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((xKr,QOe)=>{"use strict";var JJ=KJ(),hnr=ds().attributes,QJ=an().extendFlat,dnr=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"}}QOe.exports={_arrayAttrRegexps:[dnr("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:hnr({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 iNe=W((bKr,rNe)=>{"use strict";var pnr=ti(),eNe=tt(),vnr=Ra(),gnr=KJ(),mnr=V$(),ynr=PM(),tNe=["xaxis","yaxis","zaxis"],xnr=13600/187;rNe.exports=function(t,r,i){var n,a;function o(u,c){return eNe.coerce(n,a,gnr,u,c)}for(var s=0;s{"use strict";var bnr=tt(),_nr=ti(),wnr=xi(),Tnr=Kb(),Anr=iNe(),nNe=tQ(),Mnr=Mc().getSubplotData,aNe="gl3d";oNe.exports=function(t,r,i){var n=r._basePlotModules.length>1;function a(o){if(!n){var s=bnr.validate(t[o],nNe[o]);if(s)return t[o]}}Tnr(t,r,i,{type:aNe,attributes:nNe,handleDefaults:Snr,fullLayout:r,font:r.font,fullData:i,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function Snr(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=W(dh=>{"use strict";var Enr=hs().overrideAll,knr=yy(),Cnr=XOe(),Dnr=Mc().getSubplotData,Fnr=tt(),Lnr=(md(),Pt(gd)),O4="gl3d",rQ="scene";dh.name=O4;dh.attr=rQ;dh.idRoot=rQ;dh.idRegex=dh.attrRegex=Fnr.counterRegex("scene");dh.attributes=KOe();dh.layoutAttributes=tQ();dh.baseLayoutAttrOverrides=Enr({hoverlabel:knr.hoverlabel},"plot","nested");dh.supplyLayoutDefaults=sNe();dh.plot=function(t){for(var r=t._fullLayout,i=t._fullData,n=r._subplots[O4],a=0;a{"use strict";lNe.exports={plot:yOe(),attributes:WJ(),markerSymbols:(iR(),Pt(rR)).default,supplyDefaults:MOe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:EOe(),moduleType:"trace",name:"scatter3d",basePlotModule:I2(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var fNe=W((AKr,cNe)=>{"use strict";cNe.exports=uNe()});var EE=W((MKr,pNe)=>{"use strict";var hNe=ti(),Pnr=Fo(),iQ=Ts().axisHoverFormat,{hovertemplateAttrs:Inr,templatefallbackAttrs:Rnr}=Wa(),dNe=Ja(),nQ=an().extendFlat,znr=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:hNe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:hNe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var sQ=pNe.exports=znr(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:Inr(),hovertemplatefallback:Rnr(),xhoverformat:iQ("x"),yhoverformat:iQ("y"),zhoverformat:iQ("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},Pnr("",{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({},dNe.hoverinfo),showlegend:nQ({},dNe.showlegend,{dflt:!1})}),"calc","nested");sQ.x.editType=sQ.y.editType=sQ.z.editType="calc+clearAxisTypes"});var uQ=W((SKr,mNe)=>{"use strict";var Bnr=xi(),vNe=tt(),qnr=Bu(),Onr=EE(),lQ=.1;function Nnr(e,t){for(var r=[],i=32,n=0;n{"use strict";var yNe=rf();xNe.exports=function(t,r){r.surfacecolor?yNe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):yNe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var SNe=W((kKr,MNe)=>{"use strict";var Gnr=uc().gl_surface3d,N4=uc().ndarray,Hnr=uc().ndarray_linear_interpolate.d2,jnr=nP(),$nr=aP(),kE=tt().isArrayOrTypedArray,Wnr=_m().parseColorScale,_Ne=bm(),Ynr=es().extractOpts;function TNe(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 Tv=TNe.prototype;Tv.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)};Tv.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)};Tv.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)};Tv.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 Xnr(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 Znr(e,t){if(e0){r=U4[i];break}return r}function Jnr(e,t){if(!(e<1||t<1)){for(var r=cQ(e),i=cQ(t),n=1,a=0;auR;)i--,i/=Knr(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 tar(e,t,r){return rar(e,t,ear,r),e}function rar(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";ENe.exports={attributes:EE(),supplyDefaults:uQ().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:bNe(),plot:SNe(),moduleType:"trace",name:"surface",basePlotModule:I2(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var DNe=W((DKr,CNe)=>{"use strict";CNe.exports=kNe()});var V4=W((FKr,LNe)=>{"use strict";var aar=Fo(),fQ=Ts().axisHoverFormat,{hovertemplateAttrs:oar,templatefallbackAttrs:sar}=Wa(),R2=EE(),FNe=Ja(),z2=an().extendFlat;LNe.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:oar({editType:"calc"}),hovertemplatefallback:sar({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"}},aar("",{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({},FNe.hoverinfo,{editType:"calc"}),showlegend:z2({},FNe.showlegend,{dflt:!1})})});var fR=W((LKr,INe)=>{"use strict";var lar=Fo(),cR=Ts().axisHoverFormat,{hovertemplateAttrs:uar,templatefallbackAttrs:car}=Wa(),CE=V4(),PNe=Ja(),hQ=an().extendFlat,far=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=INe.exports=far(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:uar(),hovertemplatefallback:car(),xhoverformat:cR("x"),yhoverformat:cR("y"),zhoverformat:cR("z"),valuehoverformat:cR("value",1),showlegend:hQ({},PNe.showlegend,{dflt:!1})},lar("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:CE.opacity,lightposition:CE.lightposition,lighting:CE.lighting,flatshading:CE.flatshading,contour:CE.contour,hoverinfo:hQ({},PNe.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((PKr,zNe)=>{"use strict";var har=tt(),dar=xi(),par=fR(),gar=Bu();function mar(e,t,r,i){function n(a,o){return har.coerce(e,t,par,a,o)}RNe(e,t,r,i,n)}function RNe(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=dar.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)}),gar(e,t,i,n,{prefix:"",cLetter:"c"}),t._length=null}zNe.exports={supplyDefaults:mar,supplyIsoDefaults:RNe}});var hR=W((IKr,qNe)=>{"use strict";var mQ=tt(),yar=rf();function xar(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=BNe(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],M=r[n-1],A=i[n-1]),a=0;a_?"-":"+")+"x"),d=d.replace("y",(b>M?"-":"+")+"y"),d=d.replace("z",(x>A?"-":"+")+"z");var S=function(){n=0,T=[],y=[],E=[]};(!n||n{"use strict";var bar=rf(),_ar=hR().processGrid,dR=hR().filter;ONe.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=_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";NNe.exports=function(t,r,i,n){n=n||t.length;for(var a=new Array(n),o=0;o{"use strict";var war=uc().gl_mesh3d,Tar=_m().parseColorScale,Aar=tt().isArrayOrTypedArray,Mar=bm(),Sar=es().extractOpts,UNe=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){S();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*(M-b);return Te>=b-Ce&&Te<=M+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,M),Math.max(w,M)]];["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 kar(e,t){var r=e.glplot.gl,i=war({gl:r}),n=new VNe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}HNe.exports={findNearestOnAxis:DE,generateIsoMeshes:GNe,createIsosurfaceTrace:kar}});var $Ne=W((qKr,jNe)=>{"use strict";jNe.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 YNe=W((OKr,WNe)=>{"use strict";WNe.exports=$Ne()});var _Q=W((NKr,ZNe)=>{"use strict";var Car=Fo(),Ol=fR(),Dar=EE(),XNe=Ja(),bQ=an().extendFlat,Far=hs().overrideAll,vR=ZNe.exports=Far(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},Car("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Ol.colorbar,opacity:Ol.opacity,opacityscale:Dar.opacityscale,lightposition:Ol.lightposition,lighting:Ol.lighting,flatshading:Ol.flatshading,contour:Ol.contour,hoverinfo:bQ({},XNe.hoverinfo),showlegend:bQ({},XNe.showlegend,{dflt:!1})}),"calc","nested");vR.x.editType=vR.y.editType=vR.z.editType=vR.value.editType="calc+clearAxisTypes"});var JNe=W((UKr,KNe)=>{"use strict";var Lar=tt(),Par=_Q(),Iar=vQ().supplyIsoDefaults,Rar=uQ().opacityscaleDefaults;KNe.exports=function(t,r,i,n){function a(o,s){return Lar.coerce(t,r,Par,o,s)}Iar(t,r,i,n,a),Rar(t,r,n,a)}});var rUe=W((VKr,tUe)=>{"use strict";var zar=uc().gl_mesh3d,Bar=_m().parseColorScale,qar=tt().isArrayOrTypedArray,Oar=bm(),Nar=es().extractOpts,QNe=H4(),wQ=pR().findNearestOnAxis,Uar=pR().generateIsoMeshes;function eUe(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var TQ=eUe.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 qar(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=Uar(e);function i(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var n=QNe(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=QNe(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:Oar(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=Nar(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=Bar(e),this.mesh.update(o)};TQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function Var(e,t){var r=e.glplot.gl,i=zar({gl:r}),n=new eUe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}tUe.exports=Var});var nUe=W((GKr,iUe)=>{"use strict";iUe.exports={attributes:_Q(),supplyDefaults:JNe(),calc:yQ(),colorbar:{min:"cmin",max:"cmax"},plot:rUe(),moduleType:"trace",name:"volume",basePlotModule:I2(),categories:["gl3d","showLegend"],meta:{}}});var oUe=W((HKr,aUe)=>{"use strict";aUe.exports=nUe()});var uUe=W((jKr,lUe)=>{"use strict";var Gar=xi(),sUe=tt(),Har=Bu(),jar=V4();lUe.exports=function(t,r,i,n){function a(c,f){return sUe.coerce(t,r,jar,c,f)}function o(c){var f=c.map(function(h){var p=a(h);return p&&sUe.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=Gar.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"),Har(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 fUe=W(($Kr,cUe)=>{"use strict";var $ar=rf();cUe.exports=function(t,r){r.intensity&&$ar(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var gUe=W((WKr,vUe)=>{"use strict";var War=uc().gl_mesh3d,Yar=uc().delaunay_triangulate,Xar=uc().alpha_shape,Zar=uc().convex_hull,Kar=_m().parseColorScale,Jar=tt().isArrayOrTypedArray,EQ=bm(),Qar=es().extractOpts,hUe=H4();function pUe(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=pUe.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 Jar(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function dUe(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=hUe(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=hUe(MQ(e.i),MQ(e.j),MQ(e.k))}else e.alphahull===0?a=Zar(n):e.alphahull>0?a=Xar(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:EQ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=Qar(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=Kar(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=dUe(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=dUe(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 tor(e,t){var r=e.glplot.gl,i=War({gl:r}),n=new pUe(e,i,t.uid);return i._trace=n,n.update(t),e.glplot.add(i),n}vUe.exports=tor});var yUe=W((YKr,mUe)=>{"use strict";mUe.exports={attributes:V4(),supplyDefaults:uUe(),calc:fUe(),colorbar:{min:"cmin",max:"cmax"},plot:gUe(),moduleType:"trace",name:"mesh3d",basePlotModule:I2(),categories:["gl3d","showLegend"],meta:{}}});var bUe=W((XKr,xUe)=>{"use strict";xUe.exports=yUe()});var DQ=W((ZKr,wUe)=>{"use strict";var ror=Fo(),j4=Ts().axisHoverFormat,{hovertemplateAttrs:ior,templatefallbackAttrs:nor}=Wa(),aor=V4(),_Ue=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:ior({editType:"calc"},{keys:["norm"]}),hovertemplatefallback:nor({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({},_Ue.showlegend,{dflt:!1})};CQ(gR,ror("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var oor=["opacity","lightposition","lighting"];oor.forEach(function(e){gR[e]=aor[e]});gR.hoverinfo=CQ({},_Ue.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});wUe.exports=gR});var AUe=W((KKr,TUe)=>{"use strict";var sor=tt(),lor=Bu(),uor=DQ();TUe.exports=function(t,r,i,n){function a(p,d){return sor.coerce(t,r,uor,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"),lor(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 SUe=W((JKr,MUe)=>{"use strict";var cor=rf();MUe.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 hor=uc().gl_cone3d,dor=uc().gl_cone3d.createConeMesh,por=tt().simpleMap,vor=_m().parseColorScale,gor=es().extractOpts,mor=tt().isArrayOrTypedArray,EUe=H4();function kUe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var FQ=kUe.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 mor(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var yor={xaxis:0,yaxis:1,zaxis:2},xor={tip:1,tail:0,cm:.25,center:.5},bor={tip:1,tail:1,cm:.75,center:.5};function CUe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n={};function a(c,f){var h=r[f],p=i[yor[f]];return por(c,function(d){return h.d2l(d)*p})}n.vectors=EUe(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),n.positions=EUe(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=gor(t);n.colormap=vor(t),n.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],n.coneOffset=xor[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=hor(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=bor[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}FQ.update=function(e){this.data=e;var t=CUe(this.scene,e);this.mesh.update(t)};FQ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function _or(e,t){var r=e.glplot.gl,i=CUe(e,t),n=dor(r,i),a=new kUe(e,t.uid);return a.mesh=n,a.data=t,n._trace=a,e.glplot.add(n),a}DUe.exports=_or});var PUe=W((eJr,LUe)=>{"use strict";LUe.exports={moduleType:"trace",name:"cone",basePlotModule:I2(),categories:["gl3d","showLegend"],attributes:DQ(),supplyDefaults:AUe(),colorbar:{min:"cmin",max:"cmax"},calc:SUe(),plot:FUe(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var RUe=W((tJr,IUe)=>{"use strict";IUe.exports=PUe()});var PQ=W((rJr,BUe)=>{"use strict";var wor=Fo(),$4=Ts().axisHoverFormat,{hovertemplateAttrs:Tor,templatefallbackAttrs:Aor}=Wa(),Mor=V4(),zUe=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:Tor({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),hovertemplatefallback:Aor({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({},zUe.showlegend,{dflt:!1})};LQ(mR,wor("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var Sor=["opacity","lightposition","lighting"];Sor.forEach(function(e){mR[e]=Mor[e]});mR.hoverinfo=LQ({},zUe.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});BUe.exports=mR});var OUe=W((iJr,qUe)=>{"use strict";var Eor=tt(),kor=Bu(),Cor=PQ();qUe.exports=function(t,r,i,n){function a(h,p){return Eor.coerce(t,r,Cor,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"),kor(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 WUe=W((nJr,$Ue)=>{"use strict";var VUe=uc().gl_streamtube3d,Dor=VUe.createTubeMesh,For=tt(),Lor=_m().parseColorScale,Por=es().extractOpts,NUe=H4(),GUe={xaxis:0,yaxis:1,zaxis:2};function HUe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var RQ=HUe.prototype;RQ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function i(o,s){var l=t[s],u=r[GUe[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 UUe(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 jUe(e,t){var r=e.fullSceneLayout,i=e.dataScale,n=t._len,a={};function o(C,k){var D=r[k],F=i[GUe[k]];return For.simpleMap(C,function(P){return D.d2l(P)*F})}if(a.vectors=NUe(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=NUe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=UUe(s),p=UUe(u),d=new Array(h.length*p.length),v=0,m=0;m{"use strict";YUe.exports={moduleType:"trace",name:"streamtube",basePlotModule:I2(),categories:["gl3d","showLegend"],attributes:PQ(),supplyDefaults:OUe(),colorbar:{min:"cmin",max:"cmax"},calc:hR().calc,plot:WUe(),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 KUe=W((oJr,ZUe)=>{"use strict";ZUe.exports=XUe()});var W4=W((sJr,rVe)=>{"use strict";var{hovertemplateAttrs:Ror,texttemplateAttrs:zor,templatefallbackAttrs:JUe}=Wa(),Bor=C1(),Y1=Ws(),qor=Ja(),QUe=Fo(),Oor=zu().dash,z_=an().extendFlat,Nor=hs().overrideAll,Jd=Y1.marker,eVe=Y1.line,tVe=Jd.line;rVe.exports=Nor({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:zor({editType:"plot"},{keys:["lat","lon","location","text"]}),texttemplatefallback:JUe({editType:"plot"}),hovertext:z_({},Y1.hovertext,{}),textfont:Y1.textfont,textposition:Y1.textposition,line:{color:eVe.color,width:eVe.width,dash:Oor},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:tVe.width,dash:tVe.dash},QUe("marker.line")),gradient:Jd.gradient},QUe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:Bor(),selected:Y1.selected,unselected:Y1.unselected,hoverinfo:z_({},qor.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:Ror(),hovertemplatefallback:JUe()},"calc","nested")});var nVe=W((lJr,iVe)=>{"use strict";var zQ=tt(),BQ=Wo(),Uor=Dd(),Vor=tv(),Gor=rv(),Hor=F1(),jor=W4();iVe.exports=function(t,r,i,n){function a(p,d){return zQ.coerce(t,r,jor,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)&&Uor(t,r,i,n,a,{gradient:!0}),BQ.hasLines(r)&&(Vor(t,r,i,n,a),a("connectgaps")),BQ.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),Gor(t,r,n,a)),a("fill"),r.fill!=="none"&&Hor(t,r,i,a),zQ.coerceSelectionMarkerOpacity(r,a)}});var sVe=W((uJr,oVe)=>{"use strict";var aVe=Yi();oVe.exports=function(t,r,i){var n={},a=i[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=aVe.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=aVe.tickText(o,o.c2l(s[1]),!0).text,n}});var OQ=W((cJr,fVe)=>{"use strict";var qQ=hn(),lVe=(ra(),Pt(ia)).BADNUM,$or=Fd(),Wor=L1(),Yor=C0(),Xor=tt().isArrayOrTypedArray,uVe=tt()._;function cVe(e){return e&&typeof e=="string"}fVe.exports=function(t,r){var i=Xor(r.locations),n=i?r.locations.length:r._length,a=new Array(n),o;r.geojson?o=function(h){return cVe(h)||qQ(h)}:o=cVe;for(var s=0;sKor,clipPad:()=>rsr,fillLayers:()=>lsr,fitboundsIncompatible:()=>esr,landColor:()=>nsr,lataxisSpan:()=>Qor,layerNameToAdjective:()=>hsr,layers:()=>csr,layersForChoropleth:()=>fsr,lineLayers:()=>usr,locationmodeToLayer:()=>osr,lonaxisSpan:()=>Jor,precision:()=>isr,projNames:()=>Zor,scopeDefaults:()=>tsr,sphereSVG:()=>ssr,waterColor:()=>asr});var Zor,Kor,Jor,Qor,esr,tsr,rsr,isr,nsr,asr,osr,ssr,lsr,usr,csr,fsr,hsr,LE=Ci(()=>{"use strict";Zor={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"},Kor=["lonaxis","lataxis"],Jor={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},Qor={"conic conformal":150,stereographic:179.5,"*":180},esr=new Set(["albers usa","craig","peirce quincuncial","satellite"]),tsr={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]}},rsr=.001,isr=.1,nsr="#F0DC82",asr="#3399FF",osr={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},ssr={type:"Sphere"},lsr={ocean:1,land:1,lakes:1},usr={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},csr=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],fsr=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","lakes","rivers","frontplot"],hsr={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var NQ=W((yR,hVe)=>{(function(e,t){typeof yR=="object"&&typeof hVe!="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,M,x=_.scale[0],A=_.scale[1],T=_.translate[0],y=_.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+y;CT&&(T=C[0]),C[1]y&&(y=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;++kT&&(T=F[0]),F[1]y&&(y=F[1])});for(M in _.objects)S(_.objects[M]);return[x,A,T,y]}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 F=x[k<0?~k:k],P=0,R=F.length;P1)x=f(_,b,M);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(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],y;b={scale:[A-M?(A-M)/(y-1):1,T-x?(T-x)/(y-1):1],translate:[M,x]}}else S=_.bbox;var E=g(b),S,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=dVe.exports={},dsr=(LE(),Pt(FE)).locationmodeToLayer,psr=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=dsr[e.locationmode],i=t.objects[r];return psr(t,i).features}});var IE=W(PE=>{"use strict";var vsr=(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,gsr=Object.getOwnPropertyDescriptor,msr=Object.getOwnPropertyNames,ysr=Object.prototype.hasOwnProperty,xsr=(e,t)=>{for(var r in t)GQ(e,r,{get:t[r],enumerable:!0})},bsr=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of msr(t))!ysr.call(e,n)&&n!==r&&GQ(e,n,{get:()=>t[n],enumerable:!(i=gsr(t,n))||i.enumerable});return e},_sr=e=>bsr(GQ({},"__esModule",{value:!0}),e),pVe={};xsr(pVe,{COUNTRIES:()=>vVe,byAlpha2:()=>Msr,byAlpha3:()=>Asr,byM49:()=>Ssr,createLookup:()=>gVe,lookup:()=>wsr,lookupAlpha3:()=>Tsr,sanitize:()=>VQ});mVe.exports=_sr(pVe);var vVe=[{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 gVe(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=gVe(vVe),wsr=RE.lookup,Tsr=RE.lookupAlpha3,Asr=RE.byAlpha3,Msr=RE.byAlpha2,Ssr=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 Esr(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 bVe(t).geometry;case"MultiLineString":return xVe(t).geometry;case"MultiPolygon":return _Ve(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 ksr(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 Dsr(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 xVe(e,t,r={}){return B2({type:"MultiLineString",coordinates:e},t,r)}function bVe(e,t,r={}){return B2({type:"MultiPoint",coordinates:e},t,r)}function _Ve(e,t,r={}){return B2({type:"MultiPolygon",coordinates:e},t,r)}function Fsr(e,t,r={}){return B2({type:"GeometryCollection",geometries:e},t,r)}function Lsr(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 wVe(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 Psr(e,t){return TVe(XQ(e,t))}function Isr(e){let t=e%360;return t<0&&(t+=360),t}function Rsr(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function TVe(e){return e%(2*Math.PI)*180/Math.PI}function zsr(e){return e%360*Math.PI/180}function Bsr(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return wVe(XQ(e,t),r)}function qsr(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 Osr(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 Nsr(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 Usr(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=Rsr;Po.bearingToAzimuth=Isr;Po.convertArea=qsr;Po.convertLength=Bsr;Po.degreesToRadians=zsr;Po.earthRadius=Nl;Po.factors=jQ;Po.feature=B2;Po.featureCollection=wR;Po.geometry=Esr;Po.geometryCollection=Fsr;Po.isNumber=_R;Po.isObject=Osr;Po.lengthToDegrees=Psr;Po.lengthToRadians=XQ;Po.lineString=YQ;Po.lineStrings=Dsr;Po.multiLineString=xVe;Po.multiPoint=bVe;Po.multiPolygon=_Ve;Po.point=$Q;Po.points=ksr;Po.polygon=WQ;Po.polygons=Csr;Po.radiansToDegrees=TVe;Po.radiansToLength=wVe;Po.removeBbox=bR;Po.round=Lsr;Po.validateBBox=Nsr;Po.validateId=Usr});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 Ysr(e,t,r){var i=r,n=!1;return SVe(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 EVe(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 kVe=TR(),Jsr=MR();function FVe(e){return Jsr.geomReduce.call(void 0,e,(t,r)=>t+Qsr(r),0)}function Qsr(e){let t=0,r;switch(e.type){case"Polygon":return CVe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(DVe(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*elr}var tlr=FVe;SR.area=FVe;SR.default=tlr});var IVe=W(ER=>{"use strict";Object.defineProperty(ER,"__esModule",{value:!0});var rlr=TR(),ilr=MR();function PVe(e,t={}){let r=0,i=0,n=0;return ilr.coordEach.call(void 0,e,function(a){r+=a[0],i+=a[1],n++},!0),rlr.point.call(void 0,[r/n,i/n],t.properties)}var nlr=PVe;ER.centroid=PVe;ER.default=nlr});var zVe=W((kR,RVe)=>{(function(e,t){t(typeof kR=="object"&&typeof RVe!="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>=M?10:Q>=x?5:Q>=A?2:1)*Math.pow(10,j):-Math.pow(10,-j)/(Q>=M?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>=M?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 BVe!="undefined"?t(CR,zVe()):(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,M=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 S(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]),S(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=S(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),S(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),S(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)*S(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*S(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=Uv},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 Uv(){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 Vv=0,Th=0,xp=0,h0=0,td=0,rd=0,Gv=0,Hv=0,Wc=0,bp,Ah,Zu,Ds,Ho={point:ku,lineStart:id,lineEnd:jv,polygonStart:function(){Ho.lineStart=bg,Ho.lineEnd=ny},polygonEnd:function(){Ho.point=ku,Ho.lineStart=id,Ho.lineEnd=jv},result:function(){var Ae=Wc?[Gv/Wc,Hv/Wc]:rd?[h0/rd,td/rd]:xp?[Vv/xp,Th/xp]:[NaN,NaN];return Vv=Th=xp=h0=td=rd=Gv=Hv=Wc=0,Ae}};function ku(Ae,qe){Vv+=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 jv(){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,Gv+=Tt*(Zu+Ae),Hv+=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 $v=r(),Wv,Eh,_g,nd,_p,mf={point:k,lineStart:function(){mf.point=Yv},lineEnd:function(){Wv&&wp(Eh,_g),mf.point=k},polygonStart:function(){Wv=!0},polygonEnd:function(){Wv=null},result:function(){var Ae=+$v;return $v.reset(),Ae}};function Yv(Ae,qe){mf.point=wp,Eh=nd=Ae,_g=_p=qe}function wp(Ae,qe){nd-=Ae,_p-=qe,$v.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 Xv;for(var Ye in Ae)et[Ye]=Ae[Ye];return et.stream=qe,et}}function Xv(){}Xv.prototype={constructor:Xv,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,Zv=g(30*p);function Mg(Ae,qe){return+qe?Ap(Ae,qe):Kv(Ae)}function Kv(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=S(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,S(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),S(Ye&&et*jt/Ye)]}}var Ju=yf(function(Ae){return T(2/(1+Ae))});Ju.invert=xf(function(Ae){return 2*S(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 e1(){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*M(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/M(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(M(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 r1(){return Yc(Cg).scale(175.295)}function pl(Ae,qe){return[g(qe)*x(Ae),x(qe)]}pl.invert=xf(S);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=t1,e.geoGraticule=Mu,e.geoGraticule10=Su,e.geoIdentity=dy,e.geoInterpolate=yc,e.geoLength=ms,e.geoMercator=e1,e.geoMercatorRaw=bc,e.geoNaturalEarth1=r1,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 NVe=W((yJr,OVe)=>{"use strict";var qVe={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"},alr=new Set(Object.values(qVe));OVe.exports={usaLocationAbbreviations:alr,usaLocationList:qVe}});var UVe={};Jn(UVe,{COUNTRIES_X:()=>olr});var olr,VVe=Ci(()=>{"use strict";olr=[{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((xJr,jVe)=>{"use strict";var slr=gi(),{COUNTRIES:llr,createLookup:ulr}=yVe(),{area:clr}=LVe(),{centroid:flr}=IVe(),{coordAll:hlr}=MR(),{geoBounds:dlr}=DR(),plr=gA(),q2=qg(),vlr=my(),glr=U6(),FR=nM(),{usaLocationAbbreviations:mlr,usaLocationList:ylr}=NVe(),{COUNTRIES_X:xlr}=(VVe(),Pt(UVe)),{lookupAlpha3:blr}=ulr([...llr,...xlr]),_lr={"ISO-3":plr,"USA-states":Tlr,"country names":wlr};function wlr(e){let t=blr(e);return t||(q2.log("Unrecognized country name: "+e+"."),!1)}function Tlr(e){e=e.trim();let t=mlr.has(e.toUpperCase())?e.toUpperCase():ylr[e.toLowerCase()];return t||(q2.log("Unrecognized US location: "+e+"."),!1)}function Alr(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;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 Mlr(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]:flr(r).geometry.coordinates}function klr(e){var t=window.PlotlyGeoAssets||{},r=[];function i(l){return new Promise(function(u,c){slr.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 hlr(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]]=dlr({type:"MultiPoint",coordinates:e});return[t,r,HVe([t,i])[1],n]}var Dlr=(e,t)=>t.fitbounds==="geojson"&&e.locationmode==="geojson-id",GVe=(e,t)=>Dlr(e,t)?eee(QQ(e)):[],Flr=(e,t)=>tee(GVe(e,t));function HVe([e,t]){return[e,e>t?t+LR:t]}jVe.exports={locationToFeature:Alr,feature2polygons:Mlr,getTraceGeojson:QQ,extractTraceFeature:Slr,fetchTraceGeoData:klr,boundsOfCoords:tee,computeBbox:Clr,coordsOf:eee,doesCrossAntiMeridian:JQ,fitGeojsonBbox:Flr,fitGeojsonCoords:GVe,unwrapLonRange:HVe,ANTIMERIDIAN_LON_SHIFT:LR}});var ree=W((bJr,YVe)=>{"use strict";var Llr=gi(),Plr=Qi(),$Ve=ti(),WVe=lh(),Ilr=WVe.stylePoints,Rlr=WVe.styleText;YVe.exports=function(t,r){r&&zlr(t,r)};function zlr(e,t){var r=t[0].trace,i=t[0].node3;i.style("opacity",t[0].trace.opacity),Ilr(i,r,e),Rlr(i,r,e),i.selectAll("path.js-line").style("fill","none").each(function(n){var a=Llr.select(this),o=n.trace,s=o.line||{};a.call($Ve.stroke,s.color).call(Plr.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call($Ve.fill,o.fillcolor)})}});var RR=W((_Jr,KVe)=>{"use strict";var XVe=gi(),PR=tt(),Blr=xR().getTopojsonFeatures,iee=IE(),IR=Am(),ZVe=Yp().findExtremes,aee=(ra(),Pt(ia)).BADNUM,qlr=Ld().calcMarkerSize,nee=Wo(),Olr=ree();function Nlr(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&&XVe.select(s).remove()}n.selectAll("*").remove(),n.each(function(o){var s=XVe.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)}),Olr(e,o)})}function Ulr(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):Blr(r,n.topojson);for(o=0;o{"use strict";var Glr=Is(),Hlr=(ra(),Pt(ia)).BADNUM,jlr=s5(),$lr=tt().fillText,Wlr=W4();JVe.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]===Hlr||u(_))return 1/0;var b=c(_),M=c([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(Glr.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=jlr(a,h),t.extraText=Ylr(a,h,t,n[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function Ylr(e,t,r,i){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,a=n==="all"?Wlr.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&&$lr(t,e,c),c.join("
")}});var tGe=W((TJr,eGe)=>{"use strict";eGe.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 nGe=W((AJr,iGe)=>{"use strict";var rGe=Wo(),Xlr=(ra(),Pt(ia)).BADNUM;iGe.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=!rGe.hasMarkers(s)&&!rGe.hasText(s);if(p)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof zR=="object"&&typeof aGe!="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>=M?10:Q>=x?5:Q>=A?2:1)*Math.pow(10,j):-Math.pow(10,-j)/(Q>=M?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>=M?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 sGe!="undefined"?t(BR,DR(),oGe()):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,M=_/4,x=Math.SQRT1_2,A=F(2),T=F(_),y=_*2,E=180/_,S=_/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*S):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*S,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*S)>=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*S/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*S),Pe=v(ke*S);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?-M:M,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*S):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]*=S,ie[1]*=S,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+M));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*S).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*S,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*S,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*S,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 Uv(){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 Vv=[[[[-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,Vv,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 Gv(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 Hv(){var ie=.5,se=t.geoProjectionMutator(Gv),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(M+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]],$v=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Wv(){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($v,[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 Yv=F(6),wp=F(7);function ad(ie,se){var de=k(7*v(se)/(3*Yv));return[Yv*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/(Yv*(2*o(2*de/3)-1)),k(v(de)*3*Yv/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 Zv(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)]}Zv.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(Zv).scale(127.267)}var Kv=1.0148,Ap=.23185,Jv=-.14499,Qv=.02406,oy=Kv,Ku=5*Ap,Yc=7*Jv,Sg=9*Qv,Cu=1.790857183;function Mp(ie,se){var de=se*se;return[ie,se*(Kv+de*de*(Ap+de*(Jv+Qv*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*(Kv+ke*ke*(Ap+ke*(Jv+Qv*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 t1(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=r1;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:r1(ie.geometry,se)}}function Cg(ie,se){return{type:"GeometryCollection",geometries:ie.geometries.map(function(de){return r1(de,se)})}}function r1(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*S]};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*S):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(n1).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 a1(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*S,se=60*S,de=20,ve=200,ke=t.geoProjectionMutator(a1),Me=ke(ie,se,de,ve);return Me.poleline=function(Pe){return arguments.length?ke(ie=+Pe*S,se,de,ve):ie*E},Me.parallels=function(Pe){return arguments.length?ke(ie,se=+Pe*S,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 o1(){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 s1(){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=Uv,e.geoInterruptedHomolosine=c0,e.geoInterruptedMollweide=wh,e.geoInterruptedMollweideHemispheres=f0,e.geoInterruptedSinuMollweide=Th,e.geoInterruptedSinusoidal=h0,e.geoKavrayskiy7=rd,e.geoKavrayskiy7Raw=td,e.geoLagrange=Hv,e.geoLagrangeRaw=Gv,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=jv,e.geoMillerRaw=d0,e.geoModifiedStereographic=mf,e.geoModifiedStereographicRaw=bg,e.geoModifiedStereographicAlaska=Wv,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=Xv,e.geoMtFlatPolarSinusoidalRaw=Xf,e.geoNaturalEarth2=Tp,e.geoNaturalEarth2Raw=Zf,e.geoNellHammer=od,e.geoNellHammerRaw=xc,e.geoInterruptedQuarticAuthalic=Ag,e.geoNicolosi=Mg,e.geoNicolosiRaw=Zv,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=t1,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=i1,e.geoVanDerGrinten4=Kc,e.geoVanDerGrinten4Raw=n1,e.geoWagner=Lg,e.geoWagner7=o1,e.geoWagnerRaw=a1,e.geoWagner4=qp,e.geoWagner4Raw=Bp,e.geoWagner6=Op,e.geoWagner6Raw=fd,e.geoWiechel=s1,e.geoWiechelRaw=hd,e.geoWinkel3=_c,e.geoWinkel3Raw=Ig,Object.defineProperty(e,"__esModule",{value:!0})}))});var dGe=W((MJr,hGe)=>{"use strict";var ll=gi(),oee=tt(),Zlr=xi(),Y4=Math.PI/180,B_=180/Math.PI,lee={cursor:"pointer"},uee={cursor:"auto"};function Klr(e,t){var r=e.projection,i;return t._isScoped?i=Jlr:t._isClipped?i=eur:i=Qlr,i(e,r)}hGe.exports=Klr;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(),Zlr.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 Jlr(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 Qlr(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 M=t(b);return Math.abs(M[0]-_[0])>i||Math.abs(M[1]-_[1])>i}function v(){ll.select(this).style(lee);let{x:_,y:b,width:M,height:x}=this.getBBox();n=ll.event.sourceEvent?ll.mouse(this):[_+M/2,b+x/2],a=t.rotate(),o=t.translate(),s=a,l=p(n)}function m(){let{x:_,y:b,width:M,height:x}=this.getBBox();if(u=ll.event.sourceEvent?ll.mouse(this):[_+M/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(),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",m).on("zoomend",g),r}function eur(e,t){var r={r:t.rotate(),k:t.scale()},i=cee(e,t),n=lur(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=tur(g);s=qR(t,m),o.call(i,"zoom",function(){let{x:M,y:x,width:A,height:T}=this.getBBox(),y=ll.event.sourceEvent?ll.mouse(this):[M+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),S=iur(s,E),C=aur(rur(b,S)),k=r.r=nur(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])&&our(r)}function tur(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 rur(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 iur(e,t){if(!(!e||!t)){var r=sur(e,t),i=Math.sqrt(fGe(r,r)),n=.5*Math.acos(Math.max(-1,Math.min(1,fGe(e,t)))),a=Math.sin(n)/i;return i&&[Math.cos(n),r[2]*a,-r[1]*a,r[0]*a]}}function nur(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=uGe(r[0],r[1],p,v),w=uGe(r[0],r[1],d,m);return g<=w?[p,v,r[2]]:[d,m,r[2]]}function uGe(e,t,r,i){var n=cGe(r-e),a=cGe(i-t);return Math.sqrt(n*n+a*a)}function cGe(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 aur(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 our(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 fGe(e,t){for(var r=0,i=0,n=e.length;i{"use strict";var X1=gi(),pee=DR(),uur=pee.geoPath,cur=pee.geoDistance,fur=lGe(),hur=xi(),qE=tt(),dur=qE.strTranslate,OR=ti(),BE=Qi(),pGe=Is(),pur=Qo(),dee=Yi(),{concatExtremes:vur,getAutoRange:vGe,makePadFn:gGe}=Yp(),hee=Ef(),gur=xu().prepSelect,mur=xu().clearOutline,yur=xu().selectOnClick,xur=dGe(),ph=(LE(),Pt(FE)),vee=Am(),{unwrapLonRange:bur}=vee,yGe=xR(),_ur=NQ().feature;function xGe(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 Av=xGe.prototype;bGe.exports=function(t){return new xGe(t)};Av.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),pur.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()};Av.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=wur(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=vGe(r,u),c.range=vGe(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=vur(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,M=ph.lataxisSpan[_]/2||90;v=[g-b,g+b],m=[w-M,w+M]}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=mGe(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(mGe(u.range,c.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)?f.scale(S*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])])}}};Av.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(_ur(i,i.objects[h])):o(h)&&p.datum(Tur(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"])})};Av.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};Av.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];hur.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&&mur(i)}};if(a==="pan"){n.node().onmousedown=null;let f=xur(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){gur(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]},pGe.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&&yur(X1.event,i,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&pGe.click(i,X1.event))})};Av.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)};Av.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)};Av.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};Av._render=function(){var e=this.projection,t=e.getPath(),r;function i(a){var o=e(a.lonlat);return o?dur(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 wur(e){var t=e.projection,r=t.type,i=ph.projNames[r];i="geo"+qE.titleCase(i);for(var n=pee[i]||fur[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 uur().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 Tur(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(),Aur=ds().attributes,Mur=zu().dash,X4=(LE(),Pt(FE)),Sur=hs().overrideAll,wGe=(Qx(),Pt(Jx)).default,TGe={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:Mur},Eur=AGe.exports=Sur({domain:Aur({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:wGe(X4.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:wGe(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:TGe,lataxis:TGe},"plot","from-root");Eur.uirevision={valType:"any",editType:"none"}});var EGe=W((kJr,SGe)=>{"use strict";var NR=tt(),kur=Kb(),Cur=Mc().getSubplotData,{unwrapLonRange:Dur}=Am(),OE=(LE(),Pt(FE)),Fur=gee(),MGe=OE.axesNames;SGe.exports=function(t,r,i){kur(t,r,i,{type:"geo",attributes:Fur,handleDefaults:Lur,fullData:i,partition:"y"})};function Lur(e,t,r,i){var n=Cur(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((CJr,DGe)=>{"use strict";var Pur=Mc().getSubplotCalcData,Iur=tt().counterRegex,Rur=_Ge(),Z1="geo",kGe=Iur(Z1),CGe={};CGe[Z1]={valType:"subplotid",dflt:Z1,editType:"calc"};function zur(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[Z1],n=0;n{"use strict";FGe.exports={attributes:W4(),supplyDefaults:nVe(),colorbar:Cc(),formatLabels:sVe(),calc:OQ(),calcGeoJSON:RR().calcGeoJSON,fitCoords:RR().fitCoords,plot:RR().plot,style:ree(),styleOnSelect:lh().styleOnSelect,hoverPoints:QVe(),eventData:tGe(),selectPoints:nGe(),moduleType:"trace",name:"scattergeo",basePlotModule:mee(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var IGe=W((FJr,PGe)=>{"use strict";PGe.exports=LGe()});var NE=W((LJr,BGe)=>{"use strict";var{hovertemplateAttrs:Our,templatefallbackAttrs:Nur}=Wa(),N2=W4(),Uur=Fo(),RGe=Ja(),Vur=Yl().defaultLine,O2=an().extendFlat,zGe=N2.marker.line;BGe.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({},zGe.color,{dflt:Vur}),width:O2({},zGe.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({},RGe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:Our(),hovertemplatefallback:Nur(),showlegend:O2({},RGe.showlegend,{dflt:!1})},Uur("",{cLetter:"z",editTypeOverride:"calc"}))});var OGe=W((PJr,qGe)=>{"use strict";var UR=tt(),Gur=Bu(),Hur=NE();qGe.exports=function(t,r,i,n){function a(h,p){return UR.coerce(t,r,Hur,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"),Gur(t,r,n,a,{prefix:"",cLetter:"z"}),UR.coerceSelectionMarkerOpacity(r,a)}});var yee=W((IJr,VGe)=>{"use strict";var NGe=hn(),jur=(ra(),Pt(ia)).BADNUM,$ur=rf(),Wur=L1(),Yur=C0();function UGe(e){return e&&typeof e=="string"}VGe.exports=function(t,r){var i=r._length,n=new Array(i),a;r.geojson?a=function(c){return UGe(c)||NGe(c)}:a=UGe;for(var o=0;o{"use strict";var Xur=gi(),Zur=ti(),xee=Qi(),Kur=es();function Jur(e,t){t&&GGe(e,t)}function GGe(e,t){var r=t[0].trace,i=t[0].node3,n=i.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=Kur.makeColorScaleFuncFromTrace(r);n.each(function(l){Xur.select(this).attr("fill",s(l.z)).call(Zur.stroke,l.mlc||o.color).call(xee.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),xee.selectedPointStyle(n,r)}function Qur(e,t){var r=t[0].node3,i=t[0].trace;i.selectedpoints?xee.selectedPointStyle(r.selectAll(".choroplethlocation"),i):GGe(e,t)}HGe.exports={style:Jur,styleOnSelect:Qur}});var GR=W((zJr,WGe)=>{"use strict";var ecr=gi(),jGe=tt(),q_=Am(),tcr=xR().getTopojsonFeatures,$Ge=Yp().findExtremes,rcr=VR().style;function icr(e,t,r){var i=t.layers.backplot.select(".choroplethlayer");jGe.makeTraceGroups(i,r,"trace choropleth").each(function(n){var a=ecr.select(this),o=a.selectAll("path.choroplethlocation").data(jGe.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),rcr(e,n)})}function ncr(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):tcr(r,n.topojson);let l=q_.fitGeojsonBbox(r,i);for(var u=[],c=[],f=0;f{"use strict";var ocr=Yi(),scr=NE(),lcr=tt().fillText,{ANTIMERIDIAN_LON_SHIFT:ucr}=Am();YGe.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+ucr,i];for(l=0;l")}}});var _ee=W((qJr,XGe)=>{"use strict";XGe.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((OJr,ZGe)=>{"use strict";ZGe.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";KGe.exports={attributes:NE(),supplyDefaults:OGe(),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 eHe=W((UJr,QGe)=>{"use strict";QGe.exports=JGe()});var HR=W((VJr,rHe)=>{"use strict";var fcr=xi(),U0=tt(),hcr=s5(),dcr=Qi();function pcr(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,M,x,A,T,y,E,S,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}S=Math.sqrt(T*T+y*y),b=d[A]}}}else for(A=0;Axcr,SYMBOL_SDF_SIZE:()=>gcr,SYMBOL_SIZE:()=>mcr,SYMBOL_STROKE:()=>ycr,TOO_MANY_POINTS:()=>vcr});var vcr,gcr,mcr,ycr,xcr,N_=Ci(()=>{"use strict";vcr=1e5,gcr=200,mcr=20,ycr=1,xcr={solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}});var UE=W((GJr,oHe)=>{"use strict";var bcr=Ja(),_cr=jo(),wcr=C1(),zs=Ws(),iHe=Ts().axisHoverFormat,nHe=Fo(),Tcr=(Qx(),Pt(Jx)).default,Tee=an().extendFlat,Acr=hs().overrideAll,Mcr=(N_(),Pt(O_)).DASHES,aHe=zs.line,Mm=zs.marker,Scr=Mm.line,U2=oHe.exports=Acr({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:iHe("x"),yhoverformat:iHe("y"),text:zs.text,hovertext:zs.hovertext,textposition:zs.textposition,textfont:_cr({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:aHe.color,width:aHe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:Tcr(Mcr),dflt:"solid"}},marker:Tee({},nHe("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({},nHe("marker.line"),{width:Scr.width})}),connectgaps:zs.connectgaps,fill:Tee({},zs.fill,{dflt:"none"}),fillcolor:wcr(),selected:{marker:zs.selected.marker,textfont:zs.selected.textfont},unselected:{marker:zs.unselected.marker,textfont:zs.unselected.textfont},opacity:bcr.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:sHe}=Qi();Aee.isOpenSymbol=e=>sHe(e)%200>=100;Aee.isDotSymbol=e=>sHe(e)>=200});var cHe=W((jJr,uHe)=>{"use strict";var lHe=tt(),Ecr=xi(),kcr=jR(),Ccr=UE(),Dcr=(k1(),Pt(E1)),$R=Wo(),Fcr=Lb(),Lcr=ev(),Pcr=Dd(),Icr=tv(),Rcr=F1(),zcr=rv();uHe.exports=function(t,r,i,n){function a(p,d){return lHe.coerce(t,r,Ccr,p,d)}var o=t.marker?kcr.isOpenSymbol(t.marker.symbol):!1,s=$R.isBubble(t),l=Fcr(t,r,n,a);if(!l){r.visible=!1;return}Lcr(t,r,n,a),a("xhoverformat"),a("yhoverformat");var u=l{"use strict";var Bcr=QF();fHe.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]),Bcr(t,r,i)}});var pHe=W((WJr,dHe)=>{"use strict";function qcr(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 Ocr(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 Ncr(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 Ucr(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(;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)}dHe.exports={ge:function(e,t,r,i,n){return VE(e,t,r,i,n,qcr)},gt:function(e,t,r,i,n){return VE(e,t,r,i,n,Ocr)},lt:function(e,t,r,i,n){return VE(e,t,r,i,n,Ncr)},le:function(e,t,r,i,n){return VE(e,t,r,i,n,Ucr)},eq:function(e,t,r,i,n){return VE(e,t,r,i,n,Vcr)}}});var Mee=W((YJr,vHe)=>{vHe.exports=Gcr;function Gcr(e,t,r){return tr?r:e:et?t:e}});var K1=W((XJr,mHe)=>{"use strict";mHe.exports=function(t,r,i){var n={},a,o;if(typeof r=="string"&&(r=gHe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var Hcr=K1();yHe.exports=jcr;function jcr(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=Hcr(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((KJr,xHe)=>{"use strict";xHe.exports=$cr;function $cr(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";bHe.exports=function(){for(var t=0;t{wHe.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((eQr,AHe)=>{var THe=WR();AHe.exports=Wcr;function Wcr(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(THe(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";MHe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var kHe=W((rQr,EHe)=>{"use strict";EHe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var RHe=W((iQr,IHe)=>{"use strict";var CHe=pHe(),DHe=Mee(),Ycr=K4(),Xcr=U_(),FHe=K1(),Eee=_He(),Zcr=V_(),Kcr=SHe(),Jcr=WR(),LHe=kHe(),Qcr=1073741824;IHe.exports=function(t,r){r||(r={}),t=Zcr(t,"float64"),r=FHe(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,Xcr(t,2));n[0]===n[2]&&n[2]++,n[1]===n[3]&&n[3]++;let a=PHe(t,n),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(Jcr(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let g=0;gi||x>Qcr){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>=M&&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,M){let x=[];for(let A=0;A{"use strict";zHe.exports=RHe()});var qHe=W((aQr,BHe)=>{BHe.exports=tfr;var kee={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},efr=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function tfr(e){var t=[];return e.replace(efr,function(r,i,n){var a=i.toLowerCase();for(n=ifr(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{OHe.exports=nfr;function nfr(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 afr=(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}},ofr=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}]},UHe=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)},sfr=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,M=u*w+c*_+(r+n)/2,x=(f-w)/a,A=(h-_)/o,T=(-f-w)/a,y=(-h-_)/o,E=UHe(1,0,x,A),S=UHe(x,A,T,y);return l===0&&S>0&&(S-=GE),l===1&&S<0&&(S+=GE),[b,M,E,S]},lfr=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=sfr(r,i,n,a,o,s,f,p,v,m,g,w),M=afr(b,4),x=M[0],A=M[1],T=M[2],y=M[3],E=Math.abs(y)/(GE/4);Math.abs(1-E)<1e-7&&(E=1);var S=Math.max(Math.ceil(E),1);y/=S;for(var C=0;C{"use strict";jHe.exports=cfr;var ufr=GHe();function cfr(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 HHe(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((lQr,WHe)=>{"use strict";WHe.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 XHe=W((uQr,YHe)=>{"use strict";var ffr=qHe(),hfr=NHe(),dfr=$He(),pfr=Dee();YHe.exports=vfr;function vfr(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!pfr(e))throw Error("String is not an SVG path.");e=ffr(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=hfr(e),e=dfr(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 QHe=W((cQr,JHe)=>{"use strict";JHe.exports=gfr;var HE=1e20;function gfr(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);dije});function ije(e,t={}){if(!(0,tje.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,eje.default)(e),s=[r/(o[2]-o[0]),i/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;Mv.fillStyle="black",Mv.fillRect(0,0,r,i),Mv.fillStyle="white",a&&(typeof a!="number"&&(a=1),Mv.strokeStyle=a>0?"white":"black",Mv.lineWidth=Math.abs(a)),Mv.translate(r*.5,i*.5),Mv.scale(l,l);let u=new Path2D(e);return Mv.fill(u),a&&Mv.stroke(u),Mv.setTransform(1,0,0,1,0,0),(0,rje.default)(Mv,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:n*.5})}var eje,tje,rje,Fee,Mv,aje=Ci(()=>{eje=l1(XHe()),tje=l1(Dee()),rje=l1(QHe()),Fee=document.createElement("canvas"),Mv=Fee.getContext("2d",{willReadFrequently:!0})});var j_=W((fQr,gje)=>{"use strict";var JR=hn(),mfr=(aje(),Pt(nje)).default,{normalize:KR,rgbaString:H_}=ti(),yfr=xi(),eT=tt(),Ul=eT.isArrayOrTypedArray,J4=Qi(),oje=Ls(),sje=_m().formatColor,Q4=Wo(),xfr=MA(),Pee=jR(),jE=(N_(),Pt(O_)),bfr=(Ng(),Pt(Og)).DESELECTDIM,lje={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},_fr=ah().appendArrayPointValue;function wfr(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=vje(e,t),i.textSel=cje(e,t,t.selected),i.textUnsel=cje(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=sje(i,i.opacity,r),g=sje(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=lje[h],v=lje[p],m=c?c/.8+1:0,g=-v*m-v*.5;a.offset[o]=[d*m/f,g/f]}}return a}gje.exports={style:wfr,markerStyle:Ree,markerSelection:Iee,linePositions:Afr,errorBarPositions:Mfr,textPosition:Sfr}});var zee=W((dQr,mje)=>{"use strict";var QR=tt();mje.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 Efr=YR(),tT=tt(),yje=Ls(),kfr=Yp().findExtremes,xje=iv(),Bee=Ld(),Cfr=Bee.calcMarkerSize,Dfr=Bee.calcAxisExpansion,Ffr=Bee.setFirstScatter,Lfr=Fd(),rT=j_(),Pfr=zee(),bje=(ra(),Pt(ia)).BADNUM,Ifr=(N_(),Pt(O_)).TOO_MANY_POINTS;wje.exports=function(t,r){var i=t._fullLayout,n=r._xA=yje.getFromId(t,r.xaxis,"x"),a=r._yA=yje.getFromId(t,r.yaxis,"y"),o=i._plots[r.xaxis+r.yaxis],s=r._length,l=s>=Ifr,u=s*2,c={},f,h=n.makeCalcdata(r,"x"),p=a.makeCalcdata(r,"y"),d=xje(r,n,"x",h),v=xje(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((vQr,Mje)=>{"use strict";var Aje=tt(),zfr=ti(),Bfr=(Ng(),Pt(Og)).DESELECTDIM;function qfr(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=Aje.extendFlat({},l),h,p;if(o.length||s.length){var d=u.color,v=c.color,m=l.color,g=Aje.isArrayOrTypedArray(m);for(f.color=new Array(r._length),h=0;h{"use strict";var Sje=Wo(),Ofr=qee().styleTextSelection;Eje.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=Sje.hasText(s),v=Sje.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 Nfr=HR();kje.exports={moduleType:"trace",name:"scattergl",basePlotModule:xl(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:UE(),supplyDefaults:cHe(),crossTraceDefaults:_$(),colorbar:Cc(),formatLabels:hHe(),calc:Tje(),hoverPoints:Nfr.hoverPoints,selectPoints:Oee(),meta:{}}});var Fje=W((yQr,Dje)=>{"use strict";Dje.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 Rje=W((xQr,Ije)=>{"use strict";var Lje=Fje();Ije.exports=Ufr;var Pje={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function Ufr(e){var t,r=[],i=1,n;if(typeof e=="string")if(e=e.toLowerCase(),Lje[e])r=Lje[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(Pje[h]!==void 0)return Pje[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 Bje=W((bQr,zje)=>{"use strict";var Vfr=Rje();zje.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,i,n,a=Vfr(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=Gfr(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function Gfr(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((_Qr,qje)=>{"use strict";var Hfr=Bje(),jfr=WR();qje.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var i=jfr(r),n=new i(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=Hfr(t),t[0]/=255,t[1]/=255,t[2]/=255),$fr(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 $fr(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 Nje=W((wQr,tz)=>{"use strict";var ez=Mee();tz.exports=Oje;tz.exports.to=Oje;tz.exports.from=Wfr;function Oje(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 Wfr(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 Vje=W((TQr,Uje)=>{Uje.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],i=0;i{"use strict";Gje.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=Yfr;var Hje=new Float32Array(1);function Yfr(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 Xfr=$E(),Zfr=U_(),Kfr=Nje(),Jfr=YR(),iz=Vje(),Qfr=K1(),ehr=Nee(),thr=V_(),nz=rz(),rhr=K4(),ihr=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; @@ -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)}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=` +`]),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=Qfr(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(ehr(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=thr(d,"float64");let M=v.count=Math.floor(d.length/2),x=v.bounds=M?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||M>g)?v.tree=Jfr(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(M),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=>rhr(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 nhr=function(e,t){var r=new ihr(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};jje.exports=nhr});var Hu=W((EQr,Wje)=>{"use strict";var $je=Object.getOwnPropertySymbols,ahr=Object.prototype.hasOwnProperty,ohr=Object.prototype.propertyIsEnumerable;function shr(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function lhr(){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}}Wje.exports=lhr()?Object.assign:function(e,t){for(var r,i=shr(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=Xje(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=dhr(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 Xje(e,t,r,i,n){var a,o;if(n===Hee(e,t,r,i)>0)for(a=t;a=t;a-=i)o=Yje(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&&yhr(e,i,n,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?chr(e,i,n,a):uhr(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=fhr($_(e),t,r),YE(e,t,r,i,n,a,2)):o===2&&hhr(e,t,r,i,n,a):YE($_(e),t,r,i,n,a,1);break}}}}function uhr(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 chr(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 fhr(e,t,r){var i=e;do{var n=i.prev,a=i.next.next;!lz(n,a)&&Zje(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 hhr(e,t,r,i,n,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&_hr(o,s)){var l=Kje(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 dhr(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&&mhr(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function mhr(e,t){return Vl(e.prev,e,t.prev)<0&&Vl(t.next,e,e.next)<0}function yhr(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,xhr(n)}function xhr(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 bhr(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 _hr(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!whr(e,t)&&(XE(e,t)&&XE(t,e)&&Thr(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 Zje(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 whr(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&&Zje(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 Thr(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 Kje(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 Yje(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 e$e=W((CQr,Qje)=>{"use strict";var Ahr=U_();Qje.exports=Mhr;function Mhr(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=Ahr(e,t));for(var i=0;i{"use strict";t$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 n$e=W((FQr,i$e)=>{"use strict";i$e.exports=function(){}});var V2=W((LQr,a$e)=>{"use strict";var Shr=n$e()();a$e.exports=function(e){return e!==Shr&&e!==null}});var $ee=W((PQr,s$e)=>{"use strict";var Ehr=Object.create,khr=Object.getPrototypeOf,o$e={};s$e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||Ehr;return typeof e!="function"?!1:khr(e(t(null),o$e))===o$e}});var Wee=W((IQr,l$e)=>{"use strict";var Chr=V2(),Dhr={function:!0,object:!0};l$e.exports=function(e){return Chr(e)&&Dhr[typeof e]||!1}});var Sm=W((RQr,u$e)=>{"use strict";var Fhr=V2();u$e.exports=function(e){if(!Fhr(e))throw new TypeError("Cannot use null or undefined");return e}});var f$e=W((zQr,c$e)=>{"use strict";var Yee=Object.create,uz;$ee()()||(uz=Xee());c$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((BQr,h$e)=>{"use strict";var Lhr=Wee(),Phr=Sm(),Ihr=Object.prototype.isPrototypeOf,Rhr=Object.defineProperty,zhr={configurable:!0,enumerable:!1,writable:!0,value:void 0},cz;cz=function(e,t){if(Phr(e),t===null||Lhr(t))return e;throw new TypeError("Prototype must be null or an object")};h$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=Ihr.call(i.nullPolyfill,n),o&&delete i.nullPolyfill.__proto__,a===null&&(a=i.nullPolyfill),n.__proto__=a,o&&Rhr(i.nullPolyfill,"__proto__",zhr),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)})());f$e()});var fz=W((qQr,d$e)=>{"use strict";d$e.exports=$ee()()?Object.setPrototypeOf:Xee()});var v$e=W((OQr,p$e)=>{"use strict";var Bhr=Wee();p$e.exports=function(e){if(!Bhr(e))throw new TypeError(e+" is not an Object");return e}});var m$e=W((NQr,g$e)=>{"use strict";var qhr=Object.create(null),Ohr=Math.random;g$e.exports=function(){var e;do e=Ohr().toString(36).slice(2);while(qhr[e]);return e}});var W_=W((UQr,y$e)=>{"use strict";var Nhr=void 0;y$e.exports=function(e){return e!==Nhr&&e!==null}});var Zee=W((VQr,x$e)=>{"use strict";var Uhr=W_(),Vhr={object:!0,function:!0,undefined:!0};x$e.exports=function(e){return Uhr(e)?hasOwnProperty.call(Vhr,typeof e):!1}});var _$e=W((GQr,b$e)=>{"use strict";var Ghr=Zee();b$e.exports=function(e){if(!Ghr(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var T$e=W((HQr,w$e)=>{"use strict";var Hhr=_$e();w$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!Hhr(e)}});var Kee=W((jQr,A$e)=>{"use strict";var jhr=T$e(),$hr=/^\s*class[\s{/}]/,Whr=Function.prototype.toString;A$e.exports=function(e){return!(!jhr(e)||$hr.test(Whr.call(e)))}});var S$e=W(($Qr,M$e)=>{"use strict";M$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 k$e=W((WQr,E$e)=>{"use strict";E$e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var D$e=W((YQr,C$e)=>{"use strict";var Yhr=V2(),Xhr=Object.keys;C$e.exports=function(e){return Xhr(Yhr(e)?Object(e):e)}});var L$e=W((XQr,F$e)=>{"use strict";F$e.exports=k$e()()?Object.keys:D$e()});var I$e=W((ZQr,P$e)=>{"use strict";var Zhr=L$e(),Khr=Sm(),Jhr=Math.max;P$e.exports=function(e,t){var r,i,n=Jhr(arguments.length,2),a;for(e=Object(Khr(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},i=1;i{"use strict";R$e.exports=S$e()()?Object.assign:I$e()});var Jee=W((JQr,z$e)=>{"use strict";var Qhr=V2(),e0r=Array.prototype.forEach,t0r=Object.create,r0r=function(e,t){var r;for(r in e)t[r]=e[r]};z$e.exports=function(e){var t=t0r(null);return e0r.call(arguments,function(r){Qhr(r)&&r0r(Object(r),t)}),t}});var q$e=W((QQr,B$e)=>{"use strict";var Qee="razdwatrzy";B$e.exports=function(){return typeof Qee.contains!="function"?!1:Qee.contains("dwa")===!0&&Qee.contains("foo")===!1}});var N$e=W((eei,O$e)=>{"use strict";var i0r=String.prototype.indexOf;O$e.exports=function(e){return i0r.call(this,e,arguments[1])>-1}});var ete=W((tei,U$e)=>{"use strict";U$e.exports=q$e()()?String.prototype.contains:N$e()});var Em=W((rei,j$e)=>{"use strict";var dz=W_(),V$e=Kee(),G$e=hz(),H$e=Jee(),KE=ete(),n0r=j$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?G$e(H$e(a),o):o};n0r.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)?V$e(t)?dz(r)?V$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?G$e(H$e(a),o):o}});var JE=W((iei,W$e)=>{"use strict";var $$e=Object.prototype.toString,a0r=$$e.call((function(){return arguments})());W$e.exports=function(e){return $$e.call(e)===a0r}});var QE=W((nei,X$e)=>{"use strict";var Y$e=Object.prototype.toString,o0r=Y$e.call("");X$e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||Y$e.call(e)===o0r)||!1}});var K$e=W((aei,Z$e)=>{"use strict";Z$e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var eWe=W((oei,Q$e)=>{var J$e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};Q$e.exports=(function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return J$e()}try{return __global__||J$e()}finally{delete Object.prototype.__global__}})()});var ek=W((sei,tWe)=>{"use strict";tWe.exports=K$e()()?globalThis:eWe()});var iWe=W((lei,rWe)=>{"use strict";var s0r=ek(),tte={object:!0,symbol:!0};rWe.exports=function(){var e=s0r.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 aWe=W((uei,nWe)=>{"use strict";nWe.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((cei,oWe)=>{"use strict";var l0r=aWe();oWe.exports=function(e){if(!l0r(e))throw new TypeError(e+" is not a symbol");return e}});var fWe=W((fei,cWe)=>{"use strict";var sWe=Em(),u0r=Object.create,lWe=Object.defineProperty,c0r=Object.prototype,uWe=u0r(null);cWe.exports=function(e){for(var t=0,r,i;uWe[e+(t||"")];)++t;return e+=t||"",uWe[e]=!0,r="@@"+e,lWe(c0r,r,sWe.gs(null,function(n){i||(i=!0,lWe(this,r,sWe(n)),i=!1)})),r}});var dWe=W((hei,hWe)=>{"use strict";var Sv=Em(),ru=ek().Symbol;hWe.exports=function(e){return Object.defineProperties(e,{hasInstance:Sv("",ru&&ru.hasInstance||e("hasInstance")),isConcatSpreadable:Sv("",ru&&ru.isConcatSpreadable||e("isConcatSpreadable")),iterator:Sv("",ru&&ru.iterator||e("iterator")),match:Sv("",ru&&ru.match||e("match")),replace:Sv("",ru&&ru.replace||e("replace")),search:Sv("",ru&&ru.search||e("search")),species:Sv("",ru&&ru.species||e("species")),split:Sv("",ru&&ru.split||e("split")),toPrimitive:Sv("",ru&&ru.toPrimitive||e("toPrimitive")),toStringTag:Sv("",ru&&ru.toStringTag||e("toStringTag")),unscopables:Sv("",ru&&ru.unscopables||e("unscopables"))})}});var gWe=W((dei,vWe)=>{"use strict";var pWe=Em(),f0r=rte(),tk=Object.create(null);vWe.exports=function(e){return Object.defineProperties(e,{for:pWe(function(t){return tk[t]?tk[t]:tk[t]=e(String(t))}),keyFor:pWe(function(t){var r;f0r(t);for(r in tk)if(tk[r]===t)return r})})}});var xWe=W((pei,yWe)=>{"use strict";var J1=Em(),ite=rte(),pz=ek().Symbol,h0r=fWe(),d0r=dWe(),p0r=gWe(),v0r=Object.create,nte=Object.defineProperties,vz=Object.defineProperty,qf,aT,mWe;if(typeof pz=="function")try{String(pz()),mWe=!0}catch(e){}else pz=null;aT=function(t){if(this instanceof aT)throw new TypeError("Symbol is not a constructor");return qf(t)};yWe.exports=qf=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return mWe?pz(t):(r=v0r(aT.prototype),t=t===void 0?"":String(t),nte(r,{__description__:J1("",t),__name__:J1("",h0r(t))}))};d0r(qf);p0r(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((vei,bWe)=>{"use strict";bWe.exports=iWe()()?ek().Symbol:xWe()});var wWe=W((gei,_We)=>{"use strict";var g0r=Sm();_We.exports=function(){return g0r(this).length=0,this}});var oT=W((mei,TWe)=>{"use strict";TWe.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var MWe=W((yei,AWe)=>{"use strict";var m0r=W_(),y0r=Zee(),x0r=Object.prototype.toString;AWe.exports=function(e){if(!m0r(e))return null;if(y0r(e)){var t=e.toString;if(typeof t!="function"||t===x0r)return null}try{return""+e}catch(r){return null}}});var EWe=W((xei,SWe)=>{"use strict";SWe.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var CWe=W((bei,kWe)=>{"use strict";var b0r=EWe(),_0r=/[\n\r\u2028\u2029]/g;kWe.exports=function(e){var t=b0r(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(_0r,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 FWe=W((_ei,DWe)=>{"use strict";var w0r=MWe(),T0r=CWe();DWe.exports=function(e,t,r){r&&r.errorMessage&&(e=w0r(r.errorMessage));var i=e.indexOf("%v"),n=i>-1?T0r(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((wei,LWe)=>{"use strict";var A0r=W_(),M0r=FWe();LWe.exports=function(e,t,r){if(r&&!A0r(e)){if("default"in r)return r.default;if(r.isOptional)return null}var i=r&&r.Error||TypeError,n=new i(M0r(t,e,r));throw r&&r.errorCode&&(n.code=r.errorCode),n}});var IWe=W((Tei,PWe)=>{"use strict";var S0r=ate(),E0r=W_();PWe.exports=function(e){if(E0r(e))return e;var t=arguments[1],r=t&&t.name?"Expected a value for %n, received %v":"Cannot use %v";return S0r(e,r,t)}});var zWe=W((Aei,RWe)=>{"use strict";var k0r=ate(),C0r=Kee();RWe.exports=function(e){if(C0r(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 k0r(e,r,t)}});var qWe=W((Mei,BWe)=>{"use strict";BWe.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 NWe=W((Sei,OWe)=>{"use strict";var D0r=Object.prototype.toString,F0r=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);OWe.exports=function(e){return typeof e=="function"&&F0r(D0r.call(e))}});var VWe=W((Eei,UWe)=>{"use strict";UWe.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var HWe=W((kei,GWe)=>{"use strict";GWe.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var $We=W((Cei,jWe)=>{"use strict";jWe.exports=VWe()()?Math.sign:HWe()});var YWe=W((Dei,WWe)=>{"use strict";var L0r=$We(),P0r=Math.abs,I0r=Math.floor;WWe.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:L0r(e)*I0r(P0r(e)))}});var ZWe=W((Fei,XWe)=>{"use strict";var R0r=YWe(),z0r=Math.max;XWe.exports=function(e){return z0r(0,R0r(e))}});var eYe=W((Lei,QWe)=>{"use strict";var B0r=G2().iterator,q0r=JE(),O0r=NWe(),N0r=ZWe(),KWe=oT(),U0r=Sm(),V0r=V2(),G0r=QE(),JWe=Array.isArray,ote=Function.prototype.call,Y_={configurable:!0,enumerable:!0,writable:!0,value:null},ste=Object.defineProperty;QWe.exports=function(e){var t=arguments[1],r=arguments[2],i,n,a,o,s,l,u,c,f,h;if(e=Object(U0r(e)),V0r(t)&&KWe(t),!this||this===Array||!O0r(this)){if(!t){if(q0r(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(JWe(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=N0r(e.length),i&&(o=new i(s)),n=0;n{"use strict";tYe.exports=qWe()()?Array.from:eYe()});var nYe=W((Iei,iYe)=>{"use strict";var H0r=rYe(),j0r=hz(),$0r=Sm();iYe.exports=function(e){var t=Object($0r(e)),r=arguments[1],i=Object(arguments[2]);if(t!==e&&!r)return t;var n={};return r?H0r(r,function(a){(i.ensure||a in e)&&(n[a]=e[a])}):j0r(n,e),n}});var sYe=W((Rei,oYe)=>{"use strict";var W0r=oT(),Y0r=Sm(),X0r=Function.prototype.bind,aYe=Function.prototype.call,Z0r=Object.keys,K0r=Object.prototype.propertyIsEnumerable;oYe.exports=function(e,t){return function(r,i){var n,a=arguments[2],o=arguments[3];return r=Object(Y0r(r)),W0r(i),n=Z0r(r),o&&n.sort(typeof o=="function"?X0r.call(o,r):void 0),typeof e!="function"&&(e=n[e]),aYe.call(e,n,function(s,l){return K0r.call(r,s)?aYe.call(i,a,r[s],s,r,l):t})}}});var uYe=W((zei,lYe)=>{"use strict";lYe.exports=sYe()("forEach")});var fYe=W((Bei,cYe)=>{"use strict";var J0r=oT(),Q0r=uYe(),edr=Function.prototype.call;cYe.exports=function(e,t){var r={},i=arguments[2];return J0r(t),Q0r(e,function(n,a,o,s){r[a]=edr.call(t,i,n,a,o,s)}),r}});var vYe=W((qei,pYe)=>{"use strict";var tdr=W_(),rdr=IWe(),hYe=zWe(),idr=nYe(),ndr=Jee(),adr=fYe(),odr=Function.prototype.bind,sdr=Object.defineProperty,ldr=Object.prototype.hasOwnProperty,dYe;dYe=function(e,t,r){var i=rdr(t)&&hYe(t.value),n;return n=idr(t),delete n.writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&ldr.call(this,e)?i:(t.value=odr.call(i,r.resolveContext?r.resolveContext(this):this),sdr(this,e,t),this[e])},n};pYe.exports=function(e){var t=ndr(arguments[1]);return tdr(t.resolveContext)&&hYe(t.resolveContext),adr(e,function(r,i){return dYe(i,r,t)})}});var lte=W((Oei,xYe)=>{"use strict";var udr=wWe(),cdr=hz(),fdr=oT(),hdr=Sm(),e0=Em(),ddr=vYe(),gYe=G2(),mYe=Object.defineProperty,yYe=Object.defineProperties,rk;xYe.exports=rk=function(e,t){if(!(this instanceof rk))throw new TypeError("Constructor requires 'new'");yYe(this,{__list__:e0("w",hdr(e)),__context__:e0("w",t),__nextIndex__:e0("w",0)}),t&&(fdr(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete rk.prototype.constructor;yYe(rk.prototype,cdr({_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__){mYe(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__&&udr.call(this.__redo__),this.__nextIndex__=0})})));mYe(rk.prototype,gYe.iterator,e0(function(){return this}))});var AYe=W((Nei,TYe)=>{"use strict";var bYe=fz(),_Ye=ete(),ute=Em(),pdr=G2(),cte=lte(),wYe=Object.defineProperty,sT;sT=TYe.exports=function(e,t){if(!(this instanceof sT))throw new TypeError("Constructor requires 'new'");cte.call(this,e),t?_Ye.call(t,"key+value")?t="key+value":_Ye.call(t,"key")?t="key":t="value":t="value",wYe(this,"__kind__",ute("",t))};bYe&&bYe(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})});wYe(sT.prototype,pdr.toStringTag,ute("c","Array Iterator"))});var kYe=W((Uei,EYe)=>{"use strict";var MYe=fz(),gz=Em(),vdr=G2(),fte=lte(),SYe=Object.defineProperty,lT;lT=EYe.exports=function(e){if(!(this instanceof lT))throw new TypeError("Constructor requires 'new'");e=String(e),fte.call(this,e),SYe(this,"__length__",gz("",e.length))};MYe&&MYe(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)})});SYe(lT.prototype,vdr.toStringTag,gz("c","String Iterator"))});var DYe=W((Vei,CYe)=>{"use strict";var gdr=JE(),mdr=V2(),ydr=QE(),xdr=G2().iterator,bdr=Array.isArray;CYe.exports=function(e){return mdr(e)?bdr(e)||ydr(e)||gdr(e)?!0:typeof e[xdr]=="function":!1}});var LYe=W((Gei,FYe)=>{"use strict";var _dr=DYe();FYe.exports=function(e){if(!_dr(e))throw new TypeError(e+" is not iterable");return e}});var hte=W((Hei,RYe)=>{"use strict";var wdr=JE(),Tdr=QE(),PYe=AYe(),Adr=kYe(),Mdr=LYe(),IYe=G2().iterator;RYe.exports=function(e){return typeof Mdr(e)[IYe]=="function"?e[IYe]():wdr(e)?new PYe(e):Tdr(e)?new Adr(e):new PYe(e)}});var BYe=W((jei,zYe)=>{"use strict";var Sdr=JE(),Edr=oT(),kdr=QE(),Cdr=hte(),Ddr=Array.isArray,dte=Function.prototype.call,Fdr=Array.prototype.some;zYe.exports=function(e,t){var r,i=arguments[2],n,a,o,s,l,u,c;if(Ddr(e)||Sdr(e)?r="array":kdr(e)?r="string":e=Cdr(e),Edr(t),a=function(){o=!0},r==="array"){Fdr.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 OYe=W(($ei,qYe)=>{"use strict";qYe.exports=(function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"})()});var VYe=W((Wei,UYe)=>{"use strict";var Ldr=V2(),yz=fz(),mz=v$e(),Pdr=Sm(),Idr=m$e(),km=Em(),Rdr=hte(),zdr=BYe(),Bdr=G2().toStringTag,NYe=OYe(),qdr=Array.isArray,vte=Object.defineProperty,pte=Object.prototype.hasOwnProperty,Odr=Object.getPrototypeOf,H2;UYe.exports=H2=function(){var e=arguments[0],t;if(!(this instanceof H2))throw new TypeError("Constructor requires 'new'");return t=NYe&&yz&&WeakMap!==H2?yz(new WeakMap,Odr(this)):this,Ldr(e)&&(qdr(e)||(e=Rdr(e))),vte(t,"__weakMapData__",km("c","$weakMap$"+Idr())),e&&zdr(e,function(r){Pdr(r),t.set(r[0],r[1])}),t};NYe&&(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,Bdr,km("c","WeakMap"))});var gte=W((Yei,GYe)=>{"use strict";GYe.exports=r$e()()?WeakMap:VYe()});var jYe=W((Xei,HYe)=>{"use strict";HYe.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(),Ndr=U_(),yte=Hu(),Udr=K1(),Vdr=V_(),$Ye=Jje(),Gdr=e$e(),{float32:Hdr,fract32:mte}=rz(),jdr=gte(),WYe=K4(),$dr=jYe(),Wdr=` precision highp float; attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; @@ -2248,7 +2248,7 @@ void main() { fragColor = color / 255.; } -`,Hdr=` +`,Ydr=` 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; } -`,jdr=` +`,Xdr=` precision highp float; attribute vec2 position, positionFract; @@ -2294,14 +2294,14 @@ void main() { fragColor = color / 255.; fragColor.a *= opacity; } -`,$dr=` +`,Zdr=` precision highp float; varying vec4 fragColor; void main() { gl_FragColor = fragColor; } -`,Wdr=` +`,Kdr=` precision highp float; attribute vec2 aCoord, bCoord, nextCoord, prevCoord; @@ -2505,7 +2505,7 @@ void main() { } } } -`,Ydr=` +`,Jdr=` 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; } -`;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:` +`;YYe.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 jdr;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:Wdr,frag:Ydr,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:Kdr,frag:Jdr,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:Xdr,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}};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=Udr(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,M=o.count;_A-T),b=[],M=0,x=o.hole!=null?o.hole[0]:null;if(x!=null){let A=$dr(_,T=>T>=x);_=_.slice(0,A),_.push(x)}for(let A=0;A<_.length;A++){let T=m.slice(M*2,_[A]*2).concat(x?m.slice(x*2):[]),y=(o.hole||[]).map(S=>S-x+(_[A]-M)),E=$Ye(T,y);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 QYe=W((Kei,JYe)=>{"use strict";var Qdr=U_(),epr=$E(),tpr=Nee(),rpr=K1(),XYe=Hu(),ZYe=V_(),{float32:ipr,fract32:bte}=rz();JYe.exports=npr;var KYe=[[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 npr(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:KYe}),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: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[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:KYe.length}),XYe(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((M,x)=>{let A=c[x];if(M)typeof M=="function"?M={after:M}:typeof M[0]=="number"&&(M={positions:M});else return A;return M=rpr(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||(c[x]=A={id:x,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},M=XYe({},u,M)),tpr(A,M,[{lineWidth:T=>+T*.5,capSize:T=>+T*.5,opacity:parseFloat,errors:T=>(T=ZYe(T),w+=T.length,T),positions:(T,y)=>(T=ZYe(T,"float64"),y.count=Math.floor(T.length/2),y.bounds=Qdr(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 S=y.bounds;return T||(T=S),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 M=c.reduce((y,E,S)=>y+(E?E.count:0),0),x=new Float64Array(M*2),A=new Uint8Array(M*4),T=new Float32Array(M*4);c.forEach((y,E)=>{if(!y)return;let{positions:S,count:C,offset:k,color:D,errors:F}=y;C&&(A.set(D,k*4),T.set(F,k*4),x.set(S,k*2))});var _=ipr(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 rXe=W((Jei,tXe)=>{var eXe=/[\'\"]/;tXe.exports=function(t){return t?(eXe.test(t.charAt(0))&&(t=t.substr(1)),eXe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var _te=W((Qei,apr)=>{apr.exports=["inherit","initial","unset"]});var wte=W((eti,opr)=>{opr.exports=["caption","icon","menu","message-box","small-caption","status-bar"]});var Tte=W((tti,spr)=>{spr.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]});var Ate=W((rti,lpr)=>{lpr.exports=["normal","italic","oblique"]});var Mte=W((iti,upr)=>{upr.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]});var oXe=W((nti,aXe)=>{"use strict";function iXe(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 nXe(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)?nXe(e,t):iXe(e,t)}Ste.parse=iXe;Ste.stringify=nXe;aXe.exports=Ste});var uXe=W((ati,lXe)=>{"use strict";var sXe=oXe();lXe.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=sXe.parse(t,{flat:!0,brackets:i.ignore}),a=n[0],o=a.split(r);if(i.escape){for(var s=[],l=0;l{cpr.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]});var Ete=W((sti,fXe)=>{"use strict";var fpr=cXe();fXe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||fpr.indexOf(t)!==-1}}});var vXe=W((lti,pXe)=>{"use strict";var hpr=rXe(),dpr=_te(),ppr=wte(),vpr=Tte(),gpr=Ate(),mpr=Mte(),kte=uXe(),ypr=Ete().isSize;pXe.exports=dXe;var ik=dXe.cache={};function dXe(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(ppr.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(dpr.indexOf(i)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=i}),ik[e]=t;if(gpr.indexOf(i)!==-1){t.style=i;continue}if(i==="normal"||i==="small-caps"){t.variant=i;continue}if(mpr.indexOf(i)!==-1){t.stretch=i;continue}if(vpr.indexOf(i)!==-1){t.weight=i;continue}if(ypr(i)){var n=kte(i,"/");if(t.size=n[0],n[1]!=null?t.lineHeight=hXe(n[1]):r[0]==="/"&&(r.shift(),t.lineHeight=hXe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=kte(r.join(" "),/\s*,\s*/).map(hpr),ik[e]=t}throw new Error("Unknown or unsupported font token: "+i)}throw new Error("Missing required font-size.")}function hXe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var Dte=W((uti,gXe)=>{"use strict";var xpr=K1(),bpr=Ete().isSize,_pr=ak(_te()),wpr=ak(wte()),Tpr=ak(Tte()),Apr=ak(Ate()),Mpr=ak(Mte()),Spr={normal:1,"small-caps":1},Epr={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"};gXe.exports=function(t){if(t=xpr(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,wpr),t.system;if(nk(t.style,Apr),nk(t.variant,Spr),nk(t.weight,Tpr),nk(t.stretch,Mpr),t.size==null&&(t.size=Cte.size),typeof t.size=="number"&&(t.size+="px"),!bpr)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 Epr[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]&&!_pr[e])throw Error("Unknown keyword `"+e+"`");return e}function ak(e){for(var t={},r=0;r{"use strict";mXe.exports={parse:vXe(),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 S: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,Uv=10241,$c=9728,c0=9729,Wf=9984,wh=9985,Yf=9986,f0=9987,Vv=33170,Th=4352,xp=4353,h0=4354,td=34046,rd=3317,Gv=37440,Hv=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"),jv=ku("ImageBitmap"),bg=ku("HTMLImageElement"),ny=ku("HTMLVideoElement"),Bx=Object.keys(Ve).concat([id,Mh,d0,jv,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 $v(Be){return Array.isArray(Be)&&(Be.length===0||typeof Be[0]=="number")}function Wv(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)===jv}function Yv(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:$v(Be)||Wv(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 Xv(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(Gv,wt.flipY),Be.pixelStorei(Hv,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($v(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,Xv(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(Yv(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(Wv(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,Uv,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(Vv,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},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:` +`),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",i1="sample.coverage",Ox="stencil.enable",n1="stencil.mask",Kc="stencil.func",py="stencil.opFront",a1="stencil.opBack",Lg="scissor.enable",o1="scissor.box",Lh="viewport",Pg="profile",Bp="framebuffer",qp="vert",fd="frag",Op="elements",hd="primitive",s1="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,a1,i1,Lh,o1,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(i1,"sampleCoverage",[1,!1]),ci(Ox,Gr),hi(n1,"stencilMask",-1),hi(Kc,"stencilFunc",[De,0,-1]),hi(py,"stencilOpSeparate",[z,ye,ye,ye]),hi(a1,"stencilOpSeparate",[U,ye,ye,ye]),ci(Lg,on),hi(o1,"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(o1)}}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(o1));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,s1,_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 TXe=W((fti,wXe)=>{"use strict";var kpr=K1();wXe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},bXe(t)?t={container:t}:Cpr(t)?t={container:t}:Dpr(t)?t={gl:t}:t=kpr(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}bXe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=_Xe(),t.container.appendChild(t.canvas),xXe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=_Xe(),t.container.appendChild(t.canvas),xXe(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 xXe(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 bXe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function Cpr(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function Dpr(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function _Xe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var MXe=W((hti,AXe)=>{"use strict";var Fpr=Dte(),Lpr=[32,126];AXe.exports=Ppr;function Ppr(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||Lpr;if(i&&typeof i!="string"&&(i=Fpr(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 SXe(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=SXe;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>>>SXe(e)+1}});var CXe=W((pti,kXe)=>{"use strict";function EXe(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 Ipr(e|0,t);break;case"object":if(typeof e.length=="number")return EXe(e,t,0);break}return[]}kXe.exports=Rpr});var HXe=W(vo=>{"use strict";var j2=Rte(),ff=CXe(),DXe=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 zpr=typeof Uint8ClampedArray!="undefined",Bpr=typeof BigUint64Array!="undefined",qpr=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(DXe.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 FXe(e){if(e){var t=e.length||e.byteLength,r=j2.log2(t);bz[r].push(e)}}function Opr(e){FXe(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=Opr;vo.freeArrayBuffer=FXe;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 LXe(t);case"uint32":return PXe(t);case"int8":return IXe(t);case"int16":return RXe(t);case"int32":return zXe(t);case"float":case"float32":return BXe(t);case"double":case"float64":return qXe(t);case"uint8_clamped":return OXe(t);case"bigint64":return UXe(t);case"biguint64":return NXe(t);case"buffer":return GXe(t);case"data":case"dataview":return VXe(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 LXe(e){return new Uint16Array(t0(2*e),0,e)}vo.mallocUint16=LXe;function PXe(e){return new Uint32Array(t0(4*e),0,e)}vo.mallocUint32=PXe;function IXe(e){return new Int8Array(t0(e),0,e)}vo.mallocInt8=IXe;function RXe(e){return new Int16Array(t0(2*e),0,e)}vo.mallocInt16=RXe;function zXe(e){return new Int32Array(t0(4*e),0,e)}vo.mallocInt32=zXe;function BXe(e){return new Float32Array(t0(4*e),0,e)}vo.mallocFloat32=vo.mallocFloat=BXe;function qXe(e){return new Float64Array(t0(8*e),0,e)}vo.mallocFloat64=vo.mallocDouble=qXe;function OXe(e){return zpr?new Uint8ClampedArray(t0(e),0,e):zte(e)}vo.mallocUint8Clamped=OXe;function NXe(e){return Bpr?new BigUint64Array(t0(8*e),0,e):null}vo.mallocBigUint64=NXe;function UXe(e){return qpr?new BigInt64Array(t0(8*e),0,e):null}vo.mallocBigInt64=UXe;function VXe(e){return new DataView(t0(e),0,e)}vo.mallocDataView=VXe;function GXe(e){e=j2.nextPow2(e);var t=j2.log2(e),r=_z[t];return r.length>0?r.pop():new DXe(e)}vo.mallocBuffer=GXe;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 $Xe=W((gti,jXe)=>{"use strict";var Npr=Object.prototype.toString;jXe.exports=function(e){var t;return Npr.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var Bte=W((mti,WXe)=>{WXe.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 ZXe=W((yti,XXe)=>{"use strict";var Upr=Bte();XXe.exports=YXe;var sk=96;function qte(e,t){var r=Upr(getComputedStyle(e).getPropertyValue(t));return r[0]*YXe(r[1],e)}function Vpr(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 YXe(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 Vpr(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 QXe=W((xti,JXe)=>{"use strict";JXe.exports=Az;var Gpr=Az.canvas=document.createElement("canvas"),wz=Gpr.getContext("2d"),KXe=Tz([32,126]);Az.createPairs=Tz;Az.ascii=KXe;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=KXe),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";rZe.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 eZe($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=tZe(u.getImageData(0,0,f,f))),c.overshoot){u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.overshoot,0,0);var M=tZe(u.getImageData(0,0,f,f));p.overshoot=M-g}for(var x in p)p[x]/=i;return p.em=i,$2.cache[r]=p,eZe(p,s)}function eZe(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 sZe=W((_ti,oZe)=>{"use strict";var uT=yXe(),Hpr=K1(),jpr=Pte(),$pr=TXe(),Wpr=gte(),Ote=$E(),Ypr=MXe(),W2=HXe(),Xpr=K4(),Zpr=$Xe(),Kpr=Bte(),Jpr=ZXe(),Qpr=QXe(),evr=Hu(),tvr=iZe(),rvr=V_(),ivr=Rte(),nZe=ivr.nextPow2,aZe=new Wpr,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){nvr(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=$pr(t),this.shader=aZe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||jpr({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(),aZe.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:` 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=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} + }`}),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=Hpr(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=Xpr(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=rvr(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=Kpr(K.size),j=Math.round(H[0]*Jpr(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:tvr(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 nvr(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}oZe.exports=Zo});var Ez=W((wti,lZe)=>{"use strict";var avr=XJ(),ovr=Pte();lZe.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=ovr({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||avr({container:n._glcontainer.node()}),a}});var Ute=W((Nte,pZe)=>{"use strict";var uZe=Uee(),cZe=xte(),svr=QYe(),fZe=sZe(),hZe=tt(),{rgbaString:lvr}=ti(),uvr=_1().selectMode,cvr=Ez(),fvr=Wo(),hvr=z$(),dvr=qee().styleTextSelection,dZe={};function pvr(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;let p=(t._padStart||0)*i,d=(t._padEnd||0)*i,v=(r._padStart||0)*i,m=(r._padEnd||0)*i;return[s+t.domain[0]*f+p,l+r.domain[0]*h+m,a-u-(1-t.domain[1])*f-d,o-c-(1-r.domain[1])*h-v]}var Nte=pZe.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=cvr(t,["ANGLE_instanced_arrays","OES_element_index_uint"],dZe);if(!c){a.init();return}var f=a.count,h=n._glcanvas.data()[0].regl;if(hvr(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=svr(h)),a.line2d===!0&&(a.line2d=cZe(h)),a.scatter2d===!0&&(a.scatter2d=uZe(h)),a.fill2d===!0&&(a.fill2d=cZe(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=hZe.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,M=L.t,x=M.index,A=b._length,T=M.x,y=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";var vZe=Cje();vZe.plot=Ute();gZe.exports=vZe});var xZe=W((Ati,yZe)=>{"use strict";yZe.exports=mZe()});var Vte=W((Mti,TZe)=>{"use strict";var vvr=Ws(),wZe=Fo(),bZe=Ts().axisHoverFormat,{hovertemplateAttrs:gvr,templatefallbackAttrs:mvr}=Wa(),lk=UE(),yvr=(Zl(),Pt(Xl)).idRegex,xvr=Ra().templatedArray,cT=an().extendFlat,Cm=vvr.marker,bvr=Cm.line,_vr=cT(wZe("marker.line",{editTypeOverride:"calc"}),{width:cT({},bvr.width,{editType:"calc"}),editType:"calc"}),kz=cT(wZe("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:_vr,editType:"calc"});kz.color.editType=kz.cmin.editType=kz.cmax.editType="style";function _Ze(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:yvr[e],editType:"plot"}}}TZe.exports={dimensions:xvr("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:gvr(),hovertemplatefallback:mvr(),xhoverformat:bZe("x"),yhoverformat:bZe("y"),marker:kz,xaxes:_Ze("x"),yaxes:_Ze("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((Sti,AZe)=>{"use strict";AZe.exports=function(e,t,r,i){i||(i=1/0);var n,a;for(n=0;n{"use strict";var Gte=tt(),wvr=tf(),MZe=Vte(),Tvr=Wo(),Avr=Dd(),Mvr=Cz(),Svr=jR().isOpenSymbol;SZe.exports=function(t,r,i,n){function a(p,d){return Gte.coerce(t,r,MZe,p,d)}var o=wvr(t,r,{name:"dimensions",handleItemDefaults:Evr}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=Mvr(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat"),Avr(t,r,i,n,a,{noAngleRef:!0,noLineDash:!0,noStandOff:!0});var f=Svr(r.marker.symbol),h=Tvr.isBubble(r);a("marker.line.width",f||h?1:0),kvr(t,r,n,a),Gte.coerceSelectionMarkerOpacity(r,a)};function Evr(e,t){function r(n,a){return Gte.coerce(e,t,MZe.dimensions,n,a)}r("label");var i=r("values");i&&i.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function kvr(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 kZe=tt();CZe.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]=kZe.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||kZe.extendFlat(l,o),l}});var PZe=W((Cti,LZe)=>{"use strict";var Hte=tt(),Dz=Ls(),Cvr=Ld().calcMarkerSize,Dvr=Ld().calcAxisExpansion,Fvr=Fd(),FZe=j_().markerSelection,Lvr=j_().markerStyle,Pvr=DZe(),Ivr=(ra(),Pt(ia)).BADNUM,Rvr=(N_(),Pt(O_)).TOO_MANY_POINTS;LZe.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 M=_.makeCalcdata({v:b.values,vcalendar:r.calendar},"v"),x=0;xRvr,g;for(m?g=a.sizeAvg||Math.max(a.size,3):g=Cvr(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(IZe)});var BZe=W((Dti,Pz)=>{var zvr=RZe(),Dm=window,Fz=["moz","webkit"],hT="AnimationFrame",dT=Dm["request"+hT],ck=Dm["cancel"+hT]||Dm["cancelRequest"+hT];for(fT=0;!dT&&fT{qZe.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 Bvr=Uee(),qvr=K1(),Ovr=U_(),NZe=BZe(),Nvr=OZe(),$te=K4(),Uvr=V_();VZe.exports=X2;function X2(e,t){if(!(this instanceof X2))return new X2(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=Bvr(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=NZe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,NZe(()=>{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 Vvr(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 UZe(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 jZe=W((Pti,HZe)=>{"use strict";var Gvr=GZe(),Wte=tt(),Rz=Ls(),Hvr=_1().selectMode;HZe.exports=function(t,r,i){if(i.length)for(var n=0;n(X||0)/K;for(v=0;v-1,C=Hvr(c)||!!n.selectedpoints||S,k=!0;if(C){var D=n._length;if(n.selectedpoints){o.selectBatch=n.selectedpoints;var F=n.selectedpoints,P={};for(p=0;p{"use strict";$Ze.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 WZe=Yte(),$vr=HR().calcHover,YZe=Yi().getFromId,Wvr=an().extendFlat;function Yvr(e,t,r,i,n){n||(n={});var a=(i||"").charAt(0)==="x",o=(i||"").charAt(0)==="y",s=XZe(e,t,r);if((a||o)&&n.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=n.gd,c=Wvr({},e),f=0;f{"use strict";var tKe=tt(),JZe=tKe.pushUnique,QZe=Wo(),eKe=Yte();rKe.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=!QZe.hasMarkers(n)&&!QZe.hasText(n);if(n.visible!==!0||f)return c;var h=eKe.getDimIndex(n,l),p=eKe.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 nKe=tt(),Xvr=Fd(),Zvr=j_().markerStyle;aKe.exports=function(t,r){var i=r.trace,n=t._fullLayout._splomScenes[i.uid];if(n){Xvr(t,i),nKe.extendFlat(n.matrixOptions,Zvr(t,i));var a=nKe.extendFlat({},n.matrixOptions,n.viewOpts);n.matrix.update(a,null)}}});var lKe=W((qti,sKe)=>{"use strict";var Kvr=xi(),Jvr=DW();sKe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:Vte(),supplyDefaults:EZe(),colorbar:Cc(),calc:PZe(),plot:jZe(),hoverPoints:KZe().hoverPoints,selectPoints:iKe(),editStyle:oKe(),meta:{}};Kvr.register(Jvr)});var pKe=W((Oti,dKe)=>{"use strict";var Qvr=xte(),e1r=xi(),{rgbaString:t1r}=ti(),r1r=Ez(),i1r=Mc().getModuleCalcData,Z2=xl(),uKe=Ls().getFromId,cKe=Yi().shouldShowZeroLine,fKe="splom",hKe={};function n1r(e){var t=e._fullLayout,r=e1r.getModule(fKe),i=i1r(e.calcdata,r)[0],n=r1r(e,["ANGLE_instanced_arrays","OES_element_index_uint"],hKe);n&&(t._hasOnlyLargeSploms&&Xte(e),r.plot(e,{},i))}function a1r(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&Xte(e);for(var i=0;i{"use strict";var vKe=lKe();vKe.basePlotModule=pKe(),gKe.exports=vKe});var xKe=W((Uti,yKe)=>{"use strict";yKe.exports=mKe()});var Jte=W((Vti,bKe)=>{"use strict";var u1r=Fo(),Zte=ac(),Kte=jo(),c1r=ds().attributes,zz=an().extendFlat,f1r=Ra().templatedArray;bKe.exports={domain:c1r({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:f1r("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"},u1r("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:()=>b1r,axisTitleOffset:()=>x1r,bar:()=>_1r,blockLineCount:()=>m1r,canvasPixelRatio:()=>g1r,cn:()=>w1r,id:()=>T1r,layers:()=>y1r,maxDimensionCount:()=>h1r,overdrag:()=>d1r,tickDistance:()=>v1r,verticalPadding:()=>p1r});var h1r,d1r,p1r,v1r,g1r,m1r,y1r,x1r,b1r,_1r,w1r,T1r,hk=Ci(()=>{"use strict";h1r=60,d1r=45,p1r=2,v1r=50,g1r=1,m1r=5e3,y1r=["contextLineLayer","focusLineLayer","pickLineLayer"],x1r=28,b1r=10,_1r={width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},w1r={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"},T1r={filterBarPattern:"filter-bar-pattern"}});var eg=W((Gti,wKe)=>{"use strict";var A1r=gA();function _Ke(e){return[e]}wKe.exports={keyFun:function(e){return e.key},repeat:_Ke,descend:A1r,wrap:_Ke,unwrap:function(e){return e[0]}}});var tre=W((Hti,PKe)=>{"use strict";var Gl=(hk(),Pt(fk)),Ev=gi(),M1r=eg().keyFun,Bz=eg().repeat,pT=tt().sorterAsc,S1r=tt().strTranslate,TKe=Gl.bar.snapRatio;function AKe(e,t){return e*(1-TKe)+t*TKe}var MKe=Gl.bar.snapClose;function E1r(e,t){return e*(1-MKe)+t*MKe}function Oz(e,t,r,i){if(k1r(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 C1r(e){e.attr("x",-Gl.bar.captureWidth/2).attr("width",Gl.bar.captureWidth)}function D1r(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function F1r(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=SKe(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 EKe(){Ev.select(document.body).style("cursor",null)}function ere(e){e.attr("stroke-dasharray",F1r)}function qz(e,t){var r=Ev.select(e).selectAll(".highlight, .highlight-shadow"),i=t?r.transition().duration(Gl.bar.snapDuration).each("end",t):r;ere(i)}function kKe(e,t){var r=e.brush,i=r.filterSpecified,n=NaN,a={},o;if(i){var s=e.height,l=r.filter.getConsolidated(),u=SKe(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 P1r(e,t){Ev.event.sourceEvent.stopPropagation();var r=t.height-Ev.mouse(e)[1]-2*Gl.verticalPadding,i=t.unitToPaddedPx.invert(r),n=t.brush,a=kKe(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 CKe(e,t){Ev.event.sourceEvent.stopPropagation();var r=t.height-Ev.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 I1r(e,t){var r=t.brush,i=r.filter,n=r.svgBrush;n._dragging||(DKe(e,t),CKe(e,t),t.brush.svgBrush.wasDragged=!1),n._dragging=!1;var a=Ev.event;a.sourceEvent.stopPropagation();var o=n.grabbingBar;if(n.grabbingBar=!1,n.grabLocation=void 0,t.parent.inBrushDrag=!1,EKe(),!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 DKe(e,t){var r=t.height-Ev.mouse(e)[1]-2*Gl.verticalPadding,i=kKe(t,r),n="crosshair";i.clickableOrdinalRange?n="pointer":i.region&&(n=i.region+"-resize"),Ev.select(document.body).style("cursor",n)}function R1r(e){e.on("mousemove",function(t){Ev.event.preventDefault(),t.parent.inBrushDrag||DKe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||EKe()}).call(Ev.behavior.drag().on("dragstart",function(t){P1r(this,t)}).on("drag",function(t){CKe(this,t)}).on("dragend",function(t){I1r(this,t)}))}function FKe(e,t){return e[0]-t[0]}function z1r(e,t,r){var i=r._context.staticPlot,n=e.selectAll(".background").data(Bz);n.enter().append("rect").classed("background",!0).call(C1r).call(D1r).style("pointer-events",i?"none":"auto").attr("transform",S1r(0,Gl.verticalPadding)),n.call(R1r).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 B1r(e,t,r){var i=e.selectAll("."+Gl.cn.axisBrush).data(Bz,M1r);i.enter().append("g").classed(Gl.cn.axisBrush,!0),z1r(i,t,r)}function q1r(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 O1r(e){return function(r){var i=r.brush,n=q1r(i),a=n.slice();i.filter.set(a),e()}}function LKe(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 N1r(){var e=[],t,r;return{set:function(i){e=i.map(function(n){return n.slice().sort(pT)}).sort(FKe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=LKe(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 U1r(e,t,r,i,n,a){var o=N1r();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:i,brushCallback:O1r(n),brushEndCallback:a}}}function V1r(e,t){if(Array.isArray(e[0])?(e=e.map(function(i){return i.sort(pT)}),t.multiselect?e=LKe(e.sort(FKe)):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]}PKe.exports={makeBrush:U1r,ensureAxisBrush:B1r,cleanRanges:V1r}});var zKe=W((jti,RKe)=>{"use strict";var K2=tt(),G1r=Sc().hasColorscale,H1r=Bu(),j1r=ds().defaults,$1r=tf(),W1r=Yi(),IKe=Jte(),Y1r=tre(),rre=(hk(),Pt(fk)).maxDimensionCount,X1r=Cz();function Z1r(e,t,r,i,n){var a=n("line.color",r);if(G1r(e,"line")&&K2.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),H1r(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function K1r(e,t,r,i){function n(u,c){return K2.coerce(e,t,IKe.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},W1r.setConvert(t._ax,i.layout),n("multiselect");var l=n("constraintrange");l&&(t.constraintrange=Y1r.cleanRanges(l,t))}}RKe.exports=function(t,r,i,n){function a(c,f){return K2.coerce(t,r,IKe,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=$1r(t,r,{name:"dimensions",layout:n,handleItemDefaults:K1r}),l=Z1r(t,r,i,n,a);j1r(r,n,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),X1r(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 qKe=W(($ti,BKe)=>{"use strict";var J1r=tt().isArrayOrTypedArray,ire=es(),Q1r=eg().wrap;BKe.exports=function(t,r){var i,n;return ire.hasColorscale(r,"line")&&J1r(r.line.color)?(i=r.line.color,n=ire.extractOpts(r.line).colorscale,ire.calc(t,r,{vals:i,containerStr:"line",cLetter:"c"})):(i=egr(r._length),n=[[0,r.line.color],[1,r.line.color]]),Q1r({lineColor:i,cscale:n})};function egr(e){for(var t=new Array(e),r=0;r{"use strict";var tgr=tt().isTypedArray;Nz.convertTypedArray=function(e){return tgr(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 YKe=W((Yti,WKe)=>{"use strict";var rgr=["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(` +`),igr=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),dk=(hk(),Pt(fk)).maxDimensionCount,HKe=tt(),OKe=1e-6,Uz=2048,ngr=new Uint8Array(4),NKe=new Uint8Array(4),UKe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function agr(e){e.read({x:0,y:0,width:1,height:1,data:ngr})}function jKe(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 ogr(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],jKe(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 ugr(e,t,r){for(var i=new Array(e*(dk+4)),n=0,a=0;aP&&(P=T[C].dim1.canvasX,D=C);S===0&&jKe(n,0,0,u.canvasWidth,u.canvasHeight);var R=_(r);for(C=0;C{"use strict";var fc=gi(),Fm=tt(),ore=Fm.isArrayOrTypedArray,eJe=Fm.numberFormat,tJe=ti(),rJe=Yi(),pgr=Fm.strRotate,tg=Fm.strTranslate,vgr=ao(),Vz=Qi(),XKe=es(),ure=eg(),Qd=ure.keyFun,rg=ure.repeat,iJe=ure.unwrap,vT=nre(),Oa=(hk(),Pt(fk)),nJe=tre(),ggr=YKe();function ZKe(e,t,r){return Fm.aggNums(e,null,t,r)}function aJe(e,t){return cre(ZKe(Math.min,e,t),ZKe(Math.max,e,t))}function Gz(e){var t=e.range;return t?cre(t[0],t[1]):aJe(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 mgr(e,t){return t?function(r,i){var n=t[i];return n==null?e(r):n}:e}function ygr(e,t,r,i,n){var a=Gz(r);return i?fc.scale.ordinal().domain(i.map(mgr(eJe(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 xgr(e,t){return fc.scale.linear().range([t,e-t])}function bgr(e,t){return fc.scale.linear().domain(Gz(e)).range([t,1-t])}function _gr(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 wgr(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){let[o,s,l]=tJe.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 Tgr(e,t,r){var i=iJe(t),n=i.trace,a=vT.convertTypedArray(i.lineColor),o=n.line,s={color:tJe.normalize(n.unselected.line.color),opacity:n.unselected.line.opacity},l=XKe.extractOpts(o),u=l.reversescale?XKe.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])),M=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:wgr(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:M,canvasWidth:x*Oa.canvasPixelRatio+2*w.canvasOverdrag,canvasHeight:A*Oa.canvasPixelRatio,width:x,height:A,canvasPixelRatio:Oa.canvasPixelRatio}}function Agr(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=xgr(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=bgr(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))},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 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(eJe(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=ggr(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:oJe(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 M=_.selectAll("."+Oa.cn.axisHeading).data(rg,Qd);M.enter().append("g").classed(Oa.cn.axisHeading,!0);var x=M.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),vgr.convertToTspans(k,t)}).attr("transform",function(C){var k=JKe(C.model.labelAngle,C.model.labelSide),D=Oa.axisTitleOffset;return(k.dir>0?"":tg(0,2*D+C.model.height))+pgr(k.degrees)+tg(-D*k.dx,-D*k.dy)}).attr("text-anchor",function(C){var k=JKe(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(KKe),y.text(function(C){return QKe(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 S=E.selectAll("."+Oa.cn.axisExtentBottomText).data(rg,Qd);S.enter().append("text").classed(Oa.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(KKe),S.text(function(C){return QKe(C,!1)}).each(function(C){Vz.font(fc.select(this),C.model.rangeFont)}),nJe.ensureAxisBrush(_,c,t)}});var hre=W((fre,hJe)=>{"use strict";var Egr=lJe(),kgr=Ez(),uJe=nre().isVisible,fJe={};function cJe(e,t,r){var i=t.indexOf(r),n=e.indexOf(i);return n===-1&&(n+=t.length),n}function Cgr(e,t){return function(i,n){return cJe(e,t,i)-cJe(e,t,n)}}var fre=hJe.exports=function(t,r){var i=t._fullLayout,n=kgr(t,[],fJe);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 M=t._fullData[s[p]].dimensions[d];g.length?(g.length===1&&(g=g[0]),m.constraintrange=g,M.constraintrange=g.slice(),g=[g]):(delete m.constraintrange,delete M.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=Cgr(d,o[p].filter(uJe));a[p].sort(v),o[p].filter(function(m){return!uJe(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]]])};Egr(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=fJe});var pJe=W(pk=>{"use strict";var dJe=gi(),Dgr=Mc().getModuleCalcData,Fgr=hre(),Lgr=(md(),Pt(gd));pk.name="parcoords";pk.plot=function(e){var t=Dgr(e.calcdata,"parcoords")[0];t.length&&Fgr(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=dJe.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:Lgr.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}i.each(n),window.setTimeout(function(){dJe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var gJe=W((Kti,vJe)=>{"use strict";vJe.exports={attributes:Jte(),supplyDefaults:zKe(),calc:qKe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:pJe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var xJe=W((Jti,yJe)=>{"use strict";var mJe=gJe();mJe.plot=hre();yJe.exports=mJe});var _Je=W((Qti,bJe)=>{"use strict";bJe.exports=xJe()});var dre=W((eri,SJe)=>{"use strict";var TJe=an().extendFlat,Pgr=Ja(),wJe=jo(),Igr=Fo(),{hovertemplateAttrs:AJe,templatefallbackAttrs:MJe}=Wa(),Rgr=ds().attributes,zgr=TJe({editType:"calc"},Igr("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:AJe({editType:"plot",arrayOk:!1},{keys:["count","probability"]}),hovertemplatefallback:MJe({editType:"plot"})});SJe.exports={domain:Rgr({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:TJe({},Pgr.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:AJe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),hovertemplatefallback:MJe({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:wJe({editType:"calc"}),tickfont:wJe({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:zgr,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 CJe=W((tri,kJe)=>{"use strict";var gT=tt(),Bgr=Sc().hasColorscale,qgr=Bu(),Ogr=ds().defaults,Ngr=tf(),EJe=dre(),Ugr=Cz(),Vgr=Tc().isTypedArraySpec;function Ggr(e,t,r,i,n){n("line.shape"),n("line.hovertemplate"),n("line.hovertemplatefallback");var a=n("line.color",i.colorway[0]);if(Bgr(e,"line")&&gT.isArrayOrTypedArray(a)){if(a.length)return n("line.colorscale"),qgr(e,t,i,n,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function Hgr(e,t){function r(u,c){return gT.coerce(e,t,EJe.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||Vgr(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")}}kJe.exports=function(t,r,i,n){function a(u,c){return gT.coerce(t,r,EJe,u,c)}var o=Ngr(t,r,{name:"dimensions",handleItemDefaults:Hgr}),s=Ggr(t,r,i,n,a);Ogr(r,n,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),Ugr(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 FJe=W((rri,DJe)=>{"use strict";var jgr=eg().wrap,$gr=Sc().hasColorscale,Wgr=rf(),Ygr=nG(),Xgr=Qi(),vk=tt(),Zgr=hn();DJe.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=Ygr(y.values);for(var S=!0,C=0;C=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var NJe=W((iri,OJe)=>{"use strict";var Na=gi(),smr=(S_(),Pt(M_)).interpolateNumber,lmr=qF(),pre=ti(),yk=Is(),J2=tt(),gk=J2.strTranslate,LJe=Qi(),umr=ao();function cmr(e,t,r,i){var n=t._context.staticPlot,a=e.map(Smr.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",hmr).on("mouseout",dmr).on("click",pmr),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}),IJe(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){LJe.font(Na.select(this),w.parcatsViewModel.categorylabelfont),umr.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){LJe.font(Na.select(this),w.parcatsViewModel.labelfont)}),d.selectAll("rect.bandrect").on("mouseover",_mr).on("mouseout",wmr),d.exit().remove(),p.call(Na.behavior.drag().origin(function(w){return{x:w.x,y:0}}).on("dragstart",Tmr).on("drag",Amr).on("dragend",Mmr)),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()}OJe.exports=function(e,t,r,i){cmr(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 hmr(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:M,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 vmr(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}function IJe(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",1).attr("stroke-opacity",1)}function gmr(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 mmr(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)})}),vmr(Na.select(e.parentNode))}function ymr(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),gmr(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 RJe(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 xmr(e,t,r){var i=[];return Na.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var n=this;i.push(RJe(e,t,n))}),i}function bmr(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,M=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+"): "+M.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 _mr(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"?(ymr(o),_re(o,"plotly_hover",Na.event)):(mmr(o),bre(o,"plotly_hover",Na.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=RJe(r,n,o):a==="color"?s=bmr(r,n,o):a==="dimension"&&(s=xmr(r,n,o)),s&&yk.loneHover(s,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}}function wmr(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(mre(t.pathSelection),IJe(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 Tmr(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),qJe(e.parcatsViewModel),BJe(e.parcatsViewModel)}}function Mmr(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Na.select(this).selectAll("text").attr("font-weight","normal");var t={},r=zJe(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(){qJe(e.parcatsViewModel,!0),BJe(e.parcatsViewModel,!0)}).each("end",function(){(n||a)&&lmr.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function zJe(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)),fmr(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,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=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((nri,UJe)=>{"use strict";var kmr=NJe();UJe.exports=function(t,r,i,n){var a=t._fullLayout,o=a._paper,s=a._size;kmr(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 GJe=W(jz=>{"use strict";var Cmr=Mc().getModuleCalcData,Dmr=Are(),VJe="parcats";jz.name=VJe;jz.plot=function(e,t,r,i){var n=Cmr(e.calcdata,VJe);if(n.length){var a=n[0];Dmr(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 jJe=W((ori,HJe)=>{"use strict";HJe.exports={attributes:dre(),supplyDefaults:CJe(),calc:FJe(),plot:Are(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:GJe(),categories:["noOpacity"],meta:{}}});var WJe=W((sri,$Je)=>{"use strict";$Je.exports=jJe()});var XJe=W((lri,YJe)=>{"use strict";YJe.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 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"?` +{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 KJe=W((uri,ZJe)=>{"use strict";ZJe.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((cri,rQe)=>{"use strict";var Fmr=(Qx(),Pt(Jx)).default,Lmr=XJe(),Pmr=KJe(),Imr='\xA9 OpenStreetMap contributors',JJe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",QJe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",$z="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",Rmr="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",zmr="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",Bmr="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",tQe={basic:$z,streets:$z,outdoors:$z,light:JJe,dark:QJe,satellite:Pmr,"satellite-streets":Lmr,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:Imr,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":JJe,"carto-darkmatter":QJe,"carto-voyager":$z,"carto-positron-nolabels":Rmr,"carto-darkmatter-nolabels":zmr,"carto-voyager-nolabels":Bmr},eQe=Fmr(tQe);rQe.exports={styleValueDflt:"basic",stylesMap:tQe,styleValuesMap:eQe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",eQe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error.",fitBoundsPadding:20}});var bk=W((fri,sQe)=>{"use strict";var iQe=tt(),nQe=ti().defaultLine,qmr=ds().attributes,Omr=jo(),Nmr=Ws().textposition,Umr=hs().overrideAll,Vmr=Ra().templatedArray,aQe=Q2(),oQe=Omr({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});oQe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var Gmr=sQe.exports=Umr({_arrayAttrRegexps:[iQe.counterRegex("map",".layers",!0)],domain:qmr({name:"map"}),style:{valType:"any",values:aQe.styleValuesMap,dflt:aQe.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:Vmr("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:nQe},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:nQe}},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:oQe,textposition:iQe.extendFlat({},Nmr,{arrayOk:!1})}})},"plot","from-root");Gmr.uirevision={valType:"any",editType:"none"}});var Wz=W((hri,fQe)=>{"use strict";var{hovertemplateAttrs:Hmr,texttemplateAttrs:jmr,templatefallbackAttrs:lQe}=Wa(),$mr=C1(),_k=W4(),mT=Ws(),uQe=bk(),Wmr=Ja(),Ymr=Fo(),X_=an().extendFlat,Xmr=hs().overrideAll,Zmr=bk(),cQe=_k.line,yT=_k.marker;fQe.exports=Xmr({lon:_k.lon,lat:_k.lat,cluster:{enabled:{valType:"boolean"},maxzoom:X_({},Zmr.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:jmr({editType:"plot"},{keys:["lat","lon","text"]}),texttemplatefallback:lQe({editType:"plot"}),hovertext:X_({},mT.hovertext,{}),line:{color:cQe.color,width:cQe.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},Ymr("marker")),fill:_k.fill,fillcolor:$mr(),textfont:uQe.layers.symbol.textfont,textposition:uQe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:mT.selected.marker},unselected:{marker:mT.unselected.marker},hoverinfo:X_({},Wmr.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:Hmr(),hovertemplatefallback:lQe()},"calc","nested")});var Mre={};Jn(Mre,{isSupportedFont:()=>Jmr});function Jmr(e){return Kmr.indexOf(e)!==-1}var Kmr,Sre=Ci(()=>{"use strict";Kmr=["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 pQe=W((dri,dQe)=>{"use strict";var wk=tt(),Ere=Wo(),Qmr=Dd(),eyr=tv(),tyr=rv(),ryr=F1(),hQe=Wz(),iyr=(Sre(),Pt(Mre)).isSupportedFont;dQe.exports=function(t,r,i,n){function a(g,w){return wk.coerce(t,r,hQe,g,w)}function o(g,w){return wk.coerce2(t,r,hQe,g,w)}var s=nyr(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)){Qmr(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)&&(eyr(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;tyr(t,r,n,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:iyr(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"&&ryr(t,r,i,a),wk.coerceSelectionMarkerOpacity(r,a)};function nyr(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((pri,gQe)=>{"use strict";var vQe=Yi();gQe.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return n.lonLabel=vQe.tickText(o,o.c2l(s[0]),!0).text,n.latLabel=vQe.tickText(o,o.c2l(s[1]),!0).text,n}});var Cre=W((vri,yQe)=>{"use strict";var mQe=tt();yQe.exports=function(t,r){var i=t.split(" "),n=i[0],a=i[1],o=mQe.isArrayOrTypedArray(r)?mQe.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 AQe=W((gri,TQe)=>{"use strict";var _Qe=hn(),zc=tt(),ayr=(ra(),Pt(ia)).BADNUM,Xz=IE(),xQe=es(),oyr=Qi(),syr=MA(),Zz=Wo(),lyr=(Sre(),Pt(Mre)).isSupportedFont,uyr=Cre(),cyr=ah().appendArrayPointValue,fyr=ao().NEWLINES,hyr=ao().BR_TAG_ALL;TQe.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=dyr(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":bQe(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=pyr(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=uyr(i.textposition,_);zc.extendFlat(v.layout,{"text-size":i.textfont.size,"text-anchor":b.anchor,"text-offset":b.offset,"text-font":bQe(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 dyr(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&&(xQe.hasColorscale(t,"marker")?c=xQe.makeColorScaleFuncFromTrace(r):c=zc.identity);var f;a&&(f=syr(t));var h;o&&(h=function(_){var b=_Qe(_)?+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"),lyr(s)||(s=r);var l=s.split(", ");return l}});var kQe=W((mri,EQe)=>{"use strict";var vyr=tt(),MQe=AQe(),xT=Q2().traceLayerPrefix,ep={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function SQe(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=SQe.prototype;Tk.addSource=function(e,t,r){var i={type:"geojson",data:t.geojson};r&&r.enabled&&vyr.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;M--){var x=b[M];n.removeLayer(u.layerIds[x])}_||n.removeSource(u.sourceIds.circle)}function h(_){for(var b=ep.nonCluster,M=0;M=0;M--){var x=b[M];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 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 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])}};EQe.exports=function(t,r){var i=r[0].trace,n=i.cluster&&i.cluster.enabled,a=i.visible!==!0,o=new SQe(t,i.uid,n,a),s=MQe(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 gyr=Is(),Lre=tt(),myr=s5(),yyr=Lre.fillText,xyr=(ra(),Pt(ia)).BADNUM,byr=Q2().traceLayerPrefix;function _yr(e,t,r){var i=e.cd,n=i[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=byr+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]===xyr||c&&l.indexOf(T.i+1)===-1)return 1/0;var E=Lre.modHalf(y[0],360),S=y[1],C=s.project([E,S]),k=C.x-a.c2p([d,S]),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(gyr.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),M=m.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(m,n,x);return e.lonLabel=A.lonLabel,e.latLabel=A.latLabel,e.color=myr(n,m),e.extraText=CQe(n,m,i[0].t.labels),e.hovertemplate=n.hovertemplate,[e]}}function CQe(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)&&yyr(t,e,u),u.join("
")}DQe.exports={hoverPoints:_yr,getExtraText:CQe}});var LQe=W((xri,FQe)=>{"use strict";FQe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var IQe=W((bri,PQe)=>{"use strict";var wyr=tt(),Tyr=Wo(),{BADNUM:Ayr}=(ra(),Pt(ia)),Qz=360,Pre=.001,eB=(e,t,r,i)=>[e.c2p([r,i]),t.c2p([r,i])];function Myr(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]}PQe.exports=function(t,r){var c;let{cd:i,xaxis:n,yaxis:a}=t,{trace:o}=i[0];if(!Tyr.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 Iyr(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 ktt(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 Ryr(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 Ctt(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,M=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,S=f*m-h*v,C=f*g-p*v,k=h*g-p*m,D=w*k-_*C+b*S+M*E-x*y+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-m*x+g*M)*D,e[3]=(h*x-f*A-p*M)*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*S-l*T)*D,e[13]=(r*S-i*y+n*T)*D,e[14]=(v*_-d*M-m*w)*D,e[15]=(c*M-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],M=r[2],x=r[3];return e[0]=_*i+b*s+M*f+x*v,e[1]=_*n+b*l+M*h+x*m,e[2]=_*a+b*u+M*p+x*g,e[3]=_*o+b*c+M*d+x*w,_=r[4],b=r[5],M=r[6],x=r[7],e[4]=_*i+b*s+M*f+x*v,e[5]=_*n+b*l+M*h+x*m,e[6]=_*a+b*u+M*p+x*g,e[7]=_*o+b*c+M*d+x*w,_=r[8],b=r[9],M=r[10],x=r[11],e[8]=_*i+b*s+M*f+x*v,e[9]=_*n+b*l+M*h+x*m,e[10]=_*a+b*u+M*p+x*g,e[11]=_*o+b*c+M*d+x*w,_=r[12],b=r[13],M=r[14],x=r[15],e[12]=_*i+b*s+M*f+x*v,e[13]=_*n+b*l+M*h+x*m,e[14]=_*a+b*u+M*p+x*g,e[15]=_*o+b*c+M*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 Dtt(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 zyr(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 Byr(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 Ftt(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 Ltt(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],M=t[3],x=t[4],A=t[5],T=t[6],y=t[7],E=t[8],S=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-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-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-S)<=1e-6*Math.max(1,Math.abs(f),Math.abs(S))&&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 Ptt(){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 RQe(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 Itt(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 Rtt(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 ztt(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 Btt(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 qtt(e){return e[0]=0,e[1]=0,e[2]=0,e}function qyr(){var e=new Wu(4);return Wu!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function Oyr(e,t,r,i){var n=new Wu(4);return n[0]=e,n[1]=t,n[2]=r,n[3]=i,n}function Nyr(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 Ott(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 Uyr(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 zQe(){var e=new Wu(4);return Wu!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function Vyr(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 Utt(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 Gyr(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 qQe(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 Hyr(e){var t=e[0],r=e[1];return t*t+r*r}function jyr(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=Iyr([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 Gtt(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 $yr(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 Pyr(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 Wyr++}function Yyr(e){return Math.log(e)/Math.LN2%1==0}function $tt(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 Fv(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 Wtt(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 Ytt([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 Xtt(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 Ztt(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 Xyr(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 Qtt(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,Xyr(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 Cv(e){return e/Math.PI*180}function bne(e,t){return e.roll==t.roll&&e.pitch==t.pitch&&e.bearing==t.bearing}function ert(e){let t=new Float64Array(9);Ryr(t,e);let r=Cv(-Math.asin(ea(t[2],-1,1))),i,n;return Math.hypot(t[5],t[8])<.001?(i=0,n=-Cv(Math.atan2(t[3],t[4]))):(i=Cv(t[5]===0&&t[8]===0?0:Math.atan2(t[5],t[8])),n=Cv(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=qQe(t.x-r.x,t.y-r.y),n=qQe(e.x-r.x,e.y-r.y),a=i[0]*n[1]-i[1]*n[0];return Cv(Math.atan2(a,jyr(i,n)))}function wne(e,t,r){let i=new Float64Array(4);return YB(i,e,t-90,r),i}function irt(e,t){return trt[t]&&"touches"in e}function nrt(e,t){var n,a;if(!rrt[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 art(e){return trt[e]||rrt[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 ort(e,t){a0.REGISTERED_PROTOCOLS[e]=t}function srt(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 Kyr(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 Jyr(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 UQe(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 e2r)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 vrt(e){return e%=360,e<0&&(e+=360),e}function grt([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)/frt),a=Bre((.0139322*e+.0971045*t+.7141733*r)/hrt));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/prt+drt}function mrt([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=frt*Ore(a),o=hrt*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:prt*(e-drt)}function i2r(e){let[t,r,i,n]=grt(e),a=Math.sqrt(r*r+i*i);return[Math.round(a*1e4)?vrt(Math.atan2(i,r)*r2r):NaN,a,t,n]}function n2r([e,t,r,i]){return e=isNaN(e)?0:e*t2r,mrt([r,Math.cos(e)*t,Math.sin(e)*t,i])}function a2r([e,t,r,i]){e=vrt(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 o2r(e,t)?e[t]:void 0}function s2r(e){if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let t=Uk(l2r,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?VQe(+d,v):1];if(GQe(_))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?VQe(+c,f):1];if(GQe(p))return a2r(p)}}}function rB(e){return parseInt(e.padEnd(2,e),16)/255}function VQe(e,t){return wT(t?e/100:e,0,1)}function wT(e,t,r){return Math.min(Math.max(t,e),r)}function GQe(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 u2r(e){return e==="rgb"||e==="hcl"||e==="lab"}function xrt(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 Dv;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 d2r(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 Mrt(e,t,r=0,i=e.length-1,n=p2r){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);Mrt(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 p2r(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=g2r(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 E2r(e,t,r){return t<=r}function k2r(e,t,r){return t>=r}function Brt(e,t,r,i){return i.compare(t,r)===0}function C2r(e,t,r,i){return!Brt(e,t,r,i)}function D2r(e,t,r,i){return i.compare(t,r)<0}function F2r(e,t,r,i){return i.compare(t,r)>0}function L2r(e,t,r,i){return i.compare(t,r)<=0}function P2r(e,t,r,i){return i.compare(t,r)>=0}function XT(e,t,r){let i=e!=="=="&&e!=="!=";return class qrt{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(!jQe(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(!jQe(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 qrt(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 G2r(e,t){let r=H2r(e[0]),i=$2r(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[j2r(i),W2r(n)]}function H2r(e){return(180+e)/360}function j2r(e){return e*360-180}function $2r(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function W2r(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 Y2r(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 X2r(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 Q2r([i[0]-r[0],i[1]-r[1]],n)!==0&&!!($Qe(e,t,r,i)&&$Qe(r,i,e,t))}function Z2r(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 exr(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}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)for(let l of s){let u=[l.x+a[0],l.y+a[1]];$rt(u,t,r,n),o.push(u)}return o}function YQe(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){exr(t);for(let s of o)for(let l of s)$rt(l,t,r,n)}return o}function txr(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(!ZT(s,a))return!1}if(t.type==="MultiPolygon"){let a=jrt(t.coordinates,i,n),o=WQe(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!K2r(s,a))return!1}return!0}function rxr(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=YQe(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!Hrt(s,a))return!1}if(t.type==="MultiPolygon"){let a=jrt(t.coordinates,i,n),o=YQe(e.geometry(),r,i,n);if(!Zk(r,i))return!1;for(let s of o)if(!J2r(s,a))return!1}return!0}function Yrt(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 ZQe(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function Pne(e,t,r){if(!ZQe(e)||!ZQe(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(KQe(e,t))return 0}else if(KQe(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=oxr(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=axr(e[f],r,i);if(a=Math.min(a,h),a===0)return 0}}else{let f=aie(u,t);JQe(o,a,i,e,s,f[0]),JQe(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 Wrt([[0,[0,e.length-1],[0,r.length-1]]],Yrt);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=ixr(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=nxr(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 lxr(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 uxr(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 cxr(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,sxr(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 QQe(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=xrt(t,r,i,o);if(s)throw new ul(s,a);return new aa(t/255,r/255,i/255,o,!1)}function eet(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 dxr(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 pxr(e){return Array.isArray(e)?`(${e.map(wl).join(", ")})`:`(${wl(e.type)}...)`}function EB(e){if(e instanceof Drt)return EB(e.boundExpression);if(e instanceof p3&&e.name==="error"||e instanceof Ort||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 eit(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 vxr(e){return e}function gxr(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 mxr(e){switch(e){case"exponential":return rit;case"interval":return xxr;case"categorical":return yxr;case"identity":return bxr;default:throw Error(`Unknown function type "${e}"`)}}function tit(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=gxr(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&&!u2r(e.colorSpace))throw Error(`Unknown color space: "${e.colorSpace}"`);let s=mxr(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 rit({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 yxr(e,t,r,i,n){return TC(typeof r===n?i[r]:void 0,e.default,t.default)}function xxr(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 rit(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=_xr(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]||vxr;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 bxr(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 _xr(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 iit(e,t,r,i){return`${e}${t}: ${r}${i==null?"":` Falling back to ${String(i)}.`}`}function nit(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){nit(t);let n=new Jrt(DT,EB,[],r?Axr(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 wxr(e){return e._styleExpression!==void 0}function ait(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&&!eit(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 Txr(e,t,r,i){if(hq(e))return new oit(e,t,r);if(dq(e)){let n=ait(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 krt)t=_B(e.result);else if(e instanceof zrt){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 Axr(e){let t={color:Dv,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 lit(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 Mxr(e){let t=!1;for(let r of e){let i=uit(r);if(i==="expression")return"expression";i==="legacy"&&(t=!0)}return t?"legacy":"neutral"}function uit(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 Mxr(e.slice(1));default:return"expression"}}function Nne(e){return uit(e)!=="legacy"}function tet(e){return e==="$type"?["geometry-type"]:e==="$id"?["id"]:["get",e]}function Sxr(e){switch(e[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return e.length!==3||typeof e[1]!="string"?null:[e[0],tet(e[1]),e[2]];case"in":case"!in":{if(e.length<2||typeof e[1]!="string")return null;let t=["in",tet(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 cit(e){if((e[0]==="<"||e[0]==="<="||e[0]===">"||e[0]===">=")&&e[1]==="$type")return`"$type" cannot be use with operator "${e[0]}"`;let t=Sxr(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}: ${cit(r.legacyFilter)}`)}function VT(e,t,r){if(e==null)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};Nne(e)?Exr(e,t):e=CB(e);let i=pq(e,t,kxr,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:fit(e),getGlobalStateRefs:()=>AC(i.value.expression)}}function Cxr(e,t){return et)}function fit(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"?Dxr(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"?ret(e[1],e.slice(2)):t==="!in"?aB(ret(e[1],e.slice(2))):t==="has"?iet(e[1]):t!=="!has"||aB(iet(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 Dxr(e){return["any"].concat(e.map(CB))}function ret(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(Cxr)]]:["filter-in-small",e,["literal",t]]}}function iet(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function aB(e){return["!",e]}function hit(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 dit(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&&!eit(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 Fxr(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 Lxr(e,t){let r=e;for(let i of t)r=r[i];return r}function Pxr(e,t){let r=Une(t);return r?[new ri(`${e.key}${r.path.map(i=>`[${i}]`).join("")}`,Lxr(e.value,r.path),cit(r.legacyFilter),null,"warning")]:[]}function Gne(e){let t=s3(e.value);return Nne(t)?[...Pxr(e,t),...GT(Jk({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:pit(e)}function pit(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 mit(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 git(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 Ixr(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 xit(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:net,validateSpec:a}),s;case"raster-dem":return s=Ixr({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:net}),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 Rxr({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 bit(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 _it(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 wit(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 zxr(e){return cx(e).length===0?[]:GT(e)}function Bxr(e){return cx(e).length===0?[]:GT(e)}function qxr(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($xr);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>aet||u>aet?[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 Mit(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:urt,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(...Wxr(`${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))?dit(e):r.expression&&dq(s3(t))?GT(e):r.type&&oet[r.type]?oet[r.type](e):G0(Jk({},e,{valueSpec:r.type?i[r.type]:r}))}function Sit(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:Sit,"*"(){return[]}}})),e.constants&&(r=r.concat(hit({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:Gk}))),Eit(r)}function tp(e){return function(t){return e(Object.assign({},t,{validateSpec:Gk}))}}function Eit(e){return[].concat(e).sort((t,r)=>t.line-r.line)}function rp(e){return function(...t){return Eit(e.apply(this,t))}}function Zxr(e,t,r){return new Xxr(e,t,r)}function Kxr(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=Kxr(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 Cit(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 Jxr(e){if(typeof e!="object"||!e)return!1;let t=$ne(e);return t&&t!=="Object"}function Dit(e){return!Jxr(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||Cit(e)||px(e)||ArrayBuffer.isView(e)||e instanceof ImageData)}function Hk(e,t){if(Dit(e))return(Cit(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(Dit(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 cet(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 Fit(e,t){let r=cet(e),i=cet(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=nbr(n.type),o=r=det(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:det(r,Math.max(i,t)),alignment:t}}function nbr(e){return ibr[e].BYTES_PER_ELEMENT}function det(e,t){return Math.ceil(e/t)*t}function get(e,t){return e=ea(Math.floor(e),0,255),t=ea(Math.floor(t),0,255),256*e+t}function met(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 wbr(e,t,r,i,n){e.emplaceBack(bet+t*8+i,bet+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 ent(e,t){if(e.length===1)return _et(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(_et(t,r))return!0;for(let r of t)if(Jne(e,r))return!0;return!1}function Tbr(e,t,r){for(let i of t){if(e.length>=3){for(let n of i)if(HT(e,n))return!0}if(Abr(e,i,r))return!0}return!1}function Abr(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 _et(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 Sbr(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 kbr(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 ant(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 hnt(e,t,r,i,n){let a=null;if(n===p_r(e,t,r,i)>0)for(let o=t;o=t;o-=i)a=Det(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&&l_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?Jbr(e,r,i,n):Kbr(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=Qbr(e,t),a=e,o=!0;continue}e_r(e,t,r,i,n);break}}}function Kbr(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 Jbr(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 Qbr(e,t){let r=e,i=!1;do{let n=r.prev,a=r.next.next;pnt(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 e_r(e,t,r,i,n){let a=e;do{let o=a.next.next;for(;o!==a.prev;){if(a.i!==o.i&&f_r(a,o)){let s=vnt(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 t_r(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 a_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 ket(e){let t=Gie[e];for(;t.prev.next!==t;)t=t.next;return Gie[e]=t,t}function Cet(e){let t=Vie[e];for(;t.prev.next!==t;)t=t.next;return Vie[e]=t,t}function o_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=ket(h);r=Cet(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=ket(h);r=Cet(h);do{if(r.prev.next===r&&i>=r.x&&r.x>=s&&i!==r.x&&BB(ni)&&(vo.x||r.x===o.x&&s_r(o,r)))&&(o=r,f=v)}r=r.next}while(r!==d)}return o}function s_r(e,t){return $u(e.prev,e,t.prev)<0&&$u(t.next,e,e.next)<0}function l_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);u_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 c_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 f_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))&&!h_r(e,t)&&(r||d_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 pnt(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 h_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 d_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 vnt(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 Det(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&&a_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 p_r(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,y=w>0?(Math.floor(x/n)+1)*n:(Math.ceil(x/n)-1)*n,E=Math.abs(M-T),S=Math.abs(x-y),C=Math.abs(M-p),k=Math.abs(x-d),D=v?E/_:1/0,F=m?S/b:1/0;if((C<=E||!v)&&(k<=S||!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 x_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),M=v((h-d)*_+(p-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 ynt(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),M=$k(o,i,a,s,d,g,u);r.emplaceBack(c+_-l,c+b-l,c+M-l),u.primitiveLength++}}function __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 Pet(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 wnt(e){let t=e.length;if(t<=1)return[e];let r=[],i,n;for(let a=0;az_r(r,t))}function R_r(e,t){let r=P_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 q_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 O_r(e,t){for(let r=0;r0?t+2*e:e}function a3r(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 o3r(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 Pnt(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 s3r(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 l3r(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 u3r(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 Get(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 c3r(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 v3r(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:g3r(r),form:null}})}function _3r(e){let t=e.filter(r=>r.type!=="T");for(let r=0;r0&&m3r(t[r-1].type),a=r+1String.fromCodePoint(A3r(r))).join("")}function S3r(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:M3r)(e)}function E3r(e,t,r){for(let i of e.sections)i.text=S3r(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 k3r(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&&c3r(t[i],r)?t[i]+=r:t.push(r)}return t}function D3r(e){let t=new Set;if(Rnt){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 F3r(e){for(let t of e)if(!L3r(t.codePointAt(0)))return!1;return!0}function L3r(e){return!a3r(e)}function Wet(e){return!(kq(e)||l3r(e))}function znt(e){return new RegExp("\\p{sc=Arab}","u").test(String.fromCodePoint(e))}function Bnt(e){return o3r(e)}function qnt(e){for(let t of e)if(Bnt(t.codePointAt(0)))return!0;return!1}function P3r(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||!Wet(o.value.codePointAt(0))||kT[o.value])&&(r.premature||!Wet(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 Yet(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 Xet(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 M(Ee){return w(),g.get(Ee)||null}var x=r.L,A=r.R,T=r.EN,y=r.ES,E=r.ET,S=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,S);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(M(wn))||_(M(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]);N3r.has(n)?(e[i].level=t,r=!0):r&&O3r.has(n)?e[i].level=t:r=!1}}function G3r(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 $3r(e,t,r,i,n){let a=U3r(e,t,i,n);V3r(a,r);let o="",s=[];for(let l of G3r(a,r)){if(q3r.test(l.text))continue;let u=H3r(l);o+=u,s.push(...Array(u.length).fill(l.index))}return{text:o,sourceIndices:s}}function W3r(e,t){let r=t.filter(a=>a>0&&aa-o),n=[];for(let a=0;a+1n.start))).map(([n,a])=>$3r(e,r,j3r(i,n),n,a))}function Y3r(e,t){return Nnt(e,t).map(r=>r.text)}function X3r(e,t,r){return Nnt(e,r).map(i=>[i.text,i.sourceIndices.map(n=>{var a;return(a=t[n])!=null?a:0})])}function Z3r(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 K3r(e,n,t);throw Error("Expected varint not more than 10 bytes")}function K3r(e,t,r){return r?t*4294967296+(e>>>0):(t>>>0)*4294967296+(e>>>0)}function J3r(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 Q3r(e,t,r){e===1&&r.readMessage(ewr,t)}function ewr(e,t,r){if(e===3){let{id:i,bitmap:n,width:a,height:o,left:s,top:l,advance:u}=r.readMessage(twr,{});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 twr(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 Vnt(e){return new Unt(e).readFields(Q3r,[])}function DC(e){return typeof(e==null?void 0:e.renderWithWebGL)=="function"}function Gnt(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=>ett(a,e.sections,[...a].map(()=>0))):Y3r(e.toString(),r).map(a=>tne([...a],e.sections,[...a].map(()=>0)));let n=owr(e);return i?i.processStyledBidirectionalText(e.text,n,r).map(([a,o])=>ett(a,e.sections,o)):X3r(e.text,n,r).map(([a,o])=>{let s=[...a];return tne(s,e.sections,jnt(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 jnt(e){let t=[],r=0;for(let i of e)t.push(r),r+=i.length;return t}function ett(e,t,r){let i=[...e],n=jnt(i),a=awr(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=qnt(v.text)?swr(v,m):nwr(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 gwr(_,t,r,i,g,o,s,l,f,u,h,d),!iwr(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 lwr(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 $nt(e){switch(e){case"top":return 0;case"center":return .5;default:return 1}}function uwr(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 cwr(e,t,r){return!(e===1||!t&&!kq(r)||t&&(sae(r)||znt(r)))}function wB(e){return new RegExp("\\p{Nd}","u").test(String.fromCodePoint(e))}function Wnt(e){return new RegExp("\\p{Lu}","u").test(String.fromCodePoint(e))}function fwr(e){return/[\p{P}\p{S}]/u.test(String.fromCodePoint(e))}function hwr(e){let t=e.some(wB)&&e.every(i=>wB(i)||fwr(i)),r=e.length<=3&&e.every(i=>Wnt(i)||wB(i));return t||r}function dwr(e){return(wB(e)||Wnt(e))&&!znt(e)}function pwr(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 ttt(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 itt(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}=wwr(r.zoomStops,e);return{kind:"composite",minZoom:i,maxZoom:n,interpolationType:r.interpolationType}}{let i=Twr(r),n=r.evaluate(new Io(e+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function wwr(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=Awr(e,t):e.kind==="composite"&&(r=Mwr(e,t)),{uSizeT:r,uSize:i}}function Awr({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 Mwr({interpolationType:e,minZoom:t,maxZoom:r},i){return e?ea(sp.interpolationFactor(e,i,t,r),0,1):0}function Znt(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 Knt(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||Znt(e,v,s,o,t)?v:void 0}l+=p}}function Ewr(e,t,r,i,n,a,o,s,l){let u=Jnt(i,a,o),c=Qnt(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&&M=0&&h+u<=c){let x=new IT(b,M,w,d);x._round(),(!i||Znt(e,x,a,i,n))&&p.push(x)}}f+=g}return!s&&!p.length&&!o&&(p=eat(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 ntt(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,M=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=Ynt(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]),M=D[0]-g,A=D[1]-_,x=F-w,T=P-b}let y=u.x1,E=u.y1,S=u.x2-y,C=u.y2-E,k=(D,F,P,R)=>{let L=dB(D.stretch-g,w,S,y),I=pB(D.fixed-M,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,S,y),X=pB(P.fixed-M,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/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=att(c,v,p),F=att(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 Fwr(e,t){return t.max-e.max}function Lwr(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,tnt(e,l,u))}return(r?1:-1)*Math.sqrt(i)}function Pwr(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,tat(u,s));return new lg(l)}return null}function Iwr(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=F3r(A)?T:0,E=i.get("text-anchor").evaluate(h,{},e.canonical),S=rat(r,h,e.canonical);if(!S){let F=i.get("text-radial-offset").evaluate(h,{},e.canonical);_=F?tat(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&&S){let F=new Set;if(C==="auto")for(let R=0;R{L.x<0||L.x>=8192||L.y<0||L.y>=8192||Bwr(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(S==="line")for(let R of fae(t.geometry,0,0,qr,qr)){let L=t3(R,F),I=Ewr(L,M,T,r.vertical||m,i,24,_,e.overscaling,qr);for(let B of I){let O=m;(!O||!qwr(e,O.text,C,B))&&P(L,B)}}else if(S==="line-center"){for(let R of t.geometry)if(R.length>1){let L=t3(R,F),I=Swr(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=Dwr(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 zwr(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 iat(e){for(let t in e)return e[t];return null}function Bwr(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,M,x,A,T,y){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,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=ntt(n,ce,x,oe),be=o?ntt(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*M.compositeIconSizes[0].evaluate(b,{},A),128*M.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,S),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,S),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+=ott(e,t,oe,a,s,d,b,v,S,E,i.vertical?1:3,Se?K:[ce],$,B,M,A),Se)break}i.vertical&&(I+=ott(e,t,i.vertical,a,s,d,b,v,S,E,2,["vertical"],$,O,M,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=rat(s,b,A),[Ee,xe]=zwr(e.textAnchorOffsets,ge);y&&(X=Owr(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,S)}function qwr(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 $wr(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 oat(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 Zwr(e,t);switch(e.type){case"background":return new Xwr(e,t);case"circle":return new qbr(e,t);case"color-relief":return new Ybr(e,t);case"fill":return new M_r(e,t);case"fill-extrusion":return new G_r(e,t);case"heatmap":return new Ubr(e,t);case"hillshade":return new Hbr(e,t);case"line":return new t3r(e,t);case"raster":return new rbr(e,t);case"symbol":return new jwr(e,t)}}function Qwr(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 o5r(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 s5r(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 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;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 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;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 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;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 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;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 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;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 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;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 p5r(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 v5r(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 g5r(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 m5r(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 y5r(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 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;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 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;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 _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;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 w5r(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 T5r(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 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,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 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,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 S5r(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 E5r(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 dat(){let e=new Uint8Array(k5r);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 C5r(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:dat()}}function D5r(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 F5r(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 L5r(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=n5r(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 P5r(e,t,r,i,n){switch(n){case 1:y5r(e,t,r,i);break;case 2:x5r(e,t,r,i);break;case 3:b5r(e,t,r,i);break;case 4:_5r(e,t,r,i);break;case 5:w5r(e,t,r,i);break;case 6:T5r(e,t,r,i);break;case 7:A5r(e,t,r,i);break;case 8:M5r(e,t,r,i);break;case 16:S5r(e,t,r,i);break;default:E5r(e,t,r,i,n)}return t+(n<<3)|0}function I5r(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 R5r(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 z5r(e,t,r,i,n,a,o,s,l){let{maxBits:u,exceptionBitWidth:c,bytePosIn:f}=R5r(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=z5r(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 q5r(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=F5r(e,h,c,a),v=c,m=L5r(e,p,a);return a.dataPointers.fill(0),B5r(e,o,l,u,t,i|0,n/256|0,d,v,a),m}function O5r(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=q5r(e,t,l,s,u,a),s=s+u|0}return l}function N5r(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 U5r(e,t,r){let i=0,n=0,a=new Uint32Array(t),o=r!=null?r:dat();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=O5r(e,a,i,n,u,o),n=n+u|0}let s=e.length-i|0,l=t-n|0;return N5r(e,i,s,a,n,l),a}function V5r(e,t,r,i,n){switch(n){case 2:o5r(e,t,r,i);return;case 3:s5r(e,t,r,i);return;case 4:l5r(e,t,r,i);return;case 5:u5r(e,t,r,i);return;case 6:c5r(e,t,r,i);return;case 7:f5r(e,t,r,i);return;case 8:h5r(e,t,r,i);return;case 9:d5r(e,t,r,i);return;case 10:p5r(e,t,r,i);return;case 11:v5r(e,t,r,i);return;case 12:g5r(e,t,r,i);return;case 16:m5r(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 j5r(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 Y5r(e,t,r,i){return X5r(e,t,r,i,C5r(r>>>2))}function X5r(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=D5r(n,o);G5r(e,a,r,s);let l=U5r(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 Z5r(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 ptt(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 f4r(e,t,r,i){let n=vat(e,t,r,i);return new Uint32Array(n)}function h4r(e){return e[1]}function d4r(e){return Ha(e[1])}function p4r(e){if(e.length===2){let t=Ha(e[1]);return[t,t]}return[Ha(e[2]),Ha(e[3])]}function v4r(e){return e[1]}function g4r(e){return df(e[1])}function m4r(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=M4r(e,t);return r.logicalLevelTechnique1===va.MORTON?T4r(r,e,t):(va.RLE===r.logicalLevelTechnique1||va.RLE===r.logicalLevelTechnique2)&&H0.NONE!==r.physicalLevelTechnique?A4r(r,e,t):r}function T4r(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 A4r(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 M4r(e,t){let r=e[t.get()],i=y4r[r>>4],n={};switch(i){case ou.DATA:n={dictionaryType:b4r[r&15]};break;case ou.OFFSET:n={offsetType:_4r[r&15]};break;case ou.LENGTH:n={lengthType:w4r[r&15]}}t.increment();let a=e[t.get()],o=vtt[a>>5],s=vtt[a>>2&7],l=x4r[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?D4r.decode(e.subarray(t,r)):F4r(e,t,r)}function F4r(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 z4r(r6(e,t,r),r,i,n)}function hf(e,t,r,i,n){return B4r(r6(e,t,r),r,i,n)}function nx(e,t,r){return O4r(r6(e,t,r),r)}function r6(e,t,r){let i=r.physicalLevelTechnique;switch(i){case H0.FAST_PFOR:return Y5r(e,r.numValues,r.byteLength,t);case H0.VARINT:return pf(e,t,r.numValues);case H0.NONE:return k4r(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 C4r(e,t,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function L4r(e,t,r){let i=r6(e,t,r);return i.length===1?Ha(i[0]):d4r(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]:h4r(i)}function xat(e,t,r){return p4r(r6(e,t,r))}function bat(e,t,r){return m4r(Aae(e,t,r.numValues))}function _at(e,t,r,i){return Tat(qC(e,t,r),r,i)}function kae(e,t,r,i){return Aat(qC(e,t,r),r,i)}function P4r(e,t,r,i){let n=I4r(e,t,r,!1);return i?x3(n,i,0):n}function I4r(e,t,r,i){if(r.physicalLevelTechnique===H0.VARINT)return q4r(j5r(e,t,r.numValues),r,i);let n=qC(e,t,r),a=i?Tat(n,r):Aat(n,r);return Float64Array.from(a,Number)}function R4r(e,t,r){let i=qC(e,t,r);return i.length===1?df(i[0]):g4r(i)}function wat(e,t,r){let i=qC(e,t,r);return i.length===1?r.logicalLevelTechnique1===va.DELTA?df(i[0]):i[0]:v4r(i)}function z4r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case va.DELTA:if(t.logicalLevelTechnique2===va.RLE){let a=t;if(!i)return l4r(e,a.runs,a.numRleValues);e=sne(e,a.runs,a.numRleValues),n=ftt(e)}else n=ftt(e);break;case va.RLE:n=e4r(e,t.runs,t.numRleValues);break;case va.MORTON:Mae(e),n=new Int32Array(e);break;case va.COMPONENTWISE_DELTA:if(r&&!i)return vat(e,r.scale,r.min,r.max);n=n4r(e);break;case va.NONE:n=Z5r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return i?x3(n,i,0):n}function B4r(e,t,r,i){let n;switch(t.logicalLevelTechnique1){case va.DELTA:if(t.logicalLevelTechnique2===va.RLE){let a=t;n=dtt(sne(e,a.runs,a.numRleValues))}else n=dtt(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?f4r(e,r.scale,r.min,r.max):c4r(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 Tat(e,t,r){let i;switch(t.logicalLevelTechnique1){case va.DELTA:if(t.logicalLevelTechnique2===va.RLE){let n=t;if(!r)return u4r(e,n.runs,n.numRleValues);e=lne(e,n.runs,n.numRleValues),i=htt(e)}else i=htt(e);break;case va.RLE:i=t4r(e,t.runs,t.numRleValues);break;case va.NONE:i=K5r(e);break;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}return r?x3(i,r,BigInt(0)):i}function Aat(e,t,r){let i;switch(t.logicalLevelTechnique1){case va.DELTA:if(t.logicalLevelTechnique2===va.RLE){let n=t;i=ptt(lne(e,n.runs,n.numRleValues))}else i=ptt(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 q4r(e,t,r){switch(t.logicalLevelTechnique1){case va.DELTA:if(t.logicalLevelTechnique2===va.RLE){let i=t;e=pat(e,i.runs,i.numRleValues)}return Q5r(e),e;case va.RLE:return U4r(e,t,r);case va.NONE:return r&&J5r(e),e;default:throw Error(`The specified Logical level technique is not supported: ${t.logicalLevelTechnique1}`)}}function O4r(e,t){if(t.logicalLevelTechnique1===va.DELTA&&t.logicalLevelTechnique2===va.NONE)return a4r(e);if(t.logicalLevelTechnique1===va.RLE&&t.logicalLevelTechnique2===va.NONE){let r=t;return s4r(e,r.runs,r.numRleValues)}if(t.logicalLevelTechnique1===va.NONE&&t.logicalLevelTechnique2===va.NONE){i4r(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=o4r(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 Lv?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 N4r(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 N4r(e,t,r){let i=new fat(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 U4r(e,t,r){return r?r4r(e,t.runs,t.numRleValues):pat(e,t.runs,t.numRleValues)}function Cae(e,t,r){return{x:gtt(e,t)-r,y:gtt(e>>1,t)-r}}function gtt(e,t){let r=0;for(let i=0;i>i;return r}function V4r(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[M]),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),M,x=h[i]-h[i-1];if(i++,d){M=_T(m,o,x,!0),o+=x*2;for(let A=0;Ar?t[a++]:1);return i}function btt(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 Iat(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 Lv(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 Pat(v,g,n,a,o,s,m,f)}else c[h++]=new RT(v,g,n,a,m)}return c}function sTr(e,t,r,i){let n=lTr(r);if(i===0)return n.map(c=>new wtt(c,[]));let a=uTr(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 uTr(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-=cTr(e,t,o)),a-=fTr(e,t,i,o),a-=hTr(e,t,i,o);let s,l=0;if(i&og.PRESENCE){let c=dTr(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 cTr(e,t,r){let i=e[t.get()];t.add(1);let n=Iat("",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=vTr(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=Ttt(e,t,r);return{value:Rat(e,t+2,a,i).value,nextIndex:a}}if(n===ox.START_LIST){let a=Ttt(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 zat(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 gTr(e,t,r,i,n,a){var o;return r.type==="scalarType"?a&&!a.has(r.name)?(gat(i,e,t),null):mTr(i,e,t,n,r.scalarType,r):((o=r.complexType)==null?void 0:o.physicalType)===lx.MAP?sTr(e,t,r,i):i===0?null:oTr(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=Zs(t,r),c=u.numValues,f=r.get(),h=t6(t,c,u.byteLength,r);r.set(f+u.byteLength),o=new Lv(h,u.numValues)}let s=o!=null?o:i;switch(n.physicalType){case xo.UINT_32:case xo.INT_32:return wTr(t,r,a,n,s);case xo.STRING:{let u=a.nullable?e-1:e;return(l=Iat(a.name,t,r,u,o))!=null?l:null}case xo.BOOLEAN:return yTr(t,r,a,i,s);case xo.UINT_64:case xo.INT_64:return _Tr(t,r,a,s,n);case xo.FLOAT:return xTr(t,r,a,s);case xo.DOUBLE:return bTr(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=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 Lv(u,o);return new Q4r(r.name,c,n)}function xTr(e,t,r,i){let n=Zs(e,t),a=OC(i)?i:void 0,o=mat(e,t,n.numValues,a);return new eTr(r.name,o,i)}function bTr(e,t,r,i){let n=Zs(e,t),a=OC(i)?i:void 0,o=yat(e,t,n.numValues,a);return new yae(r.name,o,i)}function _Tr(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?_at(e,t,a,u):kae(e,t,a,u);return new Mat(r.name,c,i)}if(o===Bs.SEQUENCE){let u=bat(e,t,a);return new Sat(r.name,u[0],u[1],a.numRleValues,s)}let l=s?R4r(e,t,a):wat(e,t,a);return new Lat(r.name,l,i,s)}function wTr(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=xat(e,t,a);return new xae(r.name,u[0],u[1],a.numRleValues,s)}let l=s?L4r(e,t,a):Eae(e,t,a);return new bae(r.name,l,n,s)}function OC(e){return e instanceof Lv}function Bat(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:cat.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 ETr(e)}}function TTr(e){return e>=hc.SCALAR_BASE}function qat(e){return e===hc.STRUCT||e===hc.MAP}function ATr(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 MTr(e){var t;return e.type==="scalarType"&&((t=e.scalarType)==null?void 0:t.type)==="logicalType"&&e.scalarType.logicalType===cat.ID}function STr(e){var t;return e.type==="complexType"&&((t=e.complexType)==null?void 0:t.type)==="physicalType"&&e.complexType.physicalType===lx.GEOMETRY}function ETr(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),kTr.decode(a)}function CTr(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 Oat(e,t){let r=pf(e,t,1)[0]>>>0,i=r>=hc.SCALAR_BASE?Bat(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"&&qat(r)){let a=n.complexType,o=pf(e,t,1)[0]>>>0;a.children=Array(o);for(let s=0;s>>0,i=Bat(r);if(!i)throw Error(`Unsupported column type code ${r}. Supported: ${Att}`);let n;if(TTr(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]=FTr(e,i),c=l.featureTables[0],f=null,h=null,p=[],d=0;for(let m of c.columns){let g=m.name;if(MTr(m)){let w=null;if(m.nullable){let b=Zs(e,i),M=i.get(),x=t6(e,b.numValues,b.byteLength,i);i.set(M+b.byteLength),w=new Lv(x,b.numValues)}let _=Zs(e,i);d=w?w.size():_.decompressedCount,f=PTr(e,m,i,g,_,w!=null?w:d,r)}else if(STr(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=Z4r(e,w,i,d,t)}else{let w=ATr(m)?pf(e,i,1)[0]:1;if(w===0)continue;let _=gTr(e,i,m,w,d,void 0);if(_)if(Array.isArray(_))for(let b of _)p.push(b);else p.push(_)}}let v=new i5r(c.name,h,f,p,u);n.push(v),i.set(o)}return n}function PTr(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=xat(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,P4r(e,r,n,l),a):new Mat(i,kae(e,r,n,l),a);case Bs.SEQUENCE:{let f=bat(e,r,n);return new Sat(i,f[0],f[1],n.numRleValues,!1)}case Bs.CONST:return new Lat(i,wat(e,r,n),a,!1)}throw Error("Vector type not supported for id column.")}function qTr(e){return typeof e=="object"&&!!e&&"evaluate"in e}function Mtt(e,t,r,i,n){return QB(e,(a,o)=>{let s=t instanceof mq?t.get(o):null;return qTr(s)?s.evaluate(r,i,void 0,n):s})}function OTr(e,t){return t-e}var Eyr,Stt,kyr,Cyr,Dyr,Ett,une,Fyr,Lyr,Ak,tB,Wu,GB,Pv,cg,hC,Ntt,dne,BQe,Vtt,qr,JB,Wyr,OQe,Ire,Ktt,Jtt,Iv,trt,rrt,NQe,YT,a0,TB,zT,Zyr,mC,yC,Ane,lrt,o0,Mn,cu,urt,_r,crt,ri,xC,ki,pa,za,Dv,rq,r3,ya,Qyr,iq,bC,nq,Yk,aq,_C,oq,e2r,frt,hrt,drt,Qre,prt,t2r,r2r,o2r,l2r,Bc,aa,c2r,eie,Bm,fg,hg,op,ul,f2r,lg,ug,Gm,Ene,OT,h2r,_rt,kne,sp,Ks,Trt,iB,Im,HQe,ET,krt,Drt,m2r,y2r,x2r,b2r,_2r,w2r,zrt,I2r,R2r,z2r,B2r,q2r,O2r,Ort,N2r,U2r,V2r,sg,Fne,Wrt,XQe,Lne,Rne,fxr,zne,DT,ig,hxr,Jrt,p3,qne,One,Qk,kB,oit,kxr,net,aet,$xr,oet,Yxr,Xxr,mh,Hne,fie,Rm,DB,Io,tC,hie,MC,set,uet,Qxr,ap,mq,Pi,kn,rC,Lit,yq,dc,fet,jre,Rv,het,ebr,tbr,xq,rbr,ibr,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,Pit,Wne,Iit,Rit,zit,Bit,qit,Oit,Nit,Uit,Vit,Git,Hm,Hit,jit,abr,obr,sbr,lbr,ubr,bT,pet,cbr,fbr,hbr,vet,$it,dbr,Wit,zv,Lie,Yit,Pie,pbr,Js,vbr,gbr,mbr,ybr,IB,Xit,jm,Sn,Ni,xa,Gf,JT,$m,Yne,Xne,xbr,fp,Bk,Q_,Pm,kv,rx,Kit,Jit,Qit,l3,zie,xet,bet,Zne,wet,Rbr,Tet,zbr,Bbr,int,qbr,nnt,Aet,Obr,Nbr,Tq,Es,EC,lnt,Ubr,Met,Vbr,Gbr,unt,Hbr,Eet,jbr,$br,Tu,zm,Wbr,fnt,Ybr,qie,Xbr,aC,Oie,Uie,nu,zB,Vie,Gie,np,Sk,K_,Ek,kk,ng,a3,Aq,LT,PT,v_r,xnt,Fet,w_r,Let,T_r,A_r,bnt,M_r,$ie,S_r,E_r,lp,_nt,kC,C_r,F_r,Hf,yn,Tnt,Mo,mx,Wre,Ent,Iet,N_r,Ret,U_r,V_r,knt,G_r,W_r,Y_r,Xie,X_r,Zie,Z_r,K_r,Cnt,Bet,Dnt,qet,J_r,Oet,Q_r,Net,e3r,cB,Fnt,t3r,r3r,i3r,n3r,Vet,Lnt,qB,f3r,h3r,d3r,Het,p3r,Int,Rnt,Fk,Lk,kT,I3r,R3r,lae,uae,q3r,O3r,N3r,ene,_ri,Jet,Unt,Cq,rwr,Hnt,Qet,rtt,IT,vB,Cwr,ST,Fq,hae,Nwr,rne,ine,IC,stt,Gwr,ltt,Hwr,Xre,nat,dae,jwr,utt,Wwr,Ywr,aat,Xwr,sat,Zwr,Kwr,Jwr,lat,RC,zC,Gc,Zre,BC,r5r,gae,y3,Pq,mae,yae,uat,xae,bae,i5r,Ok,xo,lx,cat,fat,va,H0,_ae,ane,wae,one,k5r,ou,Nf,ag,ju,y4r,vtt,x4r,b4r,_4r,w4r,Bs,Lv,D4r,Mat,Sat,qc,mtt,fx,Eat,kat,Dat,Fat,Y4r,X4r,Q4r,eTr,Lat,Dae,_tt,RT,Pat,wtt,og,ox,hc,kTr,Att,Jre,ITr,RTr,zTr,BTr,Nat,Uat=Ci(()=>{Eyr=Object.create,Stt=Object.defineProperty,kyr=Object.getOwnPropertyDescriptor,Cyr=Object.getOwnPropertyNames,Dyr=Object.getPrototypeOf,Ett=Object.prototype.hasOwnProperty,une=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Fyr=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=Cyr(t),a=0,o=n.length,s;at[l]).bind(null,s),enumerable:!(i=kyr(t,s))||i.enumerable});return e},Lyr=(e,t,r)=>(r=e==null?{}:Eyr(Dyr(e)),Fyr(t||!e||!e.__esModule||!Ett.call(e,"default")?Stt(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=zyr;Pv=Byr;cg=jB,hC=cp;(function(){var e=Ptt();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,BQe(i,i))}})(),(function(){var e=zQe(),t=zQe();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],BQe(t,Gyr(t,e))}})();Vtt=Hyr;(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.`)}}),Jtt=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)});Iv=85.051129,trt={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0},rrt={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};NQe="AbortError",YT=class extends Error{constructor(e=NQe){super(e instanceof Error?e.message:e),this.name=NQe,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}};Zyr=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(!Zyr(e.url)){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return Kyr(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 Jyr(e,t)})},yC=(e,t)=>mC(dn(e,{type:"json"}),t),Ane=(e,t)=>mC(dn(e,{type:"arrayBuffer"}),t);lrt=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={}),UQe(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={}),UQe(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}},urt={$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=urt,crt=["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"},Dv={kind:"color"},rq={kind:"projectionDefinition"},r3={kind:"object"},ya={kind:"value"},Qyr={kind:"error"},iq={kind:"collator"},bC={kind:"formatted"},nq={kind:"padding"},Yk={kind:"colorArray"},aq={kind:"numberArray"},_C={kind:"resolvedImage"},oq={kind:"variableAnchorOffsetCollection"};e2r=[xC,ki,pa,za,Dv,rq,bC,r3,Of(ya),nq,aq,Yk,_C,oq];frt=.96422,hrt=.82521,drt=4/29,Qre=6/29,prt=3*Qre*Qre,t2r=Math.PI/180,r2r=180/Math.PI;o2r=Object.hasOwn||function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};l2r={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=s2r(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",i2r(this.rgb))}get lab(){return this.overwriteGetter("lab",grt(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]=n2r([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]=mrt(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),c2r=["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 wrt(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=d2r(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=Dv: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,Dv)&&!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},Trt=class Art{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,Dv),!c))return null;let f=null;if(s["vertical-align"]){if(typeof s["vertical-align"]=="string"&&!c2r.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 Art(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 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=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())}},HQe={"to-boolean":za,"to-color":Dv,"to-number":ki,"to-string":pa},ET=class Ert{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(!HQe[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=HQe[i],a=[];for(let o=1;o4?`Invalid rgba value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:xrt(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())}},krt=class Crt{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}},y2r=class Prt{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 Prt(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}},x2r=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}},b2r=class Irt{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 Irt(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()}},_2r=class Rrt{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()}},w2r=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}},zrt=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())}};I2r=XT("==",T2r,Brt),R2r=XT("!=",A2r,C2r),z2r=XT("<",M2r,D2r),B2r=XT(">",S2r,F2r),q2r=XT("<=",E2r,L2r),O2r=XT(">=",k2r,P2r),Ort=class Nrt{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 Nrt(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}},N2r=class Urt{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 Urt(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}},U2r=class Vrt{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 Vrt(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}},V2r=class Grt{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 Grt(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 txr(t,this.geometries);if(t.geometryType()==="LineString")return rxr(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},Wrt=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}},XQe=Math.PI/180,Lne=class{constructor(e){let t=XQe*6378.137*1e3,r=Math.cos(e*XQe),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 lxr(t,this.geometries);if(t.geometryType()==="LineString")return uxr(t,this.geometries);if(t.geometryType()==="Polygon")return cxr(t,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},fxr=class Xrt{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 Zrt{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 Zrt(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={"==":I2r,"!=":R2r,">":B2r,"<":z2r,">=":O2r,"<=":q2r,array:Im,at:m2r,boolean:Im,case:_2r,coalesce:zrt,collator:Ort,format:Trt,image:U2r,in:y2r,"index-of":x2r,interpolate:sp,"interpolate-hcl":sp,"interpolate-lab":sp,length:V2r,let:krt,literal:OT,match:b2r,number:Im,"number-format":N2r,object:Im,semiliteral:fxr,slice:w2r,step:kne,string:Im,"to-boolean":ET,"to-color":ET,"to-number":ET,"to-string":ET,var:Drt,within:Fne,distance:Rne,"global-state":zne},ig=class extends Error{constructor(e,t){super(t),this.message=t,this.key=e}},hxr=class Krt{constructor(t,r=[]){this.parent=t,this.bindings={};for(let[i,n]of r)this.bindings[i]=n}concat(t){return new Krt(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}},Jrt=class Qrt{constructor(t,r,i=[],n,a=new hxr,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 _rt;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 Qrt(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 Jrt(r.registry,EB,r.path,null,r.scope);let f=[],h=!1;for(let p=1;ppxr(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),[Dv],(e,[t])=>{let[r,i,n,a]=t.evaluate(e).rgb;return[r*255,i*255,n*255,a]}],rgb:[Dv,[ki,ki,ki],QQe],rgba:[Dv,[ki,ki,ki,ki],QQe],has:{type:za,overloads:[[[pa],(e,[t])=>eet(t.evaluate(e),e.properties())],[[pa,r3],(e,[t,r])=>eet(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])=>dxr(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 _rt,this._defaultValue=r?lit(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(iit(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}};oit=class sit{constructor(t,r,i){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,nit(r),this._parameters=t,this._specification=i,this._rootKey=r,this._defaultValue=lit(i),this._warningHistory={};let n=tit(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(iit(this._rootKey,"",n,this._defaultValue))),this._defaultValue}}static deserialize(t){return new sit(t._parameters,t._rootKey,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};kxr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};net={promoteId:Rxr};aet=1114111,$xr=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;oet={"*"(){return[]},array:Vne,boolean:Fxr,number:vq,color:uie,constants:hit,enum:eC,filter:Gne,function:dit,layer:yit,object:G0,source:xit,light:bit,sky:_it,terrain:wit,projection:Vxr,projectionDefinition:Gxr,string:cx,formatted:zxr,resolvedImage:Bxr,padding:qxr,numberArray:Oxr,colorArray:Nxr,variableAnchorOffsetCollection:Uxr,sprite:Tit,state:Ait,fontFaces:Mit};V0.source=rp(tp(xit)),V0.sprite=rp(tp(Tit)),V0.glyphs=rp(tp(Sit)),V0.fontFaces=rp(tp(Mit)),V0.light=rp(tp(bit)),V0.sky=rp(tp(_it)),V0.terrain=rp(tp(wit)),V0.state=rp(tp(Ait)),V0.layer=rp(tp(yit)),V0.filter=rp(tp(Gne)),V0.paintProperty=rp(tp(git)),V0.layoutProperty=rp(tp(mit));Yxr={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"},Xxr=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,Yxr,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 kit{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=Txr(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 set(this.property,this.value,t,dn({},e.transition,this.transition),e.now)}untransitioned(){return new set(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):Fv(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 uet(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 uet(this._properties);for(let t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}},set=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}},Lit=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",Lit),Hi("ColorRampProperty",yq);fet=" 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?",Rv=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=Zxr(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 Qxr(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+fet);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+fet)));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}},ebr=()=>het||(het=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")})),tbr={get paint(){return ebr()}},xq=e=>e.type==="raster",rbr=class extends Rv{constructor(e,t){super(e,tbr,t)}},ibr={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,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]=c,this.float32[b+7]=f,this.float32[b+8]=h,this.uint8[M+36]=p,this.uint8[M+37]=d,this.uint8[M+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,M,x,A,T,y,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,c,f,h,p,d,v,m,g,w,_,b,M,x,A,T,y,E,S,C)}emplace(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v,m,g,w,_,b,M,x,A,T,y,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]=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]=M,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]=S,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);Pit=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)}};Pit.prototype.size=20;Wne=class extends _ie{get(e){return new Pit(this,e)}};Hi("CollisionBoxArray",Wne);Iit=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]}};Iit.prototype.size=52;Rit=class extends Mie{get(e){return new Iit(this,e)}};Hi("PlacedSymbolArray",Rit);zit=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]}};zit.prototype.size=68;Bit=class extends Sie{get(e){return new zit(this,e)}};Hi("SymbolInstanceArray",Bit);qit=class extends PB{getoffsetX(e){return this.float32[e*1+0]}};Hi("GlyphOffsetArray",qit);Oit=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",Oit);Nit=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]}};Nit.prototype.size=12;Uit=class extends Eie{get(e){return new Nit(this,e)}};Hi("TextAnchorOffsetArray",Uit);Vit=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]}};Vit.prototype.size=8;Git=class extends kie{get(e){return new Vit(this,e)}};Hi("FeatureIndexArray",Git);Hm=class extends iC{},Hit=class extends FB{},jit=class extends die{},abr=class extends iC{},obr=class extends iC{},sbr=class extends pie{},lbr=class extends vie{},ubr=class extends nC{},bT=class extends gie{},pet=class extends mie{},cbr=class extends yie{},fbr=class extends xie{},hbr=class extends bie{},vet=class extends wie{},$it=class extends Tie{},dbr=class extends Aie{},Wit=class extends LB{},zv=class extends LB{},Lie=class extends Cie{},Yit=class extends Die{},Pie=cl([{name:"a_pos",components:2,type:"Int16"}],4),pbr=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);vbr=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"}]),gbr=cl([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]),mbr=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)})),ybr=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=Lyr(une(((e,t)=>{var r=mbr(),i=ybr();t.exports=r,t.exports.murmur3=r,t.exports.murmur2=i}))(),1),Xit=class Zit{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,r,i,n){this.ids.push(met(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=met(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 Zit;return r.ids=t.ids,r.positions=t.positions,r.indexed=!0,r}};Hi("FeaturePositionMap",Xit);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 kv)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 kv)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 kv){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 kv)&&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 kv||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 kv||t instanceof rx)&&t.destroy()}}},l3=class{constructor(e,t,r=()=>!0){this.programConfigurations={};for(let i of e)this.programConfigurations[i.id]=new Qit(i,t,r);this.needsUpload=!1,this._featureMap=new Xit,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",Kit),Hi("CrossFadedDasharrayBinder",Jit),Hi("CompositeExpressionBinder",kv),Hi("ProgramConfiguration",Qit,{omit:["_buffers"]}),Hi("ProgramConfigurationSet",l3);zie=2**14-1,xet=-zie-1;bet=-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 abr,this.indexArray=new zv,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,pbr),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;pwet||(wet=new dc({"circle-sort-key":new kn(_r.layout_circle["circle-sort-key"],"circle-sort-key")})),zbr=()=>Tet||(Tet=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")})),Bbr={get paint(){return zbr()},get layout(){return Rbr()}},int=e=>e.type==="circle",qbr=class extends Rv{constructor(e,t){super(e,Bbr,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=Ibr(l,n,o,s),p=u),rnt({queryGeometry:h,size:p,transform:n,unwrappedTileID:o,getElevation:s,pitchAlignment:f,pitchScale:c},i)}},nnt=class extends Zne{};Hi("HeatmapBucket",nnt,{omit:["layers"]});Obr=()=>Aet||(Aet=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")})),Nbr={get paint(){return Obr()}};Tq=class ont{constructor(t,r){eae(this,t,1,r)}resize(t){ant(this,t,1)}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,1)}},Es=class snt{constructor(t,r){eae(this,t,4,r)}resize(t){ant(this,t,4)}replace(t,r){r?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new snt({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",lnt=e=>e.type==="heatmap",Ubr=class extends Rv{createBucket(e){return new nnt(e)}constructor(e,t){super(e,Nbr,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 rnt({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()}},Vbr=()=>Met||(Met=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")})),Gbr={get paint(){return Vbr()}},unt=e=>e.type==="hillshade",Hbr=class extends Rv{constructor(e,t){super(e,Gbr,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()}},jbr=()=>Eet||(Eet=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")})),$br={get paint(){return jbr()}};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}},Wbr=(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 cnt(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",Ybr=class extends Rv{constructor(e,t){super(e,$br,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 y_r(this._vertexBuffer,m_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 M=s+p*Math.max(_,0),x=s+p*Math.min(b,1);if(v||this._generateIntraEdgeVertices(a,s,l,u,c,M,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,S=a+A*Math.min(y,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(t3(n,this._granularity,!0));i+=n.length;let o=[];for(let s=1;s=2&&mnt(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 obr,this.indexArray=new zv,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,Xbr),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=gnt(o,i,a.fill.getGranularityForZoomLevel(i.z)),l=this.layoutVertexArray;ynt((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",xnt,{omit:["layers","patternFeatures"]});w_r=()=>Fet||(Fet=new dc({"fill-sort-key":new kn(_r.layout_fill["fill-sort-key"],"fill-sort-key")})),T_r=()=>Let||(Let=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")})),A_r={get paint(){return T_r()},get layout(){return w_r()}},bnt=e=>e.type==="fill",M_r=class extends Rv{constructor(e,t){super(e,A_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 xnt(e)}queryRadius(){return _q(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:e,geometry:t,transform:r,pixelsToTileUnits:i}){return ent(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),S_r=cl([{name:"a_centroid",components:2,type:"Int16"}],4),E_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}},_nt=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=wnt(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"];C_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)}};F_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 [, ]")}},Tnt=2*Math.PI*Hf;Mo=class Mnt{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 Mnt(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/Tnt*L_r(jT(this.y))}},mx=89.25;Wre=8192;Ent=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 sbr,this.centroidVertexArray=new Hm,this.indexArray=new zv,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?R_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:I_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,E_r),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,S_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",Ent,{omit:["layers","features"]});N_r=()=>Iet||(Iet=new dc({"fill-extrusion-rounded-corner-distance":new Pi(_r["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})),U_r=()=>Ret||(Ret=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")})),V_r={get paint(){return U_r()},get layout(){return N_r()}},knt=e=>e.type==="fill-extrusion",G_r=class extends Rv{constructor(e,t){super(e,V_r,t)}createBucket(e){return new Ent(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=$_r(s,o,0),f=j_r(i,u,l,o),h=f[0],p=f[1];return H_r(h,p,c)}};W_r="geojsonvt_clip_start",Y_r="geojsonvt_clip_end",Xie=cl([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),X_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"}]),Z_r=Zie.members;Zie.size,Zie.alignment;K_r=Math.cos(75/2*(Math.PI/180)),Cnt=1/2,Bet=2**14/Cnt,Dnt=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 lbr,this.layoutVertexArray2=new ubr,this.indexArray=new zv,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,Z_r)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,X_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[W_r],end:+e.properties[Y_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 S=v&&m,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*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>Bet/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*(Bet-1):this.scaledDistance)*Cnt;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",Dnt,{omit:["layers","patternFeatures"]});J_r=()=>qet||(qet=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")})),Q_r=()=>Oet||(Oet=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")})),Net={get paint(){return Q_r()},get layout(){return J_r()}},e3r=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)}},Fnt=e=>e.type==="line",t3r=class extends Rv{constructor(e,t){super(e,Net,t),this.gradientVersion=0,cB||(cB=new e3r(Net.paint.properties["line-width"].specification,"line-floorwidth"),cB.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if(e==="line-gradient"){let t=this.gradientExpression();this.stepInterpolant=wxr(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 Dnt(e)}queryRadius(e){let t=e,r=Uet(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*Uet(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=Cbr(i,l*a)),Tbr(o,i,s)}isTileClipped(){return!0}};r3r=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),i3r=cl([{name:"a_projected_pos",components:3,type:"Float32"}],4);cl([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);n3r=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"}]);Vet=cl([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Lnt=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}`)})}};f3r={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"},h3r={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]},d3r={\u0644\u0622:[65269,65270],\u0644\u0623:[65271,65272],\u0644\u0625:[65273,65274],\u0644\u0627:[65275,65276]},Het=1604,p3r=/[\u0600-\u06ff\u0750-\u077f\u0870-\u089f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/;Int=new Map;for(let[e,t]of Object.entries(f3r))v3r(t,e,Int);Rnt=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"};I3r={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},R3r={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=P3r(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("\u200B")}trim(){let t=this.graphemes(),r=0;for(;rr&&Zet(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=s3r(v),w=Get(v)&&Get(m);(I3r[v]||g||"imageName"in this.getSection(p-1)||u[p+1]!==void 0&&R3r[m]||w&&(c!=null?c:c=D3r(this.text)).has(h))&&o.push(Ket(p,f,s,o,z3r(v,m,g&&l),!1))}sae(d.codePointAt(0))||(f+=Yet(d,this.getSection(p),i,n,t,a)),h+=d.length}return Ont(Ket(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+=Yet(u,c,i,n,t,a),s++}let l=Math.max(1,Math.ceil(o/r));return o/l}};uae=B3r(),q3r=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/,O3r=new Set(["WS","FSI","LRI","RLI","PDI"]),N3r=new Set(["S","B"]);ene=4294967296,_ri=1/ene,Jet=typeof TextDecoder>"u"?null:new TextDecoder("utf-8"),Unt=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,Z3r(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&&Jet?Jet.decode(this.buf.subarray(t,e)):J3r(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]}},rwr=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",rwr);Hnt=(function(e){return e[e.none=0]="none",e[e.horizontal=1]="horizontal",e[e.vertical=2]="vertical",e[e.horizontalOnly=3]="horizontalOnly",e})(Hnt||{});Qet=new RegExp("^\\p{gc=M}$","u");rtt=32640;IT=class Xnt extends rr{constructor(t,r,i,n){super(t,r),this.angle=i,n!==void 0&&(this.segment=n)}clone(){return new Xnt(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)?Ynt(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}},Cwr=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=Lwr(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;Nwr=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];rne=class{constructor(e){this.layoutVertexArray=new cbr,this.indexArray=new zv,this.programConfigurations=e,this.segments=new Js,this.dynamicLayoutVertexArray=new fbr,this.opacityVertexArray=new hbr,this.hasVisibleVertices=!1,this.placedSymbolArray=new Rit}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,r3r.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,i3r.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Nwr,!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 dbr}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,n3r.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=itt(this.zoom,t["text-size"]),this.iconSizeData=itt(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=>Hnt[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 qit,this.lineVertexArray=new Oit,this.symbolInstances=new Bit,this.textAnchorOffsets=new Uit}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,M=vx(m,b);if(!i._featureFilter.filter(d,M,r))continue;b||(M.geometry=v3(m));let x;if(l){let E=i.getValueAndResolveTokens("text-field",M,r,p),S=Bm.factory(E);this.hasRTLText||(this.hasRTLText=Uwr(S)),x=E3r(S,i,M)}let A;if(u){let E=i.getValueAndResolveTokens("icon-image",M,r,p);A=E instanceof ug?E:ug.fromString(E)}if(!x&&!A)continue;let T=this.sortFeaturesByKey?c.evaluate(M,{},r):void 0,y={id:g,text:x,icon:A,index:w,sourceLayerIndex:_,geometry:M.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(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=Jie(x.toString());this.calculateGlyphDependencies(x,h,E,S,C);for(let k of x.sections)k.image&&(f[k.image.name]=!0)}}n.get("symbol-placement")==="line"&&(this.features=C3r(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}){Iwr({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"]});Gwr=()=>stt||(stt=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")})),Hwr=()=>ltt||(ltt=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:Dv,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 Hwr()},get layout(){return Gwr()}},nat=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",nat,{omit:["defaultValue"]});dae=e=>e.type==="symbol",jwr=class nne extends Rv{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?Vwr(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 nat(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 Trt?o(u.sections):u.eachChild(s)},l=i.value;l._styleExpression&&s(l._styleExpression.expression)}return a}};Wwr=()=>utt||(utt=new dc({"background-color":new Pi(_r.paint_background["background-color"],"background-color"),"background-pattern":new Lit(_r.paint_background["background-pattern"],"background-pattern"),"background-opacity":new Pi(_r.paint_background["background-opacity"],"background-opacity")})),Ywr={get paint(){return Wwr()}},aat=e=>e.type==="background",Xwr=class extends Rv{constructor(e,t){super(e,Ywr,t)}};sat=e=>e.type==="custom",Zwr=class extends Rv{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")}};Kwr=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=()=>{}}},Jwr={once:!0},lat=class{constructor(e,t){this.target=e,this.mapId=t,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new Kwr(()=>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))},Jwr):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(!Qwr(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=e5r(this.x,this.y,this.z),n=t5r(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",r5r=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=wnt(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]}},uat=class extends y3{constructor(e,t,r,i){super(e,t,i),this.delta=r}},xae=class extends uat{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]}},i5r=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=hat(wae),k5r=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={}));y4r=[ou.PRESENT,ou.DATA,ou.OFFSET,ou.LENGTH],vtt=[va.NONE,va.DELTA,va.COMPONENTWISE_DELTA,va.RLE,va.MORTON],x4r=[H0.NONE,H0.FAST_PFOR,H0.VARINT],b4r=[Nf.NONE,Nf.SINGLE,Nf.SHARED,Nf.VERTEX,Nf.MORTON,Nf.FSST],_4r=[ag.VERTEX,ag.INDEX,ag.STRING,ag.KEY],w4r=[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={}));Lv=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}};D4r=new TextDecoder;Mat=class extends Pq{getValueFromBuffer(e){return this.dataBuffer[e]}},Sat=class extends uat{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"})(mtt||(mtt={}));(function(e){e[e.MORTON=0]="MORTON",e[e.VEC_2=1]="VEC_2",e[e.VEC_3=2]="VEC_3"})(fx||(fx={}));Eat=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 V4r(this)}get mortonSettings(){return this._mortonSettings}};kat=class extends Eat{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}};Dat=class extends Eat{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 RTr(i)}),{})}},BTr=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 Git,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 zTr(this.rawTileData).layers:this.vtLayers=new F_r(new Unt(this.rawTileData)).layers,this.sourceLayerCoder=new r5r(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)=>Sbr(e.cameraQueryGeometry,v-l,m-l,g+l,w+l));for(let v of h)c.push(v);c.sort(OTr);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=Mtt(w.paint,m.paint,p,g,o),w.layout=Mtt(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 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=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",BTr,{omit:["rawTileData","sourceLayerCoder"]});Nat=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 Olt={};Jn(Olt,{AJAXError:()=>zT,AttributionControl:()=>Flt,BoxZoomHandler:()=>xlt,CanvasSource:()=>bst,CooperativeGesturesHandler:()=>Clt,DoubleClickZoomHandler:()=>Mlt,DragPanHandler:()=>Slt,DragRotateHandler:()=>Elt,EXTENT:()=>qr,EdgeInsets:()=>foe,ErrorEvent:()=>Mn,Event:()=>o0,Evented:()=>cu,FullscreenControl:()=>aCr,FullscreenEvent:()=>yoe,GPUInitializationError:()=>mlt,GeoJSONSource:()=>vst,GeolocateControl:()=>eCr,GeolocateErrorEvent:()=>Blt,GeolocateEvent:()=>w3,GeolocatePositionEvent:()=>moe,GlobeControl:()=>sCr,Hash:()=>ylt,ImageSource:()=>l6,KeyboardHandler:()=>Tlt,LngLat:()=>yn,LngLatBounds:()=>Ov,LogoControl:()=>Llt,Map:()=>$kr,MapBoxZoomEvent:()=>toe,MapContextEvent:()=>Zq,MapLibreEvent:()=>vc,MapLibreMap:()=>$kr,MapMouseEvent:()=>s0,MapMovementEvent:()=>Cn,MapProjectionEvent:()=>rst,MapSourceDataEvent:()=>Ns,MapStyleDataEvent:()=>dp,MapStyleImageMissingEvent:()=>ist,MapStyleLoadEvent:()=>eoe,MapTerrainEvent:()=>tst,MapTouchEvent:()=>ZC,MapWheelEvent:()=>est,Marker:()=>goe,MarkerClickEvent:()=>zlt,MarkerDragEvent:()=>_3,MercatorCoordinate:()=>Mo,NavigationControl:()=>Ykr,Point:()=>rr,Popup:()=>cCr,PopupEvent:()=>xoe,RasterDEMTileSource:()=>dst,RasterTileSource:()=>Aoe,ScaleControl:()=>rCr,ScrollZoomHandler:()=>Alt,Style:()=>doe,TerrainControl:()=>oCr,TwoFingersTouchPitchHandler:()=>wlt,TwoFingersTouchRotateHandler:()=>_lt,TwoFingersTouchZoomHandler:()=>blt,TwoFingersTouchZoomRotateHandler:()=>klt,VectorTileSource:()=>hst,VideoSource:()=>xst,addProtocol:()=>ort,addSourceType:()=>rAr,clearPrewarmedResources:()=>C6r,config:()=>a0,createTileMesh:()=>mst,getGlobalDispatcher:()=>Toe,getMaxParallelImageRequests:()=>yCr,getRTLTextPluginStatus:()=>pCr,getVersion:()=>vCr,getWorkerCount:()=>gCr,getWorkerUrl:()=>bCr,importScriptInWorkers:()=>wCr,isTimeFrozen:()=>jTr,now:()=>zo,prewarm:()=>k6r,removeProtocol:()=>srt,restoreNow:()=>HTr,setMaxParallelImageRequests:()=>xCr,setNow:()=>GTr,setRTLTextPlugin:()=>dCr,setWorkerCount:()=>mCr,setWorkerUrl:()=>_Cr});function Qot(){var e=new Wu(4);return Wu!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e}function NTr(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 UTr(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 zo(){return uO.getCurrentTime()}function GTr(e){uO.setNow(e)}function HTr(){uO.restoreNow()}function jTr(){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 KTr(e,t){let r={};for(let i in e)i!=="ref"&&(r[i]=e[i]);return crt.forEach(i=>{i in t&&(r[i]=t[i])}),r}function Vat(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),t6r(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 i6r(){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 $at(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 n6r(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($at(u,a,".json"),"SpriteJSON");o[l]=yC(c,i);let f=yield t.transformRequest($at(u,a,".png"),"SpriteImage");s[l]=qv.getImage(f,i)}return yield Promise.all([...Object.values(o),...Object.values(s)]),a6r(o,s)})}function a6r(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 c6r(e){let t=/^u\+([0-9a-f]*)(\?+)$/i.exec(e);if(t){let[,n,a]=t;return n.length+a.length>6?null:Wat(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 Wat(i,r[2]===void 0?i:parseInt(r[2],16))}function Wat(e,t){return e>t||e>roe?null:{start:e,end:Math.min(t,roe)}}function f6r(e,t){return e.ranges.some(({start:r,end:i})=>t>=r&&t<=i)}function Yat(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 D6r(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 F6r(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 L6r(e,t,r,i,n,a,o){var f;let s=F6r((f=n==null?void 0:n.layers)!=null?f:null,t,e.id),l=a.maxPitchScaleFactor(),u=e.tilesIn(i,l,s);u.sort(lst);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,D6r(a,h.tileID),o?(p,d)=>o(h.tileID,p,d):void 0)});return z6r(R6r(c),e)}function P6r(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(lst);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 B6r(s,e,r)}function I6r(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 lst(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 R6r(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 z6r(e,t){for(let r in e)for(let i of e[r])ust(i,t);return e}function B6r(e,t,r){for(let i in e)for(let n of e[i]){let a=r[t[i].source];ust(n,a)}return e}function ust(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 cst(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 q6r(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 O6r(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 N6r(e,t,r){if(!e)return t||{};if(!t)return e||{};let i=Jat(e,r),n=Jat(t,r);U6r(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 G6r(a)}function U6r(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 Jat(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 G6r(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 pst(e){return!e||e.length===0?[]:typeof e[0]=="number"?[e]:e.flatMap(t=>pst(t))}function Jq(e){return e.type==="GeometryCollection"?e.geometries.flatMap(t=>Jq(t)):pst(e.coordinates)}function Qat(e){let t=new Ov,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 H6r({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 Ov([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 Y6r(e){return e>0?1/(1-e):1+e}function X6r(e){return e>0?1-1/(1.001-e):-e}function gst(e,t){let r=mst(t,"16bit"),i=Hm.deserialize({arrayBuffer:r.vertices,length:r.vertices.byteLength/2/2}),n=zv.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 mst(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 M=b/r*qr;b===-1&&(M=-qq),b===r+1&&(M=qr+qq);let x=_/r*qr;_===-1&&(x=e.extendToNorthPole?LT:-qq),_===r+1&&(x=e.extendToSouthPole?PT:qr+qq),v[m++]=M,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 Q6r(e){let t=(1-4/e)/.9921875;return Math.max(0,t)}function yst(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 iAr(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 nAr),zae}function eot(e){let t=[];for(let r in e)t.push({id:r,state:e[r]});return t}function oAr(e,t,r,i){let n=Uc([],e,t),a=1/n[3]/r*i;return Ntt(n,n,[a,a,1/n[3],a])}function sAr(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=Gtt(e[f+n],l[f],r);o=h!==null&&h>=0?Math.max(o,h):Math.max(o,s[f])}let u=lAr(e,t),c=uAr(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 lAr(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 uAr(e,t){let r=hC(e),i=Ott([],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 cAr(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 tot(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*tot(s-1,0,Os(o/2)),c=Math.min(Os(mx),l+Os(o/2)),f=Math.min(c,l-Os(o/2)),h=tot(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 hAr(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 dAr(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 pAr(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:dAr(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}=pAr(r,i,e.cameraPosition,t.maxContentElevation));let n=Snt(e),a=Mo.fromLngLat(e.center,e.elevation),o=hAr(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=[],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,y=x.fullyVisible,E={x:A,y:T,z:x.zoom},S=s.getTileBoundingVolume(E,x.wrap,o,t);if(!y){let F=cAr(r,S,i);if(F===0)continue;y=F===2}let C=s.distanceToTile2d(n.x,n.y,E,S),k=u;l&&(k=(t.calculateTileZoom||fAr)(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 M.sort((x,A)=>x.distanceSq-A.distanceSq).map(x=>x.tileID)}function rot(e){return e==="raster"||e==="image"||e==="video"}function vAr(e,t,r,i,n,a,o){let s=zo(),l=jtt(t);for(let u of t){let c=e.getTileById(u.key);(c.fadingDirection===0||c.fadeOpacity===0)&&c.resetFadeLogic(),!gAr(e,c,r,s,i,n,o)&&(mAr(e,c,r,s,a,o)||yAr(c,l,s,o)||c.resetFadeLogic())}}function gAr(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 mAr(e,t,r,i,n,a){if(!t.hasData())return!1;let o=t.tileID.children(n),s=iot(e,t,o,r,i,n,a);if(s)return!0;for(let l of o)iot(e,t,l.children(n),r,i,n,a)&&(s=!0);return s}function iot(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 yAr(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 xAr(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 bAr(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||not(e,s),!((a=(n=s.neighboringTiles)==null?void 0:n[e.tileID.key])!=null&&a.backfilled)&¬(s,e)}}function not(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 wAr(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 TAr(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 AAr(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=Qot();o[0]=a[0],o[1]=a[1],o[2]=n[0],o[3]=n[1],NTr(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 SAr(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 Sst(e,t){return .5+e/t*.5}function EAr(e,t){return e.x>=-t[0]&&e.x<=t[0]&&e.y>=-t[1]&&e.y<=t[1]}function kAr(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 M=0;MMath.abs(r.x-t.x)*i?{useVertical:!0}:(e===2?t.yr.x)?{needsFlipping:!0}:null}function lot(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=Est(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 M=sot(i.writingMode,_,b,u);if(M)return M}d=[w.first];for(let M=i.glyphStartIndex+1;M0?_.point:kst(t.tileAnchorPoint,w,m,1,t),M=Nq(m.x,m.y,t,r),x=Nq(b.x,b.y,t,r),A=sot(i.writingMode,M,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 kst(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 kst(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 Cst(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 CAr(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]=Wtt(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),M=[],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)M.push(v),x=d.sub(v);else{let S,C=d.sub(v);S=C.mag()===0?loe(soe(h+c,s,E).sub(d),r,c):loe(C,r,c),g||(g=v.add(S)),m=CAr(h,S,d,a,o,g,r,s,E),M.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 M.push(T),{point:T,angle:l?y:0,path:M}}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 LAr(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 fot(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 hot(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 dot(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*BAr+t*qAr+r*OAr+t*NAr+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;Fst(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 Fst(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);Fst(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 vot(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 nO(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 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().maxzoom180?-360:r<-180?360:0}function mot(e){return Math.max(0,Math.floor(e))}function Poe(e,t,r,i){if(i<0||i>=1)return bot;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 zst(eO(e,t),e.near[2]+t*e.dz)}function _ot({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 Ost(){Pa("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function Nst(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=ert(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 Ust(e,t,r,i,n){let a=n.padding,o=Bv(n.worldSize,r.getNorthWest()),s=Bv(n.worldSize,r.getNorthEast()),l=Bv(n.worldSize,r.getSouthEast()),u=Bv(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,M=_/g.y;if(M<0||b<0){Ost();return}let x=Math.min(Vc(n.scale*Math.min(b,M)),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)),S=A.add(E).mult(n.scale/Vf(x));return{center:QT(n.worldSize,o.add(l).div(2).sub(S)),zoom:x,bearing:i}}function Gst(e){let t=s6(e.worldSize,e.center.lat);return 2*Math.PI*t}function oMr(e,t,r){let i=pc(t),n=pc(r),a=uu(i,n),o=Math.acos(a),s=Gst(e);return o/(2*Math.PI)*s}function sMr(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 lMr(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 uMr(e,t){return YB(hx(),-e.lng,-e.lat,t)}function cMr(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 Aot(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-(Iv-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 dMr(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 pMr(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 vMr(e,t){return 360/Gst({worldSize:e,center:{lat:t}})}function gMr(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=vMr(t.worldSize,t.center.lat);return new yn(t.center.lng-r.x*a*n,ea(t.center.lat+r.y*a,-Iv,Iv))}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 Mot(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 jst(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 Sot(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 Yst(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 kot(e,t){let{sample:r,radius:i}=Yst(e,t);return zst(r,(i-1)*Hf)}function Cot(e,t){let r=pc(e);return qs(r,r,1+t/Hf)}function Dot(e,t,r){let i=jB(So(),r,e);return uu(i,t)}function xMr(e,t,r){let i={constrainOverride:t};if(Array.isArray(e)){let n=new Tot({type:e},r);return{projection:n,transform:new Fot(i),cameraHelper:new Lot(n)}}switch(e){case"mercator":return{projection:new coe,transform:new aO(i),cameraHelper:new oO};case"globe":{let n=new Tot({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]},{});return{projection:n,transform:new Fot(i),cameraHelper:new Lot(n)}}case"vertical-perspective":return{projection:new Vst,transform:new $st(i),cameraHelper:new Zst};default:return Pa(`Unknown projection name: ${e}. Falling back to mercator projection.`),{projection:new coe,transform:new aO(i),cameraHelper:new oO}}}function kMr(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]=CMr[n];r=Math.ceil(r/o)*o,t[i]=r,r+=a}return{offsets:t,contentWords:r,sizeWords:Math.ceil(r/4)*4}}function Jst(e){return new Roe(e,fO.ProjectionUBO,Kst)}function Pot(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 DMr(e,t){var a;if(!t){e.projectionUniformBuffer.bind();return}let r=t.uniformBufferKey;if(r===void 0){Pot(e.projectionUniformBuffer,t);return}let i=e.keyedProjectionUniformBuffers.get(r);if(i){i.bind();return}let n=(a=e.freeProjectionUniformBuffers.pop())!=null?a:Jst(e);e.keyedProjectionUniformBuffers.set(r,n),Pot(n,t)}function FMr(e){e.freeProjectionUniformBuffers.push(...e.keyedProjectionUniformBuffers.values()),e.keyedProjectionUniformBuffers.clear()}function LMr(e){e.projectionUniformBuffer.destroy();for(let t of e.keyedProjectionUniformBuffers.values())t.destroy();for(let t of e.freeProjectionUniformBuffers)t.destroy()}function PMr(e){return new Roe(e,fO.TerrainUBO,Qst)}function IMr(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 RMr(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 BMr(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 iSr(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 alt(e,t,r){return Um(e.transform,t,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}function dEr(e){return new Roe(e,fO.FrameUBO,llt)}function pEr(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 gEr(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 Bot(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 $it;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;TEr(m,f,h,l,u,b,x,w,M,Um(u,v,o,s),d.toUnwrapped(),A,r.layout.get("symbol-height-anchor")==="ground")}}}function wEr(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 TEr(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;kAr(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?yEr:oe,be=L&&r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(1)!==0,fe;fe=L?F.iconsInText?bSr(I.kind,$,_,g,w,ce,e,Se,j,Q,K,G,y,Ee,xe):slt(I.kind,$,_,g,w,ce,e,Se,j,Q,n,K,be,y,Ee,xe):olt(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){M=!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})}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;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,S&&(P.u_is_plain=0,Oot(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)}Oot(D.buffers,k.segments,r,e,D.program,x,c,f,D.uniformValues,D.projectionData,k.terrainData),F&&!S&&(D.uniformValues.u_is_halo=0)}}function Oot(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 MEr(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"),M=r.paint.get("circle-translate-anchor"),x=Um(f,w,b,M),A=_.programConfigurations.get(r.id),T=e.useProgram("circle",A),y=_.layoutVertexBuffer,E=_.indexBuffer,S=yh(n,g),C={programConfiguration:A,program:T,layoutVertexBuffer:y,indexBuffer:E,uniformValues:XMr(e,w,r,x,m),terrainData:S,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:M,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,M,y,r.paint,e.transform.zoom,w)}}function SEr(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"?CEr(e,s,r,o,n):n.currentPass==="translucent"&&DEr(e,r,o,n))}a.viewport.set([0,0,e.width,e.height])}else n.currentPass==="offscreen"?EEr(e,t,r,i,n):n.currentPass==="translucent"&&kEr(e,r)}function EEr(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]);FEr(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,ilt(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 kEr(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),clt(r,t).bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram("heatmapTexture").draw(r,i.TRIANGLES,Ua.disabled,Ro.disabled,e.colorModeForRenderPass(),Eo.disabled,nlt(e,t,0,1),null,null,t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom))}function CEr(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=ult(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,ilt(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 DEr(e,t,r,i){let n=e.context,a=n.gl,o=e.transform;n.setColorMode(e.colorModeForRenderPass());let s=clt(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,nlt(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 FEr(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=ult(e,t.width/4,t.height/4),r.heatmapFbos.set(EC,n))}function ult(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 clt(e,t){return t.colorRampTexture||(t.colorRampTexture=new Tu(e,t.colorRamp,e.gl.RGBA)),t.colorRampTexture}function flt(e,t,r){let i=e.context,n=i.bindFramebuffer.get(),a=i.viewport.get(),[,,o,s]=a;return LEr(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 LEr(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 hlt(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,gSr(t,0),null,null,i.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,i.paint,e.transform.zoom),e.currentStencilSource=void 0}function dlt(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=$6r(C,S,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 HEr(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:jEr(e,a,r)}}return e.selfFading?{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:$Er(e,r)}:n}function jEr(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 $Er(e,t){let r=(zo()-e.timeAdded)/t,i=ea(r,0,1);return{tileOpacity:i,fadeMix:{opacity:i,mix:0}}}function WEr(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 M=vf(n,b),x=h?ASr(o,e,h,{tileID:b,tileSize:f},_):TSr(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,M,r.id,T.vertexBuffer,T.indexBuffer,T.segments)}}function QEr(e){let t=e.transform.padding;Vot(e,e.transform.height-(t.top||0),3,YEr),Vot(e,t.bottom||0,3,XEr),Got(e,t.left||0,3,ZEr),Got(e,e.transform.width-(t.right||0),3,KEr);let r=e.transform.centerPoint;ekr(e,r.x,e.transform.height-r.y,JEr)}function ekr(e,t,r,i){lO(e,t-1,r-10,2,20,i),lO(e,t-10,r-1,20,2,i)}function Vot(e,t,r,i){lO(e,0,t+r/2,e.transform.width,r,i)}function Got(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 tkr(e,t,r,i){for(let n of r)rkr(e,t,n,i)}function rkr(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}`),ikr(e,`${m} ${p}kB`);let g=vf(i,r);o.draw(n,a.TRIANGLES,s,l,Hl.alphaBlended,Eo.disabled,Iot(aa.transparent,v),null,g,c,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments),o.draw(n,a.LINE_STRIP,s,l,u,Eo.disabled,Iot(aa.red),f,g,c,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments)}function ikr(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 nkr(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 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{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 okr(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=EMr(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 skr(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=SMr(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 glt(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 zv;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 lkr(e,t){let r=e.context,i=r.gl,n=kSr(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=glt(r,t);l.draw(r,i.TRIANGLES,a,o,s,Eo.disabled,n,null,void 0,"sky",u.vertexBuffer,u.indexBuffer,u.segments)}function ukr(e,t){let r=e.getCartesianPosition();Rtt(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)),ztt(r,r,i),r}function ckr(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=ukr(r,e.transform),u=s.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),c=s6(s.worldSize,s.center.lat),f=Hst(s),h=jst(cp(f)-c,c),p=t.properties.get("atmosphere-blend")*u.projectionTransition*h;if(p===0)return;let d=SSr(l,p,f,c,s.inverseProjectionMatrix),v=glt(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 Ckr({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 Dkr({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 Fkr({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 Ikr(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 Zkr(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 Plt(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 Ilt(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 Kkr(){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:Rlt},[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 Jkr(e){return e.firstElementChild.children[1]}function Kot(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=nCr(r),a=n/r;e.style.width=`${t*a}px`;let o=`${n}\xA0${i}`;e.textContent!==o&&(e.textContent=o)}function iCr(e){let t=10**Math.ceil(-Math.log(e)/Math.LN10);return Math.round(e*t)/t}function nCr(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:iCr(r),t*r}function qlt(e){if(!e)return qlt(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 fCr(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 dCr(e,t){return QC().setRTLTextPlugin(e,t)}function pCr(){return QC().getRTLTextPluginStatus()}function vCr(){return hCr}function gCr(){return cO.workerCount}function mCr(e){cO.workerCount=e}function yCr(){return a0.MAX_PARALLEL_IMAGE_REQUESTS}function xCr(e){a0.MAX_PARALLEL_IMAGE_REQUESTS=e}function bCr(){return a0.WORKER_URL}function _Cr(e){a0.WORKER_URL=e}function wCr(e){return Zi(this,null,function*(){yield Toe().broadcast("IS",e)})}var Nlt,Jot,Rq,NC,Pae,l0,uO,$Tr,WTr,YTr,XTr,UC,t,Ko,Xn,qv,ZTr,vc,Cn,eoe,dp,Ns,s0,ZC,est,toe,tst,rst,Zq,ist,o6r,s6r,roe,l6r,u6r,h6r,ioe,boe,d6r,p6r,v6r,g6r,Zat,m6r,y6r,Kat,x6r,b6r,_6r,_oe,cO,E6r,KC,sst,Bq,Ov,fst,hst,Aoe,dst,vst,a6,j6r,$6r,e8,T3,qq,l6,xst,bst,_st,eAr,wst,tAr,rAr,noe,nAr,zae,Tst,aAr,Moe,Soe,fAr,aot,Xm,ooe,_Ar,oot,MAr,DAr,PAr,uot,VC,cot,IAr,RAr,zAr,BAr,qAr,OAr,NAr,GC,UAr,VAr,pot,Al,GAr,jC,HAr,jAr,$Ar,Lst,WAr,YAr,XAr,ZAr,KAr,JAr,QAr,eMr,got,dg,Pst,Ist,coe,foe,Loe,tMr,rMr,iMr,yot,xot,nMr,bot,aO,oO,wot,aMr,qae,Vst,Tot,Oae,mMr,Uae,yMr,Eot,$st,Fot,Zst,Lot,bMr,doe,_Mr,wMr,TMr,AMr,MMr,SMr,EMr,fO,CMr,Roe,Kst,i6,Qst,Gq,zMr,qMr,OMr,tlt,NMr,UMr,VMr,GMr,HMr,rlt,jMr,$Mr,WMr,YMr,XMr,ZMr,Iot,KMr,JMr,ilt,nlt,QMr,eSr,tSr,rSr,nSr,aSr,oSr,sSr,lSr,uSr,cSr,hO,fSr,hSr,dSr,pSr,vSr,gSr,mSr,ySr,xSr,olt,slt,bSr,_Sr,wSr,TSr,ASr,MSr,SSr,ESr,kSr,Hq,CSr,DSr,Rot,FSr,Vo,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,aEr,oEr,sEr,lEr,Boe,uEr,cEr,fEr,hEr,llt,Y0,Hl,vEr,Ua,Hae,Ro,zot,jae,Eo,jq,yEr,Yae,Zae,YEr,XEr,ZEr,KEr,JEr,fkr,A3,hkr,mlt,ylt,t8,dkr,pkr,vkr,gkr,mkr,ykr,xkr,bkr,xlt,wkr,voe,Tkr,r8,Akr,i8,Skr,Ekr,dO,Lkr,Noe,Hot,blt,_lt,wlt,Pkr,Tlt,Wot,Alt,Mlt,Rkr,zkr,Slt,Elt,klt,Clt,Bkr,Yq,qkr,Okr,Nkr,Dlt,Flt,Llt,Ukr,Yot,Vkr,n6,Gkr,Hkr,jkr,Xot,$kr,Wkr,Ykr,Xkr,b3,Uoe,Zot,Rlt,Qae,_3,zlt,goe,Qkr,Xq,YC,w3,moe,Blt,eCr,tCr,rCr,yoe,aCr,oCr,sCr,lCr,uCr,xoe,cCr,hCr,Ult=Ci(()=>{Uat();Nlt={};Jot="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}};$Tr=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"]),YTr=new Set(["href","src"]),XTr=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"&&$Tr.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(!WTr.has(t)&&!t.startsWith("aria-"))return!1;if(!YTr.has(t))return!0;try{return XTr.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),qv.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"?Ktt(f,h):Jtt(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,M)=>b&&M==="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})})(qv||(qv={})),qv.resetRequestQueue();ZTr=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}},est=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{},tst=class extends vc{constructor(e={}){super("terrain",e)}},rst=class extends vc{constructor(e={}){super("projectiontransition",e)}},Zq=class extends vc{},ist=class extends vc{constructor(e={}){super("styleimagemissing",e)}};o6r=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 ist({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`),Gnt(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}},s6r=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,l6r={start:0,end:roe},u6r=0;h6r=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(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 Pa(`Ignoring the font face declared for "${e}": it has no URL.`),null;let i=`maplibre-gl-font-face-${u6r++}`,n=r["unicode-range"];if(!(n!=null&&n.length))return{url:r.url,ranges:[l6r],family:i};let a=[];for(let o of n){let s=c6r(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;d6r=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 d6r(e);return r.buffer=t,r},g6r=class{constructor(e,t,r,i=v6r){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={},this.lang=r,this.fontFaceManager=new h6r(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 Vnt(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&&Pnt(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===p6r&&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()}},m6r=()=>Zat||(Zat=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")})),y6r=class extends cu{constructor(e,t){super(),this._transitionable=new MC(m6r(),"light",t),this.setLight(e),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return Ytt(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)}},x6r=()=>Kat||(Kat=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")})),b6r=class extends cu{constructor(e,t){super(),this._transitionable=new MC(x6r(),"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}},_6r=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 ost{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}},E6r=Math.floor(l0.hardwareConcurrency/2);cO.workerCount=Ztt(globalThis)?Math.max(Math.min(E6r,3),1):1;sst=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 lat(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)})}};Ov=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)}},fst=class{constructor(e,t,r){this.bounds=Ov.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 cst(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 fst(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 qv.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}},dst=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 qv.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 Qtt(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+1Qat(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=H6r(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],j6r=(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)}),$6r=(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:X6r(i.paint.get("raster-saturation")),u_contrast_factor:Y6r(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]});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 qv.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=gst(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=Z6r(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=J6r(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!yst(this.tileCoords),this.flippedWindingOrder=K6r(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}};xst=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 lrt(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}},bst=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}},_st={},eAr=(e,t,r,i)=>{let n=new(wst(t.type))(e,t,r,i);if(n.id!==e)throw Error(`Expected Source id to be ${e} instead of ${n.id}`);return n},wst=e=>{switch(e){case"geojson":return vst;case"image":return l6;case"raster":return Aoe;case"raster-dem":return dst;case"vector":return hst;case"video":return xst;case"canvas":return bst}return _st[e]},tAr=(e,t)=>{_st[e]=t},rAr=(e,t)=>Zi(null,null,function*(){if(wst(e))throw Error(`A source type called "${e}" already exists.`);tAr(e,t)});noe="RTLPluginLoaded",nAr=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;Tst=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=iAr(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 Mst{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=>oAr(p,t,r,l));n&&sAr(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 Mst(u,c,new Moe(f,h))}};fAr=aoe(9.314,3);aot=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=eAr(t,r,i,this),this._inViewTiles=new aot,this._outOfViewCache=new Nat(0,n=>this._unloadTile(n)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new aAr,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 aot}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&&bAr(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=rot(this._source.type);s&&this._rasterFadeDuration>0&&!r&&vAr(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 Tst(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(_nt)){let b=u.map(x=>w.getTilePoint(x)),M=c.map(x=>w.getTilePoint(x));n.push({tile:d,tileID:o?w:w.unwrapTo(0),queryGeometry:b,cameraQueryGeometry:M,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:rot(this._source.type)&&xAr(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),_Ar=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))}};oot=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}};MAr=Om();DAr=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);PAr=class{constructor(e,t=new oot(e.width+200,e.height+200,25),r=new oot(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,M,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=S.x&&B.x<=C.x&&I.y>=S.y&&B.y<=C.y?[P]:B.xC.x||B.yC.y?[]:fae([P],S.x,S.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:Htt(k),allPointsOccluded:!D}}},uot=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 uot(e?e.text:null,t,r,n),this.icon=new uot(e?e.icon:null,t,i,n)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},cot=class{constructor(e,t,r){this.text=e,this.icon=t,this.skipFade=r}},IAr=class{constructor(e,t,r,i,n){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=r,this.bucketIndex=i,this.tileID=n}},RAr=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]}};zAr=class{constructor(e,t,r,i,n){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new PAr(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=r,this.retainedQueryData={},this.collisionGroups=new RAr(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 IAr(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:M}=w;e.push({sortKey:_,symbolInstanceStart:b,symbolInstanceEnd:M,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,M){var E,S,C;let x=Fq[e.textAnchor],A=[e.textOffset0,e.textOffset1],T=fot(x,r,i,A,n),y=this.collisionIndex.placeCollisionBox(t,f,s,l,u,o,a,v,c.predicate,w,T,_,b,M);if((!g||this.collisionIndex.placeCollisionBox(g,f,s,l,u,o,a,m,c.predicate,w,T,_,b,M).placeable)&&y.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(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",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",y=g&&(_||!i.hasIconData()||v),E=_&&(g||!i.hasTextData()||d);!i.collisionArrays&&f&&i.deserializeCollisionBoxes(f);let S=this.retainedQueryData[i.bucketInstanceId].tileID,C=this._getTerrainElevationFunc(S),k=this.transform.getFastPathSimpleProjectionMatrix(S),D=(F,P,R)=>{var xe,ce;if(t[F.crossTileID])return;if(c){this.placements[F.crossTileID]=new cot(!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,S,s,M,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,M,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,S,s,M,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 cot(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,S=y===1||y===3;if(A){let k=dot(x.text),D=E?GC:k;d(e.text,w,D);let F=S?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||S?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=dot(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=fot(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=S),hot(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),hot(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}};BAr=2**25,qAr=2**24,OAr=2**17,NAr=2**16;GC=0,UAr=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 UAr(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}},pot=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],Al=new Uint32Array(96),GAr=class Dst{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=pot[i&15];if(!a)throw Error("Unrecognized array type.");let[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new Dst(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=pot.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++)vot(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];vot(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,HAr=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 GAr(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)}},jAr=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},$Ar=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);}`,vot="void main() {fragColor=vec4(1.0);}",dg={prelude:go(GAr,HAr),projectionMercator:go(` +} 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);}`,got="void main() {fragColor=vec4(1.0);}",dg={prelude:go(WAr,YAr),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: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; +);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(XAr,ZAr),backgroundPattern:go(KAr,JAr),circle:go(QAr,eMr),clippingMask:go(got,"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() { @@ -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: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() { +}`,"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(got,`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: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.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);}")};Pst="#define PROJECTION_MERCATOR",Ist="mercator",coe=class{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Ist}get shaderDefine(){return Pst}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 zv;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 Rst{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 Rst(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=mot(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=mot(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=Qot(),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=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 Cv(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 Ov([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=[-Iv,Iv])}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,M=new Mo(_*t,b*t,0).toLngLat(),x=gx(1,M.lat),A=Vc(this.height/2/Math.tan(this.fovInRadians/2)/m/x/this.tileSize);this._elevation=g,this._center=M,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(){}},rMr=cl([{name:"a_pos3d",type:"Int16",components:3}]),iMr=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),Pv(n.terrainRttPosMatrix32f,0,qr,qr,0,0,1),this._tiles[n.key]=new Tst(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))Pv(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;Pv(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;Pv(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;Pv(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)}},yot=qr*(1-1e-12),xot=-.5,nMr=class{constructor(e,t,r,i="auto"){this._meshCache={},this.painter=e,this.tileManager=new iMr(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+xot,u=a[13]*n.dim+xot,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 M=this._helper._latRange;l=m3(M[1])*s,u=m3(M[0])*s,u-lu&&(_=u-M)}if(o){let M=(c+f)/2,x=m;this._helper._renderWorldCopies&&(x=W0(m,M-s/2,M+s/2));let A=d/2;x-Af&&(w=f-A)}if(w!==void 0||_!==void 0){let M=new rr(w!=null?w:m,_!=null?_:g);a.center=QT(s,M).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 tMr}clone(){let t=new qst;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}=Bst(c,Uq,v,w,.001/p),M=eO(c,_),x=eO(c,b),A=n[2]+_*u-M.elevation,T=n[2]+b*u-x.elevation,y=M.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 Ov().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=Cv(Math.atan2(s,-l)),d=Cv(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=Bv(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),TAr(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=_ot(u,n.x*this.worldSize,n.y*this.worldSize,i);return _ot(u,l.x*this.worldSize,l.y*this.worldSize,l.z){if(l&&e.setZoom(Ks.number(r,p,_)),bne(n,a)||Nst({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),M=(p>r?Math.min(2,m):Math.max(.5,m))**(1-_),x=QT(e.worldSize,d.add(v.mult(_*M)).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=Bv(s,t.locationAtOffset),u=Bv(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,M,x)=>{e.setZoom(_===1?o:i+Vc(b));let A=_===1?a:QT(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: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}},aMr=()=>wot||(wot=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}),Vst=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;mMr=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}};yMr=class{constructor(){this._boundingVolumeCache=new mMr(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,-Iv,Iv),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 yMr}clone(){let t=new Wst;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=Cot(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=Dot(s,l,a);if(u<=0)return!0;let c=this.screenTerrainPointToMercatorCoordinate(o,r);return c!=null&&Dot(s,l,Cot(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 Ov(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,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(p,E),F=vC(g,S);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=dMr(a);return JC(pMr(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){}};Fot=class Xst{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 $st(void 0,this._helper)}clone(){let t=new Xst;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)}},Zst=class Ym{get useGlobeControls(){return!0}handlePanInertia(t,r){let i=gMr(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)),M=(1-Vf(-o))*b,x=r.center.lat,A=r.zoom,T=new yn(r.center.lng+l*M,ea(r.center.lat+u*M,-Iv,Iv));r.setLocationAtPoint(n,i);let y=r.center,E=gC(Math.abs(s),45,85,0,1),S=Math.max(E,g)**.25,C=i0(y.lng,T.lng),k=i0(y.lat,T.lat);r.setCenter(new yn(y.lng+C*S,y.lat+k*S).wrap()),r.setZoom(A+Hc(x,r.center.lat))}handleMapControlsPan(t,r,i){t.panDelta&&fMr(r,i,r.isPointOnMapSurface(t.around)?t.around:r.centerPoint,t.panDelta)}cameraForBoxAndBearing(t,r,i,n,a){let o=Ust(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))],M=pc(o.center),x=1/0;for(let A of b)s<0&&(x=Ym.getLesserNonNegativeNonNull(x,Ym.solveVectorScale(A,M,_,"x",s))),l>0&&(x=Ym.getLesserNonNegativeNonNull(x,Ym.solveVectorScale(A,M,_,"x",l))),u>0&&(x=Ym.getLesserNonNegativeNonNull(x,Ym.solveVectorScale(A,M,_,"y",u))),c<0&&(x=Ym.getLesserNonNegativeNonNull(x,Ym.solveVectorScale(A,M,_,"y",c)));if(!Number.isFinite(x)||x===0){Ost();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),M=Vf(w-g);return c=m!==i,{easeFunc:x=>{if(bne(o,s)||Nst({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,M):Math.max(.5,M))**(1-x),T=Mot(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=oMr(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),M=Vf(b-d),x=i0(n.lng,h.lng),A=i0(n.lat,h.lat);return{easeFunc:(T,y,E,S)=>{let C=Mot(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:M,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 sst(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 o6r,this.imageManager.setEventedParent(this),this.imageManager.setMissingImageResolver(e._missingStyleImageResolver),this.patternAtlas=new s6r(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 g6r(e._requestManager,t.localIdeographFontFamily,r),this.lineAtlas=new _6r(256,512),this.crossTileSymbolIndex=new Lst,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)Fv(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(bMr,{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 y6r((n=this.stylesheet.light)!=null?n:{},this._globalState),this._setProjectionInternal(((a=this.stylesheet.projection)==null?void 0:a.type)||"mercator"),this.sky=new b6r(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=Vat(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 n6r(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=Vat(e.layers);let i=r6r(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,oat(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(!Fv(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}Fv(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}Fv(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(P6r(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?I6r(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(!Fv(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(!Fv(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=xMr(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||!Ftt(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 VAr(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={}}},_Mr=cl([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),wMr=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)}),AMr=(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)}),MMr=(e,t)=>({u_ele_delta:new Ni(e,t.u_ele_delta)}),SMr=(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}),EMr=e=>({u_ele_delta:e}),fO={ProjectionUBO:0,TerrainUBO:1,FrameUBO:2};CMr={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();})(); +`),M=u.createShader(u.FRAGMENT_SHADER);if(u.isContextLost()){this.failedToCreate=!0;return}u.shaderSource(M,_),u.compileShader(M),u.attachShader(this.program,M);let x=u.createShader(u.VERTEX_SHADER);if(u.isContextLost()){this.failedToCreate=!0;return}u.shaderSource(x,b),u.compileShader(x),u.attachShader(this.program,x),this.attributes={};let A={};if(this.numAttributes=h.length,u.linkProgram(this.program),!u.getProgramParameter(this.program,u.LINK_STATUS)){if(u.isContextLost()){this.failedToCreate=!0;return}throw u.getShaderParameter(M,u.COMPILE_STATUS)?u.getShaderParameter(x,u.COMPILE_STATUS)?Error(`Program failed to link: ${u.getProgramInfoLog(this.program)}`):Error(`Could not compile vertex shader: ${u.getShaderInfoLog(x)}`):Error(`Could not compile fragment shader: ${u.getShaderInfoLog(M)}`)}kMr(u,this.program);let T=RMr(u,this.program);for(let y of h){if(!y)continue;let E=u.getAttribLocation(this.program,y);E>=0&&(this.attributes[y]={location:E,isInteger:T.has(y)})}u.deleteShader(x),u.deleteShader(M);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=TMr(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 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]);IMr(e.terrainUniformBuffer,s)}if(DMr(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={}),(M=x.vaos)[u]||(M[u]=new wMr),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)}};qMr=(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)}),OMr=(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)}),tlt=(e,t,r,i)=>{let n=e.style.light,a=n.getCartesianPosition(),o=fne();n.properties.get("anchor")==="viewport"&&ktt(o,e.transform.bearingInRadians),Btt(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}},NMr=(e,t,r,i,n,a,o)=>dn(tlt(e,t,r,i),elt(a,e,o),{u_height_factor:-(2**n.overscaledZ)/o.tileSize/8}),UMr=(e,t)=>({u_fill_translate:new xa(e,t.u_fill_translate)}),VMr=(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)}),GMr=(e,t)=>({u_fill_translate:new xa(e,t.u_fill_translate)}),HMr=(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)}),rlt=(e,t,r,i,n)=>dn(elt(t,e,r),{u_fill_translate:i,u_sdf_pattern:+!!n}),jMr=e=>({u_fill_translate:e}),$Mr=e=>({u_fill_translate:e}),WMr=(e,t,r,i,n)=>rlt(e,t,r,i,n),YMr=(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)}),XMr=(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}},ZMr=(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)}),Iot=(e,t=1)=>({u_color:e,u_overlay:0,u_overlay_scale:t}),KMr=(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)}),JMr=(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)}),ilt=(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}},nlt=(e,t,r,i)=>{let n=Om();return Pv(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")}},QMr=(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)}),eSr=(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)}),tSr=(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 Pv(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()}};nSr=(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)}),aSr=(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")}),oSr=(e,t)=>({u_translation:new xa(e,t.u_translation),u_ratio:new Ni(e,t.u_ratio)}),sSr=(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)}),lSr=(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)}),uSr=(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)}),cSr=(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:alt(e,t,r),u_ratio:i/r0(t,1,n.zoom)}},fSr=(e,t,r,i,n)=>dn(hO(e,t,r,i),{u_image:0,u_image_height:n}),hSr=(e,t,r,i,n)=>{let a=e.transform,o=zoe(t,a);return{u_translation:alt(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}},dSr=(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})},pSr=(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})};vSr=(e,t)=>({u_image:new Sn(e,t.u_image),u_opacity:new Ni(e,t.u_opacity)}),gSr=(e,t)=>({u_image:t,u_opacity:e}),mSr=(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)}),ySr=(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)}),xSr=(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)}),olt=(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}),slt=(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d,v)=>{let m=o.transform;return dn(olt(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})},bSr=(e,t,r,i,n,a,o,s,l,u,c,f,h,p,d)=>dn(slt(e,t,r,i,n,a,o,s,l,u,!0,c,!0,h,p,d),{u_texsize_icon:f,u_texture_icon:1}),_Sr=(e,t)=>({u_opacity:new Ni(e,t.u_opacity),u_color:new $m(e,t.u_color)}),wSr=(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)}),TSr=(e,t)=>({u_opacity:e,u_color:t}),ASr=(e,t,r,i,n)=>dn(BMr(r,n,t,i),{u_opacity:e}),MSr=(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)}),SSr=(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}),ESr=(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)}),kSr=(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=Hst(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")*jst(cp(s)-l,l)}},Hq=(e,t)=>({}),CSr={fillExtrusion:qMr,fillExtrusionPattern:OMr,fill:UMr,fillPattern:VMr,fillOutline:GMr,fillOutlinePattern:HMr,circle:YMr,collisionBox:Hq,collisionCircle:Hq,debug:ZMr,depth:Hq,clippingMask:Hq,heatmap:KMr,heatmapTexture:JMr,hillshade:QMr,hillshadePrepare:eSr,colorRelief:nSr,line:oSr,lineGradient:sSr,linePattern:lSr,lineSDF:uSr,lineGradientSDF:cSr,layerOpacity:vSr,raster:j6r,symbolIcon:mSr,symbolSDF:ySr,symbolTextAndIcon:xSr,background:_Sr,backgroundPattern:wSr,terrain:AMr,terrainDepth:MMr,atmosphere:MSr,sky:ESr},DSr=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)}},Rot={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},FSr=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[Rot[i.type]],this.itemSize,a):e.vertexAttribPointer(n.location,i.components,e[Rot[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)}},LSr=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)}},PSr=class extends Vo{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}},ISr=class extends Vo{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}},RSr=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)}},zSr=class extends Vo{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}},BSr=class extends Vo{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}},qSr=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)}},OSr=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)}},NSr=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}},USr=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)}},VSr=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}},GSr=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)}},HSr=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}},jSr=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)}},$Sr=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)}},WSr=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)}},YSr=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}},XSr=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)}},ZSr=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)}},KSr=class extends Vo{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}},JSr=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)}},QSr=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)}},eEr=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}},tEr=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}},rEr=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}},iEr=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}},nEr=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}},aEr=class extends Vo{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}},oEr=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}},sEr=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}},lEr=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}},uEr=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}},cEr=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}},fEr=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}},hEr=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 uEr(e,o),i)this.depthAttachment=n?new fEr(e,o):new cEr(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)}},llt=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=llt.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]);vEr=class{constructor(e){this.gl=e,this.clearColor=new LSr(this),this.clearDepth=new PSr(this),this.clearStencil=new ISr(this),this.colorMask=new RSr(this),this.depthMask=new zSr(this),this.stencilMask=new BSr(this),this.stencilFunc=new qSr(this),this.stencilOp=new OSr(this),this.stencilTest=new NSr(this),this.depthRange=new USr(this),this.depthTest=new VSr(this),this.depthFunc=new GSr(this),this.blend=new HSr(this),this.blendFunc=new jSr(this),this.blendColor=new $Sr(this),this.blendEquation=new WSr(this),this.cullFace=new YSr(this),this.cullFaceSide=new XSr(this),this.frontFace=new ZSr(this),this.program=new KSr(this),this.activeTexture=new JSr(this),this.viewport=new QSr(this),this.bindFramebuffer=new eEr(this),this.bindRenderbuffer=new tEr(this),this.bindTexture=new rEr(this),this.bindVertexBuffer=new iEr(this),this.bindElementBuffer=new nEr(this),this.bindVertexArray=new aEr(this),this.pixelStoreUnpack=new oEr(this),this.pixelStoreUnpackPremultiplyAlpha=new sEr(this),this.pixelStoreUnpackFlipY=new lEr(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=Jst(this),this.keyedProjectionUniformBuffers=new Map,this.freeProjectionUniformBuffers=[],this.terrainUniformBuffer=PMr(this),this.frameUniformBuffer=dEr(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 DSr(this,e,t)}createVertexBuffer(e,t,r){return new FSr(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 hEr(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){Fv(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);zot=1029,jae=2305,Eo=class{constructor(e,t,r){this.enable=e,this.mode=t,this.frontFace=r}};Eo.disabled=new Eo(!1,zot,jae),Eo.backCCW=new Eo(!0,zot,jae),Eo.frontCCW=new Eo(!0,1028,jae);yEr=up(new Float32Array(16));Yae=0;Zae=[new rr(0,0),new rr(qr,0),new rr(qr,qr),new rr(0,qr)];YEr=new aa(1,0,0,1),XEr=new aa(0,1,0,1),ZEr=new aa(0,0,1,1),KEr=new aa(1,0,1,1),JEr=new aa(0,1,1,1);fkr={symbol:xEr,circle:MEr,heatmap:SEr,line:BEr,fill:qEr,fillExtrusion:OEr,hillshade:NEr,colorRelief:VEr,raster:GEr,background:WEr,sky:lkr,atmosphere:ckr,custom:akr,debug:tkr,debugPadding:QEr,terrainDepth:okr},hkr=(A3=class{constructor(t,r){this.drawFunctions=fkr,this.context=new vEr(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 Lst}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 jit;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,_Mr.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 Yit;s.emplaceBack(0),s.emplaceBack(1),s.emplaceBack(3),s.emplaceBack(2),s.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(s);let l=new zv;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();Pv(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?Pst:o.shaderDefine,u=`/${i?Ist: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 zMr(this.context,dg[t],r,CSr[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(),LMr(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),mlt=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}};ylt=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)},dkr=dn({deceleration:2500,maxSpeed:1400},t8),pkr=dn({deceleration:20,maxSpeed:1400},t8),vkr=dn({deceleration:1e3,maxSpeed:360},t8),gkr=dn({deceleration:1e3,maxSpeed:90},t8),mkr=dn({deceleration:1e3,maxSpeed:360},t8),ykr=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({},dkr,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,pkr);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,vkr);n.bearing=this._map.getBearing()+ea(a.amount,-179,179),$C(n,a)}if(r.pitch){let a=WC(r.pitch,i,gkr);n.pitch=this._map.getPitch()+a.amount,$C(n,a)}if(r.roll){let a=WC(r.roll,i,mkr);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})}};xkr=class{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new est(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(){}},bkr=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(){}},xlt=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}))}};wkr=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=_kr(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 wkr(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}}},Tkr=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 Skr){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()}};Lkr=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}},Pkr={panStep:100,bearingStep:15,pitchStep:10},Tlt=class{constructor(e,t){this._tr=t;let r=Pkr;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:Ikr,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}};Wot=4.000244140625,Alt=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%Wot==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)>Wot?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)}},Mlt=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()}},Rkr=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}},zkr=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}},Slt=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()}},Elt=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()}},klt=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()}},Clt=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))}},Bkr=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,qkr=class extends o0{};Okr=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(nrt(n,a||n.type)){let m=Xn.mousePos(this._map.getCanvas(),n);v=p[a||n.type](n,m)}else if(irt(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 art(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 Bkr(this._camera),this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new ykr(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 xkr(t,e));let i=t.boxZoom=new xlt(t,e,this._transformProvider);this._add("boxZoom",i),e.interactive&&e.boxZoom&&i.enable();let n=t.cooperativeGestures=new Clt(t,e.cooperativeGestures);this._add("cooperativeGestures",n),e.cooperativeGestures&&n.enable();let a=new Tkr(t,this._transformProvider),o=new Rkr(t,this._transformProvider);t.doubleClickZoom=new Mlt(o,a),this._add("tapZoom",a),this._add("clickZoom",o),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let s=new zkr;this._add("tapDragZoom",s);let l=t.touchPitch=new wlt(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let u=()=>this._camera.transform.centerPoint,c=Ckr(e,u),f=Dkr(e),h=Fkr(e,u);t.dragRotate=new Elt(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=kkr(e),d=new Lkr(e,t);t.dragPan=new Slt(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 _lt,m=new blt;t.touchZoomRotate=new klt(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 bkr(t,e),["touchPan"]);let g=t.scrollZoom=new Alt(t,()=>this._triggerRenderFrame(),this._transformProvider);this._add("scrollZoom",g,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let w=t.keyboard=new Tlt(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 qkr("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}},Nkr=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 M(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=M(!1),E=function(k){return A(y)/A(y+v*k)},S=function(k){return m*((A(y)*T(y+v*k)-x(y))/b)/w},C=(M(!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=S(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
'},Flt=class{constructor(e=Dlt){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}},Ukr=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=[]}},Yot=["none","zoom","sourceTiles","visibleLayers","revision"],Vkr=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},Gkr=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 Vkr(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]);Yot.indexOf(n)>Yot.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,skr(this.painter,this.terrain,this._rttTiles,t),this._rttTiles=[],n6[r]}return!1}},Hkr={"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"},jkr=Jot,Xot={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:Dlt,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},$kr=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 Ukr,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({},Xot),e),{canvasContextAttributes:fn(fn({},Xot.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 Nkr({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({},Hkr),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 ZTr(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=qv.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 Okr(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 ylt(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 Flt(typeof t.attributionControl=="boolean"?void 0:t.attributionControl)),t.maplibreLogo&&this.addControl(new Llt,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(Ov.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 nMr(this.painter,r,e,this._terrainSkirtLength),this.painter.renderToTexture=new Gkr(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 tst({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 qv.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 mlt(e,t);this.painter=new hkr(r,this._camera.transform)}migrateProjection(e,t){this._camera.migrateProjection(e,t),this.painter.transform=e,this.fire(new rst({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),qv.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 jkr}getCameraTargetElevation(){return this._camera.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(e){return this._lazyInitEmptyStyle(),this.style.setProjection(e),this._update(!0)}},Wkr={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0},Ykr=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({},Wkr,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 Xkr(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}},Xkr=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 Ekr;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%)"};Zot={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},Rlt="#3FB1CE";_3=class extends o0{},zlt=class extends o0{},goe=class extends cu{constructor(e){if(super(),this._onClick=t=>{this.fire(new zlt("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=Zot[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=>{Zot[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=Plt(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)||Rlt,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=Kkr().cloneNode(!0);t.setAttributeNS(null,"height",`${41*this._scale}px`),t.setAttributeNS(null,"width",`${27*this._scale}px`),Jkr(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()}),Ilt(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}},Qkr={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{},Blt=class extends o0{},eCr=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=Ov.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 Blt("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({},Qkr,e)}onAdd(e){return this._map=e,this._container=Xn.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),Zkr().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)}},tCr={maxWidth:100,unit:"metric"},rCr=class{constructor(e){this._onMove=()=>{Kot(this._map,this._container,this.options)},this.setUnit=t=>{this.options.unit=t,Kot(this._map,this._container,this.options)},this.options=fn(fn({},tCr),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{},aCr=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()}},oCr=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}},sCr=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}},lCr={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0},uCr=["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{},cCr=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=Plt(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=qlt(this.options.offset);if(!a){let l=this._container.offsetWidth,u=this._container.offsetHeight,c=fCr(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)`,Ilt(this._container,a,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=dn(Object.create(lCr),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(uCr);e&&e.focus()}};hCr=Jot});var Glt=W((Wli,Vlt)=>{"use strict";Vlt.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 Ylt=W((Yli,Wlt)=>{"use strict";var E3=tt(),TCr=ao().sanitizeHTML,ACr=Cre(),Hlt=Q2();function jlt(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=Hlt.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var pp=jlt.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=MCr(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 $lt(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=ACr(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 MCr(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=TCr(e.sourceattribution)),i}Wlt.exports=function(t,r,i){var n=new jlt(t,r);return n.update(i),n}});var aut=W((Xli,nut)=>{"use strict";var gO=(Ult(),Pt(Olt)),SCr=Glt(),Xlt=!1,ECr=()=>{Xlt||(Xlt=!0,gO.setWorkerUrl(URL.createObjectURL(new Blob([SCr],{type:"text/javascript"}))))},mO=tt(),Jlt=Am(),Zlt=xi(),kCr=Yi(),CCr=Ef(),vO=Is(),Qlt=_1(),DCr=Qlt.drawMode,FCr=Qlt.selectMode,LCr=xu().prepSelect,PCr=xu().clearOutline,ICr=xu().clearSelectionsCache,RCr=xu().selectOnClick,xx=Q2(),zCr=Ylt();function eut(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=eut.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=iut(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}),ECr();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(Jlt.fetchTraceGeoData(e)),Promise.all(p).then(function(){c&&tut(n,a),rut(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=iut(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(Jlt.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}),tut(n,o),rut(n,o)),n.updateLayout(t),n.resolveOnRender(r)}).catch(i)};function tut(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 rut(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"},kCr.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];Zlt.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];Zlt.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(){ICr(r.dragOptions),PCr(r.dragOptions.gd)},r.onClickInPanFn=function(s){return function(l){var u=i._fullLayout.clickmode;u.indexOf("select")>-1&&RCr(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),FCr(a)||DCr(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){LCr(l,u,c,t.dragOptions,a)},CCr.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;nBCr});function BCr(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";out=l1(Am())});var fut=W((Kli,cut)=>{"use strict";var Goe=tt(),qCr=Kb(),OCr=tf(),uut=bk(),{getMapFitBounds:NCr}=(lut(),Pt(sut));cut.exports=function(t,r,i){qCr(t,r,i,{type:"map",attributes:uut,handleDefaults:UCr,partition:"y",fullData:i})};function UCr(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,OCr(e,t,{name:"layers",handleItemDefaults:VCr}),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=NCr(i.fullData,i.id);d&&(t._fitBounds=d)}t._input=e}function VCr(e,t){function r(l,u){return Goe.coerce(e,t,uut.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(),hut=Hoe.strTranslate,GCr=Hoe.strScale,HCr=Mc().getSubplotCalcData,jCr=(md(),Pt(gd)),$Cr=gi(),dut=Qi(),WCr=ao(),YCr=aut(),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=fut();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(WCr.convertToTspans,e),d=dut.bBox(p.node())}p.attr("transform",hut(-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",hut(w[0],w[1])+GCr(g))}};Z0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[bx],i=0;i{"use strict";put.exports={attributes:Wz(),supplyDefaults:pQe(),colorbar:Cc(),formatLabels:kre(),calc:OQ(),plot:kQe(),hoverPoints:Jz().hoverPoints,eventData:LQe(),selectPoints:IQe(),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 mut=W((eui,gut)=>{"use strict";gut.exports=vut()});var joe=W((tui,yut)=>{"use strict";var Zm=NE(),XCr=Fo(),{hovertemplateAttrs:ZCr,templatefallbackAttrs:KCr}=Wa(),JCr=Ja(),_x=an().extendFlat;yut.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:ZCr({},{keys:["properties"]}),hovertemplatefallback:KCr(),showlegend:_x({},JCr.showlegend,{dflt:!1})},XCr("",{cLetter:"z",editTypeOverride:"calc"}))});var but=W((rui,xut)=>{"use strict";var n8=tt(),QCr=Bu(),e8r=joe();xut.exports=function(t,r,i,n){function a(c,f){return n8.coerce(t,r,e8r,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"),QCr(t,r,n,a,{prefix:"",cLetter:"z"}),n8.coerceSelectionMarkerOpacity(r,a)}});var $oe=W((iui,Tut)=>{"use strict";var t8r=hn(),Km=tt(),r8r=es(),i8r=Qi(),n8r=IE().makeBlank,_ut=Am();function a8r(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:n8r()};if(!r)return a;var o=_ut.extractTraceFeature(e);if(!o)return a;var s=r8r.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;Km.isArrayOrTypedArray(l.opacity)&&(c=function(w){var _=w.mo;return t8r(_)?+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 Mut=$oe().convert,o8r=$oe().convertOnSelect,Aut=Q2().traceLayerPrefix;function Sut(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",Aut+t+"-fill"],["line",Aut+t+"-line"]],this.below=null}var c6=Sut.prototype;c6.update=function(e){this._update(Mut(e)),e[0].trace._glTrace=this};c6.updateOnSelect=function(e){this._update(o8r(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)};Eut.exports=function(t,r){var i=r[0].trace,n=new Sut(t,i.uid),a=n.sourceId,o=Mut(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 Dut=W((aui,Cut)=>{"use strict";Cut.exports={attributes:joe(),supplyDefaults:but(),colorbar:F5(),calc:yee(),plot:kut(),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";Fut.exports=Dut()});var Yoe=W((sui,Iut)=>{"use strict";var s8r=Fo(),{hovertemplateAttrs:l8r,templatefallbackAttrs:u8r}=Wa(),Put=Ja(),xO=Wz(),Woe=an().extendFlat;Iut.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({},Put.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:l8r(),hovertemplatefallback:u8r(),showlegend:Woe({},Put.showlegend,{dflt:!1})},s8r("",{cLetter:"z",editTypeOverride:"calc"}))});var zut=W((lui,Rut)=>{"use strict";var c8r=tt(),f8r=Bu(),h8r=Yoe();Rut.exports=function(t,r,i,n){function a(u,c){return c8r.coerce(t,r,h8r,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"),f8r(t,r,n,a,{prefix:"",cLetter:"z"})}});var Out=W((uui,qut)=>{"use strict";var Xoe=hn(),d8r=tt().isArrayOrTypedArray,Zoe=(ra(),Pt(ia)).BADNUM,p8r=rf(),But=tt()._;qut.exports=function(t,r){for(var i=r._length,n=new Array(i),a=r.z,o=d8r(a)&&a.length,s=0;s{"use strict";var v8r=hn(),Koe=tt(),Nut=ti(),Uut=es(),Vut=(ra(),Pt(ia)).BADNUM,g8r=IE().makeBlank;Gut.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:g8r()};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=Uut.extractOpts(r),g=m.reversescale?Uut.flipScale(m.colorscale):m.colorscale,w=g[0][1],_=Nut.opacity(w)<1?w:Nut.addOpacity(w,0),b=["interpolate",["linear"],["heatmap-density"],0,_];for(s=1;s{"use strict";var jut=Hut(),m8r=Q2().traceLayerPrefix;function $ut(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",m8r+t+"-heatmap"]],this.below=null}var bO=$ut.prototype;bO.update=function(e){var t=this.subplot,r=this.layerList,i=jut(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)};Wut.exports=function(t,r){var i=r[0].trace,n=new $ut(t,i.uid),a=n.sourceId,o=jut(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 Zut=W((hui,Xut)=>{"use strict";var y8r=Yi(),x8r=Jz().hoverPoints,b8r=Jz().getExtraText;Xut.exports=function(t,r,i){var n=x8r(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=y8r.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=b8r(s,l,o[0].t.labels),[a]}}});var Jut=W((dui,Kut)=>{"use strict";Kut.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var ect=W((pui,Qut)=>{"use strict";Qut.exports={attributes:Yoe(),supplyDefaults:zut(),colorbar:F5(),formatLabels:kre(),calc:Out(),plot:Yut(),hoverPoints:Zut(),eventData:Jut(),getBelow:function(e,t){for(var r=t.getMapLayers(),i=0;i{"use strict";tct.exports=ect()});var Qoe=W((mui,sct)=>{"use strict";var _8r=jo(),w8r=Ja(),ict=Yl(),Joe=tw(),T8r=ds().attributes,{hovertemplateAttrs:nct,templatefallbackAttrs:act}=Wa(),A8r=Fo(),M8r=Ra().templatedArray,S8r=Ts().descriptionOnlyNumbers,oct=an().extendFlat,E8r=hs().overrideAll,gui=sct.exports=E8r({hoverinfo:oct({},w8r.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:Joe.hoverlabel,domain:T8r({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:S8r("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:_8r({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:ict.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:nct({},{keys:["value","label"]}),hovertemplatefallback:act(),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:ict.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:nct({},{keys:["value","label"]}),hovertemplatefallback:act(),colorscales:M8r("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:oct(A8r().colorscale,{dflt:[[0,"white"],[1,"black"]]})}),sort:{valType:"enumerated",values:["auto","input"],dflt:"auto"}}},"calc","nested")});var fct=W((yui,cct)=>{"use strict";var f6=tt(),_O=Qoe(),k3=ti(),k8r=ds().defaults,lct=UA(),uct=Ra(),C8r=tf();cct.exports=function(t,r,i,n){function a(b,M){return f6.coerce(t,r,_O,b,M)}var o=f6.extendDeep(n.hoverlabel,t.hoverlabel),s=t.node,l=uct.newContainer(r,"node");function u(b,M){return f6.coerce(s,l,_O.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),lct(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,M)=>k3.addOpacity(f(M),.8))),u("customdata");var h=t.link||{},p=uct.newContainer(r,"link");function d(b,M){return f6.coerce(h,p,_O.link,b,M)}d("label"),d("arrowlen"),d("source"),d("target"),d("value"),d("line.color"),d("line.width"),d("hoverinfo",t.hoverinfo),lct(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 M=k3.opacity(b);return M<=.8?k3.addOpacity(b,M+.2):v?k3.brighten(b,10):k3.adjustLightness(b,-10)}d("hovercolor",Array.isArray(g)?g.map(w):w(g)),d("customdata"),C8r(h,p,{name:"colorscales",handleItemDefaults:D8r}),k8r(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 D8r(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((xui,hct)=>{"use strict";hct.exports=F8r;function F8r(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 M=_[b];if(r[M]<0){r[M]=i[M]=u,n[M]=!0,u+=1,g.push(M),w.push(M);break}else n[M]&&(i[m]=Math.min(i[m],i[M])|0);o[M]>=0&&s[m].push(o[M])}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 L8r=ese(),h6=tt(),P8r=eg().wrap,a8=h6.isArrayOrTypedArray,dct=h6.isIndex,pct=es();function I8r(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&&dct(T,v)&&dct(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 S=null;E&&l.hasOwnProperty(E)&&(S=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:S,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 R8r(C,x.source,x.target)&&(R=!0),{circular:R,links:i,nodes:F,groups:g,groupLookup:w}}function R8r(e,t,r){for(var i=h6.init2dArray(e,0),n=0;n1})}vct.exports=function(t,r){var i=I8r(r);return P8r({circular:i.circular,_nodes:i.nodes,_links:i.links,_groups:i.groups,_groupLookup:i.groupLookup})}});var yct=W((wO,mct)=>{(function(e,t){typeof wO=="object"&&typeof mct!="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 S,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,S=C,!(C=C[K=X<<1|$]))return S[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,S?S[K]=k:A._root=k,A;do S=S?S[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 S[G]=C,S[K]=k,A}function i(A){var T,y,E=A.length,S,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=S),CL&&(L=C));if(F>R||P>L)return this;for(this.cover(F,P).cover(R,L),y=0;yA||A>=S||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(S=y,!(y=y.next))return this;return(C=y.next)&&delete y.next,S?(C?S.next=C:delete S.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 xct!="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 M in v)g.set(M,v[M]);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,S=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,S){T.push({key:S,values:M(E,A)})})),y!=null?T.sort(function(E,S){return y(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 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 _ct=W((AO,bct)=>{(function(e,t){typeof AO=="object"&&typeof bct!="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 wct!="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 M(A,T,y){var E=new d;return T=T==null?0:+T,E.restart(function(S){E.stop(),A(S+T)},T,y),E}function x(A,T,y){var E=new d,S=T;return T==null?(E.restart(A,T,y),E):(T=+T,y=y==null?h():+y,E.restart(function C(k){k+=S,E.restart(C,S+=T,y),A(k)},T,y),E)}e.interval=x,e.now=h,e.timeout=M,e.timer=v,e.timerFlush=m,Object.defineProperty(e,"__esModule",{value:!0})})});var Mct=W((SO,Act)=>{(function(e,t){typeof SO=="object"&&typeof Act!="undefined"?t(SO,yct(),tse(),_ct(),Tct()):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 S,C=y.length,k,D=0,F=0;for(S=0;SL.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),S,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 Sct!="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 M;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 M,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(S(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(S(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 S({_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=M,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 Cct=W((kO,kct)=>{(function(e,t){typeof kO=="object"&&typeof kct!="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,M=d*d+v*v,x=_*_+b*b,A=Math.sqrt(M),T=Math.sqrt(w),y=f*Math.tan((t-Math.acos((M+w-x)/(2*A*T)))/2),E=y/T,S=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+S*d)+","+(this._y1=l+S*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,Dct)=>{(function(e,t){typeof CO=="object"&&typeof Dct!="undefined"?t(CO,Cct()):(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 M(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=S,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 Fct!="undefined"?t(DO,Ect(),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,S=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?(S=C=+xe,O):S},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 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 Ict=W((FO,Pct)=>{(function(e,t){t(typeof FO=="object"&&typeof Pct!="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>=M?10:Q>=x?5:Q>=A?2:1)*Math.pow(10,j):-Math.pow(10,-j)/(Q>=M?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>=M?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 z8r=ese();Rct.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 M,x;for(M=0;M=_})}function p(_){h(_);for(var b=t,M=z8r(b),x=M.components.filter(function(k){return k.length>1}),A=1/0,T,y=0;y{(function(e,t){typeof LO=="object"&&typeof Bct!="undefined"?t(LO,Ict(),tse(),rse(),zct()):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 M(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 S(){var ce=0,oe=0,Se=1,be=1,fe=24,ee,ae=_,_e=l,re=b,pe=M,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=S,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})}))});var ise={};Jn(ise,{cn:()=>j8r,duration:()=>G8r,ease:()=>H8r,forceIterations:()=>U8r,forceTicksPerFrame:()=>V8r,nodePadAcross:()=>O8r,nodeTextOffsetHorizontal:()=>B8r,nodeTextOffsetVertical:()=>q8r,sankeyIterations:()=>N8r});var B8r,q8r,O8r,N8r,U8r,V8r,G8r,H8r,j8r,nse=Ci(()=>{"use strict";B8r=4,q8r=3,O8r=10,N8r=50,U8r=5,V8r=10,G8r=500,H8r="linear",j8r={sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}});var Jct=W((Tui,Kct)=>{"use strict";var Oct=Mct(),$8r=(S_(),Pt(M_)).interpolateNumber,d6=gi(),o8=Lct(),W8r=qct(),Bo=(nse(),Pt(ise)),pg=ti(),Y8r=Qi(),vg=tt(),C3=vg.strTranslate,Nct=vg.strRotate,sse=eg(),s8=sse.keyFun,PO=sse.repeat,$ct=sse.unwrap,Uct=ao(),X8r=xi(),Wct=(Jl(),Pt(Kl)),Z8r=Wct.CAP_SHIFT,K8r=Wct.LINE_SPACING,J8r=3;function Q8r(e,t,r){var i=$ct(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=W8r.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 tDr(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=$8r(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 rDr(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 iDr(e){e.call(ose)}function Yct(e,t){e.call(iDr),t.attr("d",lse())}function Vct(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 Gct(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 Hct(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 nDr(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,jct(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):aDr(e,o,a,i),oDr(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),jct(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),Yct(e.filter(Zct(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,Xct(r,n)}})}function sDr(e,t,r,i){return function(){for(var a=0,o=0;o0&&i.forceLayouts[t].alpha(0)}}function Xct(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);X8r.call("_guiRestyle",t,{"node.x":[r],"node.y":[i]},e.trace.index).then(function(){t._fullLayout._dragCover&&t._fullLayout._dragCover.remove()})}function lDr(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 lDr(g),g.map(rDr.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(Hct,u,n.nodeEvents).call(nDr,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(Vct),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(Vct);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);Y8r.font(g,m.textFont),Uct.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=Uct.lineCount(g),_=m.textFont.size*((w-1)*K8r-Z8r),b=m.nodeLineWidth/2+J8r;if(!m.horizontal){var A=m.reversed?(m.visibleWidth+_)/2:(m.visibleWidth-_)/2,M=m.reversed?Nct(90):"scale(-1,1)"+Nct(90);return C3(A,b)+M}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((Aui,sft)=>{"use strict";var jf=gi(),cse=tt(),IO=cse.numberFormat,fDr=Jct(),p6=Is(),hDr=ti(),wx=(nse(),Pt(ise)).cn,l8=cse._;function Qct(e){return e!==""}function v6(e,t){return e.filter(function(r){return r.key===t.traceId})}function eft(e,t){jf.select(e).select("path").style("fill-opacity",t),jf.select(e).select("rect").style("fill-opacity",t)}function tft(e){jf.select(e).select("text.name").style("fill","black")}function rft(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function ift(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function nft(e,t,r){t&&r&&v6(r,t).selectAll("."+wx.sankeyLink).filter(rft(t)).call(aft.bind(0,t,r,!1))}function use(e,t,r){t&&r&&v6(r,t).selectAll("."+wx.sankeyLink).filter(rft(t)).call(oft.bind(0,t,r,!1))}function aft(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(ift(e)).call(nft)}function oft(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(ift(e)).call(use)}function Qs(e,t){var r=e.hoverlabel||{},i=cse.nestedProperty(r,t).get();return Array.isArray(i)?!1:i}sft.exports=function(t,r){for(var i=t._fullLayout,n=i._paper,a=i._size,o=0;o"),color:Qs(A,"bgcolor")||hDr.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});eft(R,.85),tft(R)}}},b=function(M,x,A){t._fullLayout.hovermode!==!1&&(jf.select(M).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()))};fDr(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 lft=W(D3=>{"use strict";var dDr=hs().overrideAll,pDr=Mc().getModuleCalcData,vDr=fse(),gDr=yy(),mDr=Xp(),yDr=Ef(),xDr=xu().prepSelect,hse=tt(),bDr=xi(),RO="sankey";D3.name=RO;D3.baseLayoutAttrOverrides=dDr({hoverlabel:gDr.hoverlabel},"plot","nested");D3.plot=function(e){var t=pDr(e.calcdata,RO)[0];vDr(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";uft.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";fft.exports={attributes:Qoe(),supplyDefaults:fct(),calc:gct(),plot:fse(),moduleType:"trace",name:"sankey",basePlotModule:lft(),selectPoints:cft(),categories:["noOpacity"],meta:{}}});var pft=W((kui,dft)=>{"use strict";dft.exports=hft()});var gft=W(g6=>{"use strict";var vft=Qo();g6.name="indicator";g6.plot=function(e,t,r,i){vft.plotBasePlot(g6.name,e,t,r,i)};g6.clean=function(e,t,r,i){vft.cleanBasePlot(g6.name,e,t,r,i)}});var pse=W((Dui,wft)=>{"use strict";var Tx=an().extendFlat,yft=an().extendDeep,wDr=hs().overrideAll,xft=jo(),bft=Yl(),TDr=ds().attributes,fl=ac(),ADr=Ra().templatedArray,zO=(G5(),Pt(V5)),mft=Ts().descriptionOnlyNumbers,dse=xft({editType:"plot",colorEditType:"plot"}),u8={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:bft.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"},_ft={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},MDr=ADr("step",yft({},u8,{range:_ft}));wft.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:TDr({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:mft("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:mft("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:yft({},u8,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:bft.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:wDr({range:_ft,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:xft({}),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:MDr,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:()=>EDr,bulletPadding:()=>kDr,defaultNumberFontSize:()=>SDr,horizontalPadding:()=>LDr,innerRadius:()=>CDr,titlePadding:()=>FDr,valueThickness:()=>DDr});var SDr,EDr,kDr,CDr,DDr,FDr,LDr,gse=Ci(()=>{"use strict";SDr=80,EDr=.25,kDr=.025,CDr=.75,DDr=.5,FDr=5,LDr=10});var Mft=W((Fui,Aft)=>{"use strict";var gg=tt(),qO=pse(),PDr=ds().defaults,Tft=Ra(),IDr=tf(),BO=(gse(),Pt(vse)),RDr=ub(),zDr=Cw(),BDr=Py(),qDr=Iy();function ODr(e,t,r,i){function n(x,A){return gg.coerce(e,t,qO,x,A)}PDr(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=Tft.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),IDr(h,p,{name:"steps",handleItemDefaults:NDr}),m("threshold.value"),m("threshold.thickness"),m("threshold.line.width"),m("threshold.line.color"),d={},h&&(d=h.axis||{}),v=Tft.newContainer(p,"axis"),g("visible"),t._range=g("range",t._range);var M={font:i.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};RDr(d,v,g,"linear"),qDr(d,v,g,"linear",M),BDr(d,v,g,"linear",M),zDr(d,v,g,M)}else n("title.align","center"),n("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function NDr(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")}Aft.exports={supplyDefaults:ODr}});var Eft=W((Lui,Sft)=>{"use strict";function UDr(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}Sft.exports={calc:UDr}});var Pft=W((Pui,Lft)=>{"use strict";var R3=gi(),VDr=(S_(),Pt(M_)).interpolate,kft=(S_(),Pt(M_)).interpolateNumber,Ax=tt(),GDr=Ax.strScale,f8=Ax.strTranslate,HDr=Ax.rad2deg,jDr=(Jl(),Pt(Kl)).MID_SHIFT,I3=Qi(),F3=(gse(),Pt(vse)),NO=ao(),jc=Yi(),$Dr=PM(),WDr=aL(),YDr=ac(),m6=ti(),mse={left:"start",center:"middle",right:"end"},L3={left:0,center:.5,right:1},Cft=/[yzafpnµmkMGTPEZY]/;function h8(e){return e&&e.duration>0}Lft.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,M,x,A=u.align||"center";if(M=g,!f)b=v.l+L3[A]*v.w,x=function(R){return Dft(R,v.w,v.h)};else if(h&&(b=m,M=g+w/2,x=function(R){return QDr(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 Dft(R,(F3.bulletNumberDomainSize-T)*v.w,v.h)}}KDr(t,c,s,{numbersX:b,numbersY:M,numbersScaler:x,transitionOpts:i,onComplete:o});var E,S;f&&(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=c.selectAll("g.angular").data(h?s:[]);C.exit().remove();var k=c.selectAll("g.angularaxis").data(h?s:[]);k.exit().remove(),h&&ZDr(t,c,s,{radius:w,innerRadius:_,gauge:C,layer:k,size:v,gaugeBg:E,gaugeOutline:S,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&&XDr(t,c,s,{gauge:D,layer:F,size:v,gaugeBg:E,gaugeOutline:S,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=M-(B.top+B.bottom)/2,R=v.l-F3.bulletPadding*v.w)}else L=u._numbersTop-I-B.bottom;return f8(R,L)})})};function XDr(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],M=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,M],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}),S=a.selectAll("g.threshold-bullet").data(E);S.enter().append("g").classed("threshold-bullet",!0).append("line"),S.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),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(P3),C.exit().remove()}function ZDr(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,M,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*jDr)},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 S=function($){return f8(c[0]+o*Math.cos($),c[1]-o*Math.sin($))};M=function($){return S(A($))};var C=function($){var X=A($);return S(X)+"rotate("+-HDr(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:M,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",JDr(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 KDr(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(S){return S}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),m.exit().remove();function g(S,C,k,D){if(S.match("s")&&k>=0!=D>=0&&!C(k).slice(-1).match(Cft)&&!C(D).slice(-1).match(Cft)){var F=S.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 S=c8(e,{tickformat:n.number.valueformat},n._range);S.setScale(),jc.prepTicks(S);var C=function(R){return jc.tickText(S,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=kft(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=Fft(D+C(r[0].y)+k,n.number.font,l,e),F}function _(){var S=c8(e,{tickformat:n.delta.valueformat},n._range);S.setScale(),jc.prepTicks(S);var C=function(B){return jc.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},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=kft($,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=Fft(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,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}),M.attr({dx:T,dy:y})}(n._hasNumber||n._hasDelta)&&f.attr("transform",function(){var S=i.numbersScaler(d);b+=S[2];var C=OO(n,"numbersScale",1,S[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)+GDr(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 JDr(e,t,r){return function(){var i=VDr(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,YDr,l,u)}return $Dr(n,a,s,o,i),WDr(n,a,s,o),a}function Dft(e,t,r){var i=Math.min(t/e.width,r/e.height);return[i,e,t+"x"+r]}function QDr(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),i=t/r;return[i,e,t]}function Fft(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 Rft=W((Iui,Ift)=>{"use strict";Ift.exports={moduleType:"trace",name:"indicator",basePlotModule:gft(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:pse(),supplyDefaults:Mft().supplyDefaults,calc:Eft().calc,plot:Pft(),meta:{}}});var Bft=W((Rui,zft)=>{"use strict";zft.exports=Rft()});var yse=W((Bui,Uft)=>{"use strict";var qft=Xy(),UO=an().extendFlat,e7r=hs().overrideAll,Oft=jo(),t7r=ds().attributes,Nft=Ts().descriptionOnlyNumbers,zui=Uft.exports=e7r({domain:t7r({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:Nft("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:UO({},qft.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({},Oft({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:Nft("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:UO({},qft.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({},Oft({arrayOk:!0}))}},"calc","from-root")});var Gft=W((qui,Vft)=>{"use strict";var xse=tt(),r7r=yse(),i7r=ds().defaults;function n7r(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 a7r=eg().wrap;Hft.exports=function(){return a7r({})}});var bse={};Jn(bse,{cellPad:()=>o7r,cn:()=>E7r,columnExtentOffset:()=>s7r,columnTitleOffset:()=>l7r,emptyHeaderHeight:()=>u7r,goldenRatio:()=>f7r,latexCheck:()=>c7r,lineBreaker:()=>h7r,maxDimensionCount:()=>d7r,overdrag:()=>p7r,releaseTransitionDuration:()=>v7r,releaseTransitionEase:()=>g7r,scrollbarCaptureWidth:()=>m7r,scrollbarHideDelay:()=>y7r,scrollbarHideDuration:()=>x7r,scrollbarOffset:()=>b7r,scrollbarWidth:()=>_7r,transitionDuration:()=>w7r,transitionEase:()=>T7r,uplift:()=>A7r,wrapSpacer:()=>M7r,wrapSplitCharacter:()=>S7r});var o7r,s7r,l7r,u7r,c7r,f7r,h7r,d7r,p7r,v7r,g7r,m7r,y7r,x7r,b7r,_7r,w7r,T7r,A7r,M7r,S7r,E7r,_se=Ci(()=>{"use strict";o7r=8,s7r=10,l7r=28,u7r=16,c7r=/^\$.*\$$/,f7r=1.618,h7r="
",d7r=60,p7r=45,v7r=120,g7r="cubic-out",m7r=18,y7r=1e3,x7r=1e3,b7r=5,_7r=8,w7r=100,T7r="cubic-out",A7r=5,M7r=" ",S7r=" ",E7r={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 eht=W((Nui,Qft)=>{"use strict";var $ft=(_se(),Pt(bse)),Tse=an().extendFlat,k7r=hn(),C7r=Tc().isTypedArray,VO=Tc().isArrayOrTypedArray;Qft.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 Jft((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}):[$ft.emptyHeaderHeight],f=i.length?i[0].map(function(){return r.cells.height}):[],h=c.reduce(Wft,0),p=u-h,d=p+$ft.uplift,v=Zft(f,d),m=Zft(c,h),g=Xft(m,[]),w=Xft(v,g),_={},b=r.columnorder;VO(b)&&(b=Array.from(b)),b=b.concat(n(i.map(function(y,E){return E})));var M=o.map(function(y,E){var S=VO(r.columnwidth)?r.columnwidth[Math.min(E,r.columnwidth.length-1)]:r.columnwidth;return k7r(S)?Number(S):1}),x=M.reduce(Wft,0);M=M.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 S=_[y];_[y]=(S||0)+1;var C=y+"__"+_[y];return{key:C,label:y,specIndex:E,xIndex:b[E],xScale:Yft,x:void 0,calcdata:void 0,columnWidth:M[E]}})};return T.columns.forEach(function(y){y.calcdata=T,y.x=Yft(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=Kft(),n+=a,s=u+1,a=0);return r}function Kft(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var tht=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=D7r(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 D7r(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((Vui,hht)=>{"use strict";var Ai=(_se(),Pt(bse)),ks=gi(),Sse=tt(),F7r=Sse.numberFormat,qo=eg(),Ese=Qi(),L7r=ao(),P7r=tt().raiseToTop,vp=tt().strTranslate,I7r=tt().cancelTransition,R7r=eht(),lht=tht(),rht=ti();hht.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 R7r(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),iht(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 oht(_,w,-Ai.uplift),P7r(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 M=uht(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(Ai.transitionEase).duration(Ai.transitionDuration).attr("transform",function(A){return vp(A.x,0)}),_.call(I7r).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,oht(_,w,0),j7r(t,b,b.columns.map(function(M){return M.xIndex}))})),u.each(function(w){Ese.setClipUrl(ks.select(this),nht(t,w),t)});var c=u.selectAll("."+Ai.cn.columnBlock).data(lht.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($7r),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 iht(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 nht(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 iht(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function nht(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function uht(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=z7r(r),a=B7r(n);U7r(a);var o=q7r(a);G7r(o);var s=N7r(a),l=O7r(s);V7r(l),cht(l,t,i,e),Ise(a)}function z7r(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 B7r(e){var t=e.selectAll("."+Ai.cn.columnCell).data(lht.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ai.cn.columnCell,!0),t.exit().remove(),t}function q7r(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 O7r(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 N7r(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 U7r(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 V7r(e){e.each(function(t){Ese.font(ks.select(this),t.font)})}function G7r(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);rht.stroke(r,$f(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),rht.fill(r,$f(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function cht(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=H7r(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?F7r(d)(n.value):n.value)+p,m;n.wrappingNeeded=!n.wrapped&&!c&&!f&&(m=aht(v)),n.cellHeightMayIncrease=u||f||n.mayHaveMarkup||(m===void 0?aht(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=uht(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=W7r(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&&(sht(e,r,t,u,i.prevPages,i,0),sht(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 sht(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 Y7r(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(),cht(a.select("."+Ai.cn.cellText),r,e,i),ks.select(t.parentNode.parentNode).call(Ise)}}function X7r(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(fht(n,ks.select(p.parentNode).select("."+Ai.cn.cellTextHolder).node().getBoundingClientRect().width),w)}),n.settledY=!0}}}function fht(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 K7r(Fse(t),t.key).rowHeight})}function Dse(e,t){for(var r=0,i=t-1;i>=0;i--)r+=Z7r(e[i]);return r}function $O(e,t){for(var r=0,i=0;i{"use strict";var J7r=Mc().getModuleCalcData,Q7r=Rse(),WO="table";YO.name=WO;YO.plot=function(e){var t=J7r(e.calcdata,WO)[0];t.length&&Q7r(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 vht=W((Hui,pht)=>{"use strict";pht.exports={attributes:yse(),supplyDefaults:Gft(),calc:jft(),plot:Rse(),moduleType:"trace",name:"table",basePlotModule:dht(),categories:["noOpacity"],meta:{}}});var mht=W((jui,ght)=>{"use strict";ght.exports=vht()});var wht=W(($ui,_ht)=>{"use strict";var yht=jo(),xht=Yl(),zse=ac(),eFr=Ts().descriptionWithDates,tFr=hs().overrideAll,bht=zu().dash,Bse=an().extendFlat;_ht.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:yht({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:yht({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:eFr("tick label")},tickformatstops:tFr(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:xht.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({},bht,{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({},bht,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:xht.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((Wui,Mht)=>{"use strict";var rFr=jo(),Tht=wht(),Aht=Yl(),XO=rFr({editType:"calc"}),iFr=Ws().zorder;XO.family.dflt='"Open Sans", verdana, arial, sans-serif';XO.size.dflt=12;XO.color.dflt=Aht.defaultLine;Mht.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:Tht,baxis:Tht,font:XO,color:{valType:"color",dflt:Aht.defaultLine,editType:"plot"},zorder:iFr}});var kht=W((Yui,Eht)=>{"use strict";var Sht=tt().isArray1D;Eht.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||Sht(n))&&(!s||Sht(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 Fht=W((Xui,Dht)=>{"use strict";var nFr=ZO(),Cht=ti().addOpacity,aFr=xi(),p8=tt(),oFr=ub(),sFr=Py(),lFr=Iy(),uFr=rL(),cFr=g1(),fFr=Rw();Dht.exports=function(t,r,i){var n=i.letter,a=i.font||{},o=nFr[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&&hFr(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=aFr.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",i.calendar)}cFr(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"),oFr(t,r,s,u),lFr(t,r,s,u,i),sFr(t,r,s,u,i),uFr(t,r,s,{data:i.data,dataAttr:n});var v=s("gridcolor",Cht(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),M=s("startline",r.showgrid||!!_||!!b);M||(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",Cht(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 hFr(e,t){if(e.type==="-"){var r=e._id,i=r.charAt(0),n=i+"calendar",a=e[n];e.type=fFr(t,a,{autotypenumbers:e.autotypenumbers})}}});var Pht=W((Zui,Lht)=>{"use strict";var dFr=Fht(),pFr=Ra();Lht.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")),vFr(t,r,i,a)};function vFr(e,t,r,i){var n=["aaxis","baxis"];n.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=pFr.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};dFr(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var zht=W((Kui,Rht)=>{"use strict";var Iht=tt(),gFr=kht(),mFr=Pht(),yFr=ZO(),xFr=Yl();Rht.exports=function(t,r,i,n){function a(l,u){return Iht.coerce(t,r,yFr,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",xFr.defaultLine);if(Iht.coerceFont(a,"font",n.font),a("carpet"),mFr(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=gFr(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var qse=W((Jui,Bht)=>{"use strict";var bFr=tt().isArrayOrTypedArray;Bht.exports=function(t,r,i){var n;for(bFr(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],n=0;n{"use strict";qht.exports=function(t,r,i){if(t.length===0)return"";var n,a=[],o=i?3:1;for(n=0;n{"use strict";Oht.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 Yht=W((tci,Wht)=>{"use strict";var eN=gi(),KO=Qi(),JO=qse(),Ght=Ose(),v8=Nht(),Nse=ao(),u0=tt(),Hht=u0.strRotate,QO=u0.strTranslate,jht=(Jl(),Pt(Kl));Wht.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=Uht(t,o,s,p,h,_,d._labels,"a-label"),M=Uht(t,o,s,p,h,_,v._labels,"b-label");wFr(t,_,p,h,o,s,b,M),_Fr(p,h,u,o,s)})};function _Fr(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])+Hht(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 wFr(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))),Vht(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))),Vht(e,t,r,i,c,f,r.baxis,n,a,s,"b-title")}var $ht=jht.LINE_SPACING,TFr=(1-jht.MID_SHIFT)/$ht+1;function Vht(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(_)+TFr)*$ht*v-p),_.attr("transform",QO(d.p[0],d.p[1])+Hht(d.angle)+QO(0,p)).attr("text-anchor","middle").call(KO.font,o.title.font)}),h.exit().remove()}});var Zht=W((rci,Xht)=>{"use strict";var tN=tt().isArrayOrTypedArray;Xht.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 Kht=tt().isArrayOrTypedArray;Qht.exports=function(e){return Jht(e,0)};function Jht(e,t){if(!Kht(e)||t>=10)return null;for(var r=1/0,i=-1/0,n=e.length,a=0;a{"use strict";var AFr=Yi(),Mx=an().extendFlat;t0t.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=[],M=_._minorgridlines=[],x=_._boundarylines=[],A=t["_"+i],T=t[i+"axis"];_.tickmode==="array"&&(_.tickvals=w.slice());var y=t._xctrl,E=t._yctrl,S=y[0].length,C=y.length,k=t._a.length,D=t._b.length;AFr.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])&&M.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])&&M.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 o0t=W((aci,a0t)=>{"use strict";var i0t=Yi(),n0t=an().extendFlat;a0t.exports=function(t,r){var i,n,a,o,s,l=r._labels=[],u=r._gridlines;for(i=0;i{"use strict";s0t.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 c0t=W((sci,u0t)=>{"use strict";var MFr=tt();u0t.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 MFr.log("Smoother converged to",y,"after",S,"iterations"),t}});var f0t={};Jn(f0t,{RELATIVE_CULL_TOLERANCE:()=>SFr});var SFr,h0t=Ci(()=>{"use strict";SFr=1e-6});var v0t=W((lci,p0t)=>{"use strict";var d0t=.5;p0t.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,d0t/2),c=Math.pow(s*s+l*l,d0t/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 m0t=W((uci,g0t)=>{"use strict";var Use=v0t(),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]}g0t.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";y0t.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,M=b*w,x=1-w,A=x*x,T=A*x,y=_*_,E=y*_,S=1-_,C=S*S,k=C*S;for(v=0;v{"use strict";b0t.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),M=3*d,x=s*s,A=x*s,T=1-s,y=T*T,E=y*T;for(p=0;p{"use strict";w0t.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,M=b*b,x=b*s*2,A=-3*M,T=3*(M-x),y=3*(x-_),E=3*_;for(p=0;p{"use strict";var A0t=(h0t(),Pt(f0t)),M0t=SD().findBin,EFr=m0t(),kFr=x0t(),CFr=_0t(),DFr=T0t();S0t.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*A0t.RELATIVE_CULL_TOLERANCE,v=p*A0t.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=EFr(t._xctrl,t._yctrl,m,g,o.smoothing,s.smoothing);t._xctrl=w[0],t._yctrl=w[1],t.evalxy=kFr([t._xctrl,t._yctrl],n,a,o.smoothing,s.smoothing),t.dxydi=CFr([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=DFr([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(M0t(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(M0t(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),M=t.evalxy([],_,b);if(w){var x=0,A=0,T=[],y,E,S,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]?(S=a-2,C=1,A=(g-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,y,S,E,C),M[0]+=T[0]*x,M[1]+=T[1]*x),A&&(t.dxydj(T,y,S,E,C),M[0]+=T[0]*A,M[1]+=T[1]*A)}return M},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,_),M=t.dadi(m,w);return[b[0]/M,b[1]/M]},t.dxydb=function(m,g,w,_){var b=t.dxydj(null,m,g,w,_),M=t.dbdj(g,_);return[b[0]/M,b[1]/M]},t.dxyda_rough=function(m,g,w){var _=h*(w||.1),b=t.ab2xy(m+_,g,!0),M=t.ab2xy(m-_,g,!0);return[(b[0]-M[0])*.5/_,(b[1]-M[1])*.5/_]},t.dxydb_rough=function(m,g,w){var _=p*(w||.1),b=t.ab2xy(m,g+_,!0),M=t.ab2xy(m,g-_,!0);return[(b[0]-M[0])*.5/_,(b[1]-M[1])*.5/_]},t.dpdx=function(m){return m._m},t.dpdy=function(m){return m._m}}});var R0t=W((pci,I0t)=>{"use strict";var iN=Yi(),k0t=tt().isArray1D,FFr=Zht(),C0t=e0t(),D0t=r0t(),F0t=o0t(),LFr=l0t(),L0t=iP(),P0t=c0t(),PFr=tP(),IFr=E0t();I0t.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&&k0t(s)&&u.push("x"),l&&k0t(l)&&u.push("y"),u.length&&PFr(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=FFr(p,d,r.cheaterslope)}r._x=s=L0t(s),r._y=l=L0t(l),P0t(s,c,f),P0t(l,c,f),IFr(r),r.setScale();var v=C0t(s),m=C0t(l),g=.5*(v[1]-v[0]),w=.5*(v[1]+v[0]),_=.5*(m[1]-m[0]),b=.5*(m[1]+m[0]),M=1.3;return v=[w-g*M,w+g*M],m=[b-_*M,b+_*M],r._extremes[i._id]=iN.findExtremes(i,v,{padded:!0}),r._extremes[n._id]=iN.findExtremes(n,m,{padded:!0}),D0t(r,"a","b"),D0t(r,"b","a"),F0t(r,a),F0t(r,o),h.clipsegments=LFr(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var B0t=W((vci,z0t)=>{"use strict";z0t.exports={attributes:ZO(),supplyDefaults:zht(),plot:Yht(),calc:R0t(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:xl(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var O0t=W((gci,q0t)=>{"use strict";q0t.exports=B0t()});var Vse=W((mci,G0t)=>{"use strict";var RFr=C1(),K0=Ws(),zFr=Ja(),{hovertemplateAttrs:BFr,texttemplateAttrs:qFr,templatefallbackAttrs:N0t}=Wa(),U0t=Fo(),Sx=an().extendFlat,gp=K0.marker,b6=K0.line,V0t=gp.line;G0t.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:qFr({editType:"plot"},{keys:["a","b","text"]}),texttemplatefallback:N0t({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:RFr(),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:V0t.width,dash:V0t.dash,editType:"calc"},U0t("marker.line")),gradient:gp.gradient,editType:"calc"},U0t("marker")),textfont:K0.textfont,textposition:K0.textposition,selected:K0.selected,unselected:K0.unselected,hoverinfo:Sx({},zFr.hoverinfo,{flags:["a","b","text","name"]}),hoveron:K0.hoveron,hovertemplate:BFr(),hovertemplatefallback:N0t(),zorder:K0.zorder}});var W0t=W((yci,$0t)=>{"use strict";var H0t=tt(),OFr=(k1(),Pt(E1)),_6=Wo(),NFr=Dd(),UFr=tv(),j0t=Jw(),VFr=rv(),GFr=F1(),HFr=Vse();$0t.exports=function(t,r,i,n){function a(h,p){return H0t.coerce(t,r,HFr,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";Y0t.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((bci,Z0t)=>{"use strict";Z0t.exports=function(e,t){for(var r=e._fullData.length,i,n=0;n{"use strict";var K0t=hn(),jFr=Fd(),$Fr=L1(),WFr=C0(),YFr=Ld().calcMarkerSize,XFr=nN();J0t.exports=function(t,r){var i=r._carpetTrace=XFr(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 ZFr=n5(),edt=Yi(),KFr=Qi();tdt.exports=function(t,r,i,n){var a,o,s,l=i[0][0].carpet,u=edt.getFromId(t,l.xaxis||"x"),c=edt.getFromId(t,l.yaxis||"y"),f={xaxis:u,yaxis:c,plot:r.plot};for(a=0;a{"use strict";var JFr=l5(),QFr=tt().fillText;idt.exports=function(t,r,i,n){var a=JFr(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 M;_.labelprefix&&_.labelprefix.length>0?M=_.labelprefix.replace(/ = $/,""):M=_._hovertitle,v.push(M+": "+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&&QFr(f,h,v),o.extraText=v.join("
")}return a}});var odt=W((Aci,adt)=>{"use strict";adt.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 ldt=W((Mci,sdt)=>{"use strict";sdt.exports={attributes:Vse(),supplyDefaults:W0t(),colorbar:Cc(),formatLabels:X0t(),calc:Q0t(),plot:rdt(),style:lh().style,styleOnSelect:lh().styleOnSelect,hoverPoints:ndt(),selectPoints:Rb(),eventData:odt(),moduleType:"trace",name:"scattercarpet",basePlotModule:xl(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var cdt=W((Sci,udt)=>{"use strict";udt.exports=ldt()});var Gse=W((Eci,fdt)=>{"use strict";var mp=S5(),Jm=oS(),eLr=Fo(),tLr=an().extendFlat,mg=Jm.contours;fdt.exports=tLr({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},eLr("",{cLetter:"z",autoColorDflt:!1}))});var Hse=W((kci,pdt)=>{"use strict";var hdt=tt(),rLr=JL(),ddt=Gse(),iLr=HY(),nLr=TP(),aLr=AP();pdt.exports=function(t,r,i,n){function a(u,c){return hdt.coerce(t,r,ddt,u,c)}function o(u){return hdt.coerce2(t,r,ddt,u)}if(a("carpet"),t.a&&t.b){var s=rLr(t,r,a,n,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?iLr(t,r,a,n,i,{hasHover:!1}):(nLr(t,r,a,o),aLr(t,r,a,n,{hasHover:!1}))}else r._defaultColor=i,r._length=null;a("zorder")}});var ydt=W((Cci,mdt)=>{"use strict";var oLr=rf(),vdt=tt(),sLr=tP(),lLr=iP(),uLr=nP(),cLr=aP(),gdt=dY(),fLr=Hse(),hLr=nN(),dLr=LY();mdt.exports=function(t,r){var i=r._carpetTrace=hLr(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),fLr(a,r,r._defaultColor,t._fullLayout)}var o=pLr(t,r);return dLr(r,r._z),o}};function pLr(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,vdt.isArray1D(t.z)&&sLr(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=lLr(t._z||t.z,t.transpose),t._emptypoints=cLr(f),uLr(f,t._emptypoints);var h=vdt.maxRowLength(f),p=t.xtype==="scaled"?"":a,d=gdt(t,p,o,s,h,i),v=t.ytype==="scaled"?"":l,m=gdt(t,v,u,c,f.length,n),g={a:d,b:m,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&oLr(e,t,{vals:f,containerStr:"",cLetter:"z"}),[g]}});var bdt=W((Dci,xdt)=>{"use strict";var vLr=tt().isArrayOrTypedArray;xdt.exports=function(e,t,r,i){var n,a,o,s,l,u,c,f,h,p,d,v,m,g=vLr(r)?"a":"b",w=g==="a"?e.aaxis:e.baxis,_=w.smoothing,b=g==="a"?e.a2i:e.b2j,M=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 S=b(M[0]),C=b(M[1]),k=S0?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(S+D),B=P(C-D);c=E(S);var O=[[c]];for(n=I;n*k{"use strict";var oN=gi(),sN=qse(),Mdt=Ose(),g8=Qi(),Qm=tt(),gLr=IY(),mLr=RY(),z3=EP(),aN=(uS(),Pt(lS)),yLr=OY(),xLr=qY(),bLr=NY(),_Lr=nN(),_dt=bdt();Sdt.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=_Lr(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=xLr(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 M=[[p[0],d[d.length-1]],[p[p.length-1],d[d.length-1]],[p[p.length-1],d[0]],[p[0],d[0]]];gLr(m);var x=(p[p.length-1]-p[0])*1e-8,A=(d[d.length-1]-d[0])*1e-8;mLr(m,x,A);var T=m;v.type==="constraint"&&(T=yLr(m,w)),wLr(m,b);var y,E,S,C,k=[];for(C=h.clipsegments.length-1;C>=0;C--)y=h.clipsegments[C],E=sN([],y.x,a.c2p),S=sN([],y.y,o.c2p),E.reverse(),S.reverse(),k.push(Mdt(E,S,y.bicubic));var D="M"+k.join("L")+"Z";MLr(l,h.clipsegments,a,o,g,_),SLr(c,l,a,o,T,M,b,f,h,_,D),TLr(l,m,t,u,v,r,f),g8.setClipUrl(l,f._clipPathId,t)})};function wLr(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 wdt(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 Tdt(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function Adt(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),i=Math.sqrt(1-r*r);return i/r}function MLr(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";kdt.exports={attributes:Gse(),supplyDefaults:Hse(),colorbar:DP(),calc:ydt(),plot:Edt(),style:CP(),moduleType:"trace",name:"contourcarpet",basePlotModule:xl(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var Fdt=W((Pci,Ddt)=>{"use strict";Ddt.exports=Cdt()});var uN=W((Ici,zdt)=>{"use strict";var lN=tt().extendFlat,m8=Ws(),Ldt=Ts().axisHoverFormat,{hovertemplateAttrs:kLr,templatefallbackAttrs:CLr}=Wa(),Idt=zu().dash,DLr=tw(),Rdt=(G5(),Pt(V5)),FLr=Rdt.INCREASING.COLOR,LLr=Rdt.DECREASING.COLOR,jse=m8.line;function Pdt(e){return{line:{color:lN({},jse.color,{dflt:e}),width:jse.width,dash:Idt,editType:"style"},editType:"style"}}zdt.exports={xperiod:m8.xperiod,xperiod0:m8.xperiod0,xperiodalignment:m8.xperiodalignment,xhoverformat:Ldt("x"),yhoverformat:Ldt("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({},Idt,{}),editType:"style"},increasing:Pdt(FLr),decreasing:Pdt(LLr),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:kLr({},{keys:["open","high","low","close"]}),hovertemplatefallback:CLr(),tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:lN({},DLr.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:m8.zorder}});var $se=W((Rci,Bdt)=>{"use strict";var PLr=xi(),ILr=tt();Bdt.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=PLr.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,ILr.minRowLength(a))),r._length=f,f}}});var Ndt=W((zci,Odt)=>{"use strict";var RLr=tt(),zLr=$se(),BLr=ev(),qLr=uN();Odt.exports=function(t,r,i,n){function a(s,l){return RLr.coerce(t,r,qLr,s,l)}var o=zLr(t,r,a,n);if(!o){r.visible=!1;return}BLr(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),qdt(t,r,a,"increasing"),qdt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("tickwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function qdt(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((Bci,Vdt)=>{"use strict";var w6=tt(),cN=w6._,fN=Yi(),OLr=iv(),y8=(ra(),Pt(ia)).BADNUM;function NLr(e,t){var r=fN.getFromId(e,t.xaxis),i=fN.getFromId(e,t.yaxis),n=VLr(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=Udt(e,t,o,s,i,ULr);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 ULr(e,t,r,i){return{o:e,h:t,l:r,c:i}}function Udt(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=M>w,p=M;var x=a(w,_,b,M);x.pos=g,x.yc=(w+M)/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 VLr(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 GLr=gi(),Gdt=tt();Hdt.exports=function(t,r,i,n){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;Gdt.makeTraceGroups(n,i,"trace ohlc").each(function(l){var u=GLr.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(Gdt.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),M=a.c2p(v.l,!0),x=a.c2p(v.c,!0);return"M"+m+","+_+"H"+w+"M"+w+","+b+"V"+M+"M"+g+","+x+"H"+w})})}});var Wdt=W((Oci,$dt)=>{"use strict";var Yse=gi(),HLr=Qi(),jLr=ti();$dt.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(jLr.stroke,l.color).call(HLr.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var Zse=W((Nci,Jdt)=>{"use strict";var Xse=Yi(),$Lr=tt(),hN=Is(),WLr=ti(),YLr=tt().fillText,Ydt=(G5(),Pt(V5)),XLr={increasing:Ydt.INCREASING.SYMBOL,decreasing:Ydt.DECREASING.SYMBOL};function ZLr(e,t,r,i){var n=e.cd,a=n[0].trace;return a.hoverlabel.split?Zdt(e,t,r,i):Kdt(e,t,r,i)}function Xdt(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 S=d(E);return hN.inbox(S-m,S+m,f)}function _(E){var S=E[u],C=E[c];return S===C||hN.inbox(S-r,C-r,f)}function b(E){return(w(E)+_(E))/2}var M=hN.getDistanceFunction(i,w,_,b);if(hN.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],y=T.line.color;return WLr.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 Zdt(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=[],u=Xdt(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=$Lr.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 Kdt(e,t,r,i){var n=e.cd,a=e.ya,o=n[0].trace,s=n[0].t,l=Xdt(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")+" "+XLr[h]]:[];return w&&YLr(c,o,_),l.extraText=_.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}Jdt.exports={hoverPoints:ZLr,hoverSplit:Zdt,hoverOnPoints:Kdt}});var Kse=W((Uci,Qdt)=>{"use strict";Qdt.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";ept.exports={moduleType:"trace",name:"ohlc",basePlotModule:xl(),categories:["cartesian","svg","showLegend"],meta:{},attributes:uN(),supplyDefaults:Ndt(),calc:Wse().calc,plot:jdt(),style:Wdt(),hoverPoints:Zse().hoverPoints,selectPoints:Kse()}});var ipt=W((Gci,rpt)=>{"use strict";rpt.exports=tpt()});var Qse=W((Hci,opt)=>{"use strict";var Jse=tt().extendFlat,npt=Ts().axisHoverFormat,xh=uN(),T6=KM();function apt(e){return{line:{color:Jse({},T6.line.color,{dflt:e}),width:T6.line.width,editType:"style"},fillcolor:T6.fillcolor,editType:"style"}}opt.exports={xperiod:xh.xperiod,xperiod0:xh.xperiod0,xperiodalignment:xh.xperiodalignment,xhoverformat:npt("x"),yhoverformat:npt("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:apt(xh.increasing.line.color.dflt),decreasing:apt(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 upt=W((jci,lpt)=>{"use strict";var KLr=tt(),JLr=ti(),QLr=$se(),ePr=ev(),tPr=Qse();lpt.exports=function(t,r,i,n){function a(s,l){return KLr.coerce(t,r,tPr,s,l)}var o=QLr(t,r,a,n);if(!o){r.visible=!1;return}ePr(t,r,n,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),spt(t,r,a,"increasing"),spt(t,r,a,"decreasing"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("whiskerwidth"),n._requestRangeslider[r.xaxis]=!0,a("zorder")};function spt(e,t,r,i){var n=r(i+".line.color");r(i+".line.width",t.line.width),r(i+".fillcolor",JLr.addOpacity(n,.5))}});var dpt=W(($ci,hpt)=>{"use strict";var cpt=tt(),fpt=Yi(),rPr=iv(),iPr=Wse().calcCommon;hpt.exports=function(e,t){var r=e._fullLayout,i=fpt.getFromId(e,t.xaxis),n=fpt.getFromId(e,t.yaxis),a=i.makeCalcdata(t,"x"),o=rPr(t,i,"x",a).vals,s=iPr(e,t,a,o,n,nPr);return s.length?(cpt.extendFlat(s[0].t,{num:r._numBoxes,dPos:cpt.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function nPr(e,t,r,i){return{min:r,q1:Math.min(e,i),med:i,q3:Math.max(e,i),max:t}}});var vpt=W((Wci,ppt)=>{"use strict";ppt.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:upt(),calc:dpt(),plot:XL().plot,layerName:"boxlayer",style:ZL().style,hoverPoints:Zse().hoverPoints,selectPoints:Kse()}});var mpt=W((Yci,gpt)=>{"use strict";gpt.exports=vpt()});var tle=W((Xci,ypt)=>{"use strict";var pN=tt(),aPr=g1(),dN=pN.deg2rad,ele=pN.rad2deg;ypt.exports=function(t,r,i){switch(aPr(t,i),t._id){case"x":case"radialaxis":oPr(t,r);break;case"angularaxis":uPr(t,r);break}};function oPr(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 sPr(e,t){return t==="degrees"?dN(e):e}function lPr(e,t){return t==="degrees"?ele(e):e}function uPr(e,t){var r=e.type;if(r==="linear"){var i=e.d2c,n=e.c2d;e.d2c=function(a,o){return sPr(i(a),o)},e.c2d=function(a,o){return n(lPr(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;cxPr,MINZOOM:()=>bPr,OFFEDGE:()=>_Pr,angularDragBoxSize:()=>gPr,attr:()=>cPr,axisName2dataArray:()=>dPr,axisNames:()=>hPr,cornerHalfWidth:()=>yPr,cornerLen:()=>mPr,layerNames:()=>pPr,name:()=>fPr,radialDragBoxSize:()=>vPr});var cPr,fPr,hPr,dPr,pPr,vPr,gPr,mPr,yPr,xPr,bPr,_Pr,gN=Ci(()=>{"use strict";cPr="subplot",fPr="polar",hPr=["angularaxis","radialaxis"],dPr={angularaxis:"theta",radialaxis:"r"},pPr=["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],vPr=50,gPr=30,mPr=25,yPr=2,xPr=8,bPr=20,_Pr=20});var yN=W((Zci,Tpt)=>{"use strict";var B3=tt(),xpt=nM().tester,rle=B3.findIndexOfMin,_pt=B3.isAngleInsideSector,wPr=B3.angleDelta,bpt=B3.angleDist;function TPr(e,t,r,i,n){if(!_pt(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 Apt(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 Mpt(e,t){return t*e.radius}function FPr(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=Mpt(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function LPr(e,t,r,i){var n=Mpt(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(Apt(r)!==Apt(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(),PPr=Qo(),bh=Yi(),IPr=g1(),RPr=tle(),zPr=Yp().doAutoRange,ey=i$(),_N=Ef(),Ept=Is(),BPr=pb(),qPr=xu().prepSelect,OPr=xu().selectOnClick,ale=xu().clearOutline,kpt=Xp(),Cpt=GA(),Dpt=JA().redrawReglTraces,NPr=(Jl(),Pt(Kl)).MID_SHIFT,Ex=(gN(),Pt(vN)),ty=yN(),TN=nle(),xN=TN.smith,UPr=TN.reactanceArc,VPr=TN.resistanceArc,bN=TN.smithTransform,GPr=gs._,Fpt=gs.mod,kx=gs.deg2rad,O3=gs.rad2deg;function Lpt(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=Lpt.prototype;Rpt.exports=function(t,r,i){return new Lpt(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,M=(c-w)/n.h/2,_=[s[0],s[1]],b=[l[0]+M,l[1]-M]):(g=c/m,w=c,M=(u-g)/n.w/2,_=[s[0]+M,s[1]-M],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],S=r.cy=A+T*h[3],C=r.cxx=E-x,k=r.cyy=S-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,S)).call(wN.fill,t.bgcolor)};gc.mockAxis=function(e,t,r,i){var n=gs.extendFlat({},r,i);return RPr(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);IPr(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);zPr(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 VPr(r,T.x,-1/0,1/0)}:function(T){return r.pathArc(f.r2p(T.x)+o)},m=Ppt(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 M=r.radialAxisAngle=r.vangles?O3(Ipt(kx(u.angle),r.vangles)):u.angle,x=Yu(s,l),A=x+yg(-M);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"]=BPr.draw(n,u,{propContainer:l,propName:i.id+".radialaxis.title.text",placeholder:GPr(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])),S=Math.atan2(E[0]-s,E[1]-l)-Math.PI/2;return Yu(E[0],E[1])+yg(-O3(S))}:function(y){var E=h(y);return p(E)+yg(-O3(E))},m=f?function(y){return UPr(r,y.x,0,1/0)}:function(y){var E=h(y),S=Math.cos(E),C=Math.sin(E);return"M"+[s+o*S,l-o*C]+"L"+[s+a*S,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),S=Math.sin(E)>0?.2:1;return-Math.sin(E)*(w+y.fontSize*S)+Math.abs(Math.cos(E))*(y.fontSize*NPr)},_.anchorFn=function(y){var E=h(y),S=Math.cos(E);return Math.abs(S)<.1?"middle":S>0?"start":"end"},_.heightFn=function(y,E,S){var C=h(y);return-.5*(1+Math.sin(C))*S};var b=Ppt(u);r.angularTickLayout!==b&&(n["angular-axis"].selectAll("."+c._id+"tick").remove(),r.angularTickLayout=b);var M=f?[1/0].concat(c.tickvals||[]).map(function(y){return bh.tickText(c,y,!0,!1)}):bh.calcTicks(c);f&&(M[0].text="\u221E",M[0].fontSize*=1.75);var x;if(t.gridshape==="linear"?(x=M.map(h),gs.angleDelta(x[0],x[1])<0&&(x=x.slice().reverse())):x=null,r.vangles=x,c.type==="category"&&(M=M.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:M,layer:n["angular-axis"],path:"M"+A*T+",0h"+A*c.ticklen,transFn:v,crisp:!1}),bh.drawGrid(i,c,{vals:M,layer:n["angular-grid"],path:m,transFn:gs.noop,crisp:!1}),bh.drawLabels(i,c,{vals:M,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,M=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){Ept.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,S,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=M/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(M,ee,ae[0][0],ae[0][1]),be=w(M,ee,ae[1][0],ae[1][1])}else{var _e,re;oe?(_e=M,re=b):(_e=b,re=M),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&&OPr(ue,i,[t.xaxis],[t.yaxis],t.id,y),ge.indexOf("event")>-1&&Ept.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],S=oe[1],v){var Se=ty.findPolygonOffset(l,d[0],d[1],v);E+=h+Se[0],S+=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":qPr(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,M;r?(_=l+(o+h)*Math.cos(p),b=u-(o+h)*Math.sin(p),M="radialdrag"):(_=l+(s-h)*Math.cos(p),b=u-(s-h)*Math.sin(p),M="radialdrag-inner");var x=ey.makeRectDragger(a,M,"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 Ipt(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((Qci,Upt)=>{"use strict";var jPr=Yl(),Bn=ac(),$Pr=ds().attributes,J0=tt().extendFlat,zpt=hs().overrideAll,Bpt=zpt({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"),qpt=zpt({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"),Opt={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(Opt,Bpt,qpt);var Npt={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(Npt,Bpt,qpt);Upt.exports={domain:$Pr({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:jPr.background},radialaxis:Opt,angularaxis:Npt,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var jpt=W((efi,Hpt)=>{"use strict";var AN=tt(),WPr=ti(),YPr=Ra(),XPr=Kb(),ZPr=Mc().getSubplotData,KPr=ub(),JPr=Cw(),QPr=Py(),e9r=Iy(),t9r=rL(),r9r=FM(),i9r=FH(),n9r=Rw(),Gpt=sle(),a9r=tle(),MN=(gN(),Pt(vN)),Vpt=MN.axisNames;function o9r(e,t,r,i){var n=r("bgcolor");i.bgColor=WPr.combine(n,i.paper_bgcolor);var a=r("sector");r("hole");var o=ZPr(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 l9r=Mc().getSubplotCalcData,u9r=tt().counterRegex,c9r=ole(),Wpt=(gN(),Pt(vN)),Ypt=Wpt.attr,U3=Wpt.name,$pt=u9r(U3),Xpt={};Xpt[Ypt]={valType:"subplotid",dflt:U3,editType:"calc"};function f9r(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[U3],n=0;n{"use strict";var{hovertemplateAttrs:d9r,texttemplateAttrs:p9r,templatefallbackAttrs:Kpt}=Wa(),EN=an().extendFlat,v9r=C1(),Q0=Ws(),g9r=Ja(),E6=Q0.line;Jpt.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:p9r({editType:"plot"},{keys:["r","theta","text"]}),texttemplatefallback:Kpt({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:v9r(),hoverinfo:EN({},g9r.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:Q0.hoveron,hovertemplate:d9r(),hovertemplatefallback:Kpt(),selected:Q0.selected,unselected:Q0.unselected}});var CN=W((ifi,tvt)=>{"use strict";var kN=tt(),k6=Wo(),m9r=Dd(),y9r=tv(),Qpt=Jw(),x9r=rv(),b9r=F1(),_9r=(k1(),Pt(E1)).PTS_LINESONLY,w9r=_8();function T9r(e,t,r,i){function n(s,l){return kN.coerce(e,t,w9r,s,l)}var a=evt(e,t,i,n);if(!a){t.visible=!1;return}n("thetaunit"),n("mode",a<_9r?"lines+markers":"lines"),n("text"),n("hovertext"),t.hoveron!=="fills"&&(n("hovertemplate"),n("hovertemplatefallback")),k6.hasMarkers(t)&&m9r(e,t,r,i,n,{gradient:!0}),k6.hasLines(t)&&(y9r(e,t,r,i,n,{backoff:!0}),Qpt(e,t,n),n("connectgaps")),k6.hasText(t)&&(n("texttemplate"),n("texttemplatefallback"),x9r(e,t,i,n));var o=[];(k6.hasMarkers(t)||k6.hasText(t))&&(n("cliponaxis"),n("marker.maxdisplayed"),o.push("points")),n("fill"),t.fill!=="none"&&(b9r(e,t,r,n),k6.hasLines(t)||Qpt(e,t,n)),(t.fill==="tonext"||t.fill==="toself")&&o.push("fills"),n("hoveron",o.join("+")||"points"),kN.coerceSelectionMarkerOpacity(t,n)}function evt(e,t,r,i){var n=i("r"),a=i("theta");kN.isTypedArray(n)&&(t.r=n=Array.from(n)),kN.isTypedArray(a)&&(t.theta=a=Array.from(a));var o;if(n)a?o=Math.min(n.length,a.length):(o=n.length,i("theta0"),i("dtheta"));else{if(!a)return 0;o=t.theta.length,i("r0"),i("dr")}return t._length=o,o}tvt.exports={handleRThetaDefaults:evt,supplyDefaults:T9r}});var DN=W((nfi,ivt)=>{"use strict";var A9r=tt(),rvt=Yi();ivt.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=rvt.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?A9r.rad2deg(t.theta):t.theta;return n.thetaLabel=rvt.tickText(s,u,!0).text,n}});var ovt=W((afi,avt)=>{"use strict";var nvt=hn(),M9r=(ra(),Pt(ia)).BADNUM,S9r=Yi(),E9r=Fd(),k9r=L1(),C9r=C0(),D9r=Ld().calcMarkerSize;avt.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 F9r=n5(),svt=(ra(),Pt(ia)).BADNUM;lvt.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 L9r=l5();function P9r(e,t,r,i){var n=L9r(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,cvt(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function cvt(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("
")}}fvt.exports={hoverPoints:P9r,makeHoverPointText:cvt}});var dvt=W((lfi,hvt)=>{"use strict";hvt.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:SN(),categories:["polar","symbols","showLegend","scatter-like"],attributes:_8(),supplyDefaults:CN().supplyDefaults,colorbar:Cc(),formatLabels:DN(),calc:ovt(),plot:uvt(),style:lh().style,styleOnSelect:lh().styleOnSelect,hoverPoints:FN().hoverPoints,selectPoints:Rb(),meta:{}}});var vvt=W((ufi,pvt)=>{"use strict";pvt.exports=dvt()});var lle=W((hfi,mvt)=>{"use strict";var gvt=_8(),{cliponaxis:cfi,hoveron:ffi}=gvt,I9r=F8(gvt,["cliponaxis","hoveron"]),{connectgaps:R9r,line:{color:z9r,dash:B9r,width:q9r},fill:O9r,fillcolor:N9r,marker:U9r,textfont:V9r,textposition:G9r}=UE();mvt.exports=da(fn({},I9r),{connectgaps:R9r,fill:O9r,fillcolor:N9r,line:{color:z9r,dash:B9r,editType:"calc",width:q9r},marker:U9r,textfont:V9r,textposition:G9r})});var bvt=W((pfi,xvt)=>{"use strict";var yvt=tt(),ule=Wo(),H9r=CN().handleRThetaDefaults,j9r=Dd(),$9r=tv(),W9r=rv(),Y9r=F1(),X9r=(k1(),Pt(E1)).PTS_LINESONLY,Z9r=lle();xvt.exports=function(t,r,i,n){function a(s,l){return yvt.coerce(t,r,Z9r,s,l)}var o=H9r(t,r,n,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var K9r=DN();_vt.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]),K9r(t,r,i)}});var Avt=W((gfi,Tvt)=>{"use strict";var J9r=Fd(),Q9r=Ld().calcMarkerSize,eIr=j_(),tIr=Yi(),rIr=(N_(),Pt(O_)).TOO_MANY_POINTS;Tvt.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 iIr=HR(),nIr=FN().makeHoverPointText;function aIr(e,t,r,i){var n=e.cd,a=n[0].t,o=a.r,s=a.theta,l=iIr.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,nIr(f,h,c,u),l}}Mvt.exports={hoverPoints:aIr}});var kvt=W((yfi,Evt)=>{"use strict";Evt.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:SN(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:lle(),supplyDefaults:bvt(),colorbar:Cc(),formatLabels:wvt(),calc:Avt(),hoverPoints:Svt().hoverPoints,selectPoints:Oee(),meta:{}}});var Cvt=W((xfi,cle)=>{"use strict";var oIr=YR(),sIr=hn(),lIr=Ute(),uIr=zee(),LN=j_(),PN=tt(),cIr=(N_(),Pt(O_)).TOO_MANY_POINTS,fIr={};cle.exports=function(t,r,i){if(i.length){var n=r.radialAxis,a=r.angularAxis,o=uIr(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=cIr&&(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++}}),lIr(t,r,i)}};cle.exports.reglPrecompiled=fIr});var Lvt=W((bfi,Fvt)=>{"use strict";var Dvt=kvt();Dvt.plot=Cvt();Fvt.exports=Dvt});var Ivt=W((_fi,Pvt)=>{"use strict";Pvt.exports=Lvt()});var fle=W((wfi,Rvt)=>{"use strict";var{hovertemplateAttrs:hIr,templatefallbackAttrs:dIr}=Wa(),C6=an().extendFlat,Cx=_8(),Dx=R1();Rvt.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:pIr(),hoverinfo:Cx.hoverinfo,hovertemplate:hIr(),hovertemplatefallback:dIr(),selected:Dx.selected,unselected:Dx.unselected};function pIr(){var e=C6({},Dx.marker);return delete e.cornerradius,e}});var hle=W((Tfi,zvt)=>{"use strict";zvt.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var Ovt=W((Afi,qvt)=>{"use strict";var Bvt=tt(),vIr=CN().handleRThetaDefaults,gIr=NL(),mIr=fle();qvt.exports=function(t,r,i,n){function a(s,l){return Bvt.coerce(t,r,mIr,s,l)}var o=vIr(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"),gIr(t,r,a,i,n),Bvt.coerceSelectionMarkerOpacity(r,a)}});var Uvt=W((Mfi,Nvt)=>{"use strict";var yIr=tt(),xIr=hle();Nvt.exports=function(e,t,r){var i={},n;function a(l,u){return yIr.coerce(e[n]||{},t[n],xIr,l,u)}for(var o=0;o{"use strict";var Vvt=Sc().hasColorscale,Gvt=rf(),bIr=tt().isArrayOrTypedArray,_Ir=WM(),wIr=Ib().setGroupPositions,TIr=C0(),AIr=xi().traceIs,MIr=tt().extendFlat;function SIr(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 jvt=gi(),IN=hn(),D6=tt(),kIr=Qi(),ple=yN();$vt.exports=function(t,r,i){var n=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=CIr(r),c=r.layers.frontplot.select("g.barlayer");D6.makeTraceGroups(c,i,"trace bars").each(function(){var f=jvt.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=jvt.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 M=s.c2g(d.s1),x=(w+_)/2;d.ct=[a.c2p(M*Math.cos(x)),o.c2p(M*Math.sin(x))],b=u(m,g,w,_)}D6.ensureSingle(v,"path").attr("d",b)}),kIr.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function CIr(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 Xvt=W((kfi,Yvt)=>{"use strict";var DIr=Is(),vle=tt(),FIr=w5().getTraceColor,LIr=vle.fillText,PIr=FN().makeHoverPointText,IIr=yN().isPtInsidePolygon;Yvt.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?IIr: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(DIr.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 LIr(g,a,t),PIr(w,a,o,t),t.hovertemplate=a.hovertemplate,t.color=FIr(a,g),t.xLabelVal=t.yLabelVal=void 0,g.s<0&&(t.idealAlign="left"),[t]}}});var Kvt=W((Cfi,Zvt)=>{"use strict";Zvt.exports={moduleType:"trace",name:"barpolar",basePlotModule:SN(),categories:["polar","bar","showLegend"],attributes:fle(),layoutAttributes:hle(),supplyDefaults:Ovt(),supplyLayoutDefaults:Uvt(),calc:dle().calc,crossTraceCalc:dle().crossTraceCalc,plot:Wvt(),colorbar:Cc(),formatLabels:DN(),style:zd().style,styleOnSelect:zd().styleOnSelect,hoverPoints:Xvt(),selectPoints:T5(),meta:{}}});var Qvt=W((Dfi,Jvt)=>{"use strict";Jvt.exports=Kvt()});var gle={};Jn(gle,{attr:()=>RIr,axisName2dataArray:()=>qIr,axisNames:()=>BIr,name:()=>zIr});var RIr,zIr,BIr,qIr,mle=Ci(()=>{"use strict";RIr="subplot",zIr="smith",BIr=["realaxis","imaginaryaxis"],qIr={imaginaryaxis:"imag",realaxis:"real"}});var yle=W((Ffi,i1t)=>{"use strict";var OIr=Yl(),hl=ac(),NIr=ds().attributes,Fx=tt().extendFlat,e1t=hs().overrideAll,t1t=e1t({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"),r1t=e1t({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"),UIr=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"},t1t,r1t),VIr=Fx({visible:Fx({},hl.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:hl.ticks,editType:"calc"},t1t,r1t);i1t.exports={domain:NIr({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:OIr.background},realaxis:UIr,imaginaryaxis:VIr,editType:"calc"}});var o1t=W((Lfi,a1t)=>{"use strict";var F6=tt(),GIr=ti(),HIr=Ra(),jIr=Kb(),$Ir=Mc().getSubplotData,WIr=Iy(),YIr=Py(),XIr=FM(),ZIr=g1(),L6=yle(),xle=(mle(),Pt(gle)),n1t=xle.axisNames,KIr=QIr(function(e){return F6.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function JIr(e,t,r,i){var n=r("bgcolor");i.bgColor=GIr.combine(n,i.paper_bgcolor);var a=$Ir(i.fullData,xle.name,i.id),o=i.layoutOut,s;function l(M,x){return r(s+"."+M,x)}for(var u=0;u{"use strict";var eRr=Mc().getSubplotCalcData,tRr=tt().counterRegex,rRr=ole(),l1t=(mle(),Pt(gle)),u1t=l1t.attr,V3=l1t.name,s1t=tRr(V3),c1t={};c1t[u1t]={valType:"subplotid",dflt:V3,editType:"calc"};function iRr(e){for(var t=e._fullLayout,r=e.calcdata,i=t._subplots[V3],n=0;n{"use strict";var{hovertemplateAttrs:aRr,texttemplateAttrs:oRr,templatefallbackAttrs:d1t}=Wa(),RN=an().extendFlat,sRr=C1(),ed=Ws(),lRr=Ja(),P6=ed.line;p1t.exports={mode:ed.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:ed.text,texttemplate:oRr({editType:"plot"},{keys:["real","imag","text"]}),texttemplatefallback:d1t({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:sRr(),hoverinfo:RN({},lRr.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:ed.hoveron,hovertemplate:aRr(),hovertemplatefallback:d1t(),selected:ed.selected,unselected:ed.unselected}});var m1t=W((Rfi,g1t)=>{"use strict";var zN=tt(),I6=Wo(),uRr=Dd(),cRr=tv(),v1t=Jw(),fRr=rv(),hRr=F1(),dRr=(k1(),Pt(E1)).PTS_LINESONLY,pRr=ble();g1t.exports=function(t,r,i,n){function a(l,u){return zN.coerce(t,r,pRr,l,u)}var o=vRr(t,r,n,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var y1t=Yi();x1t.exports=function(t,r,i){var n={},a=i[r.subplot]._subplot;return n.realLabel=y1t.tickText(a.radialAxis,t.real,!0).text,n.imagLabel=y1t.tickText(a.angularAxis,t.imag,!0).text,n}});var T1t=W((Bfi,w1t)=>{"use strict";var _1t=hn(),gRr=(ra(),Pt(ia)).BADNUM,mRr=Fd(),yRr=L1(),xRr=C0(),bRr=Ld().calcMarkerSize;w1t.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 _Rr=n5(),A1t=(ra(),Pt(ia)).BADNUM,wRr=nle(),TRr=wRr.smith;M1t.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 ARr=l5();function MRr(e,t,r,i){var n=ARr(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,E1t(s,l,o,a),a.hovertemplate=l.hovertemplate,n}}function E1t(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("
")}}k1t.exports={hoverPoints:MRr,makeHoverPointText:E1t}});var F1t=W((Nfi,D1t)=>{"use strict";D1t.exports={moduleType:"trace",name:"scattersmith",basePlotModule:h1t(),categories:["smith","symbols","showLegend","scatter-like"],attributes:ble(),supplyDefaults:m1t(),colorbar:Cc(),formatLabels:b1t(),calc:T1t(),plot:S1t(),style:lh().style,styleOnSelect:lh().styleOnSelect,hoverPoints:C1t().hoverPoints,selectPoints:Rb(),meta:{}}});var P1t=W((Ufi,L1t)=>{"use strict";L1t.exports=F1t()});var wle=W((Vfi,I1t)=>{"use strict";var SRr=Ja(),ERr=Wa().hovertemplateAttrs,BN=Ts().axisHoverFormat,_le=an().extendFlat,kRr=Fo(),CRr=zu().dash,DRr=Xy(),G3=Ws(),FRr={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({},SRr.hoverinfo,{flags:["x","y","u","v","text","name"],dflt:"all"}),hovertemplate:ERr({},{keys:["x","y","u","v","text","name"]}),text:G3.text,textposition:G3.textposition,textfont:G3.textfont,marker:_le({arrowsize:_le({},DRr.arrowsize,{editType:"calc"}),line:{width:{valType:"number",min:0,dflt:2,editType:"style"},dash:CRr,editType:"style"},editType:"calc"},kRr("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"}};I1t.exports=FRr});var z1t=W((Gfi,R1t)=>{"use strict";var w8=tt(),LRr=wle(),PRr=Lb(),IRr=Sc().hasColorscale,RRr=Bu();R1t.exports=function(t,r,i,n){function a(d,v){return w8.coerce(t,r,LRr,d,v)}var o=PRr(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(),B1t=(ra(),Pt(ia)).BADNUM,zRr=rf(),BRr=C0(),qRr=.97;q1t.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",M=g==="center";for(var x=1/0,A=-1/0,T=1/0,y=-1/0,E=1/0,S=-1/0,C=1/0,k=-1/0,D=0,F=0;FA&&(A=a[F]),o[F]y&&(y=o[F]),IS&&(S=I),Bk&&(k=B);var O=Math.sqrt(I*I+B*B);if(O>c&&(c=O),Oh&&(h=$))}}else P.x=B1t,P.y=B1t}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*=qRr,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";N1t.exports=function(t,r){}});var qN=W(($fi,H1t)=>{"use strict";var Tle=gi(),Mle=tt(),A8=Qi(),ORr=es(),NRr=ti(),URr=(Ng(),Pt(Og)).DESELECTDIM;function V1t(e,t){var r=t.marker||{},i=ORr.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){V1t(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(NRr.isValid(n))return i.mcc=n,n}return this.style.stroke})};function VRr(e){var t=Tle.select(e).selectAll("g.trace.quiver");t.each(function(r){G1t(e,r,Tle.select(this))})}function GRr(e,t,r){G1t(e,t,r)}function G1t(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?URr: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)}}H1t.exports={style:VRr,styleOnSelect:GRr,colorscaleStroke:V1t,strokeArrowColors:Ale}});var W1t=W((Wfi,$1t)=>{"use strict";var Nv=gi(),HRr=tt(),M8=Qi(),{strokeArrowColors:jRr}=qN(),ON=Math.PI/12,$Rr=5.8,WRr=1.5,YRr=.7;$1t.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=Nv.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){j1t(t,p,r,h,i,this,a)})})}else s.each(function(h,p){j1t(t,p,r,h,i,this,a)});u&&s.exit().remove()};function j1t(e,t,r,i,n,a,o){var s=i[0].trace,l=r.xaxis,u=r.yaxis;i[0][r.isRangePlot?"nodeRangePlot3":"node3"]=Nv.select(a);var c=Nv.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=Nv.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):Nv.round(l._m*A._u))*v,E=(d==="paper"?A._v*Math.sign(u._m):Nv.round(u._m*A._v))*v,S=(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;S||(P=Math.max(P,WRr));let R=Math.sqrt((k-C)*(k-C)+(F-D)*(F-D)),L=YRr*R,I=Math.min($Rr*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 _=HRr.isArrayOrTypedArray(g.color)?void 0:g.color;M8.lineGroupStyle(f,w.width,_,w.dash),jRr(f,s);var b=Nv.select(a).selectAll("g.text").data([i]);b.enter().append("g").classed("text",!0),M8.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=Nv.select(this),y=M8.translatePoint(A,T.select("text"),l,u);y||T.remove()}),M.selectAll("text").call(M8.textPointStyle,s,e).each(function(A){var T=l.c2p(A.x),y=u.c2p(A.y);Nv.select(this).selectAll("tspan.line").each(function(){Nv.select(this).attr({x:T,y})})}),o&&o.duration>0){var x=Nv.transition().duration(o.duration).ease(o.easing);f.transition(x).style("opacity",1)}}});var Z1t=W((Yfi,X1t)=>{"use strict";var Y1t=tt(),XRr=Is(),ZRr=s5();function KRr(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))}X1t.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:KRr(u,c,_._px0,_._py0,_._px1,_._py1)};if(XRr.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 Y1t.extendFlat(t,{color:ZRr(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}),Y1t.fillText(h,o,t),[t]}}});var Q1t=W((Xfi,J1t)=>{"use strict";var NN=Yi(),K1t=tt();J1t.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?K1t.numberFormat(h)(c):String(c),n.vLabel=p?K1t.numberFormat(p)(f):String(f),n}});var tgt=W((Zfi,egt)=>{"use strict";egt.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 igt=W((Kfi,rgt)=>{"use strict";rgt.exports={moduleType:"trace",name:"quiver",basePlotModule:xl(),categories:["cartesian","svg","showLegend","scatter-like","zoomScale"],attributes:wle(),supplyDefaults:z1t(),calc:O1t(),crossTraceCalc:U1t(),plot:W1t(),style:qN().style,styleOnSelect:qN().styleOnSelect,hoverPoints:Z1t(),formatLabels:Q1t(),eventData:tgt(),selectPoints:Rb(),colorbar:Cc(),animatable:!0,meta:{}}});var agt=W((Jfi,ngt)=>{"use strict";ngt.exports=igt()});var gf=W((Qfi,sgt)=>{var VN=Hu();function ogt(){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(ogt.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=sgt.exports=new ogt;ga.cdate=Sle;ga.baseCalendar=Ele;ga.calendars.gregorian=kle});var lgt=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,M){for(var x=1;_+x1},c=function(b,M,x,A){var T=""+M;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")},M=function(C,k,D,F){for(var P=g(C,F)?D:k,R=0;R-1){h=1,p=d;for(var S=this.daysInMonth(f,h);p>S;S=this.daysInMonth(f,h))h++,p-=S}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 ugt=W(()=>{var Lx=gf(),JRr=Hu(),Dle=Lx.instance();function GN(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}GN.prototype=new Lx.baseCalendar;JRr(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(ezr);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(tzr);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(rzr);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=nzr(e,a,r,n);return Dle.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=Dle.fromJD(e),r=izr(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(QRr),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 QRr=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,ezr=/^\d?\d[iI]?/m,tzr=/^闰?十?[一二三四五六七八九]?月/m,rzr=/^闰?十?[一二三四五六七八九]?/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 izr(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,M=new Date(w,_-1,b+f);return a.year=M.getFullYear(),a.month=1+M.getMonth(),a.day=M.getDate(),a}});var cgt=W(()=>{var H3=gf(),azr=Hu();function Fle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Fle.prototype=new H3.baseCalendar;azr(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 fgt=W(()=>{var iy=gf(),ozr=Hu();function Lle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Lle.prototype=new iy.baseCalendar;ozr(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:szr[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 szr={20:"Fruitbat",21:"Anchovy"};iy.calendars.discworld=Lle});var hgt=W(()=>{var j3=gf(),lzr=Hu();function Ple(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ple.prototype=new j3.baseCalendar;lzr(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 dgt=W(()=>{var Rx=gf(),uzr=Hu();function Ile(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ile.prototype=new Rx.baseCalendar;uzr(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 pgt=W(()=>{var S8=gf(),czr=Hu();function Rle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Rle.prototype=new S8.baseCalendar;czr(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 vgt=W(()=>{var E8=gf(),fzr=Hu();function zle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}zle.prototype=new E8.baseCalendar;fzr(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 mgt=W(()=>{var yp=gf(),hzr=Hu();function qle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}qle.prototype=new yp.baseCalendar;hzr(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,[ggt(e+20,20),ggt(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 ggt(e,t){return Ble(e-1,t)+1}yp.calendars.mayan=qle});var xgt=W(()=>{var $3=gf(),dzr=Hu();function Ole(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ole.prototype=new $3.baseCalendar;var ygt=$3.instance("gregorian");dzr(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 ygt.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 bgt=W(()=>{var W3=gf(),pzr=Hu();function Nle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Nle.prototype=new W3.baseCalendar;pzr(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(),vzr=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;vzr($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 wgt=W(()=>{var Y3=gf(),gzr=Hu(),WN=Y3.instance();function Ule(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Ule.prototype=new Y3.baseCalendar;gzr(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 Tgt=W(()=>{var X3=gf(),mzr=Hu(),YN=X3.instance();function Vle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Vle.prototype=new X3.baseCalendar;mzr(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 Agt=W(()=>{var Z3=gf(),yzr=Hu();function Gle(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}Gle.prototype=new Z3.baseCalendar;yzr(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 Sgt=W((Dhi,Mgt)=>{"use strict";Mgt.exports=gf();lgt();ugt();cgt();fgt();hgt();dgt();pgt();vgt();mgt();xgt();bgt();_gt();wgt();Tgt();Agt()});var Pgt=W((Fhi,Lgt)=>{"use strict";var kgt=Sgt(),k8=tt(),Cgt=(ra(),Pt(ia)),xzr=Cgt.EPOCHJD,bzr=Cgt.ONEDAY,$le={valType:"enumerated",values:k8.sortObjectKeys(kgt.calendars),editType:"calc",dflt:"gregorian"},Dgt=function(e,t,r,i){var n={};return n[r]=$le,k8.coerce(e,t,n,r,i)},_zr=function(e,t,r,i){for(var n=0;n{"use strict";Igt.exports=Pgt()});var Ezr=W((Phi,Bgt)=>{var zgt=ETe();zgt.register([C6e(),gAe(),LMe(),QMe(),dSe(),sEe(),bEe(),uke(),qke(),bCe(),o8e(),LIe(),_Re(),fBe(),JBe(),Cqe(),Qqe(),fNe(),DNe(),YNe(),oUe(),bUe(),RUe(),KUe(),IGe(),eHe(),xZe(),xKe(),_Je(),WJe(),mut(),Lut(),rct(),pft(),Bft(),mht(),O0t(),cdt(),Fdt(),ipt(),mpt(),vvt(),Ivt(),Qvt(),P1t(),agt(),Rgt()]);Bgt.exports=zgt});return Ezr();})(); /*! * The buffer module from node.js, for the browser. * diff --git a/draftlogs/7965_add.md b/draftlogs/7965_add.md deleted file mode 100644 index c97759dae77..00000000000 --- a/draftlogs/7965_add.md +++ /dev/null @@ -1 +0,0 @@ -- Add `domainpad` to cartesian axes to reserve space in pixels inside the edges of `domain`, so the gap between subplots stays the same at all figure sizes [[#7965](https://github.com/plotly/plotly.js/pull/7965)], with thanks to @SharadhNaidu for the contribution! diff --git a/draftlogs/8144_fix.md b/draftlogs/8144_fix.md deleted file mode 100644 index 11e2422402a..00000000000 --- a/draftlogs/8144_fix.md +++ /dev/null @@ -1 +0,0 @@ - - Fix `Plotly.react` and `Plotly.relayout` with a whole axis object ignoring a new range on an axis with `constrain: 'domain'` [[#8144](https://github.com/plotly/plotly.js/pull/8144)], with thanks to @Roshan1299 for the contribution! diff --git a/draftlogs/8160_fix.md b/draftlogs/8160_fix.md deleted file mode 100644 index 4cf2feb84b1..00000000000 --- a/draftlogs/8160_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Apply `tickprefix` and `ticksuffix` to `tickvals` without explicit `ticktext` [[#8160](https://github.com/plotly/plotly.js/pull/8160)], with thanks to @davrens101 for the contribution! diff --git a/draftlogs/8168_fix.md b/draftlogs/8168_fix.md deleted file mode 100644 index 5b2e506ad94..00000000000 --- a/draftlogs/8168_fix.md +++ /dev/null @@ -1 +0,0 @@ -- Fix potential prototype pollution from inherited properties in plot API calls [[#8168](https://github.com/plotly/plotly.js/pull/8168)] diff --git a/package-lock.json b/package-lock.json index ca27322a25f..8fdada2e6b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "plotly.js", - "version": "4.2.0", + "version": "4.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "plotly.js", - "version": "4.2.0", + "version": "4.3.0", "license": "MIT", "dependencies": { "@plotly/d3": "3.8.2", diff --git a/package.json b/package.json index 24e68252f91..ca9556c7e02 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plotly.js", - "version": "4.2.0", + "version": "4.3.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 2694e37448d..e9b99e49520 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.2.0'; +exports.version = '4.3.0';